!function(h,N){var t,n,y=typeof N,g=h.document,e=h.location,r=h.jQuery,i=h.$,o={},f=[],a="1.9.1",v=f.concat,s=f.push,c=f.slice,u=f.indexOf,l=o.toString,m=o.hasOwnProperty,p=a.trim,me=function(e,t){return new me.fn.init(e,t,n)},d=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,C=/\S+/g,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,x=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,T=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,k=/(?:^|:|,)(?:\s*\[)+/g,E=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,S=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,A=/^-ms-/,j=/-([\da-z])/gi,D=function(e,t){return t.toUpperCase()},L=function(e){(g.addEventListener||"load"===e.type||"complete"===g.readyState)&&(H(),me.ready())},H=function(){g.addEventListener?(g.removeEventListener("DOMContentLoaded",L,!1),h.removeEventListener("load",L,!1)):(g.detachEvent("onreadystatechange",L),h.detachEvent("onload",L))};function q(e){var t=e.length,n=me.type(e);return!me.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&0"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:x.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof me?t[0]:t,me.merge(this,me.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),T.test(r[1])&&me.isPlainObject(t))for(r in t)me.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=g.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return n.find(e);this.length=1,this[0]=i}return this.context=g,this.selector=e,this},selector:"",length:0,size:function(){return this.length},toArray:function(){return c.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=me.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return me.each(this,e,t)},ready:function(e){return me.ready.promise().done(e),this},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n
a",e=c.getElementsByTagName("*"),t=c.getElementsByTagName("a")[0],!e||!t||!e.length)return{};a=(r=g.createElement("select")).appendChild(g.createElement("option")),n=c.getElementsByTagName("input")[0],t.style.cssText="top:1px;float:left;opacity:.5",o={getSetAttribute:"t"!==c.className,leadingWhitespace:3===c.firstChild.nodeType,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.5/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:!!n.value,optSelected:a.selected,enctype:!!g.createElement("form").enctype,html5Clone:"<:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===g.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},n.checked=!0,o.noCloneChecked=n.cloneNode(!0).checked,r.disabled=!0,o.optDisabled=!a.disabled;try{delete c.test}catch(e){o.deleteExpando=!1}for(l in(n=g.createElement("input")).setAttribute("value",""),o.input=""===n.getAttribute("value"),n.value="t",n.setAttribute("type","radio"),o.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),(i=g.createDocumentFragment()).appendChild(n),o.appendChecked=n.checked,o.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,c.attachEvent&&(c.attachEvent("onclick",function(){o.noCloneEvent=!1}),c.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})c.setAttribute(s="on"+l,"t"),o[l+"Bubbles"]=s in h||!1===c.attributes[s].expando;return c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===c.style.backgroundClip,me(function(){var e,t,n,r="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",i=g.getElementsByTagName("body")[0];i&&((e=g.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",i.appendChild(e).appendChild(c),c.innerHTML="
t
",(n=c.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",o.reliableHiddenOffsets=u&&0===n[0].offsetHeight,c.innerHTML="",c.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",o.boxSizing=4===c.offsetWidth,o.doesNotIncludeMarginInBodyOffset=1!==i.offsetTop,h.getComputedStyle&&(o.pixelPosition="1%"!==(h.getComputedStyle(c,null)||{}).top,o.boxSizingReliable="4px"===(h.getComputedStyle(c,null)||{width:"4px"}).width,(t=c.appendChild(g.createElement("div"))).style.cssText=c.style.cssText=r,t.style.marginRight=t.style.width="0",c.style.width="1px",o.reliableMarginRight=!parseFloat((h.getComputedStyle(t,null)||{}).marginRight)),typeof c.style.zoom!==y&&(c.innerHTML="",c.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",o.inlineBlockNeedsLayout=3===c.offsetWidth,c.style.display="block",c.innerHTML="
",c.firstChild.style.width="5px",o.shrinkWrapBlocks=3!==c.offsetWidth,o.inlineBlockNeedsLayout&&(i.style.zoom=1)),i.removeChild(e),e=c=n=t=null)}),e=r=i=a=t=n=null,o}();var _=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,F=/([A-Z])/g;function O(e,t,n,r){if(me.acceptData(e)){var i,o,a=me.expando,s="string"==typeof t,u=e.nodeType,l=u?me.cache:e,c=u?e[a]:e[a]&&a;if(c&&l[c]&&(r||l[c].data)||!s||n!==N)return c||(u?e[a]=c=f.pop()||me.guid++:c=a),l[c]||(l[c]={},u||(l[c].toJSON=me.noop)),("object"==typeof t||"function"==typeof t)&&(r?l[c]=me.extend(l[c],t):l[c].data=me.extend(l[c].data,t)),i=l[c],r||(i.data||(i.data={}),i=i.data),n!==N&&(i[me.camelCase(t)]=n),s?null==(o=i[t])&&(o=i[me.camelCase(t)]):o=i,o}}function B(e,t,n){if(me.acceptData(e)){var r,i,o,a=e.nodeType,s=a?me.cache:e,u=a?e[me.expando]:me.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){for((r=0,i=(t=me.isArray(t)?t.concat(me.map(t,me.camelCase)):t in o?[t]:(t=me.camelCase(t))in o?[t]:t.split(" ")).length);ro;o++)(r=n[o].name).indexOf("data-")||(r=me.camelCase(r.slice(5)),P(i,r,a[r]));me._data(i,"parsedAttrs",!0)}return a},removeData:function(e){return this.each(function(){me.removeData(this,e)})}}),me.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=me._data(e,t),n&&(!r||me.isArray(n)?r=me._data(e,t,me.makeArray(n)):r.push(n)),r||[]):N},dequeue:function(e,t){t=t||"fx";var n=me.queue(e,t),r=n.length,i=n.shift(),o=me._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),(o.cur=i)&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){me.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return me._data(e,n)||me._data(e,n,{empty:me.Callbacks("once memory").add(function(){me._removeData(e,t+"queue"),me._removeData(e,n)})})}}),me.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),e>arguments.length?me.queue(this[0],t):n===N?this:this.each(function(){var e=me.queue(this,t,n);me._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&me.dequeue(this,t)})},dequeue:function(e){return this.each(function(){me.dequeue(this,e)})},delay:function(r,e){return r=me.fx&&me.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=setTimeout(e,r);t.stop=function(){clearTimeout(n)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=me.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=N),e=e||"fx";a--;)(n=me._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var W,$,I=/[\t\r\n]/g,z=/\r/g,X=/^(?:input|select|textarea|button|object)$/i,U=/^(?:a|area)$/i,V=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,Y=/^(?:checked|selected)$/i,J=me.support.getSetAttribute,G=me.support.input;me.fn.extend({attr:function(e,t){return me.access(this,me.attr,e,t,1s&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[me.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Z.test(i)?this.mouseHooks:K.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new me.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||g),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||g).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||o===N||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return me.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):N}},focus:{trigger:function(){if(this!==g.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===g.activeElement&&this.blur?(this.blur(),!1):N},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==N&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=me.extend(new me.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?me.event.trigger(i,null,t):me.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},me.removeEvent=g.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===y&&(e[r]=null),e.detachEvent(r,n))},me.Event=function(e,t){return this instanceof me.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?ne:re):this.type=e,t&&me.extend(this,t),this.timeStamp=e&&e.timeStamp||me.now(),this[me.expando]=!0,N):new me.Event(e,t)},me.Event.prototype={isDefaultPrevented:re,isPropagationStopped:re,isImmediatePropagationStopped:re,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ne,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ne,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ne,this.stopPropagation()}},me.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,i){me.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return(!n||n!==this&&!me.contains(this,n))&&(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),me.support.submitBubbles||(me.event.special.submit={setup:function(){return!me.nodeName(this,"form")&&(me.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=me.nodeName(t,"input")||me.nodeName(t,"button")?t.form:N;n&&!me._data(n,"submitBubbles")&&(me.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),me._data(n,"submitBubbles",!0))}),N)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&me.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!me.nodeName(this,"form")&&(me.event.remove(this,"._submit"),N)}}),me.support.changeBubbles||(me.event.special.change={setup:function(){return Q.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(me.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),me.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),me.event.simulate("change",this,e,!0)})),!1):(me.event.add(this,"beforeactivate._change",function(e){var t=e.target;Q.test(t.nodeName)&&!me._data(t,"changeBubbles")&&(me.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||me.event.simulate("change",this.parentNode,e,!0)}),me._data(t,"changeBubbles",!0))}),N)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):N},teardown:function(){return me.event.remove(this,"._change"),!Q.test(this.nodeName)}}),me.support.focusinBubbles||me.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){me.event.simulate(t,e.target,me.event.fix(e),!0)};me.event.special[t]={setup:function(){0==n++&&g.addEventListener(e,r,!0)},teardown:function(){0==--n&&g.removeEventListener(e,r,!0)}}}),me.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=N),e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=N):null==r&&("string"==typeof t?(r=n,n=N):(r=n,n=t,t=N)),!1===r)r=re;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return me().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=me.guid++)),this.each(function(){me.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,me(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return(!1===t||"function"==typeof t)&&(n=t,t=N),!1===n&&(n=re),this.each(function(){me.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){me.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?me.event.trigger(e,t,n,!0):N}}),function(n,r){var e,T,w,o,t,h,l,N,g,C,i,m,y,a,s,v,c,k="sizzle"+-new Date,b=n.document,x={},E=0,f=0,u=ee(),p=ee(),d=ee(),S=typeof r,A=[],j=A.pop,D=A.push,L=A.slice,H=A.indexOf||function(e){for(var t=0,n=this.length;t+~])"+q+"*"),W=RegExp(O),$=RegExp("^"+_+"$"),I={ID:RegExp("^#("+M+")"),CLASS:RegExp("^\\.("+M+")"),NAME:RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:RegExp("^("+M.replace("w","w*")+")"),ATTR:RegExp("^"+F),PSEUDO:RegExp("^"+O),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),needsContext:RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},z=/[\x20\t\r\n\f]*[+~]/,X=/^[^{]+\{\s*\[native code/,U=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/'|\\/g,G=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,Q=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,K=function(e,t){var n="0x"+t-65536;return n!=n?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{L.call(b.documentElement.childNodes,0)[0].nodeType}catch(e){L=function(e){for(var t,n=[];t=this[e++];)n.push(t);return n}}function Z(e){return X.test(e+"")}function ee(){var n,r=[];return n=function(e,t){return r.push(e+=" ")>w.cacheLength&&delete n[r.shift()],n[e]=t}}function te(e){return e[k]=!0,e}function ne(e){var t=C.createElement("div");try{return e(t)}catch(e){return!1}finally{t=null}}function re(e,t,n,r){var i,o,a,s,u,l,c,f,p,d;if((t?t.ownerDocument||t:b)!==C&&g(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=(t=t||C).nodeType)&&9!==s)return[];if(!m&&!r){if(i=U.exec(e))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&v(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return D.apply(n,L.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&x.getByClassName&&t.getElementsByClassName)return D.apply(n,L.call(t.getElementsByClassName(a),0)),n}if(x.qsa&&!y.test(e)){if(c=!0,f=k,p=t,d=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=ue(e),(c=t.getAttribute("id"))?f=c.replace(J,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+le(l[u]);p=z.test(e)&&t.parentNode||t,d=l.join(",")}if(d)try{return D.apply(n,L.call(p.querySelectorAll(d),0)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return function(e,t,n,r){var i,o,a,s,u,l=ue(e);if(!r&&1===l.length){if(2<(o=l[0]=l[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&!m&&w.relative[o[1].type]){if(!(t=w.find.ID(a.matches[0].replace(Q,K),t)[0]))return n;e=e.slice(o.shift().value.length)}for(i=I.needsContext.test(e)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(Q,K),z.test(o[0].type)&&t.parentNode||t))){if(o.splice(i,1),!(e=r.length&&le(o)))return D.apply(n,L.call(r,0)),n;break}}return h(e,l)(r,t,m,n,z.test(e)),n}(e.replace(B,"$1"),t,n,r)}function ie(e,t){var n=t&&e,r=n&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function oe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ae(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function se(a){return te(function(o){return o=+o,te(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}for(e in t=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},g=re.setDocument=function(e){var u=e?e.ownerDocument||e:b;return u!==C&&9===u.nodeType&&u.documentElement&&(i=(C=u).documentElement,m=t(u),x.tagNameNoComments=ne(function(e){return e.appendChild(u.createComment("")),!e.getElementsByTagName("*").length}),x.attributes=ne(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),x.getByClassName=ne(function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),x.getByName=ne(function(e){e.id=k+0,e.innerHTML="
",i.insertBefore(e,i.firstChild);var t=u.getElementsByName&&u.getElementsByName(k).length===2+u.getElementsByName(k+0).length;return x.getIdNotName=!u.getElementById(k),i.removeChild(e),t}),w.attrHandle=ne(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==S&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},x.getIdNotName?(w.find.ID=function(e,t){if(typeof t.getElementById!==S&&!m){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(e){var t=e.replace(Q,K);return function(e){return e.getAttribute("id")===t}}):(w.find.ID=function(e,t){if(typeof t.getElementById!==S&&!m){var n=t.getElementById(e);return n?n.id===e||typeof n.getAttributeNode!==S&&n.getAttributeNode("id").value===e?[n]:r:[]}},w.filter.ID=function(e){var n=e.replace(Q,K);return function(e){var t=typeof e.getAttributeNode!==S&&e.getAttributeNode("id");return t&&t.value===n}}),w.find.TAG=x.tagNameNoComments?function(e,t){return typeof t.getElementsByTagName!==S?t.getElementsByTagName(e):r}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.NAME=x.getByName&&function(e,t){return typeof t.getElementsByName!==S?t.getElementsByName(name):r},w.find.CLASS=x.getByClassName&&function(e,t){return typeof t.getElementsByClassName===S||m?r:t.getElementsByClassName(e)},a=[],y=[":focus"],(x.qsa=Z(u.querySelectorAll))&&(ne(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||y.push("\\["+q+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||y.push(":checked")}),ne(function(e){e.innerHTML="",e.querySelectorAll("[i^='']").length&&y.push("[*^$]="+q+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(x.matchesSelector=Z(s=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&ne(function(e){x.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),a.push("!=",O)}),y=RegExp(y.join("|")),a=RegExp(a.join("|")),v=Z(i.contains)||i.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},c=i.compareDocumentPosition?function(e,t){var n;return e===t?(l=!0,0):(n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&n||e.parentNode&&11===e.parentNode.nodeType?e===u||v(b,e)?-1:t===u||v(b,t)?1:0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(e===t)return l=!0,0;if(!i||!o)return e===u?-1:t===u?1:i?-1:o?1:0;if(i===o)return ie(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ie(a[r],s[r]):a[r]===b?-1:s[r]===b?1:0},l=!1,[0,0].sort(c),x.detectDuplicates=l),C},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&g(e),t=t.replace(G,"='$1']"),!(!x.matchesSelector||m||a&&a.test(t)||y.test(t)))try{var n=s.call(e,t);if(n||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,K),e[3]=(e[4]||e[5]||"").replace(Q,K),"~="===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]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return I.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&W.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(Q,K).toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(e){var t=u[e+" "];return t||(t=RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&u(e,function(e){return t.test(e.className||typeof e.getAttribute!==S&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=re.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1++r;)e.push(r);return e})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=oe(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=ae(e);function ue(e,t){var n,r,i,o,a,s,u,l=p[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in(!n||(r=P.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=R.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),w.filter)!(r=I[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):p(e,s).slice(0)}function le(e){for(var t=0,n=e.length,r="";t]","i"),ge=/^\s+/,ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ve=/<([\w:]+)/,be=/\s*$/g,Se={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:me.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},Ae=fe(g).appendChild(g.createElement("div"));function je(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function De(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Le(e,t){for(var n,r=0;null!=(n=e[r]);r++)me._data(n,"globalEval",!t||me._data(t[r],"globalEval"))}function He(e,t){if(1===t.nodeType&&me.hasData(e)){var n,r,i,o=me._data(e),a=me._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r");try{for(;n")?o=e.cloneNode(!0):(Ae.innerHTML=e.outerHTML,Ae.removeChild(o=Ae.firstChild)),!(me.support.noCloneEvent&&me.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||me.isXMLDoc(e)))for(r=Me(o),s=Me(e),a=0;null!=(i=s[a]);++a)r[a]&&qe(i,r[a]);if(t)if(n)for(s=s||Me(e),r=r||Me(o),a=0;null!=(i=s[a]);a++)He(i,r[a]);else He(e,o);return 0<(r=Me(o,"script")).length&&Le(r,!u&&Me(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,l,c,f=e.length,p=fe(t),d=[],h=0;h")+c[2],i=c[0];i--;)s=s.lastChild;if(!me.support.leadingWhitespace&&ge.test(o)&&d.push(t.createTextNode(ge.exec(o)[0])),!me.support.tbody)for(i=(o="table"!==u||be.test(o)?""!==c[1]||be.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)me.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(me.merge(d,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else d.push(t.createTextNode(o));for(s&&p.removeChild(s),me.support.appendChecked||me.grep(Me(d,"input"),_e),h=0;o=d[h++];)if((!r||-1===me.inArray(o,r))&&(a=me.contains(o.ownerDocument,o),s=Me(p.appendChild(o),"script"),a&&Le(s),n))for(i=0;o=s[i++];)Ce.test(o.type||"")&&n.push(o);return s=null,p},cleanData:function(e,t){for(var n,r,i,o,a=0,s=me.expando,u=me.cache,l=me.support.deleteExpando,c=me.event.special;null!=(n=e[a]);a++)if((t||me.acceptData(n))&&(o=(i=n[s])&&u[i])){if(o.events)for(r in o.events)c[r]?me.event.remove(n,r):me.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l?delete n[s]:typeof n.removeAttribute!==y?n.removeAttribute(s):n[s]=null,f.push(i))}}});var Fe,Oe,Be,Pe=/alpha\([^)]*\)/i,Re=/opacity\s*=\s*([^)]*)/,We=/^(top|right|bottom|left)$/,$e=/^(none|table(?!-c[ea]).+)/,Ie=/^margin/,ze=RegExp("^("+d+")(.*)$","i"),Xe=RegExp("^("+d+")(?!px)[a-z%]+$","i"),Ue=RegExp("^([+-])=("+d+")","i"),Ve={BODY:"block"},Ye={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:0,fontWeight:400},Ge=["Top","Right","Bottom","Left"],Qe=["Webkit","O","Moz","ms"];function Ke(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Qe.length;i--;)if((t=Qe[i]+n)in e)return t;return r}function Ze(e,t){return e=t||e,"none"===me.css(e,"display")||!me.contains(e.ownerDocument,e)}function et(e,t){for(var n,r,i,o=[],a=0,s=e.length;a").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||Fe[0].contentDocument).document).write(""),t.close(),n=ot(e,t),Fe.detach()),Ve[e]=n),n}function ot(e,t){var n=me(t.createElement(e)).appendTo(t.body),r=me.css(n[0],"display");return n.remove(),r}me.fn.extend({css:function(e,t){return me.access(this,function(e,t,n){var r,i,o={},a=0;if(me.isArray(t)){for(i=Oe(e),r=t.length;a").append(me.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},me.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){me.fn[t]=function(e){return this.on(t,e)}}),me.each(["get","post"],function(e,i){me[i]=function(e,t,n,r){return me.isFunction(t)&&(r=r||n,n=t,t=N),me.ajax({url:e,type:i,dataType:r,data:t,success:n})}}),me.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":h.String,"text html":!0,"text json":me.parseJSON,"text xml":me.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?At(At(e,me.ajaxSettings),t):At(me.ajaxSettings,e)},ajaxPrefilter:Et(Nt),ajaxTransport:Et(Ct),ajax:function(e,t){"object"==typeof e&&(t=e,e=N),t=t||{};var n,r,c,f,p,d,h,i,g=me.ajaxSetup({},t),m=g.context||g,y=g.context&&(m.nodeType||m.jquery)?me(m):me.event,v=me.Deferred(),b=me.Callbacks("once memory"),x=g.statusCode||{},o={},a={},T=0,s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!i)for(i={};t=vt.exec(f);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===T?f:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||(e=a[n]=a[n]||e,o[e]=t),this},overrideMimeType:function(e){return T||(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(T<2)for(t in e)x[t]=[x[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||s;return h&&h.abort(t),u(0,t),this}};if(v.promise(w).complete=b.add,w.success=w.done,w.error=w.fail,g.url=((e||g.url||dt)+"").replace(mt,"").replace(xt,pt[1]+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=me.trim(g.dataType||"*").toLowerCase().match(C)||[""],null==g.crossDomain&&(n=Tt.exec(g.url.toLowerCase()),g.crossDomain=!(!n||n[1]===pt[1]&&n[2]===pt[2]&&(n[3]||("http:"===n[1]?80:443))==(pt[3]||("http:"===pt[1]?80:443)))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=me.param(g.data,g.traditional)),St(Nt,g,t,w),2===T)return w;for(r in(d=g.global)&&0==me.active++&&me.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!bt.test(g.type),c=g.url,g.hasContent||(g.data&&(c=g.url+=(gt.test(c)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=yt.test(c)?c.replace(yt,"$1_="+ht++):c+(gt.test(c)?"&":"?")+"_="+ht++)),g.ifModified&&(me.lastModified[c]&&w.setRequestHeader("If-Modified-Since",me.lastModified[c]),me.etag[c]&&w.setRequestHeader("If-None-Match",me.etag[c])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&w.setRequestHeader("Content-Type",g.contentType),w.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+kt+"; q=0.01":""):g.accepts["*"]),g.headers)w.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(m,w,g)||2===T))return w.abort();for(r in s="abort",{success:1,error:1,complete:1})w[r](g[r]);if(h=St(Ct,g,t,w)){w.readyState=1,d&&y.trigger("ajaxSend",[w,g]),g.async&&0n;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||me.fx.stop(),Ft=N},me.fx.timer=function(e){e()&&me.timers.push(e)&&me.fx.start()},me.fx.interval=13,me.fx.start=function(){Ot||(Ot=setInterval(me.fx.tick,me.fx.interval))},me.fx.stop=function(){clearInterval(Ot),Ot=null},me.fx.speeds={slow:600,fast:200,_default:400},me.fx.step={},me.expr&&me.expr.filters&&(me.expr.filters.animated=function(t){return me.grep(me.timers,function(e){return t===e.elem}).length}),me.fn.offset=function(t){if(arguments.length)return t===N?this:this.each(function(e){me.offset.setOffset(this,t,e)});var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,me.contains(e,i)?(typeof i.getBoundingClientRect!==y&&(r=i.getBoundingClientRect()),n=Vt(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},me.offset={setOffset:function(e,t,n){var r=me.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=me(e),s=a.offset(),u=me.css(e,"top"),l=me.css(e,"left"),c={},f={};o=("absolute"===r||"fixed"===r)&&-1>=1;0!=e--;)n[r++]=t>a[s++]?0:1,n[r++]=t>a[s++]?0:1}function R(e,t,a,s,n,r){var _=(e>>=1)%2;for(e>>=1;0!=e--;){var i=a[s++]*t,o=a[s++]*t,l=0|i,f=a[s++]*t,h=0|o,c=a[s++]*t,b=0|f;i+=M.adj43[l],l=0|c,o+=M.adj43[h],n[r++]=0|i,f+=M.adj43[b],n[r++]=0|o,c+=M.adj43[l],n[r++]=0|f,n[r++]=0|c}0!=_&&(i=a[s++]*t,o=a[s++]*t,i+=M.adj43[0|i],o+=M.adj43[0|o],n[r++]=0|i,n[r++]=0|o)}function d(e,t,a,s){var n,r=t,_=n=0;do{n<(i=e[r++])&&(n=i),_<(o=e[r++])&&(_=o)}while(r>=16)&&(n=e,t++),s.bits+=n,t;case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:r=t,t=b[n-1];var i=_=n=0,o=te.ht[t].xlen,l=te.ht[t].hlen,f=te.ht[t+1].hlen,h=te.ht[t+2].hlen;do{var c=e[r+0]*o+e[r+1];r=r+2;n+=l[c],_+=f[c],i+=h[c]}while(r=n);r++);for(_=r-8;_<24&&!(te.ht[_].linmax>=n);_++);for(n=_,i=65536*te.ht[n].xlen+te.ht[r].xlen,_=0;0!=(o=e[t++])&&(14>=16)&&(_=e,n=r),s.bits+=_,n}}function g(e,t,a,s,n,r,_,i){for(var o=t.big_values,l=2;l>1<<1);for(null!=a&&(a.sfb_count1=0);1t.big_values&&(r=t.big_values),_=t.big_values):t.block_type==ra.NORM_TYPE?(r=t.region0_count=e.bv_scf[n-2],_=t.region1_count=e.bv_scf[n-1],_=e.scalefac_band.l[r+_+2],r=e.scalefac_band.l[r+1],_r)return P.LARGE_BITS;r=M.IPOW20(a.global_gain);var _,i=0,o=0,l=0,f=0,h=0,c=n,b=0,u=t,m=0,p=null!=s&&a.global_gain==s.global_gain,d=a.block_type==ra.SHORT_TYPE?38:21;for(_=0;_<=d;_++){var g=-1;if((p||a.block_type==ra.NORM_TYPE)&&(g=a.global_gain-(a.scalefac[_]+(0!=a.preflag?M.pretab[_]:0)<a.max_nonzero_coeff&&(_=a.max_nonzero_coeff-i+1,mt.fill(n,a.max_nonzero_coeff,576,0),(v=_)<0&&(v=0),_=d+1),0==o&&0==l&&(c=n,b=h,u=t,m=f),null!=s&&0=s.sfb_count1&&0=s.step[_]?(0!=o&&(R(o,r,u,m,c,b),o=0,c=n,b=h,u=t,m=f),l+=v):(0!=l&&(S(l,r,u,m,c,b),l=0,c=n,b=h,u=t,m=f),o+=v),v<=0){0!=l&&(S(l,r,u,m,c,b),l=0),0!=o&&(R(o,r,u,m,c,b),o=0);break}}_<=d&&(h+=a.width[_],f+=a.width[_],i+=a.width[_])}if(0!=o&&R(o,r,u,m,c,b),0!=l&&S(l,r,u,m,c,b),0!=(2&e.substep_shaping))for(r=0,d=.634521682242439/M.IPOW20(a.global_gain+a.scalefac_scale),i=0;i=d?n[o]:0;return this.noquant_count_bits(e,a,s)},this.best_huffman_divide=function(e,t){var a=new N,s=t.l3_enc,n=ea(23),r=ea(23),_=ea(23),i=ea(23);if(t.block_type!=ra.SHORT_TYPE||1!=e.mode_gr){if(a.assign(t),t.block_type==ra.NORM_TYPE){for(var o=t.big_values,l=0;l<=22;l++)n[l]=P.LARGE_BITS;for(l=0;l<16;l++){var f=e.scalefac_band.l[l+1];if(o<=f)break;for(var h=new p(b=0),c=d(s,0,f,h),b=h.bits,u=0;u<8;u++){var m=e.scalefac_band.l[l+u+2];if(o<=m)break;m=d(s,f,m,h=new p(h=b)),h=h.bits,n[l+u]>h&&(n[l+u]=h,_[(r[l+u]=l)+u]=c,i[l+u]=m)}}g(e,a,t,s,n,r,_,i)}if(!(0==(o=a.big_values)||1<(s[o-2]|s[o-1])||576<(o=t.count1+2))){for(a.assign(t),a.count1=o,f=l=0;o>a.big_values;o-=4)b=2*(2*(2*s[o-4]+s[o-3])+s[o-2])+s[o-1],l+=te.t32l[b],f+=te.t33l[b];a.big_values=o,a.count1table_select=0,fa.part2_3_length&&t.assign(a))}}};var l=[1,1,1,1,8,2,2,2,4,4,4,8,8,8,16,16],f=[1,2,4,8,1,2,4,8,2,4,8,2,4,8,4,8],h=[0,0,0,0,3,1,1,1,2,2,2,3,3,3,4,4],c=[0,1,2,3,0,1,2,3,1,2,3,1,2,3,2,3];E.slen1_tab=h,E.slen2_tab=c,this.best_scalefac_store=function(e,t,a,s){var n,r,_=s.tt[t][a],i=0;for(n=r=0;n<_.sfbmax;n++){var o=_.width[n];for(r+=o,o=-o;o<0&&0==_.l3_enc[o+r];o++);0==o&&(_.scalefac[n]=i=-2)}if(0==_.scalefac_scale&&0==_.preflag){for(n=r=0;n<_.sfbmax;n++)0<_.scalefac[n]&&(r|=_.scalefac[n]);if(0==(1&r)&&0!=r){for(n=0;n<_.sfbmax;n++)0<_.scalefac[n]&&(_.scalefac[n]>>=1);_.scalefac_scale=i=1}}if(0==_.preflag&&_.block_type!=ra.SHORT_TYPE&&2==e.mode_gr){for(n=11;nn&&(t.part2_length=n,t.scalefac_compress=i));i=0}for(n=0;n<_.sfbmax;n++)-2==_.scalefac[n]&&(_.scalefac[n]=0);0!=i&&(2==e.mode_gr?this.scale_bitcount(_):this.scale_bitcount_lsf(e,_))};var _=[0,18,36,54,54,36,54,72,54,72,90,72,90,108,108,126],i=[0,18,36,54,51,35,53,71,52,70,88,69,87,105,104,122],o=[0,10,20,30,33,21,31,41,32,42,52,43,53,63,64,74];this.scale_bitcount=function(e){var t,a=0,s=0,n=e.scalefac;if(e.block_type==ra.SHORT_TYPE){var r=_;0!=e.mixed_block_flag&&(r=i)}else if(r=o,0==e.preflag){for(t=11;tr[t]&&(e.part2_length=r[t],e.scalefac_compress=t);return e.part2_length==P.LARGE_BITS};var u=[[15,15,7,7],[15,15,7,0],[7,3,0,0],[15,31,31,0],[7,7,7,0],[3,3,0,0]];this.scale_bitcount_lsf=function(e,t){var a,s,n,r,_=ea(4),i=t.scalefac;for(e=0!=t.preflag?2:0,n=0;n<4;n++)_[n]=0;if(t.block_type==ra.SHORT_TYPE){var o=1,l=M.nr_of_sfb_block[e][o];for(a=r=0;a<4;a++){var f=l[a]/3;for(n=0;n_[a]&&(_[a]=i[3*r+s])}}else for(o=0,l=M.nr_of_sfb_block[e][o],a=r=0;a<4;a++)for(f=l[a],n=0;n_[a]&&(_[a]=i[r]);for(l=!1,a=0;a<4;a++)_[a]>u[e][a]&&(l=!0);if(!l){for(t.sfb_partition_table=M.nr_of_sfb_block[e][o],a=0;a<4;a++)t.slen[a]=m[_[a]];switch(o=t.slen[0],a=t.slen[1],_=t.slen[2],f=t.slen[3],e){case 0:t.scalefac_compress=(5*o+a<<4)+(_<<2)+f;break;case 1:t.scalefac_compress=400+(5*o+a<<2)+_;break;case 2:t.scalefac_compress=500+3*o+a;break;default:ee.err.printf("intensity stereo not implemented yet\n")}}if(!l)for(a=t.part2_length=0;a<4;a++)t.part2_length+=t.slen[a]*t.sfb_partition_table[a];return l};var m=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];this.huffman_init=function(e){for(var t=2;t<=576;t+=2){for(var a,s=0;e.scalefac_band.l[++s]t;)a--;for(a<0&&(a=n[s][0]),e.bv_scf[t-2]=a,a=n[s][1];e.scalefac_band.l[a+e.bv_scf[t-2]+2]>t;)a--;a<0&&(a=n[s][1]),e.bv_scf[t-1]=a}}}function W(){function u(e,t,a,s,n,r){for(;0!=n--;)a[s]=1e-10+e[t+0]*r[0]-a[s-1]*r[1]+e[t-1]*r[2]-a[s-2]*r[3]+e[t-2]*r[4]-a[s-3]*r[5]+e[t-3]*r[6]-a[s-4]*r[7]+e[t-4]*r[8]-a[s-5]*r[9]+e[t-5]*r[10]-a[s-6]*r[11]+e[t-6]*r[12]-a[s-7]*r[13]+e[t-7]*r[14]-a[s-8]*r[15]+e[t-8]*r[16]-a[s-9]*r[17]+e[t-9]*r[18]-a[s-10]*r[19]+e[t-10]*r[20],++s,++t}function m(e,t,a,s,n,r){for(;0!=n--;)a[s]=e[t+0]*r[0]-a[s-1]*r[1]+e[t-1]*r[2]-a[s-2]*r[3]+e[t-2]*r[4],++s,++t}function p(e){return e*e}var s=W.RMS_WINDOW_TIME_NUMERATOR,n=W.RMS_WINDOW_TIME_DENOMINATOR,d=[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.26408300200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]],g=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];this.InitGainAnalysis=function(e,t){e:{for(var a=0;ae.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:o;if(iMAX_ORDER-i&&(l=MAX_ORDER-i)}else _=a+i,f=t,h=n+i,c=s;u(f,_,e.lstepbuf,e.lstep+e.totsamp,l,d[e.reqindex]),u(c,h,e.rstepbuf,e.rstep+e.totsamp,l,d[e.reqindex]),m(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,l,g[e.reqindex]),m(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,l,g[e.reqindex]),_=e.lout+e.totsamp,f=e.loutbuf,h=e.rout+e.totsamp,c=e.routbuf;for(var b=l%8;0!=b--;)e.lsum+=p(f[_++]),e.rsum+=p(c[h++]);for(b=l/8;0!=b--;)e.lsum+=p(f[_+0])+p(f[_+1])+p(f[_+2])+p(f[_+3])+p(f[_+4])+p(f[_+5])+p(f[_+6])+p(f[_+7]),_+=8,e.rsum+=p(c[h+0])+p(c[h+1])+p(c[h+2])+p(c[h+3])+p(c[h+4])+p(c[h+5])+p(c[h+6])+p(c[h+7]),h+=8;if(o-=l,i+=l,e.totsamp+=l,e.totsamp==e.sampleWindow&&((_=(_=10*W.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37))<=0?0:0|_)>=e.A.length&&(_=e.A.length-1),e.A[_]++,e.lsum=e.rsum=0,ee.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),ee.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),ee.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),ee.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0),e.totsamp>e.sampleWindow)return GAIN_ANALYSIS_ERROR}return rr&&(a.ResvMax=r),(a.ResvMax<0||e.disable_reservoir)&&(a.ResvMax=0),_<(e=t.bits*a.mode_gr+Math.min(a.ResvSize,a.ResvMax))&&(e=_),s.resvDrain_pre=0,null!=a.pinfo&&(a.pinfo.mean_bits=t.bits/2,a.pinfo.resvsize=a.ResvSize),e},this.ResvMaxBits=function(e,t,a,s){var n=e.internal_flags,r=n.ResvSize,_=n.ResvMax;return 0!=s&&(r+=t),0!=(1&n.substep_shaping)&&(_*=.9),a.bits=t,9*_<10*r?(s=r-9*_/10,a.bits+=s,n.substep_shaping|=128):(s=0,n.substep_shaping&=127,e.disable_reservoir||0!=(1&n.substep_shaping)||(a.bits-=.1*t)),e=r<6*n.ResvMax/10?r:6*n.ResvMax/10,(e-=s)<0&&(e=0),e},this.ResvAdjust=function(e,t){e.ResvSize-=t.part2_3_length+t.part2_length},this.ResvFrameEnd=function(e,t){var a,s=e.l3_side;e.ResvSize+=t*e.mode_gr,t=0,s.resvDrain_post=0,(s.resvDrain_pre=0)!=(a=e.ResvSize%8)&&(t+=a),0<(a=e.ResvSize-t-e.ResvMax)&&(t+=a),a=Math.min(8*s.main_data_begin,t)/8,s.resvDrain_pre+=8*a,t-=8*a,e.ResvSize-=8*a,s.main_data_begin-=a,s.resvDrain_post+=t,e.ResvSize-=t}}function H(){function i(e,t){return(((255&e[t+0])<<8|255&e[t+1])<<8|255&e[t+2])<<8|255&e[t+3]}function T(e,t,a){e[t+0]=a>>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=255&a}function E(e,t,a){e[t+0]=a>>8&255,e[t+1]=255&a}function n(e,t,a){return 255&(e<>8^a[255&(t^e)]}var r,x,P;this.setModules=function(e,t,a){r=e,x=t,P=a};var I=H.NUMTOCENTRIES,_=H.MAXFRAMESIZE,o=I+4+4+4+4+4+9+1+1+8+1+1+3+1+1+2+4+2+2,a=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];this.addVbrFrame=function(e){var t=e.internal_flags,a=t.VBR_seek_table;if(e=te.bitrate_table[e.version][t.bitrate_index],a.nVbrNumFrames++,a.sum+=e,a.seen++,!(a.seen>3&1,n=e[a+2]>>2&3,r=e[a+3]>>6&3,_=e[a+2]>>4&15;_=te.bitrate_table[s][_];if(t.samprate=14==e[a+1]>>4?te.samplerate_table[2][n]:te.samplerate_table[s][n],n=a=0!=s?3!=r?a+36:a+21:3!=r?a+21:a+13,!new String(e,n,4(),null).equals("Xing")&&!new String(e,n,4(),null).equals("Info"))return null;if(a+=4,t.hId=s,n=t.flags=i(e,a),a+=4,0!=(1&n)&&(t.frames=i(e,a),a+=4),0!=(2&n)&&(t.bytes=i(e,a),a+=4),0!=(4&n)){if(null!=t.toc)for(r=0;r>4,_=(15&e[a+1])<<8,(s<0||3e3r.pos-1&&(l=r.pos-1),255<(l=0|256*r.bag[l]/r.sum)&&(l=255),s[n]=255&l}}l=a.sideinfo_len,e.error_protection&&(l-=2),t[l++]=0,t[l++]=0,t[l++]=0,t[l++]=0,T(t,l,15),T(t,l+=4,a.VBR_seek_table.nVbrNumFrames),T(t,l+=4,0|(r=a.VBR_seek_table.nBytesWritten+a.VBR_seek_table.TotalFrameSize)),l+=4,ee.arraycopy(s,0,t,l,s.length),l+=s.length,e.error_protection&&x.CRC_writeheader(a,t);var _=0;for(n=0;ne.scale_right||e.disable_reservoir&&e.brate<320||e.noATH||e.ATHonly||0==B||e.in_samplerate<=32e3)&&(g=1),d=d+(S<<2)+(g<<5)+(i<<6),o=o.nMusicCRC,T(t,s+l,h),l+=4,h=0;h<9;h++)t[s+l+h]=255&c.charAt(h);for(t[s+(l+=9)]=255&b,t[s+ ++l]=255&u,T(t,s+ ++l,m),E(t,s+(l+=4),p),E(t,s+(l+=2),0),t[s+(l+=2)]=255&v,t[s+ ++l]=255<=w?255:255&w,t[s+ ++l]=255&_>>4,t[s+l+1]=255&(_<<4)+(f>>8),t[s+l+2]=255&f,t[s+(l+=3)]=255&d,l++,t[s+l++]=0,E(t,s+l,e.preset),T(t,s+(l+=2),r),E(t,s+(l+=4),o),l+=2,e=0;ea.length?-1:(e<1||t.write(a,0,e),0)}}function J(){function g(e,t,a){for(;0>a<>3]|=t>>a<<8-(7&s)-n,s+=n}e.header[e.h_ptr].ptr=s}function n(e,t){e<<=8;for(var a=0;a<8;a++)0!=(65536&((t<<=1)^(e<<=1)))&&(t^=32773);return t}function R(e,t){var a,s=te.ht[t.count1table_select+32],n=0,r=t.big_values,_=t.big_values;for(a=(t.count1-t.big_values)/4;0t.big_values&&(a=t.big_values),_(e,t.table_select[0],0,a,t)+_(e,t.table_select[1],a,t.big_values,t)}function A(e,t){var a=t.big_values,s=t.region0_count+1,n=e.scalefac_band.l[s];s+=t.region1_count+1;var r=e.scalefac_band.l[s];return a>8),t[5]=byte(255&a)},this.flush_bitstream=function(e){var t,a=e.internal_flags,s=a.l3_side;(t=w(e,new B))<0||(v(e,t),a.ResvSize=0,s.main_data_begin=0,a.findReplayGain&&(s=o.GetTitleGain(a.rgdata),a.RadioGain=0|Math.floor(10*s+.5)),a.findPeakSample&&(a.noclipGainChange=0|Math.ceil(200*Math.log10(a.PeakSample/32767)),0>n< ResvSize"),8*a.main_data_begin!=t.ResvSize&&(ee.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size: %d \nresv drain (post) %d \nresv drain (pre) %d \nheader and sideinfo: %d \ndata bits: %d \ntotal bits: %d (remainder: %d) \nbitsperframe: %d \n",8*a.main_data_begin,t.ResvSize,a.resvDrain_post,a.resvDrain_pre,8*t.sideinfo_len,l-a.resvDrain_post-8*t.sideinfo_len,l,l%8,s),ee.err.println("This is a fatal error. It has several possible causes:"),ee.err.println("90%% LAME compiled with buggy version of gcc using advanced optimizations"),ee.err.println(" 9%% Your system is overclocked"),ee.err.println(" 1%% bug in LAME encoding library"),t.ResvSize=8*a.main_data_begin),1e9e.PeakSample?e.PeakSample=s[0][_]:-s[0][_]>e.PeakSample&&(e.PeakSample=-s[0][_]);if(1e.PeakSample?e.PeakSample=s[1][_]:-s[1][_]>e.PeakSample&&(e.PeakSample=-s[1][_])}if(e.findReplayGain&&o.AnalyzeSamples(e.rgdata,s[0],0,s[1],0,i,e.channels_out)==W.GAIN_ANALYSIS_ERROR)return-6}}return r},this.init_bit_stream_w=function(e){h=new Int8Array(X.LAME_MAXMP3BUFFER),e.h_ptr=e.w_ptr=0,e.header[e.h_ptr].write_timing=0,c=-1,T=b=0}}function e(e,t,a,s){this.xlen=e,this.linmax=t,this.table=a,this.hlen=s}function T(e){this.bits=e}function O(){this.bits=this.over_SSD=this.over_count=this.max_noise=this.tot_noise=this.over_noise=0}function t(){this.setModules=function(e,t){}}function k(){this.floor=this.decay=this.adjustLimit=this.adjust=this.aaSensitivityP=this.useAdjust=0,this.l=ta(ra.SBMAX_l),this.s=ta(ra.SBMAX_s),this.psfb21=ta(ra.PSFB21),this.psfb12=ta(ra.PSFB12),this.cb_l=ta(ra.CBANDS),this.cb_s=ta(ra.CBANDS),this.eql_w=ta(ra.BLKSIZE/2)}function a(){this.scale_right=this.scale_left=this.scale=this.out_samplerate=this.in_samplerate=this.num_channels=this.num_samples=this.class_id=0,this.decode_only=this.bWriteVbrTag=this.analysis=!1,this.quality=0,this.mode=na.STEREO,this.write_id3tag_automatic=this.decode_on_the_fly=this.findReplayGain=this.free_format=this.force_ms=!1,this.error_protection=this.emphasis=this.extension=this.original=this.copyright=this.compression_ratio=this.brate=0,this.disable_reservoir=this.strict_ISO=!1,this.quant_comp_short=this.quant_comp=0,this.experimentalY=!1,this.preset=this.exp_nspsytune=this.experimentalZ=0,this.VBR=null,this.maskingadjust_short=this.maskingadjust=this.highpasswidth=this.lowpasswidth=this.highpassfreq=this.lowpassfreq=this.VBR_hard_min=this.VBR_max_bitrate_kbps=this.VBR_min_bitrate_kbps=this.VBR_mean_bitrate_kbps=this.VBR_q=this.VBR_q_frac=0,this.noATH=this.ATHshort=this.ATHonly=!1,this.athaa_sensitivity=this.athaa_loudapprox=this.athaa_type=this.ATHlower=this.ATHcurve=this.ATHtype=0,this.short_blocks=null,this.useTemporal=!1,this.msfix=this.interChRatio=0,this.tune=!1,this.lame_allocated_gfp=this.frameNum=this.framesize=this.encoder_padding=this.encoder_delay=this.version=this.tune_value_a=0,this.internal_flags=null}function y(e){this.quantize=e,this.iteration_loop=function(e,t,a,s){var n=e.internal_flags,r=ta(G.SFBMAX),_=ta(576),i=ea(2),o=n.l3_side,l=new T(0);this.quantize.rv.ResvFrameBegin(e,l),l=l.bits;for(var f=0;f>2&63)&&(a-=64),r=Math.pow(10,a/4/10),32<=(a=e.exp_nspsytune>>8&63)&&(a-=64),_=Math.pow(10,a/4/10),32<=(a=e.exp_nspsytune>>14&63)&&(a-=64),i=Math.pow(10,a/4/10),32<=(a=e.exp_nspsytune>>20&63)&&(a-=64),o=i*Math.pow(10,a/4/10),a=0;a3*s/4&&(l[_]=3*s/4),l[_]<0&&(l[_]=0),l[_]+a[_]>$.MAX_BITS_PER_CHANNEL&&(l[_]=Math.max(0,$.MAX_BITS_PER_CHANNEL-a[_])),r+=l[_];if(e$.MAX_BITS_PER_CHANNEL-e[0]&&(t=$.MAX_BITS_PER_CHANNEL-e[0]),t<0&&(t=0),125<=e[1]&&(125>1,g=0;do{var v=f[i]*f[i];g+=v,p+=v>1,m=M/u,p=2220446049250313e-31;g+=v=f[i]*f[i],p+=vs[r-3+1]&&(s[r-3+1]+=(s[r-3]-s[r-3+1])*_.decay),s[r-3+1]>s[r-3+2]&&(s[r-3+2]+=(s[r-3+1]-s[r-3+2])*_.decay))}return o},this.calc_noise_core=function(e,t,a,s){var n=0,r=t.s,_=e.l3_enc;if(r>e.count1)for(;0!=a--;){var i=e.xr[r];r++,n+=i*i,i=e.xr[r],r++,n+=i*i}else if(r>e.big_values){var o=ta(2);for(o[0]=0,o[1]=s;0!=a--;)i=Math.abs(e.xr[r])-o[_[r]],r++,n+=i*i,i=Math.abs(e.xr[r])-o[_[r]],r++,n+=i*i}else for(;0!=a--;)i=Math.abs(e.xr[r])-R[_[r]]*s,r++,n+=i*i,i=Math.abs(e.xr[r])-R[_[r]]*s,r++,n+=i*i;return t.s=r,n},this.calc_noise=function(e,t,a,s,n){var r,_=0,i=0,o=0,l=0,f=0,h=-20,c=0,b=e.scalefac,u=0;for(r=s.over_SSD=0;r>1;c+e.width[r]>e.max_nonzero_coeff&&(d=0<(d=e.max_nonzero_coeff-c+1)?d>>1:0),c=new g(c),p=this.calc_noise_core(e,c,d,p),c=c.s,null!=n&&(n.step[r]=m,n.noise[r]=p),p=a[_++]=p/t[i++],p=_a.FAST_LOG10(Math.max(p,1e-20)),null!=n&&(n.noise_log[r]=p)}null!=n&&(n.global_gain=e.global_gain),f+=p,0t.xrpow_max&&(t.xrpow_max=a[r])}if(1e-20M.xrpow_max&&(M.xrpow_max=B[y+x]);if(2==w.noise_shaping_amp)break}}if(T=I(v))v=!1;else if(T=2==S.mode_gr?V.scale_bitcount(v):V.scale_bitcount_lsf(S,v)){if(1T.xrpow_max&&(T.xrpow_max=R[M+w]);T.scalefac[A]=B>>1}T.preflag=0,T.scalefac_scale=1,T=!1}else if(v.block_type==ra.SHORT_TYPE&&0>M.scalefac_scale))B[R]=y,E+=3*k;else{for(B[R]=0,y=H.IPOW20(210+(y<M.xrpow_max&&(M.xrpow_max=A[E+x]);E+=k*(3-w-1)}for(y=H.IPOW20(202),E+=M.width[R]*(w+1),x=-M.width[R];x<0;x++)A[E+x]*=y,A[E+x]>M.xrpow_max&&(M.xrpow_max=A[E+x])}}R=!1}T=R||I(v)}T||(T=2==S.mode_gr?V.scale_bitcount(v):V.scale_bitcount_lsf(S,v)),v=!T}else v=!0;if(!v)break;if(0!=o.scalefac_scale&&(g=254),(v=r-o.part2_length)<=0)break;for(;(o.part2_3_length=V.count_bits(i,s,o,c))>v&&o.global_gain<=g;)o.global_gain++;if(o.global_gain>g)break;if(0==h.over_count){for(;(o.part2_3_length=V.count_bits(i,s,o,c))>b&&o.global_gain<=g;)o.global_gain++;if(o.global_gain>g)break}switch(H.calc_noise(o,a,f,_,c),_.bits=o.part2_3_length,g=h,v=_,T=o,R=f,S=t.block_type!=ra.SHORT_TYPE?e.quant_comp:e.quant_comp_short){default:case 9:0v.max_noise-.2&&v.tot_noisev.max_noise-.2&&v.tot_noisev.max_noise-.1&&v.tot_noise+v.over_noisev.max_noise-.15&&v.tot_noise+v.over_noise+v.over_noised&&0==h.over_count)break;if(3==i.noise_shaping_amp&&m&&30r[l.VBR_max_bitrate]&&(i[b][u]*=r[l.VBR_max_bitrate],i[b][u]/=h),_[b][u]>i[b][u]&&(_[b][u]=i[b][u]);return f},this.bitpressure_strategy=function(e,t,a,s){for(var n=0;n$.MAX_BITS_PER_CHANNEL&&(s[e][n]=$.MAX_BITS_PER_CHANNEL),f+=s[e][n]}if($.MAX_BITS_PER_GRANULE$.MAX_BITS_PER_CHANNEL&&(s[e][n]=$.MAX_BITS_PER_CHANNEL),t+=s[e][n];if(t>r[0])for(e=0;e<_.mode_gr;e++)for(n=0;n<_.channels_out;n++)s[e][n]*=r[0],s[e][n]/=t}}function s(){function B(e,t,a){for(var s,n,r=10,_=t+238-14-286,i=-15;i<0;i++){var o=l[r+-10];n=e[_+-224]*o,s=e[t+224]*o,o=l[r+-9],n+=e[_+-160]*o,s+=e[t+160]*o,o=l[r+-8],n+=e[_+-96]*o,s+=e[t+96]*o,o=l[r+-7],n+=e[_+-32]*o,s+=e[t+32]*o,o=l[r+-6],n+=e[_+32]*o,s+=e[t+-32]*o,o=l[r+-5],n+=e[_+96]*o,s+=e[t+-96]*o,o=l[r+-4],n+=e[_+160]*o,s+=e[t+-160]*o,o=l[r+-3],n+=e[_+224]*o,s+=e[t+-224]*o,o=l[r+-2],n+=e[t+-256]*o,s-=e[_+256]*o,o=l[r+-1],n+=e[t+-192]*o,s-=e[_+192]*o,o=l[r+0],n+=e[t+-128]*o,s-=e[_+128]*o,o=l[r+1],n+=e[t+-64]*o,s-=e[_+64]*o,o=l[r+2],n+=e[t+0]*o,s-=e[_+0]*o,o=l[r+3],n+=e[t+64]*o,s-=e[_+-64]*o,o=l[r+4],n+=e[t+128]*o,s-=e[_+-128]*o,o=l[r+5],n+=e[t+192]*o,o=(s-=e[_+-192]*o)-(n*=l[r+6]),a[30+2*i]=s+n,a[31+2*i]=l[r+7]*o,r+=18,t--,_++}s=e[t+-16]*l[r+-10],n=e[t+-32]*l[r+-2],s+=(e[t+-48]-e[t+16])*l[r+-9],n+=e[t+-96]*l[r+-1],s+=(e[t+-80]+e[t+48])*l[r+-8],n+=e[t+-160]*l[r+0],s+=(e[t+-112]-e[t+80])*l[r+-7],n+=e[t+-224]*l[r+1],s+=(e[t+-144]+e[t+112])*l[r+-6],n-=e[t+32]*l[r+2],s+=(e[t+-176]-e[t+144])*l[r+-5],n-=e[t+96]*l[r+3],s+=(e[t+-208]+e[t+176])*l[r+-4],n-=e[t+160]*l[r+4],s+=(e[t+-240]-e[t+208])*l[r+-3],e=(n-=e[t+224])-s,t=n+s,s=a[14],n=a[15]-s,a[31]=t+s,a[30]=e+n,a[15]=e-n,a[14]=t-s,s=a[28]-a[0],a[0]+=a[28],a[28]=s*l[r+-36+7],s=a[29]-a[1],a[1]+=a[29],a[29]=s*l[r+-36+7],s=a[26]-a[2],a[2]+=a[26],a[26]=s*l[r+-72+7],s=a[27]-a[3],a[3]+=a[27],a[27]=s*l[r+-72+7],s=a[24]-a[4],a[4]+=a[24],a[24]=s*l[r+-108+7],s=a[25]-a[5],a[5]+=a[25],a[25]=s*l[r+-108+7],s=a[22]-a[6],a[6]+=a[22],a[22]=s*_a.SQRT2,s=a[23]-a[7],a[7]+=a[23],a[23]=s*_a.SQRT2-a[7],a[7]-=a[6],a[22]-=a[7],a[23]-=a[22],s=a[6],a[6]=a[31]-s,a[31]+=s,s=a[7],a[7]=a[30]-s,a[30]+=s,s=a[22],a[22]=a[15]-s,a[15]+=s,s=a[23],a[23]=a[14]-s,a[14]+=s,s=a[20]-a[8],a[8]+=a[20],a[20]=s*l[r+-180+7],s=a[21]-a[9],a[9]+=a[21],a[21]=s*l[r+-180+7],s=a[18]-a[10],a[10]+=a[18],a[18]=s*l[r+-216+7],s=a[19]-a[11],a[11]+=a[19],a[19]=s*l[r+-216+7],s=a[16]-a[12],a[12]+=a[16],a[16]=s*l[r+-252+7],s=a[17]-a[13],a[13]+=a[17],a[17]=s*l[r+-252+7],s=-a[20]+a[24],a[20]+=a[24],a[24]=s*l[r+-216+7],s=-a[21]+a[25],a[21]+=a[25],a[25]=s*l[r+-216+7],s=a[4]-a[8],a[4]+=a[8],a[8]=s*l[r+-216+7],s=a[5]-a[9],a[5]+=a[9],a[9]=s*l[r+-216+7],s=a[0]-a[12],a[0]+=a[12],a[12]=s*l[r+-72+7],s=a[1]-a[13],a[1]+=a[13],a[13]=s*l[r+-72+7],s=a[16]-a[28],a[16]+=a[28],a[28]=s*l[r+-72+7],s=-a[17]+a[29],a[17]+=a[29],a[29]=s*l[r+-72+7],s=_a.SQRT2*(a[2]-a[10]),a[2]+=a[10],a[10]=s,s=_a.SQRT2*(a[3]-a[11]),a[3]+=a[11],a[11]=s,s=_a.SQRT2*(-a[18]+a[26]),a[18]+=a[26],a[26]=s-a[18],s=_a.SQRT2*(-a[19]+a[27]),a[19]+=a[27],a[27]=s-a[19],s=a[2],a[19]-=a[3],a[3]-=s,a[2]=a[31]-s,a[31]+=s,s=a[3],a[11]-=a[19],a[18]-=s,a[3]=a[30]-s,a[30]+=s,s=a[18],a[27]-=a[11],a[19]-=s,a[18]=a[15]-s,a[15]+=s,s=a[19],a[10]-=s,a[19]=a[14]-s,a[14]+=s,s=a[10],a[11]-=s,a[10]=a[23]-s,a[23]+=s,s=a[11],a[26]-=s,a[11]=a[22]-s,a[22]+=s,s=a[26],a[27]-=s,a[26]=a[7]-s,a[7]+=s,s=a[27],a[27]=a[6]-s,a[6]+=s,s=_a.SQRT2*(a[0]-a[4]),a[0]+=a[4],a[4]=s,s=_a.SQRT2*(a[1]-a[5]),a[1]+=a[5],a[5]=s,s=_a.SQRT2*(a[16]-a[20]),a[16]+=a[20],a[20]=s,s=_a.SQRT2*(a[17]-a[21]),a[17]+=a[21],a[21]=s,s=-_a.SQRT2*(a[8]-a[12]),a[8]+=a[12],a[12]=s-a[8],s=-_a.SQRT2*(a[9]-a[13]),a[9]+=a[13],a[13]=s-a[9],s=-_a.SQRT2*(a[25]-a[29]),a[25]+=a[29],a[29]=s-a[25],s=-_a.SQRT2*(a[24]+a[28]),a[24]-=a[28],a[28]=s-a[24],s=a[24]-a[16],a[24]=s,s=a[20]-s,a[20]=s,s=a[28]-s,a[28]=s,s=a[25]-a[17],a[25]=s,s=a[21]-s,a[21]=s,s=a[29]-s,a[29]=s,s=a[17]-a[1],a[17]=s,s=a[9]-s,a[9]=s,s=a[25]-s,a[25]=s,s=a[5]-s,a[5]=s,s=a[21]-s,a[21]=s,s=a[13]-s,a[13]=s,s=a[29]-s,a[29]=s,s=a[1]-a[0],a[1]=s,s=a[16]-s,a[16]=s,s=a[17]-s,a[17]=s,s=a[8]-s,a[8]=s,s=a[9]-s,a[9]=s,s=a[24]-s,a[24]=s,s=a[25]-s,a[25]=s,s=a[4]-s,a[4]=s,s=a[5]-s,a[5]=s,s=a[20]-s,a[20]=s,s=a[21]-s,a[21]=s,s=a[12]-s,a[12]=s,s=a[13]-s,a[13]=s,s=a[28]-s,a[28]=s,s=a[29]-s,a[29]=s,s=a[0],a[0]+=a[31],a[31]-=s,s=a[1],a[1]+=a[30],a[30]-=s,s=a[16],a[16]+=a[15],a[15]-=s,s=a[17],a[17]+=a[14],a[14]-=s,s=a[8],a[8]+=a[23],a[23]-=s,s=a[9],a[9]+=a[22],a[22]-=s,s=a[24],a[24]+=a[7],a[7]-=s,s=a[25],a[25]+=a[6],a[6]-=s,s=a[4],a[4]+=a[27],a[27]-=s,s=a[5],a[5]+=a[26],a[26]-=s,s=a[20],a[20]+=a[11],a[11]-=s,s=a[21],a[21]+=a[10],a[10]-=s,s=a[12],a[12]+=a[19],a[19]-=s,s=a[13],a[13]+=a[18],a[18]-=s,s=a[28],a[28]+=a[3],a[3]-=s,s=a[29],a[29]+=a[2],a[2]-=s}var l=[-.1482523854003001,32.308141959636465,296.40344946382766,883.1344870032432,11113.947376231741,1057.2713659324597,305.7402417275812,30.825928907280012,3.8533188138216365,59.42900443849514,709.5899960123345,5281.91112291017,-5829.66483675846,-817.6293103748613,-76.91656988279972,-4.594269939176596,.9063471690191471,.1960342806591213,-.15466694054279598,34.324387823855965,301.8067566458425,817.599602898885,11573.795901679885,1181.2520595540152,321.59731579894424,31.232021761053772,3.7107095756221318,53.650946155329365,684.167428119626,5224.56624370173,-6366.391851890084,-908.9766368219582,-89.83068876699639,-5.411397422890401,.8206787908286602,.3901806440322567,-.16070888947830023,36.147034243915876,304.11815768187864,732.7429163887613,11989.60988270091,1300.012278487897,335.28490093152146,31.48816102859945,3.373875931311736,47.232241542899175,652.7371796173471,5132.414255594984,-6909.087078780055,-1001.9990371107289,-103.62185754286375,-6.104916304710272,.7416505462720353,.5805693545089249,-.16636367662261495,37.751650073343995,303.01103387567713,627.9747488785183,12358.763425278165,1412.2779918482834,346.7496836825721,31.598286663170416,3.1598635433980946,40.57878626349686,616.1671130880391,5007.833007176154,-7454.040671756168,-1095.7960341867115,-118.24411666465777,-6.818469345853504,.6681786379192989,.7653668647301797,-.1716176790982088,39.11551877123304,298.3413246578966,503.5259106886539,12679.589408408976,1516.5821921214542,355.9850766329023,31.395241710249053,2.9164211881972335,33.79716964664243,574.8943997801362,4853.234992253242,-7997.57021486075,-1189.7624067269965,-133.6444792601766,-7.7202770609839915,.5993769336819237,.9427934736519954,-.17645823955292173,40.21879108166477,289.9982036694474,359.3226160751053,12950.259102786438,1612.1013903507662,362.85067106591504,31.045922092242872,2.822222032597987,26.988862316190684,529.8996541764288,4671.371946949588,-8535.899136645805,-1282.5898586244496,-149.58553632943463,-8.643494270763135,.5345111359507916,1.111140466039205,-.36174739330527045,41.04429910497807,277.5463268268618,195.6386023135583,13169.43812144731,1697.6433561479398,367.40983966190305,30.557037410382826,2.531473372857427,20.070154905927314,481.50208566532336,4464.970341588308,-9065.36882077239,-1373.62841526722,-166.1660487028118,-9.58289321133207,.4729647758913199,1.268786568327291,-.36970682634889585,41.393213350082036,261.2935935556502,12.935476055240873,13336.131683328815,1772.508612059496,369.76534388639965,29.751323653701338,2.4023193045459172,13.304795348228817,430.5615775526625,4237.0568611071185,-9581.931701634761,-1461.6913552409758,-183.12733958476446,-10.718010163869403,.41421356237309503,1.414213562373095,-.37677560326535325,41.619486213528496,241.05423794991074,-187.94665032361226,13450.063605744153,1836.153896465782,369.4908799925761,29.001847876923147,2.0714759319987186,6.779591200894186,377.7767837205709,3990.386575512536,-10081.709459700915,-1545.947424837898,-200.3762958015653,-11.864482073055006,.3578057213145241,1.546020906725474,-.3829366947518991,41.1516456456653,216.47684307105183,-406.1569483347166,13511.136535077321,1887.8076599260432,367.3025214564151,28.136213436723654,1.913880671464418,.3829366947518991,323.85365704338597,3728.1472257487526,-10561.233882199509,-1625.2025997821418,-217.62525175416,-13.015432208941645,.3033466836073424,1.66293922460509,-.5822628872992417,40.35639251440489,188.20071124269245,-640.2706748618148,13519.21490106562,1927.6022433578062,362.8197642637487,26.968821921868447,1.7463817695935329,-5.62650678237171,269.3016715297017,3453.386536448852,-11016.145278780888,-1698.6569643425091,-234.7658734267683,-14.16351421663124,.2504869601913055,1.76384252869671,-.5887180101749253,39.23429103868072,155.76096234403798,-889.2492977967378,13475.470561874661,1955.0535223723712,356.4450994756727,25.894952980042156,1.5695032905781554,-11.181939564328772,214.80884394039484,3169.1640829158237,-11443.321309975563,-1765.1588461316153,-251.68908574481912,-15.49755935939164,.198912367379658,1.847759065022573,-.7912582233652842,37.39369355329111,119.699486012458,-1151.0956593239027,13380.446257078214,1970.3952110853447,348.01959814116185,24.731487364283044,1.3850130831637748,-16.421408865300393,161.05030052864092,2878.3322807850063,-11838.991423510031,-1823.985884688674,-268.2854986386903,-16.81724543849939,.1483359875383474,1.913880671464418,-.7960642926861912,35.2322109610459,80.01928065061526,-1424.0212633405113,13235.794061869668,1973.804052543835,337.9908651258184,23.289159354463873,1.3934255946442087,-21.099669467133474,108.48348407242611,2583.700758091299,-12199.726194855148,-1874.2780658979746,-284.2467154529415,-18.11369784385905,.09849140335716425,1.961570560806461,-.998795456205172,32.56307803611191,36.958364584370486,-1706.075448829146,13043.287458812016,1965.3831106103316,326.43182772364605,22.175018750622293,1.198638339011324,-25.371248002043963,57.53505923036915,2288.41886619975,-12522.674544337233,-1914.8400385312243,-299.26241273417224,-19.37805630698734,.04912684976946725,1.990369453344394,.0178904535*_a.SQRT2/2384e-9,.008938074*_a.SQRT2/2384e-9,.0015673635*_a.SQRT2/2384e-9,.001228571*_a.SQRT2/2384e-9,.0004856585*_a.SQRT2/2384e-9,109434e-9*_a.SQRT2/2384e-9,50783e-9*_a.SQRT2/2384e-9,6914e-9*_a.SQRT2/2384e-9,12804.797818791945,1945.5515939597317,313.4244966442953,20.801593959731544,1995.1556208053692,9.000838926174497,-29.20218120805369],w=[[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,940084909404969e-27,6423305872147839e-28,2382191739347918e-28,5456116108943412e-27,4878985199565852e-27,4240448995017367e-27,3559909094758252e-27,2858043359288075e-27,2156177623817898e-27,1475637723558783e-27,8371015190102974e-28,2599706096327376e-28,-5456116108943412e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758252e-27,-2858043359288076e-27,-2156177623817898e-27,-1475637723558783e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347923e-28,-6423305872147843e-28,-9400849094049696e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049694e-28,-642330587214784e-27,-2382191739347918e-28],[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,9400849094049688e-28,6423305872147841e-28,2382191739347918e-28,5456116108943413e-27,4878985199565852e-27,4240448995017367e-27,3559909094758253e-27,2858043359288075e-27,2156177623817898e-27,1475637723558782e-27,8371015190102975e-28,2599706096327376e-28,-5461314069809755e-27,-4921085770524055e-27,-4343405037091838e-27,-3732668368707687e-27,-3093523840190885e-27,-2430835727329465e-27,-1734679010007751e-27,-974825365660928e-27,-2797435120168326e-28,0,0,0,0,0,0,-2283748241799531e-28,-4037858874020686e-28,-2146547464825323e-28],[.1316524975873958,.414213562373095,.7673269879789602,1.091308501069271,1.303225372841206,1.56968557711749,1.920982126971166,2.414213562373094,3.171594802363212,4.510708503662055,7.595754112725146,22.90376554843115,.984807753012208,.6427876096865394,.3420201433256688,.9396926207859084,-.1736481776669303,-.7660444431189779,.8660254037844387,.5,-.5144957554275265,-.4717319685649723,-.3133774542039019,-.1819131996109812,-.09457419252642064,-.04096558288530405,-.01419856857247115,-.003699974673760037,.8574929257125442,.8817419973177052,.9496286491027329,.9833145924917901,.9955178160675857,.9991605581781475,.999899195244447,.9999931550702802],[0,0,0,0,0,0,2283748241799531e-28,4037858874020686e-28,2146547464825323e-28,5461314069809755e-27,4921085770524055e-27,4343405037091838e-27,3732668368707687e-27,3093523840190885e-27,2430835727329466e-27,1734679010007751e-27,974825365660928e-27,2797435120168326e-28,-5456116108943413e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758253e-27,-2858043359288075e-27,-2156177623817898e-27,-1475637723558782e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347913e-28,-6423305872147834e-28,-9400849094049688e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049688e-28,-6423305872147841e-28,-2382191739347918e-28]],T=w[ra.SHORT_TYPE],E=w[ra.SHORT_TYPE],k=w[ra.SHORT_TYPE],y=w[ra.SHORT_TYPE],x=[0,1,16,17,8,9,24,25,4,5,20,21,12,13,28,29,2,3,18,19,10,11,26,27,6,7,22,23,14,15,30,31];this.mdct_sub48=function(e,t,a){for(var s=286,n=0;n=c?(h.ATH.adjust*=.075*c+.925,h.ATH.adjust=c?h.ATH.adjust=c:h.ATH.adjust>1,o=r,l=r<<1,f=l+o;r=l<<1;var h=t,c=h+i;do{var b=e[h+0]-e[h+o],u=e[h+0]+e[h+o],m=e[h+l]-e[h+f],p=e[h+l]+e[h+f];e[h+l]=u-p,e[h+0]=u+p,e[h+f]=b-m,e[h+o]=b+m,b=e[c+0]-e[c+o],u=e[c+0]+e[c+o],m=_a.SQRT2*e[c+f],p=_a.SQRT2*e[c+l],e[c+l]=u-p,e[c+0]=u+p,e[c+f]=b-m,e[c+o]=b+m,c+=r,h+=r}while(hO[b+3-2]?f/O[b+3-2]:O[b+3-2]>10*f?O[b+3-2]/(10*f):0,N[b+3]=f}if(e.analysis){var Q=N[0];for(b=1;b<12;b++)QU&&(Y[b/3]=b%3+1);for(b=1;b<4;b++)(L[b-1]>L[b]?L[b-1]/L[b]:L[b]/L[b-1])<1.7&&(Y[b]=0,1==b&&(Y[0]=0));0!=Y[0]&&0!=g.nsPsy.lastAttacks[h]&&(Y[0]=0),3!=g.nsPsy.lastAttacks[h]&&0==Y[0]+Y[1]+Y[2]+Y[3]||((D=0)!=Y[1]&&0!=Y[0]&&(Y[1]=0),0!=Y[2]&&0!=Y[1]&&(Y[2]=0),0!=Y[3]&&0!=Y[2]&&(Y[3]=0)),h<2?w[h]=D:0==D&&(w[0]=w[1]=0),o[h]=g.tot_ener[h];var W=void 0,J=void 0,$=void 0,ee=void 0,te=e,ae=C,se=F,ne=v,re=1&h,_e=S,ie=1&h,oe=s,le=h,fe=t,he=a,ce=te.internal_flags;if(le<2)Wt.fft_long(ce,ne[re],le,fe,he),Wt.fft_short(ce,_e[ie],le,fe,he);else if(2==le){for(var be=ra.BLKSIZE-1;0<=be;--be)W=ne[re+0][be],J=ne[re+1][be],ne[re+0][be]=(W+J)*_a.SQRT2*.5,ne[re+1][be]=(W-J)*_a.SQRT2*.5;for(var ue=2;0<=ue;--ue)for(be=ra.BLKSIZE_s-1;0<=be;--be)W=_e[ie+0][ue][be],J=_e[ie+1][ue][be],_e[ie+0][ue][be]=(W+J)*_a.SQRT2*.5,_e[ie+1][ue][be]=(W-J)*_a.SQRT2*.5}for(ae[0]=ne[re+0][0],ae[0]*=ae[0],be=ra.BLKSIZE/2-1;0<=be;--be)$=ne[re+0][ra.BLKSIZE/2-be],ee=ne[re+0][ra.BLKSIZE/2+be],ae[ra.BLKSIZE/2-be]=.5*($*$+ee*ee);for(ue=2;0<=ue;--ue)for(se[ue][0]=_e[ie+0][ue][0],se[ue][0]*=se[ue][0],be=ra.BLKSIZE_s/2-1;0<=be;--be)$=_e[ie+0][ue][ra.BLKSIZE_s/2-be],ee=_e[ie+0][ue][ra.BLKSIZE_s/2+be],se[ue][ra.BLKSIZE_s/2-be]=.5*($*$+ee*ee);var me=0;for(be=11;be1.58*g.thm[1].l[Ze]||g.thm[1].l[Ze]>1.58*g.thm[0].l[Ze]||(Ke=g.mld_l[Ze]*g.en[3].l[Ze],ze=Math.max(g.thm[2].l[Ze],Math.min(g.thm[3].l[Ze],Ke)),Ke=g.mld_l[Ze]*g.en[2].l[Ze],Ge=Math.max(g.thm[3].l[Ze],Math.min(g.thm[2].l[Ze],Ke)),g.thm[2].l[Ze]=ze,g.thm[3].l[Ze]=Ge);for(Ze=0;Ze1.58*g.thm[1].s[Ze][Qe]||g.thm[1].s[Ze][Qe]>1.58*g.thm[0].s[Ze][Qe]||(Ke=g.mld_s[Ze]*g.en[3].s[Ze][Qe],ze=Math.max(g.thm[2].s[Ze][Qe],Math.min(g.thm[3].s[Ze][Qe],Ke)),Ke=g.mld_s[Ze]*g.en[2].s[Ze][Qe],Ge=Math.max(g.thm[3].s[Ze][Qe],Math.min(g.thm[2].s[Ze][Qe],Ke)),g.thm[2].s[Ze][Qe]=ze,g.thm[3].s[Ze][Qe]=Ge);if(je=e.msfix,0O[x+3-2]?j/O[x+3-2]:O[x+3-2]>10*j?O[x+3-2]/(10*j):0,V[x+3]=j}for(x=0;x<3;++x){var G=O[3*x+3]+O[3*x+4]+O[3*x+5],z=1;6*O[3*x+5]X&&(R[k][x/3]=x%3+1);for(x=1;x<4;x++){var Z=L[x-1],Q=L[x];Math.max(Z,Q)<4e4&&Z<1.7*Q&&Q<1.7*Z&&(1==x&&R[k][0]<=R[k][x]&&(R[k][0]=0),R[k][x]=0)}R[k][0]<=w.nsPsy.lastAttacks[k]&&(R[k][0]=0),3!=w.nsPsy.lastAttacks[k]&&0==R[k][0]+R[k][1]+R[k][2]+R[k][3]||((q=0)!=R[k][1]&&0!=R[k][0]&&(R[k][1]=0),0!=R[k][2]&&0!=R[k][1]&&(R[k][2]=0),0!=R[k][3]&&0!=R[k][2]&&(R[k][3]=0)),k<2?M[k]=q:0==q&&(M[0]=M[1]=0),o[k]=w.tot_ener[k]}var U=e.internal_flags;e.short_blocks!=sa.short_block_coupled||0!=M[0]&&0!=M[1]||(M[0]=M[1]=0);for(var W=0;WPe&&(Se[me]=Pe),1ve[me]&&(Se[me]=ve[me]),de.masking_lower<1&&(Se[me]*=de.masking_lower)}for(;meyt&&(nt[$e]=yt),1st[$e]&&(nt[$e]=st[$e]),it.masking_lower<1&&(nt[$e]*=it.masking_lower)}for(;$e=_&&(a=i*(f[s]-_)/(24-_)+t*(24-f[s])/(24-_)),c[s]=Math.pow(10,a/10),n.rnumlines_l[s]=0=_&&(a=l*(f[s]-_)/(24-_)+o*(24-f[s])/(24-_)),c[s]=Math.pow(10,a/10),i=j.MAX_VALUE,a=0;an.npart_l-1&&(n.s3ind[r][1]=n.npart_l-1);if(n.ATH.decay=Math.pow(10,576*n.mode_gr/b*-1.2),n.ATH.adjust=.01,-(n.ATH.adjustLimit=1)!=e.ATHtype){for(u=e.out_samplerate/ra.BLKSIZE,s=t=r=0;se.in_samplerate&&(e.lowpassfreq=e.in_samplerate/2),a=0|e.lowpassfreq,n=44100,48e3<=(s=e.in_samplerate)?n=48e3:44100<=s?n=44100:32e3<=s?n=32e3:24e3<=s?n=24e3:22050<=s?n=22050:16e3<=s?n=16e3:12e3<=s?n=12e3:11025<=s?n=11025:8e3<=s&&(n=8e3),a=-1==a?n:(a<=15960&&(n=44100),a<=15250&&(n=32e3),a<=11220&&(n=24e3),a<=9970&&(n=22050),a<=7230&&(n=16e3),a<=5420&&(n=12e3),a<=4510&&(n=11025),a<=3970&&(n=8e3),s=a.lowpass2&&(r=Math.min(r,s)),a.lowpass1a.highpass1?f((a.highpass2-n)/(a.highpass2-a.highpass1+1e-20)):1,n=a.lowpass2>a.lowpass1?f((n-a.lowpass1)/(a.lowpass2-a.lowpass1+1e-20)):1,a.amp_filter[s]=_*n;if(t.samplerate_index=h(e.out_samplerate,e),t.samplerate_index<0)return e.internal_flags=null,-1;if(e.VBR==ut.vbr_off){if(e.free_format)t.bitrate_index=0;else if(e.brate=c(e.brate,e.version,e.out_samplerate),t.bitrate_index=b(e.brate,e.version,e.out_samplerate),t.bitrate_index<=0)return e.internal_flags=null,-1}else t.bitrate_index=1;for(e.analysis&&(e.bWriteVbrTag=!1),null!=t.pinfo&&(e.bWriteVbrTag=!1),U.init_bit_stream_w(t),a=t.samplerate_index+3*e.version+6*(e.out_samplerate<16e3?1:0),s=0;s=V)for(S=0;S=t){if(u=_-o,0==_&&(u=0),h=e,u=Z.enc.lame_encode_mp3_frame(h,l[0],l[1],n,r,u),h.frameNum++,(h=u)<0)return h;for(r+=h,o+=h,i.mf_size-=e.framesize,i.mf_samples_to_encode-=e.framesize,u=0;uMath.abs(t)?Math.abs(e-t)<=1e-6*Math.abs(e):Math.abs(e-t)<=1e-6*Math.abs(t)},J.NEQ=function(e,t){return!J.EQ(e,t)};var te={t1HB:[1,1,1,0],t2HB:[1,2,1,3,1,1,3,2,0],t3HB:[3,2,1,1,1,1,3,2,0],t5HB:[1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0],t6HB:[7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0],t7HB:[1,2,10,19,16,10,3,3,7,10,5,3,11,4,13,17,8,4,12,11,18,15,11,2,7,6,9,14,3,1,6,4,5,3,2,0],t8HB:[3,4,6,18,12,5,5,1,2,16,9,3,7,3,5,14,7,3,19,17,15,13,10,4,13,5,8,11,5,1,12,4,4,1,1,0],t9HB:[7,5,9,14,15,7,6,4,5,5,6,7,7,6,8,8,8,5,15,6,9,10,5,1,11,7,9,6,4,1,14,4,6,2,6,0],t10HB:[1,2,10,23,35,30,12,17,3,3,8,12,18,21,12,7,11,9,15,21,32,40,19,6,14,13,22,34,46,23,18,7,20,19,33,47,27,22,9,3,31,22,41,26,21,20,5,3,14,13,10,11,16,6,5,1,9,8,7,8,4,4,2,0],t11HB:[3,4,10,24,34,33,21,15,5,3,4,10,32,17,11,10,11,7,13,18,30,31,20,5,25,11,19,59,27,18,12,5,35,33,31,58,30,16,7,5,28,26,32,19,17,15,8,14,14,12,9,13,14,9,4,1,11,4,6,6,6,3,2,0],t12HB:[9,6,16,33,41,39,38,26,7,5,6,9,23,16,26,11,17,7,11,14,21,30,10,7,17,10,15,12,18,28,14,5,32,13,22,19,18,16,9,5,40,17,31,29,17,13,4,2,27,12,11,15,10,7,4,1,27,12,8,12,6,3,1,0],t13HB:[1,5,14,21,34,51,46,71,42,52,68,52,67,44,43,19,3,4,12,19,31,26,44,33,31,24,32,24,31,35,22,14,15,13,23,36,59,49,77,65,29,40,30,40,27,33,42,16,22,20,37,61,56,79,73,64,43,76,56,37,26,31,25,14,35,16,60,57,97,75,114,91,54,73,55,41,48,53,23,24,58,27,50,96,76,70,93,84,77,58,79,29,74,49,41,17,47,45,78,74,115,94,90,79,69,83,71,50,59,38,36,15,72,34,56,95,92,85,91,90,86,73,77,65,51,44,43,42,43,20,30,44,55,78,72,87,78,61,46,54,37,30,20,16,53,25,41,37,44,59,54,81,66,76,57,54,37,18,39,11,35,33,31,57,42,82,72,80,47,58,55,21,22,26,38,22,53,25,23,38,70,60,51,36,55,26,34,23,27,14,9,7,34,32,28,39,49,75,30,52,48,40,52,28,18,17,9,5,45,21,34,64,56,50,49,45,31,19,12,15,10,7,6,3,48,23,20,39,36,35,53,21,16,23,13,10,6,1,4,2,16,15,17,27,25,20,29,11,17,12,16,8,1,1,0,1],t15HB:[7,12,18,53,47,76,124,108,89,123,108,119,107,81,122,63,13,5,16,27,46,36,61,51,42,70,52,83,65,41,59,36,19,17,15,24,41,34,59,48,40,64,50,78,62,80,56,33,29,28,25,43,39,63,55,93,76,59,93,72,54,75,50,29,52,22,42,40,67,57,95,79,72,57,89,69,49,66,46,27,77,37,35,66,58,52,91,74,62,48,79,63,90,62,40,38,125,32,60,56,50,92,78,65,55,87,71,51,73,51,70,30,109,53,49,94,88,75,66,122,91,73,56,42,64,44,21,25,90,43,41,77,73,63,56,92,77,66,47,67,48,53,36,20,71,34,67,60,58,49,88,76,67,106,71,54,38,39,23,15,109,53,51,47,90,82,58,57,48,72,57,41,23,27,62,9,86,42,40,37,70,64,52,43,70,55,42,25,29,18,11,11,118,68,30,55,50,46,74,65,49,39,24,16,22,13,14,7,91,44,39,38,34,63,52,45,31,52,28,19,14,8,9,3,123,60,58,53,47,43,32,22,37,24,17,12,15,10,2,1,71,37,34,30,28,20,17,26,21,16,10,6,8,6,2,0],t16HB:[1,5,14,44,74,63,110,93,172,149,138,242,225,195,376,17,3,4,12,20,35,62,53,47,83,75,68,119,201,107,207,9,15,13,23,38,67,58,103,90,161,72,127,117,110,209,206,16,45,21,39,69,64,114,99,87,158,140,252,212,199,387,365,26,75,36,68,65,115,101,179,164,155,264,246,226,395,382,362,9,66,30,59,56,102,185,173,265,142,253,232,400,388,378,445,16,111,54,52,100,184,178,160,133,257,244,228,217,385,366,715,10,98,48,91,88,165,157,148,261,248,407,397,372,380,889,884,8,85,84,81,159,156,143,260,249,427,401,392,383,727,713,708,7,154,76,73,141,131,256,245,426,406,394,384,735,359,710,352,11,139,129,67,125,247,233,229,219,393,743,737,720,885,882,439,4,243,120,118,115,227,223,396,746,742,736,721,712,706,223,436,6,202,224,222,218,216,389,386,381,364,888,443,707,440,437,1728,4,747,211,210,208,370,379,734,723,714,1735,883,877,876,3459,865,2,377,369,102,187,726,722,358,711,709,866,1734,871,3458,870,434,0,12,10,7,11,10,17,11,9,13,12,10,7,5,3,1,3],t24HB:[15,13,46,80,146,262,248,434,426,669,653,649,621,517,1032,88,14,12,21,38,71,130,122,216,209,198,327,345,319,297,279,42,47,22,41,74,68,128,120,221,207,194,182,340,315,295,541,18,81,39,75,70,134,125,116,220,204,190,178,325,311,293,271,16,147,72,69,135,127,118,112,210,200,188,352,323,306,285,540,14,263,66,129,126,119,114,214,202,192,180,341,317,301,281,262,12,249,123,121,117,113,215,206,195,185,347,330,308,291,272,520,10,435,115,111,109,211,203,196,187,353,332,313,298,283,531,381,17,427,212,208,205,201,193,186,177,169,320,303,286,268,514,377,16,335,199,197,191,189,181,174,333,321,305,289,275,521,379,371,11,668,184,183,179,175,344,331,314,304,290,277,530,383,373,366,10,652,346,171,168,164,318,309,299,287,276,263,513,375,368,362,6,648,322,316,312,307,302,292,284,269,261,512,376,370,364,359,4,620,300,296,294,288,282,273,266,515,380,374,369,365,361,357,2,1033,280,278,274,267,264,259,382,378,372,367,363,360,358,356,0,43,20,19,17,15,13,11,9,7,6,4,7,5,3,1,3],t32HB:[1,10,8,20,12,20,16,32,14,12,24,0,28,16,24,16],t33HB:[15,28,26,48,22,40,36,64,14,24,20,32,12,16,8,0],t1l:[1,4,3,5],t2l:[1,4,7,4,5,7,6,7,8],t3l:[2,3,7,4,4,7,6,7,8],t5l:[1,4,7,8,4,5,8,9,7,8,9,10,8,8,9,10],t6l:[3,4,6,8,4,4,6,7,5,6,7,8,7,7,8,9],t7l:[1,4,7,9,9,10,4,6,8,9,9,10,7,7,9,10,10,11,8,9,10,11,11,11,8,9,10,11,11,12,9,10,11,12,12,12],t8l:[2,4,7,9,9,10,4,4,6,10,10,10,7,6,8,10,10,11,9,10,10,11,11,12,9,9,10,11,12,12,10,10,11,11,13,13],t9l:[3,4,6,7,9,10,4,5,6,7,8,10,5,6,7,8,9,10,7,7,8,9,9,10,8,8,9,9,10,11,9,9,10,10,11,11],t10l:[1,4,7,9,10,10,10,11,4,6,8,9,10,11,10,10,7,8,9,10,11,12,11,11,8,9,10,11,12,12,11,12,9,10,11,12,12,12,12,12,10,11,12,12,13,13,12,13,9,10,11,12,12,12,13,13,10,10,11,12,12,13,13,13],t11l:[2,4,6,8,9,10,9,10,4,5,6,8,10,10,9,10,6,7,8,9,10,11,10,10,8,8,9,11,10,12,10,11,9,10,10,11,11,12,11,12,9,10,11,12,12,13,12,13,9,9,9,10,11,12,12,12,9,9,10,11,12,12,12,12],t12l:[4,4,6,8,9,10,10,10,4,5,6,7,9,9,10,10,6,6,7,8,9,10,9,10,7,7,8,8,9,10,10,10,8,8,9,9,10,10,10,11,9,9,10,10,10,11,10,11,9,9,9,10,10,11,11,12,10,10,10,11,11,11,11,12],t13l:[1,5,7,8,9,10,10,11,10,11,12,12,13,13,14,14,4,6,8,9,10,10,11,11,11,11,12,12,13,14,14,14,7,8,9,10,11,11,12,12,11,12,12,13,13,14,15,15,8,9,10,11,11,12,12,12,12,13,13,13,13,14,15,15,9,9,11,11,12,12,13,13,12,13,13,14,14,15,15,16,10,10,11,12,12,12,13,13,13,13,14,13,15,15,16,16,10,11,12,12,13,13,13,13,13,14,14,14,15,15,16,16,11,11,12,13,13,13,14,14,14,14,15,15,15,16,18,18,10,10,11,12,12,13,13,14,14,14,14,15,15,16,17,17,11,11,12,12,13,13,13,15,14,15,15,16,16,16,18,17,11,12,12,13,13,14,14,15,14,15,16,15,16,17,18,19,12,12,12,13,14,14,14,14,15,15,15,16,17,17,17,18,12,13,13,14,14,15,14,15,16,16,17,17,17,18,18,18,13,13,14,15,15,15,16,16,16,16,16,17,18,17,18,18,14,14,14,15,15,15,17,16,16,19,17,17,17,19,18,18,13,14,15,16,16,16,17,16,17,17,18,18,21,20,21,18],t15l:[3,5,6,8,8,9,10,10,10,11,11,12,12,12,13,14,5,5,7,8,9,9,10,10,10,11,11,12,12,12,13,13,6,7,7,8,9,9,10,10,10,11,11,12,12,13,13,13,7,8,8,9,9,10,10,11,11,11,12,12,12,13,13,13,8,8,9,9,10,10,11,11,11,11,12,12,12,13,13,13,9,9,9,10,10,10,11,11,11,11,12,12,13,13,13,14,10,9,10,10,10,11,11,11,11,12,12,12,13,13,14,14,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,14,10,10,10,11,11,11,11,12,12,12,12,13,13,14,14,14,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,14,11,11,11,11,12,12,12,12,12,13,13,13,13,14,15,14,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,15,12,12,11,12,12,12,13,13,13,13,13,13,14,14,15,15,12,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,13,13,13,13,13,13,13,13,14,14,14,14,15,15,14,15,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15],t16_5l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,11,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,11,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,12,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,13,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,12,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,13,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,13,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,13,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,13,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,14,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,13,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,14,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,14,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,14,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,14,11,11,11,12,12,13,13,13,14,14,14,14,14,14,14,12],t16l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,10,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,10,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,11,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,12,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,11,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,12,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,12,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,12,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,12,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,13,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,12,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,13,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,13,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,13,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,13,10,10,10,11,11,12,12,12,13,13,13,13,13,13,13,10],t24l:[4,5,7,8,9,10,10,11,11,12,12,12,12,12,13,10,5,6,7,8,9,10,10,11,11,11,12,12,12,12,12,10,7,7,8,9,9,10,10,11,11,11,11,12,12,12,13,9,8,8,9,9,10,10,10,11,11,11,11,12,12,12,12,9,9,9,9,10,10,10,10,11,11,11,12,12,12,12,13,9,10,9,10,10,10,10,11,11,11,11,12,12,12,12,12,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,9,11,10,10,10,11,11,11,11,12,12,12,12,12,13,13,10,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,10,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,10,12,11,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,10,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,10,13,12,12,12,12,12,12,13,13,13,13,13,13,13,13,10,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,6],t32l:[1,5,5,7,5,8,7,9,5,7,7,9,7,9,9,10],t33l:[4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8]};te.ht=[new e(0,0,null,null),new e(2,0,te.t1HB,te.t1l),new e(3,0,te.t2HB,te.t2l),new e(3,0,te.t3HB,te.t3l),new e(0,0,null,null),new e(4,0,te.t5HB,te.t5l),new e(4,0,te.t6HB,te.t6l),new e(6,0,te.t7HB,te.t7l),new e(6,0,te.t8HB,te.t8l),new e(6,0,te.t9HB,te.t9l),new e(8,0,te.t10HB,te.t10l),new e(8,0,te.t11HB,te.t11l),new e(8,0,te.t12HB,te.t12l),new e(16,0,te.t13HB,te.t13l),new e(0,0,null,te.t16_5l),new e(16,0,te.t15HB,te.t15l),new e(1,1,te.t16HB,te.t16l),new e(2,3,te.t16HB,te.t16l),new e(3,7,te.t16HB,te.t16l),new e(4,15,te.t16HB,te.t16l),new e(6,63,te.t16HB,te.t16l),new e(8,255,te.t16HB,te.t16l),new e(10,1023,te.t16HB,te.t16l),new e(13,8191,te.t16HB,te.t16l),new e(4,15,te.t24HB,te.t24l),new e(5,31,te.t24HB,te.t24l),new e(6,63,te.t24HB,te.t24l),new e(7,127,te.t24HB,te.t24l),new e(8,255,te.t24HB,te.t24l),new e(9,511,te.t24HB,te.t24l),new e(11,2047,te.t24HB,te.t24l),new e(13,8191,te.t24HB,te.t24l),new e(0,0,te.t32HB,te.t32l),new e(0,0,te.t33HB,te.t33l)],te.largetbl=[65540,327685,458759,589832,655369,655370,720906,720907,786443,786444,786444,851980,851980,851980,917517,655370,262149,393222,524295,589832,655369,720906,720906,720907,786443,786443,786444,851980,917516,851980,917516,655370,458759,524295,589832,655369,720905,720906,786442,786443,851979,786443,851979,851980,851980,917516,917517,720905,589832,589832,655369,720905,720906,786442,786442,786443,851979,851979,917515,917516,917516,983052,983052,786441,655369,655369,720905,720906,786442,786442,851978,851979,851979,917515,917516,917516,983052,983052,983053,720905,655370,655369,720906,720906,786442,851978,851979,917515,851979,917515,917516,983052,983052,983052,1048588,786441,720906,720906,720906,786442,851978,851979,851979,851979,917515,917516,917516,917516,983052,983052,1048589,786441,720907,720906,786442,786442,851979,851979,851979,917515,917516,983052,983052,983052,983052,1114125,1114125,786442,720907,786443,786443,851979,851979,851979,917515,917515,983051,983052,983052,983052,1048588,1048589,1048589,786442,786443,786443,786443,851979,851979,917515,917515,983052,983052,983052,983052,1048588,983053,1048589,983053,851978,786444,851979,786443,851979,917515,917516,917516,917516,983052,1048588,1048588,1048589,1114125,1114125,1048589,786442,851980,851980,851979,851979,917515,917516,983052,1048588,1048588,1048588,1048588,1048589,1048589,983053,1048589,851978,851980,917516,917516,917516,917516,983052,983052,983052,983052,1114124,1048589,1048589,1048589,1048589,1179661,851978,983052,917516,917516,917516,983052,983052,1048588,1048588,1048589,1179661,1114125,1114125,1114125,1245197,1114125,851978,917517,983052,851980,917516,1048588,1048588,983052,1048589,1048589,1114125,1179661,1114125,1245197,1114125,1048589,851978,655369,655369,655369,720905,720905,786441,786441,786441,851977,851977,851977,851978,851978,851978,851978,655366],te.table23=[65538,262147,458759,262148,327684,458759,393222,458759,524296],te.table56=[65539,262148,458758,524296,262148,327684,524294,589831,458757,524294,589831,655368,524295,524295,589832,655369],te.bitrate_table=[[0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,-1],[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],[0,8,16,24,32,40,48,56,64,-1,-1,-1,-1,-1,-1,-1]],te.samplerate_table=[[22050,24e3,16e3,-1],[44100,48e3,32e3,-1],[11025,12e3,8e3,-1]],te.scfsi_band=[0,6,11,16,21],P.Q_MAX=257,P.Q_MAX2=116,P.LARGE_BITS=1e5,P.IXMAX_VAL=8206;var G={};G.SFBMAX=3*ra.SBMAX_s,ra.ENCDELAY=576,ra.POSTDELAY=1152,ra.FFTOFFSET=224+(ra.MDCTDELAY=48),ra.DECDELAY=528,ra.SBLIMIT=32,ra.CBANDS=64,ra.SBPSY_l=21,ra.SBPSY_s=12,ra.SBMAX_l=22,ra.SBMAX_s=13,ra.PSFB21=6,ra.PSFB12=6,ra.HBLKSIZE=(ra.BLKSIZE=1024)/2+1,ra.HBLKSIZE_s=(ra.BLKSIZE_s=256)/2+1,ra.NORM_TYPE=0,ra.START_TYPE=1,ra.SHORT_TYPE=2,ra.STOP_TYPE=3,ra.MPG_MD_LR_LR=0,ra.MPG_MD_LR_I=1,ra.MPG_MD_MS_LR=2,ra.MPG_MD_MS_I=3,ra.fircoef=[-.1039435,-.1892065,5*-.0432472,-.155915,3898045e-23,.0467745*5,.50455,.756825,.187098*5],$.MFSIZE=3456+ra.ENCDELAY-ra.MDCTDELAY,$.MAX_HEADER_BUF=256,$.MAX_BITS_PER_CHANNEL=4095,$.MAX_BITS_PER_GRANULE=7680,$.BPC=320,l.RIFF=f("RIFF"),l.WAVE=f("WAVE"),l.fmt_=f("fmt "),l.data=f("data"),l.readHeader=function(e){var t=new l,a=e.getUint32(0,!1);if(l.RIFF==a&&(e.getUint32(4,!0),l.WAVE==e.getUint32(8,!1)&&l.fmt_==e.getUint32(12,!1))){var s=20;switch(n=e.getUint32(16,!0)){case 16:case 18:t.channels=e.getUint16(s+2,!0),t.sampleRate=e.getUint32(s+4,!0);break;default:throw"extended fmt chunk not implemented"}s=s+n;for(var n=l.data,r=0;n!=a&&(a=e.getUint32(s,!1),r=e.getUint32(s+4,!0),n!=a);)s+=r+8;return t.dataLen=r,t.dataOffset=s+8,t}},G.SFBMAX=3*ra.SBMAX_s,lamejs.Mp3Encoder=function(a,e,t){3!=arguments.length&&(console.error("WARN: Mp3Encoder(channels, samplerate, kbps) not specified"),a=1,e=44100,t=128);var s=new X,n=new q,r=new W,_=new J,i=new A,o=new P,l=new I,f=new H,h=new R,c=new F,b=new B,u=new E,m=new Y,p=new C;s.setModules(r,_,i,o,l,f,h,c,p),_.setModules(r,p,h,f),c.setModules(_,h),i.setModules(s),l.setModules(_,b,o,u),o.setModules(u,b,s.enc.psy),b.setModules(_),u.setModules(o),f.setModules(s,_,h),n.setModules(m,p),m.setModules(h,c,i);var d=s.lame_init();d.num_channels=a,d.in_samplerate=e,d.brate=t,d.mode=na.STEREO,d.quality=3,d.bWriteVbrTag=!1,d.disable_reservoir=!0,d.write_id3tag_automatic=!1,s.lame_init_params(d);var g=1152,v=0|1.25*g+7200,S=new Int8Array(v);this.encodeBuffer=function(e,t){return 1==a&&(t=e),e.length>g&&(g=e.length,v=0|1.25*g+7200,S=new Int8Array(v)),e=s.lame_encode_buffer(d,e,t,e.length,S,0,v),new Int8Array(S.subarray(0,e))},this.flush=function(){var e=s.lame_encode_flush(d,S,0,v);return new Int8Array(S.subarray(0,e))}},lamejs.WavHeader=l}lamejs();var Markdown={};Markdown={regexes:{markdown_link:/(^|\s)\[(.+?)\]\((((?:https?:\/\/(?:www\.)?|www\.)|(?:mailto:)).*?)\)/gi,markdown_quote:/(?:^|\n)(?:!|>\s|>\s)(.+?)(?:\n|$)/gm,markdown_heading:/(?:^|\n)(\#{1,6}) (.*?\S *)(?:\n|$)/gm,markdown_line:/(^|[\n])(\*{3,}|\-{3,})(?=$|[\n])(.*)/g,markdown_codeblock:/(^|\s)`{3}((?:(?:.*?$)\n)?(?:[\s\S]*?))`{3}(?=$|\s)/g,markdown_code:/(^|\s|)`((?:(?:.*?$)\n)?(?:[\s\S]*?))`/g,markdown_bold:/(|^|\s|[{\[])\*(.*?\S *\u3000*)?\*/g,markdown_italic:/(|^|\s|[{\[])\_(.*?\S *)?\_(?=$|\s|[\.,\?:;\-}\]](?:$|\s))/g,markdown_underline:/(|^|\s|[{\[])\_{2}(.*?\S *)?\_{2}(?=$|\s|[\.,\?:;\-}\]](?:$|\s))/g,markdown_strike:/(|^|\s|[{\[])\~(.*?\S *)?\~/g,markdown_bullet:/(^\s|\n|^)(\*) (.*?\S *)*(?:(?:.*?$)\n)?((\s)*(\*)(.*?\S *)*(?:(?:.*?$)\n)?)*/gm,markdown_nextline:/(.*)(\n)(.*)/gm,markdown_image:/!\[(.*)\]\(((https?:\/\/(?:www\.)?|www\.)[a-zA-Z0-9][^@]*?)\s("|")(.*)("|")\)/gi,markdown_video:/\[!\[(.*)\]\(((https?:\/\/(?:www\.)?|www\.)[a-zA-Z0-9][^@]*?)\)]\(((https?:\/\/(?:www\.)?|www\.)[a-zA-Z0-9][^@]*?)\)/gi},apply:function(e,n){return"string"!=typeof e?e:(e=e.replace(/\\n|
/g,"\n").trim(),e=this.applyRecursive(e,n),e=this.applyOnce(e),e=this.applyNextLine(e),e=this.decodeChars(e))},applyOnce:function(e){return e=(e=(e=(e=e.replace(this.regexes.markdown_quote,this.getQuoteHTML)).replace(this.regexes.markdown_heading,this.getHeadingHTML)).replace(this.regexes.markdown_codeblock,this.getCodeblockHTML)).replace(this.regexes.markdown_code,this.getCodeHTML)},applyRecursive:function(e,n){return e=(e=(e=(e=(e=(e=(e=e.replace(this.regexes.markdown_bold,this.getBoldHTML)).replace(this.regexes.markdown_italic,this.getItalicHTML)).replace(this.regexes.markdown_strike,this.getStrikeHTML)).replace(this.regexes.markdown_underline,this.getUnderLineHTML)).replace(this.regexes.markdown_line,this.getLineHTML)).replace(this.regexes.markdown_bullet,this.getBulletHTML)).replace(this.regexes.markdown_link,this.getLinkHTML),n||(e=(e=e.replace(this.regexes.markdown_image,this.getImageHTML)).replace(this.regexes.markdown_video,this.getVideoHTML)),e},applyNextLine:function(e){return e.replace(this.regexes.markdown_nextline,this.getNextLineHTML)},getNextLineHTML:function(e,n,t,r){return n+"
"+r},getLinkHTML:function(e,n,t,r,i){return n+' '+Markdown.encodeChars(t)+" "},getQuoteHTML:function(e,n){return 0===(n=$.trim(n)).length?e:Markdown.setPrefixAndSuffix(e,'
'+Markdown.applyRecursive(n)+"
")},getHeadingHTML:function(e,n,t){var r=n.length;return Markdown.setPrefixAndSuffix(e," '+Markdown.encodeChars(t)+" ")},getLineHTML:function(e,n,t,r){return n+'

'+Markdown.applyRecursive($.trim(r))},getCodeblockHTML:function(e,n,t){return 0===$.trim(t).length?e:n+'
 '+Markdown.applyRecursive(t)+"
"},getUnderLineHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"_"===t[0]||"_"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+''+Markdown.applyRecursive(t)+""},getCodeHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"`"===t[0]||"`"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+'“'+Markdown.encodeChars(t)+"”"},getBoldHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"*"===t[0]||"*"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+''+Markdown.applyRecursive(t)+""},getItalicHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"_"===t[0]||"_"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+''+Markdown.applyRecursive(t)+""},getStrikeHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"~"===t[0]||"~"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+''+Markdown.applyRecursive(t)+""},getBulletHTML:function(e){if(0==e.replace(/\s/g,"").replace(/\*/g,"").length)return e;for(var n=e.split("\n"),t="",r=0;r ')+" "}return Markdown.setPrefixAndSuffix(e,'
    '+t+"
")},getNumlistHTML:function(e){if(!isNaN(e))return e;for(var n=e.split("\n"),t="",r=0;r ')+" "}return Markdown.setPrefixAndSuffix(e,'
    '+t+"
")},getImageHTML:function(e,n,t,r,i,a){var o="";try{o=_SCHEMA+"://"+_EMBEDSERVERURL}catch(e){o=_SCHEMA+"://"+_SERVERURL}return o+="/linkredirect.sas?link="+encodeURIComponent(t),Markdown.setPrefixAndSuffix(e,' '+n+' ')},getVideoHTML:function(e,n,t,r,i,a){var o="";try{o=_SCHEMA+"://"+_EMBEDSERVERURL}catch(e){o=_SCHEMA+"://"+_SERVERURL}return o+="/linkredirect.sas?link="+encodeURIComponent(t),Markdown.setPrefixAndSuffix(e,' '+n+' ')},encodeChars:function(e){return e.replace(/\*/g,"*").replace(/\_/g,"_").replace(/\~/g,"~")},decodeChars:function(e){return e.replace(/*/g,"*").replace(/_/g,"_").replace(/~/g,"~")},setPrefixAndSuffix:function(e,n){var t=suffix="";return"\n"!=e[0]&&" "!=e[0]||(t=e[0]),"\n"!=e[e.length-1]&&" "!=e[e.length-1]||(suffix=e[e.length-1]),t+n+suffix}};var Browser=function(){};Browser.getInfo=function(){try{lsnocachefix("json")}catch(e){}try{({cookie:navigator.cookieEnabled,java:navigator.javaEnabled()})}catch(e){}return{cookie:navigator.cookieEnabled,java:navigator.javaEnabled(),color:window.screen.colorDepth,screen:window.screen.availWidth+" * "+window.screen.availHeight,title:Browser.getPageTitle(),currentpage:Browser.getCurrentPage(),referrer:Browser.getReferrer(),browser:$.browser.name,browserversion:$.browser.version,os:$.os.name,jsversion:jsversion,flashversion:Browser.getFlashVersion(),localtime:Browser.getLocalTime(),lang_embed:_LANG,ccode:_CCODE}},Browser.getFlashVersion=function(){try{try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{e.AllowScriptAccess="always"}catch(e){return"6.0.0"}}catch(e){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/,"").replace(/\D+/g,".").match(/^,?(.+),?$/)[1]}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/,"").replace(/\D+/g,".").match(/^,?(.+),?$/)[1]}catch(e){}}return"0.0.0"},Browser.getLocalTime=function(){try{return(new Date).toTimeString().split(" ").slice(1).join(" ")}catch(e){}return""},Browser.setReferer=function(e){"null"!=e&&(Browser.referer=e)},Browser.setCurrentPage=function(e){Browser.currentpage=e||""},Browser.getCurrentPage=function(){return Browser.currentpage?Browser.currentpage:""},Browser.getReferrer=function(){try{return Base64.atob(opener.Button.sitereferrer)}catch(e){if("null"!=Browser.referer)return Base64.atob(Browser.referer)}return""},Browser.setPageTitle=function(e){null==e&&""==e||(Browser.pagetitle=e)},Browser.getPageTitle=function(){try{return opener.Button.pagetitle}catch(e){if(null!=Browser.pagetitle)return Browser.pagetitle}return""};function LSDebugger(){}LSDebugger.init=function(){this.infoarray=[],this.debuglimit=100,this.logarr=[],this.maxreqsize=20,this.localstoragekey="logdebuginfo";try{LSDebugger.clearDumpLog()}catch(e){}},LSDebugger.clearDumpLog=function(){var e=localStorage.getItem("siqlog");if(e){for(var t in e=JSON.parse(e))e.hasOwnProperty(t)&&t.startsWith("siqlog")&&delete e[t];localStorage.siqlog=JSON.stringify(e)}},LSDebugger.getCurrentTime=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+":"+e.getMilliseconds()},LSDebugger.pushDebugInfo=function(e){e&&(this.infoarray.length>=this.debuglimit&&this.infoarray.splice(0,1),this.infoarray.push({time:LSDebugger.getCurrentTime(),info:e}))},LSDebugger.clearDebugInfo=function(){this.infoarray=[]},LSDebugger.postDebugInfo=function(e,t,o,r){if(e){try{var g=parseInt(CurrentUser.getWMSID().split("_")[1]);if(t&&-1===$.inArray(g,t))return;if(o&&o=this.maxreqsize){var i={subject:"Over all info messages"};i.log=CommonUtil.toJSON(n),i.logonly=!0,i.nocache=(new Date).getTime();var u="logdebuginfo"+(window.dext||".sas");try{u=$Support.getAjaxURL("logdebuginfo",dext)}catch(e){}n=[],LSDebugger.removeFromLocalStorage(this.localstoragekey);var s={url:u,type:"POST",data:i,dataType:"json",success:function(e){}};"undefined"!=typeof jQuery&&$.ajax(s)}}else LSDebugger.postDebugInfoInSingleThread(e,r)}},LSDebugger.postDebugInfoInSingleThread=function(e,t){var o={};o.subject=e,o.log=CommonUtil.toJSON(this.infoarray),o.nocache=(new Date).getTime(),t&&(o.logonly=t);var r="logdebuginfo"+(window.dext||".sas");try{r=$Support.getAjaxURL("logdebuginfo",dext)}catch(e){}LSDebugger.clearDebugInfo();var g={url:r,type:"POST",data:o,dataType:"json",success:function(e){LSDebugger.clearDebugInfo()}};"undefined"!=typeof jQuery&&$.ajax(g)},LSDebugger.collectLogs=function(t,e){try{this.logarr[t][0]}catch(e){this.logarr[t]=[]}this.logarr[t].push({time:LSDebugger.getCurrentTime(),info:e})},LSDebugger.storeInLocalStorage=function(e,t,o){window.dext?$Support.LSDB.set(e,t,o):CommonUtil.storeInLocalStorage(e,t,o,!0)},LSDebugger.removeFromLocalStorage=function(e){window.dext?$Support.LSDB.remove(e):CommonUtil.removeFromLocalStorage(e,!0)},LSDebugger.getFromLocalStorage=function(e){return window.dext?$Support.LSDB.getFromLocalStorage(e):CommonUtil.getFromLocalStorage(e,!0)},LSDebugger.init();function LSResource(){}LSResource.init=function(){this.MessageObject=new Object,this.IntegMessageObject=new Object},LSResource.getRealValue=function(e,t){var c="";try{c=null==this.MessageObject[""+e]||null==this.MessageObject[""+e]?e:this.MessageObject[e]}catch(e){}try{c=c.replace(/_/g," ")}catch(e){c=""}return null!=t&&(c=LSResource.replaceParams(c,t)),c},LSResource.replaceParams=function(e,t){try{for(var c="object"==typeof t?t:t.split(","),s=0;s=t}),percentage:new v.fn.ValidationRule(function(n){var t=new RegExp(/^[0-9]{1,3}%{0,1}?$/);return void 0!==n&&t.test(n)}),number:new v.fn.ValidationRule(function(n){return void 0!==n&&/^[0-9,]*$/.test(n)}),decimal:new v.fn.ValidationRule(function(n){return void 0!==n&&/^[0-9]+(\.[0-9]{0,9})?/.test(n)}),url:new v.fn.ValidationRule(function(n){var t=new RegExp(/^(((http|https):\/\/(www.){0,1})|www.){1}[a-zA-Z0-9]+[-a-zA-Z0-9@:/%_\+.~#?&/=]*[^\.]$/);return void 0!==n&&t.test(n)})}},v.fn.validateInput=function(){for(var n=v(this),t=(n.attr("data-validate")||"").trim().replace(/[\s]{2,}/g," ").split(" "),i=(n.attr("id")||n.attr("name"),"DIV"===n[0].nodeName?n.attr("val"):n.val()),a="string"==typeof i?i.trim():"",e=!0,l=new v.fn.Validator,o=0;o',r=e?'
⇅ ⇆ '+LSResource.getRealValue("common.tonavigate")+''+LSResource.getRealValue("common.toselect")+""+LSResource.getRealValue("common.close")+" [Esc]
":"",n=" sel";if(g){var t=k();for(var m in t){var o=t[m],y=e?"siqsmile_li":"",c=m.slice(1,-1),u=x(c);":"===m.charAt(0)?(a+='
'+o+''+u+"
",n=""):a+='

'+LSResource.getRealValue(m)+"

"}return r+a+""}for(var m in f){var p=f[m]||b[m],d=h["smiley."+p];a+='
'+d+"
",n=""}return r+a+""},d=function(){var e="",i=" sel";if(Object.keys(u).length)for(var s in u){var l=u[s],a=s.slice(1,-1),r=x(a);"&"===l.charAt(0)?(e+='
'+l+"
",i=""):e+='

'+LSResource.getRealValue(l)+"

"}else e+='

No result found

';y.parent().find("#smilelist").find("#smile_sublist").html(e).show()},S=function(e){var i="";for(var s in e)s=s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),""!==i?i+="|"+s:i=s;return i},x=function(e){var i=e.split("-").join(" ");return i.charAt(0).toUpperCase()+i.substring(1)},a=function(e){var i=c[e];return(i=i.split("")).pop(),i.shift(),i=i.join(""),x(i)},C=function(e){var i=c[e],s=document.createElement("div");return s.innerHTML=i,i=s.innerHTML,s.remove(),i},i=function(e){var i=new RegExp("([ >\n]|^)("+t+")(?=[ <\n]|$)","g");return e.replace(i,function(e,i,s){return i+''})},j=function(e){var i=l();delete i[e];var s={};s[e]=window.emojiConstants[e],i=Object.assign(s,i),i=Object.fromEntries(Object.entries(i).slice(0,20)),localStorage.setItem("siq_recentSmileys",JSON.stringify(i))};return{init:function(){var e,i=t="",s=window.emojiConstants,l=Object.assign({},window.ExtraEmojiConstants,s);for(var a in c=Object.assign(c,l),s){var r=C(a);c[r]=a,r=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),""!=i?i+="|"+r:i=r}var n=p;e=S(l),t=S(n),m=new RegExp("([ >\n]|^)("+i+")(?=[ <\n]|$)","g"),o=new RegExp("([ >\n]|^)("+e+")(?=[ <\n]|$)","g")},replace:function(e){try{if(g)return e=(e=e.replace(m,function(e,i,s){return i+''+s+""})).replace(o,function(e,i,s){var l=C(s);return i+''+l+""}),e=i(e);e=i(e)}catch(e){}return e},handleInSertSmiley:function(e,i){var s=$(i),l=s.parent().find("#smilelist");if(0==l.find(".siqsmile_li").length)return!0;if(!(e=e||l.find(".smileli.sel").attr("smilename")))return!0;if(g){j(":"+e+":");var a=CommonUtil.getTextFromHeadToCaret(s),r=a.lastIndexOf(":"),n=a.slice(0,r);n+=e?C(":"+e+":")+" ":"",CommonUtil.insertAtCaret(s[0],n)}else CommonUtil.handleAddDynamicKey(TRIGGER_SMILEY_KEY,s,e);return l.html("").stop().hide(),!1},checkAndTriggerSmiley:function(e,i){var s,l,a=/^(37|38|39|40)$/.test(i),r=e.target,n=$(r).val().substring(0,r.selectionStart),t=n.lastIndexOf(" "+TRIGGER_SMILEY_KEY)+1,m=$(r).parent().find("#smilelist"),o=n.indexOf(TRIGGER_SMILEY_KEY),y=m.find(".smile_sublist");if(0',document.body.appendChild(r)}},getSoundFileURL:function(e,a,t){var n=window._MEDIAHASHMAPPING,i="sound"==t?window._MEDIASERVERURL:window._JSCDNSERVER;if(n&&Object.keys(n).length){if("sound"==t)return i+"/sound/"+e+"_"+n["sound/"+e+"."+a]+"_";if("flash"==t)return i+"flash/"+e+"_"+n["flash/"+e+"."+a]+"_."+a}else{if("sound"==t)return i+"/sound/"+e;if("flash"==t)return i+"flash/"+e+"."+a}},getPlayer:function(){if(EmbedSound.IS_FLASH_EXIST)return window.document.player?window.document.player:-1!=navigator.appName.indexOf("Microsoft Internet")?document.getElementById("player"):document.embeds&&document.embeds.player?document.embeds.player:void 0},play:function(e,a){var t=this;if(t.isPlayerEnable()&&!$EmbedManger.isSoundOff()){var n=t.getSoundFileURL(t.tunes[e],t.extn,"sound");if(t.IS_HTML5_AUDIO)try{if(t._SOUND_PLAYER&&t._SOUND_PLAYER.tune&&-1!=["incomingcall","outgoingcall","hold"].indexOf(t._SOUND_PLAYER.tune))return;void 0===t.cache[n]?(t._SOUND_PLAYER=new Audio(n+"."+t.extn),t._SOUND_PLAYER.addEventListener("loadeddata",function(){4==t._SOUND_PLAYER.readyState&&(t.cache[n]=t._SOUND_PLAYER)})):(t._SOUND_PLAYER=t.cache[n],t._SOUND_PLAYER.currentTime=0),t._SOUND_PLAYER.tune=e,a?(t._SOUND_PLAYER.loop=!0,t._SOUND_PLAYER.play(),clearTimeout(t.cleartimer),t.cleartimer=setTimeout(function(){t.stop()},1e3*a)):(t._SOUND_PLAYER.loop=!1,t._SOUND_PLAYER.play())}catch(e){}else try{var i=t.getPlayer();n=n+".mp3";i.SetVariable("_root.loops",t.loop),i.TCallLabel("_root.$listener","setloops"),i.SetVariable("_root.$listener.fpath",n),i.TCallLabel("_root.$listener","playfile")}catch(e){}}},isPlaying:function(e){try{var a=this;if(void 0===a._SOUND_PLAYER)return!1;if(!a.isPlayerEnable()||$EmbedManger.isSoundOff())return!1;var t=a._SOUND_PLAYER.src,n=t.lastIndexOf("/")+1,i=t.substring(n).split("_");return a.tunes[e]===t.substring(n,t.lastIndexOf("."))||a.tunes[e]===i[0]}catch(e){}return!1},stop:function(){var e=this;if(e.IS_HTML5_AUDIO)try{e._SOUND_PLAYER.pause(),e._SOUND_PLAYER={}}catch(e){}else try{if(!e.IS_FLASH_EXIST)return;e.getPlayer().TCallLabel("_root.$listener","stopSound")}catch(e){}},isPlayerEnable:function(){return this.IS_FLASH_EXIST||this.IS_HTML5_AUDIO}},EmbedSound.init();var _WMSDOWN=!1,isntwrkreconnect=!1;function WmsliteImpl(){}WmsliteImpl.serverdown=function(){if(!$Support||$Support.isChatExist()){_WMSDOWN=!0;var e=CommonUtil.getStaticURL("/salesiq/images/spacer_5Wgj_nuZq1_wS_S4I4YFafauD4gqbOBXrZwzKtiQFPXWh21kmvBkUfQl6-vN8h9z_.gif"),n=document.getElementById("nwcheckimg");n&&n.parentElement.removeChild(n),(n=document.createElement("img")).style.display="none",n.id="nwcheckimg",document.body.appendChild(n),n.addEventListener?(n.addEventListener("load",function(){$EmbedManger.UI.displayInfo(WmsliteImpl.getValueByType("onload"),2),$EmbedManger.postWmsClientLogs({type:"CONN_LOST"})}),n.addEventListener("error",function(){$EmbedManger.UI.displayInfo(WmsliteImpl.getValueByType("onerror"),2)})):(n.attachEvent("onload",function(){$EmbedManger.UI.displayInfo(LSResource.getRealValue("wms.connectionlost.error"),2),$EmbedManger.postWmsClientLogs({type:"CONN_LOST"})}),n.attachEvent("onerror",function(){$EmbedManger.UI.displayInfo(LSResource.getRealValue("visitorchat.reconnection.msg"),2)})),n.src=e+"?nocache="+(new Date).getTime()}},WmsliteImpl.serverup=function(e){var n={mtype:0};n.msg=e;var t=!(!_JOINED||_WMSDOWN);_JOINED=!1,_WMSDOWN&&(isntwrkreconnect=!0,$EmbedManger.UI.displayInfo(LSResource.getRealValue("visitorchat.connectivity.success"),1),setTimeout(function(){$EmbedManger.UI.hideInfo()},5e3)),_WMSDOWN=!1,LSMessanger.push(n,isntwrkreconnect,t),isntwrkreconnect=!1},WmsliteImpl.handleLogout=function(e){},WmsliteImpl.handleMessage=function(e,n){var t={};t.mtype=e,t.msg=n,LSMessanger.push(t)},WmsliteImpl.handleAccountDisabled=function(e){},WmsliteImpl.handleServiceMessage=function(e){},WmsliteImpl.getValueByType=function(e){var n="";return"onload"==e?n=LSResource.getRealValue("wms.connectionlost.error"):"onerror"==e&&(n=LSResource.getRealValue("visitorchat.reconnection.msg")),n},WmsliteImpl.connectionup=function(){LSMessanger.push({mtype:"-4"})};$(document).ready(function(){var e={},t={};parent.$ZSIQWidget?e=parent.$ZSIQWidget.getEmbedObject():opener&&opener.$ZSIQWidget&&(e=opener.$ZSIQWidget.getEmbedObject(),window.onbeforeunload=$UI.showCloseAlert),parent.$ZSIQChat&&parent.$ZSIQChat.getWidgetData?t=parent.$ZSIQChat.getWidgetData().commondata||{}:opener&&opener.$ZSIQChat&&opener.$ZSIQChat.getWidgetData&&(t=opener.$ZSIQChat.getWidgetData().commondata||{}),e.einfo.embedstatus&&(LSMessanger.setSubDomain(e.lssubdomain),LSMessanger.init(),$Support.type=e.params.type,document.title=e.pinfo.companyname+" - "+LSResource.getRealValue("common.livechat"),_EMBEDNAME=e.embedname,_SCREENNAME=e.screenname,_LANG=e.lang,_CCODE=e.ccode,_SCHEMA=e.schema,_EMBEDSERVERURL=e.embedserverurl,INIT=!1,_TZCOFFSET=-1*(new Date).getTimezoneOffset(),_TZOFFSET=e.tzoffset?parseInt(e.tzoffset):null,_TZOFFSET=null==_TZOFFSET?_TZCOFFSET:_TZOFFSET,_TOOLTIP=e.tooltip,_TZSOFFSET=parseInt(e.tzsoffset),_TZPOFFSET=parseInt(e.tzpoffset),CLIENTVERSION=e.servername,_SERVERNAME=e.clientversion,uapache=e.uapache,ucomp=e.ucomp,_VIDEOVERSION=e.videoversion,_MEDIASERVERURL=uapache?e.mediaserverurl:_SCHEMA+"://"+_EMBEDSERVERURL,_WMSJSSTATICDOMAIN=e.wmsjsstaticdomain,_WMSPUBLICDOMAIN=t.wmspublicdomain,_MEDIAHASHMAPPING=t.mediafilescdnhashes?JSON.parse(t.mediafilescdnhashes):"",_JSCDNSERVER=t.jscdnstaticserver,_SIQHELPLINK=e.siqhelplink,_ZCAMPAIGNENABLED=e.campaignenabled,_ANNONREGTIMEOUT=e.annonregistertimeout,_ISRTLSUPPORTEDLANG=e.RTL_supported_language,_PRDNAME=e.productname,_PRDURL=e.producturl,_FREELOGOLINK=e.pinfo.isbetaportal?e.freelogolink.replace("freelogo",encodeURIComponent(e.einfo.brandname)):e.freelogolink,_GT_ATTRIBUTIONLINK=e.gtattributionlink,_CFPARAMNAME=e.cfparamname,_CFCNAME=e.cfcname,jsversion=null,ucomp||(LSResource.MessageObject=e.jsresource),$Support.init(e))});!function(d){var e=function(t,e){this.$elem=d(t),this.dropobj=e,this.options=e.options,this.minimumValueForSearch=5};e.prototype={init:function(){this.setHeader(),this.setDropList(this.options),this.bindEventHandlers(),this.$elem.addClass("sqico-drpdwn")},setHeader:function(){var t=this.dropobj;this.$elem.attr("dockeydown","dropdown").html('
'+t.defaultval+""+this.getSearchHtml()+"
")},getSearchHtml:function(){if(this.options.length'},setDropList:function(t){for(var e='
    ',s=t,i=s.length,o=this.dropobj.purpose,r=0;r'+l+h+"":""}this.$elem.append(e+"
"),this.sortList()},sortList:function(){var t=this.dropobj.purpose;if(!("department"!==t||"department"==t&&$Support.getApiDepartment().length)){var e=this.$elem.find("ul"),s=e.find("li");s.sort(function(t,e){return parseInt(d(t).find("span").attr("status"))>parseInt(d(e).find("span").attr("status"))?1:-1}),e.empty().html(s)}},getDeptStatusHTML:function(t){var e=""+t.STATUS=="true"?$Support.DEPT_ONLINESTATUES:$Support.DEPT_OFFLINESTATUES,s="1"===(e=""+t.ENGAGED=="true"?$Support.DEPT_ENGAGESTATUES:e)?"department.status_"+e:"common.offline";return''+LSResource.getRealValue(s)+""},getDeptName:function(t){for(var e=this.options,s=e.length,i=0;i

No result found')},alignDropDown:function(){var t=$Support.contentdiv||ZSIQConversationManager.getcurrchatwinobj().contentdiv,e=this.$elem,s=e.children("div"),i=e.children("ul"),o=s.offset().top,r=s.outerHeight(),n=d("body").outerHeight();if(o+r+i.outerHeight()>n+t.scrollTop())return e.addClass("btmalign"),i.css({top:"auto",bottom:n-o,"z-index":"111113"}),void i.find("li").removeClass("atsel");e.removeClass("btmalign")},hideDropDown:function(){var e=this.$elem;e.find("ul").slideUp(function(){e.removeClass("zindrp");var t=e.find(".drop-search");t.val(""),t.removeClass("show"),t.addClass("hide")}).find("li.atsel").removeClass("atsel")}},d.fn.dropdown=function(t){return this.each(function(){new e(this,t).init()})}}(jQuery);function getSource(e){return ie?window.event.srcElement:e.target}function getEventSourceId(e){return null!=(e=null==e?window.event:e).srcElement?e.srcElement.id:e.target.id}function isUndefined(e){return void 0===e}function getObjectSize(e){var t=0;for(var r in e)e.hasOwnProperty(r)&&t++;return t}function lsnocachefix(e,t){if("json"!=e)return e?"&nocache="+(new Date).getTime():"&"+_CFPARAMNAME+"="+getLDCSRFToken()+"&nocache="+(new Date).getTime();var r={};return r.nocache=(new Date).getTime(),!0!==t&&null!=t||(r[_CFPARAMNAME]=getLDCSRFToken()),r}function zeroUpFront(e){return 100<=e&&(e%=100),e<10&&(e="0"+(e=""+e)),e}function shrinkImage(e,t,r,n){var o={WIDTH:t,HEIGHT:e},i=[n/t,r/e];return 1<(i=Math.min(i[0],i[1]))?o:o={WIDTH:t*i,HEIGHT:e*i}}function getMatchedObjFromArray(e,t,r){return e.filter(function(e){if(e[t]===r)return e})}function getEncodedText(e){try{e&&(e=(e=e.replace(/'|'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(///g,"/")).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"))}catch(e){}return e}function getHtmlFreeText(e){try{e&&"string"==typeof e&&(e=e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"))}catch(e){}return e}function getDecodedText(e){try{e=e.replace(/'|'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(///g,"/")}catch(e){}return e}function getMemSize(e){return 1048576"),n=r.html(e).text();return r.remove(),n}function getEscapedText(e){return isEncoded(e)?e:$("

").text(e).html()}function isEncoded(e){try{if(!/<|>/.test(e))return!0}catch(e){}return!1}function isPostMessageSupported(){try{return!!window.postMessage}catch(e){}return!1}util={optimizeFontForMozilla:function(e){var t=">16,o>>8&255,255&o));switch(r){case 1:o=Base64.getB64(t,n)<<18|Base64.getB64(t,n+1)<<12|Base64.getB64(t,n+2)<<6,a.push(String.fromCharCode(o>>16,o>>8&255));break;case 2:o=Base64.getB64(t,n)<<18|Base64.getB64(t,n+1)<<12,a.push(String.fromCharCode(o>>16))}return a.join("")}}},CommonUtil={TZOFFSET:-1*(new Date).getTimezoneOffset(),toJSON:function(e){return Object.toJSON?Object.toJSON(e):JSON.stringify(e)},parseToJSON:function(t){try{if(!t)return null;if("object"==typeof t)return t;t=JSON.parse(t)}catch(e){t=$.parseJSON(t)}return t},getCaptcha:function(e){return null!=e?"":null},isAllowPasteImage:function(){return this.isAllowFileSharing()&&/chrome/.test(navigator.userAgent.toLowerCase())},isAllowFileSharing:function(){return JSON.parse($Support.EmbedObj.eprops.icfile)&&Licence.verify("filesharing")},isAllowAssist:function(){return JSON.parse($Support.EmbedObj.eprops.isscreenshare)&&JSON.parse($Support.EmbedObj.pprops.screensharing)&&CommonUtil.isIntegratedPortal(LDINTEG_ZASSIST)&&Licence.verify("assistallowed")},isAudioCallAllowed:function(e){return!(e=e||{}).isBotChat&&CommonUtil.isAudiocallEnabledFromPortal()&&JSON.parse($Support.EmbedObj.eprops.isaudiocall)&&!CommonUtil.isGroupChat(e.chatID)&&Licence.verify("audiocall")&&CommonUtil.isSecuredSchema()&&avaction.isBrowserSupported(navigator.userAgent,!0)},isScreenSharingAllowed:function(e){return e=e||{},CommonUtil.isScreenshareEnabledFromPortal()&&JSON.parse($Support.EmbedObj.eprops.issiqscreenshare)&&Licence.verify("issiqscreenshare")&&this.isAudioCallAllowed(e)},isJwtEnabledApi:function(e){for(var t=["addvist","joinchat","leavemsg","joinproactive","missed","join_proactive","leavemessage","missedleavemessage","fileshare","reply","history","join","rejoin","transfer","unread","mail","predictmessage","notification","close","messagetypingstatus","upload","broadcastvisitor","reopen"],r=0;rr.containerbottom&&(n+=r.elementbottom-r.containerbottom,t.scrollTop(n))},getParentChildOffset:function(e,t){var r={};return r.containertop=t.offset().top,r.containerbottom=r.containertop+t[0].clientHeight,r.elementtop=e.offset().top,r.elementbottom=r.elementtop+e.outerHeight(),r},preventDefaultAndPropagation:function(e){e.preventDefault(),e.stopPropagation()},handleFileUpload:function(t){var e=t.type,r=e&&-1!=e.indexOf("audio");r&&Recorder().destroy();var n=t.callbacks;$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",function(e){n.progress&&n.progress(e,t.msgid)},!1),e},url:$Support.getAjaxURL("upload",".ls"),type:"POST",data:t.formdata,contentType:!1,dataType:e,processData:!1,success:function(e){n.success&&n.success(e)},complete:function(e){n.complete&&n.complete(e),r&&($Support.Util.removeFormEmptyBg(),$Support.Util.showConversationListUI())},error:function(e){CommonUtil.handleFileUploadFailure(e)}})},v2handleFileUpload:function(r,n){var t=r.callbacks,e=$Support.getParent(),o=r.formdata.getAll("file"),i=e.$ZSIQChat.getWidgetData().usedownloadserver&&e.$ZSIQChat.getWidgetData().commondata.UDServerRevamp&&o&&0=t?e+"
":e},addIfExists:function(e,t,r){if(r)return e[t]=r},isBot:function(e){if(e&&-1!=e)try{var t=e.split("_")[2];return/^b/.test(t)}catch(e){return!1}},getBotImageURL:function(){var e=$Support.getParent().$ZSIQChat.getWidgetData(),t=e.embedobj;e.commondata.isdev&&(t.schema,t.embedserverurl);return CommonUtil.getStaticURL("/salesiq/images/botagent__KTEgLFSX1PSFQZc9XBDY3KVPpSZrd9RA6G-ES28yGUJQNeyVYKaRbnFe1-MdZKT_.svg")},stringToHTML:function(e){var t=document.createElement("div");return t.innerHTML=e,t},getStaticURL:function(e){return $Support.getParent().$ZSIQUtil.getStaticURL(e)},isSecuredSchema:function(){return-1").replace(/</g,"<").replace(/&/g,"&")},getScreenName:function(){return _SCREENNAME},isGroupChat:function(e){if(!e)return!0;var t=0,r=SUPPORT_REPS[e]||{};Object.keys(r);for(var n in r){if(1/gi,"")).replace(/<\/p>/gi,"")).replace(/")).replace(/^\s*$/gi,"")}catch(e){}return e},format:function(e){try{e=(e=(e=" "+e).replace(/((?:href|src)=["']?)?((https?:\/\/(?:www\.)?|www\.)([^ <\n\"]*[^.,\s<]))/gi,function(e,t,a,i){_SCHEMA,_EMBEDSERVERURL;return t?e:'"+a+""})).replace(/(=('|'|"|'|"|mailto:)*)?([a-z0-9]([a-z0-9_\-+\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,22}(\.[a-z]{2}){0,2}))/gi,function(e,t,a,i){return t?e:''+i+""})}catch(e){}return e},getDisplayContent:function(e){return e=Smiley.replace(e),e=Message.trim(e)},isLocalUser:function(e){return e==myMsgObj.sender},isHeader:function(e,t){return t&&t!=Message.presender},isSameBrowser:function(e){return!e||e==LSMessanger.getSid()},updateLastMessagePostTime:function(){Message.lastMessagePostTime=(new Date).getTime()},getLastMessagePostTime:function(){return Message.lastMessagePostTime||0},send:function(e,t,a){var i=(new Date).getTime();Message.updateLastMessagePostTime();var n=$Support.getParent().$zv.jwtExpiry;n||this.displaySendMessage(e,t,a,i),a&&"credit_card"==a.type&&(t=a.rawmsg||t),n?LSMessanger.sendMessage(e,t,a,i,"",function(){Message.displaySendMessage(e,t,a,i)}):LSMessanger.sendMessage(e,t,a,i)},displaySendMessage:function(e,t,a,i,n){t=t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),myMsgObj.chid=e,myMsgObj.msg=t,myMsgObj.scroll=!0,myMsgObj.uniqueid=i;var s=a&&"credit_card"==a.type;n&&(myMsgObj.reply_to=n),null==a||""==a||s||(myMsgObj.msg="

"+t+"

"),Message.formatAndDisplay(myMsgObj),delete myMsgObj.reply_to},formatAndDisplay:function(e){try{var t=$Support.chidmappinglist[e.chid]||e.chid,a=ZSIQConversationManager.getChatWinObjById(t),i=a.contentdiv,n=e.msg;"string"==typeof n&&(e.rawmsg=n);var s,r,o=n,l=e.sender,c=e.mod,d=e.istranslated,g="",u=e.msg&&e.msg.content&&-1!=e.msg.content.indexOf("audio"),p=e.msg&&e.msg.att_type&&"voice_note"==e.msg.att_type;if(u&&p){var m=Message.getAttachmentData(e);s=(r=ZSIQAudio.init(m,t)).getHTML()}if(null==e.scroll||e.scroll,n=Message.getDisplayContent(n),g=null!=c&&"att"==c?(n=Message.constructAttUrl(e,s),"chatwindow.sharing_a_file_with_you"):(e.msg=n,"cannedarticle"===e.mode&&(o=$FAQ.getHeaderMessage(e.msg)),n=Message.getMessageBlock(e,"",t,a),"common.says.msg"),i.find("#conversationoption").remove(),i.find("#skipquestion").remove(),ZSIQTranscript.updateTranscript({html:n,msgid:e.msgid,sender:e.sender},t),r&&r.init(),$Support.clearEndTimer(a),e.dname&&!Message.isLocalUser(l)){var f=LSResource.getRealValue(g,getUnescapedText(e.dname)+","+o);Message.handleBlinkTitle(f)}a.presender=l;var h=i.find("#consentbannerdiv");Message.isLocalUser(l)||e.convvisitorid&&("null"==l||$Support.Util.isAnnonUser(l))||d||0==h.length||$Support.hidetranslatebanner()}catch(e){}},updateMessageTime:function(e){try{var t=$Support.chidmappinglist[e.chid],a=(ZSIQConversationManager.getChatWinObjById(t).chatdiv||$Support.chatdiv||$("#msgdiv")).find('div[msg-id="'+$Support.formatMsgUid(e.msguid)+'"]');if(0==a.length)return;var i=a.prev().attr("msg-id"),n=$Support.getTranscriptFromSession(t);if(i){var s=$Support.formatMsgUid(e.lmsguid);if(lastmsgobj=(n[n.length-2]||{}).msg||{},i!=s&&("chatinfo"!=lastmsgobj.type||$Support.formatMsgUid(lastmsgobj.msguid)!=s))return LSMessanger.transcript(t,$EmbedManger.getvwmsid()),LSDebugger.pushDebugInfo(e),void LSDebugger.postDebugInfo("Chat transcript mismatched | "+t+" | "+i+" | ",null,null,!0)}var r=e.time;a.attr("msgtime",r)}catch(e){}},getAVMessageBlock:function(e,t){var a="string"==typeof e.media?JSON.parse(e.media):e.media,i=e.operation,n=JSON.parse(a.opruser),s=getEscapedText(n.dname),r=a.visitoraccess,o=MyDate.getHoursandMin(a.time,!0,"bclient"),l="none",c="",d=a.chatid?a.chatid:a.chid;t||$("#audiocall").is(":hidden")||(l="");var g=a.type,u="audio"==g,p=!0;null==a.isConsentAllowed&&null==a.is_consent_allowed||(p=null!=a.isConsentAllowed?a.isConsentAllowed:a.is_consent_allowed);var m="";null==a.closedReason&&null==a.closed_reason||(m=null!=a.closedReason?a.closedReason:a.closed_reason);var f=-1!=["screen_share","screen_view"].indexOf(g);if(callagain_txt=""+LSResource.getRealValue("av.info.callagain")+"","call_end"===e.operation&&null!=a.duration&&""!=a.duration&&(u?c=LSResource.getRealValue("av.info.success"," "+a.duration)+callagain_txt:f&&(c=LSResource.getRealValue("screenshare.info.success"," "+a.duration)),!t)){var h={attenderemail:$Support.EmbedObj.attenderemail,duration:a.duration};$Support.Util.handleCallbacks("call.completed",h)}if("call_miss"===i&&(u?(c=LSResource.getRealValue("av.info.agent.missed")+callagain_txt,r&&(c=LSResource.getRealValue("av.info.visitor.missed",s)+callagain_txt)):f&&(c=LSResource.getRealValue("screenshare.info.agent.missed"),r&&(c=LSResource.getRealValue("screenshare.info.visitor.missed",s)))),"call_cancel"===i&&(u?(c=LSResource.getRealValue("av.info.visitor.cancelled",s)+callagain_txt,r&&(c=LSResource.getRealValue("av.info.agent.cancelled")+callagain_txt)):f&&(c=LSResource.getRealValue("ss.info.visitor.cancelled",s),r&&(c=LSResource.getRealValue("ss.info.agent.cancelled")))),"call_reject"===i){var v="";if(u)c=LSResource.getRealValue("av.info.visitor.declined",s)+callagain_txt,r&&(c="mic_permission_blocked"==m?LSResource.getRealValue("av.info.agent.permissiondeclined")+callagain_txt:"busy_with_another_call"==m?(v=getEscapedText(n.operatorname),LSResource.getRealValue("av.info.visitorbusy.call",v)+callagain_txt):p?LSResource.getRealValue("av.info.agent.declined")+callagain_txt:LSResource.getRealValue("av.info.agent.consentdeclined")+callagain_txt);else if(f&&(c=LSResource.getRealValue("screenshare.info.visitor.declined",s),r))if("screen_permission_blocked"==m)c=LSResource.getRealValue("screenshare.info.agent.permissiondeclined");else if("busy_with_another_call"==m){v=getEscapedText(n.operatorname);var S="av.info.visitorbusy."+g;c=LSResource.getRealValue(S,v)}else c=LSResource.getRealValue("screenshare.info.agent.declined")}return"call_busy"===i&&(c=LSResource.getRealValue("av.info.visitor.declined",s)+callagain_txt),"call_failed"===i&&(u?c=LSResource.getRealValue("av.info.visitor.failed")+callagain_txt:f&&(c=LSResource.getRealValue("screenshare.info.visitor.failed"))),"monitor_join"===i&&(c=LSResource.getRealValue("av.info.monitor.join",s+","+o)),"monitor_conversation_join"===i&&(c=LSResource.getRealValue("av.info.monitor.conversationjoin",s+","+o)),"monitor_end"===i&&(c=LSResource.getRealValue("av.info.monitor.left",s+","+o)),"

"+c+"

"},getMessageBlock:function(e,t,a,i){var n="";try{n=e.msg,sender=e.sender;var s=MyDate.getHoursandMin((new Date).getTime(),!0,"bclient");if("CT_INF_MSG"==sender)n='
'+n+"
";else{var r=!1,o=getEscapedText(e.dname);i.presender&&i.presender===sender&&(r=!0);var l={sender:sender,dname:o,msg:n,time:s,previoussender:r,uniqueid:e.uniqueid,msgid:e.msgid,msguid:e.msguid,meta:$Widget.getMetaCardData(),chid:a};e.reply_to&&(l.reply_to=e.reply_to),"cannedarticle"===e.mode?(l.msg=n=ZSIQTranscript.getCustomArticleCard(e.msg),l.iscannedarticle=!0,l.cardheader=$FAQ.getHeaderMessage(e.msg),$Support.handleNewMessageInConversation(l)):"botrating"===e.mode&&(l.botrating=!0,l.ratinghtml=e.ratinghtml),e.bot_image&&(l.bot_image=e.bot_image),"zohobookings"==e.module&&(l.meta=e.meta),-1===a&&e.chid;var c=$.extend({},l);e.rawmsg&&(l.msg=e.rawmsg),$Support.updateChatCache(l,void 0,a),n=ZSIQTranscript.getTranscript(c,t,a)}}catch(e){}return n},displayInfo:function(e,t,a){ZSIQTranscript.updateTranscript({html:$UI.getInfoMsgHTML(e,t)},a)},getInfoHTML:function(e,t,a,i){var n=function(e,t){return t=t||"",LSResource.getRealValue(e,t)},s="",r=e.mode,o=($Support.EmbedObj,e&&e.opruser?e.opruser.dname:"");o=getEncodedText(o);e.chid;var l={ACCEPT_TRANSFER:{chat:"transcript.info.chattransfer",call:"transcript.info.calltransfer",conversation:"transcript.info.conversationtransfer"},ACCEPT_FORWARD:n("transcript.info.acceptforward",o),FORWARD_SUPPORT:n("transcript.info.forwardsupport",o),JOIN_SUPPORT:n("transcript.info.joinsupport",o),REOPEN:n("transcript.info.reopen",o)};if("ACCEPT_TRANSFER"==r){var c=e.components||"chat";s=n(s=l[r][c],o)}else if("booking_card"==r&&-1!=["rescheduled","canceled"].indexOf(e.msg))s=LSResource.getRealValue("rescheduled"==e.msg?"booking.info.reschedule":"booking.info.cancel");else if("chatclosed"===r){var d="visitor"===e.chat_close_by,g=MyDate.getTime(e.time);s=d?LSResource.getRealValue("chat.end.you",g):LSResource.getRealValue("chat.end.agent",getEscapedText(e.operation_user.name)+","+g)}else s=l[r];if(-1<["ACCEPT_TRANSFER","ACCEPT_FORWARD","JOIN_SUPPORT"].indexOf(r)&&e){var u=ZSIQConversationManager.getChatWinObjById(e.chid);$BotImpl.enableComposer(),$UI.populateUserAction(u);var p=e.opruser;p.attendername=p.dname,u.contentdiv&&u.contentdiv.find("#skipquestion").remove(),!u.isBotChat||a||i||($Support.handleBotTransferAccept(e.chid),"JOIN_SUPPORT"===r&&!t&&u.setBotForwardedTime((new Date).getTime())),t||i||(u.attenderimagefkey=p.image_fkey,u.attender=p.lsuid,u.attenderaboutme=p.aboutme,delete u.isforwardchat,MessageOperation.showMsgActn(u),!$Support.isConversationUIFocussed()&&ZSIQConversationManager.isChatUIFocusses(u.chatID)&&$UI.setInnerHeader(p),u.attendername=getUnescapedText(p.dname),$Support.handleChatTransferInConversationListView(u)),$Support.updateChatCookie(u.chatID),$Support.setCookie(u);try{var m=ZSIQConversationManager.getChatWinObjById(u.chatID).RCHID;SiqAVRouter.container.detailsHandler.triggerIconCheck(m)}catch(e){}if("ACCEPT_TRANSFER"==r)s=e.transfer_message&&getEscapedText(e.transfer_message)||LSResource.getRealValue("transcript.info.chattransfer",getEscapedText(e.opruser.attendername||e.opruser.dname))}else if("ACCEPT_FORWARD"==r)s=LSResource.getRealValue("transcript.info.acceptforward",o),$Support.setAttenderCookie(e.opruser,u.chatID);else if("quartz"==r)s=LSResource.getRealValue("chat.quartz.info");else if("FORWARD_SUPPORT"==r){var f=DynamicMsg.fillValues(e.info_message);s=(f=getEscapedText(f))||LSResource.getRealValue("transcript.info.forwardsupport",o)}else if("REOPEN"==r){var h=e.operation_user&&e.operation_user.name;h=ZSIQTranscript.isInValidVisitorName(h)?"You":getEscapedText(h),s=LSResource.getRealValue("transcript.info.reopen",h)}else if("JOIN_SUPPORT"==r)s=LSResource.getRealValue("transcript.info.joinsupport",o);else if("ADDSUPPORTREP"==r&&e)s=n("transcript.info.addrep",getEncodedText(e.userlist.dname));else if("bot_transfer_missed"==r)s=n("transcript.info.missed");else if("INVITE"==r){var v=e.type,S=e.opruser;o=getEscapedText(S.dname);if("audio"==v)s=n("transcript.info.visitor.requestaudiochat",o);else if("video"==v)s=n("transcript.info.visitor.requestvideochat",o);else if("meeting"==v){var R=e.opr;S.wmsid==$Support.EmbedObj.vwmsid?(s=n("transcript.info.sameuser.sharedesktop"),myMsgObj.sender&&(s+=" "+n("chatwindow.meeting.share.now")+"")):s="request"==R?n("chatwindow.meeting.request",o)+(myMsgObj.sender?" "+n("chatwindow.meeting.share.now")+"":""):n("chatwindow.share.screen",o)+(myMsgObj.sender?" "+n("chatwindow.meeting.joinnow")+"":"")}}else if("MEDIA"===r)s=Message.getAVMessageBlock(e,a);else if("CHATMONITOR_JOIN"==r){u=ZSIQConversationManager.getChatWinObjById(e.chid);try{m=ZSIQConversationManager.getChatWinObjById(u.chatID).RCHID;SiqAVRouter.container.detailsHandler.triggerIconCheck(m)}catch(e){}s=n("transcript.info.addrep",o)}return e&&e.hide_info_tovisitor?"":s},getAttachmentData:function(e){var t=$Support.chidmappinglist[e.chid]||e.chid,a=ZSIQConversationManager.getChatWinObjById(t),i=e.sender,n=e.msg,s=($Support.EmbedObj,""!=a.presender&&a.presender==i);return{sender:i,dname:e.dname,msg:n,previoussender:s,file:{size:n.size,url:n.url,fName:n.fName,comment:n.comment},mode:"att",msgid:e.msgid,msguid:e.msguid,att_type:e.msg&&e.msg.att_type,reply_to:e.reply_to,time:MyDate.getHoursandMin(e.time,!0,"bclient")}},constructAttUrl:function(e,t){var a="";try{var i=$Support.chidmappinglist[e.chid]||e.chid,n=Message.getAttachmentData(e);e.msgid&&(n.file.msgid=e.msgid);var s=$.extend(!0,{},n);$Support.updateChatCache(s,"",i),n.chid=i,a=ZSIQTranscript.getTranscript(n,"",i,t)}catch(e){}return a},display:function(e,t,a,i){if($("#msgdiv").length){var n,s=document.getElementById("msgmaindiv"),r=!0;if((s.scrollHeight-s.scrollTop==s.clientHeight||s.scrollHeight").html(e).contents();if(l&&0 .ziq_msg").last();if(!r||t)return void Message.scroll(s,g);Message.animate(g)}},animate:function(e,t,a){if(e){var i=t?{right:"auro",left:"-20px",opacity:"0"}:{right:"0",left:"0",opacity:"1"};e.animate(i,300,function(){a&&a(e)})}},isTypingShown:function(){return 0<$("#siq_bottype").length},isFirstMessageForTyping:function(){return $("#siq_bottype").parent().attr("frstmsg")},scroll:function(e,t){e&&$(e).animate({scrollTop:e.scrollHeight-e.offsetHeight},250,function(){Message.animate(t)})},handleBlinkTitle:function(e){$EmbedManger.isComposerFocused()||parent==self&&$EmbedManger.iswindowfocused()||Message.blinkTitle(e)},blinkTitle:function(e){var t=$Support;t.isblinking||(t.documenttitle=document.title,t.isblinking=!0),Message.startBlinking(e),$Support.getParent().$ZSIQUtil.blinkTitle(e)},startBlinking:function(e){if(!e)return!1;clearTimeout($Support.blinktimer);var t,a="";$Support.blinktimer=setInterval(function(){t="title"==t?(a=e,"chmsg"):(a=$Support.documenttitle,"title"),document.title=a},500)},stopBlinking:function(){$Support.getParent().$ZSIQUtil.stopBlinking(),$Support.isblinking&&(clearTimeout($Support.blinktimer),$Support.isblinking=!1,document.title=$Support.documenttitle)},checkCardMask:function(e){for(var t=e.split("").map(Number),a=0,i=t.length,n=i%2,s=0;s"+t.innerHTML}catch(e){}}function printtime(){print(new Date)}function LSgetPrd(){return LSMessanger.getPrd()}function LSgetAuthType(){return 0}function LSgetUserName(){return LSMessanger.getUserName()}function LSgetNickName(){return LSMessanger.getNickName()}function LSgetUserId(){return LSMessanger.getUserId()}function LSgetSid(){return LSMessanger.getSid()}var lpt,pmonInterval=15e3;function LSplive(){lpt=new Date}function LSMessanger(){}LSMessanger.init=function(){this.rchid=-1},LSMessanger.setRCHID=function(e){LSMessanger.rchid=e},LSMessanger.getRCHID=function(){return LSMessanger.rchid},LSMessanger.deleteSid=function(){delete LSMessanger.sid},LSMessanger.register=function(e,t){try{setTimeout(function(){LSDebugger.postDebugInfo("Visitor Side before registor : "+t,null,"",!0)},1)}catch(e){}if(e){if(!t)return!1;this.prd=e,this.uname=t,LSMessanger.init(),_WMSPUBLICDOMAIN&&WmsLite.enablePreconnectToWMS(_WMSPUBLICDOMAIN),WmsLite.setNoDomainChange(),WmsLite.setAuthType(0),WmsLite.forceDomainChange();var a=_SCHEMA+"://"+_EMBEDSERVERURL;WmsLite.allowCrossOrigin(a),WmsLite.setWmsContext("salesiq"),WmsLite.setConfig(79),$Support.EmbedObj.wms_anon_register&&WmsLite.useSameDomain();var n=$Support.getParent().$ZSIQChat.getWidgetData().embedobj.all_sri_hash_value;n&&WmsLite.setClientSRIValues(JSON.parse(n)),window.location.protocol.startsWith("http")||WmsLite.setFrameOrigin("https://"+window.parent.window.$ZSIQUtil.staticURL[5]),WmsLite.registerAnnon(e,this.uname,this.nname)}else $EmbedManger.UI.showProcess(LSResource.getRealValue("common.serverconnectingerror")+" "+LSResource.getRealValue("common.reload")+"")},LSMessanger.getUserName=function(){return this.uname},LSMessanger.getNickName=function(){return this.nname},LSMessanger.setNickName=function(e){this.nname=e},LSMessanger.getUserId=function(){return this.uid},LSMessanger.getPrd=function(){return this.prd},LSMessanger.getSid=function(){return this.sid},LSMessanger.disable=function(){WmsLite.disablewms=!0},LSMessanger.isdisablewms=function(){return WmsLite.disablewms},LSMessanger.push=function(e,t,a){try{var n=parseInt(e.mtype);0]*?>/gi,"").replace(/<\/span>/gi,"").replace(/
/gi,"\r\n");var D={visitid:l.VISITID,message:T,attendername:l.attendername,attenderemail:l.attenderemail};i.handleCallbacks("visitor.chatmessage",D),$BotImpl.isDelayConfigFlow||Self.status.clear(l),($Support.isFloat()&&$Support.getTabOwner()==LSMessanger.getSid()&&parent.$ZSIQWidgetUI.getWidgetState()==parent.$ZSIQWidgetUI.F_BUTTON||$Support.isConversationUIFocussed()||$Support.isCallTabFocused()||!ZSIQConversationManager.isChatUIFocusses(M)||$Support.isFAQUIFocussed())&&M&&$Support.incrementUnreadCount(M),$Support.handleReadMessage(I),$Support.removeReadReciptUI(I.chid)}Message.isLocalUser(E)&&Message.updateMsguid({msgobj:I,chatdiv:l.chatdiv,chatID:l.chatID}),Message.updateMessageTime(I),I.chid=$Support.chidmappinglist[I.chid]||I.chid,$Support.handleOnGoingchatActionsInConversation("newmsg",I)}catch(e){LSDebugger.pushDebugInfo("Exception stack: "+e.stack||e.stacktrace||""),LSDebugger.postDebugInfo("Failed in Message rendering | Exception "+e+" | chid - "+M+" | sid - "+LSMessanger.getSid(),null,null,!0)}else if(e.mtype==CT_NFY_USERSTATUS){I=e.msg,m=$Support.chidmappinglist[I.chid],S=SUPPORT_REPS[m]||{};try{S[I.uname]&&(I.ismonitor=0!=I.ismonitor,S[I.uname]=I),i.UI.showAgentStatus()}catch(e){}}else if(e.mtype==CT_NFY_USERADD){I=e.msg,m=$Support.chidmappinglist[I.chid],S=SUPPORT_REPS[m]||{};try{var R=I.users;for(h=0;h';return(i+=$Temp.getMessageActionsHTML({isvisitor:t&&e.isvisitor,msgid:e.msgid,forwardtime:e.forwardtime,isquestion:e.isquestion,isbotchat:e.isbotchat,intime:e.intime}))+"
"},Y=function(e,t){return $Widget.isPreview()||!$Support.EmbedObj.read_receipt||!e.chid||!$Support.isVisitorID(e.sender)||-1==t.chatID||C(e.msgid)||t.isBotChat?"":($Support.removeReadReciptUI(e.chid),'
'+(e.time||MyDate.getHoursandMin((new Date).getTime(),!0,"bclient"))+'
')},ee=function(e){try{var t=e.meta.card_data;if("contact"!=t.type)return"";var i="string"==typeof t.value?JSON.parse(t.value):t.value,a="",s=0;for(var n in i){if(2==s)break;a+=''+i[n]+"",s++}return'
'+a+'
'}catch(e){return""}},te=function(e){try{return e.meta.display_card?e.meta.display_card.type:e.meta.input_card.type}catch(e){return""}},ie=function(e){try{var t=["suggestions","relatedphrases"],i=e.meta[$Widget.display_card]||{},a=i.type,s=e.meta[$Widget.display_card]&&e.meta[$Widget.input_card];if(a||(e.meta.related_phrases?a="relatedphrases":i.actions&&(a="textwithaction")),!s&&(-1!=["links","articles","video","multiple-product","single-product","textwithaction","payment_card"].indexOf(a)||-1!=t.indexOf(a))){e.time=e.widgettime;var n=$Widget.getWidgetHTML(e);-1!=t.indexOf(a)?e.suggestionhtml=n:e.msg=n,e.is_ignoreformat=!0,e.bot_image="","resource-share"==i.subtype&&(a="resource-share"),e.widget_class={links:"",articles:"artcle-vw","resource-share":"artcle-vw article-share"}[a]||""}}catch(e){}return e},ae=function(e){var t=$Support.EmbedObj,i=t?t.eprops:"";if(t&&!JSON.parse(i.showsmiley))return"";var a=document.createElement("DIV");return a.innerHTML=Smiley.replace(e),(a.textContent||a.innerText).trim()?"":" smily_msg"},se=function(e,t){return e=t?e:Message.format(e),Smiley.replace(e)},ne=function(e){return(e.meta&&e.meta.msgid?e.meta.msgid:e.file&&e.file.msgid?e.file.msgid:e.msgid)||""},r=function(e){if((e=e||{}).info_type&&e.delay)return 1e3*parseInt(e.delay);if(e.typing_delay||0==e.typing_delay){var t=1e3*parseInt(e.typing_delay);return $BotImpl.typingDelay=t}},re=function(e){return-1==["image/svg+xml","image/heic","image/heif","image/x-eps","image/vnd.adobe.photoshop"].indexOf(e)&&-1!=e.indexOf("image")},de=function(e,t){var i=e.file,a=e.convvisitorid,s=e.convchid,n=e.msg.content,r=re(n),d=$Support.EmbedObj,o=i.fName||i.name,m=d&&d.vwmsid?"&wmsid="+d.vwmsid:"",l=$Support.chidmappinglist,c=t||l&&l[i.chatid]||i.chatid,g=$Widget.isPreview()?{}:ZSIQConversationManager.getChatWinObjById(c),p="",u=null,v=$Support.getParent,f=v?v().$ZSIQChat.getWidgetData():{};v&&f.commondata.UDServerRevamp&&f.usedownloadserver?(u={"x-siq-soid":$Support.EmbedObj.soid,"x-siq-module":"conversation","x-siq-type":"visitor_chat","x-siq-parentid":-1!=ZSIQConversationManager.getcurrchatwinobj().visitorID?ZSIQConversationManager.getcurrchatwinobj().visitorID:null,"x-siq-resourceid":escape(i.url),"x-siq-filetype":r?"image/jpg":o.substring(o.lastIndexOf(".")+1),"x-siq-filename":o,"x-siq-lsid":$Support.EmbedObj.livelsid,"x-siq-wmschatid":t},p=v().UDHandler.getUDDownLoadLink(u)):(p=$Support.getAjaxURL("download",".ls"),p+="?fsize="+i.size+"&url="+escape(i.url)+"&fName="+encodeURIComponent(o),p+=a?"&visitorid="+a+"&chid="+s+"&isconversation=true":m?"&chid="+c+(g.chatID&&-1==g.chatID?"":m):"&chid="+c,$Support.getParent&&(p+="&avuid="+$Support.getParent().$ZSIQUtil.getAvuid()));var h=i.purl||p,b=i.msgid?'msgid="'+i.msgid+'"':"",_=getMemSize(i.size),y=(i.progress,i.progress?" fprgs":""),S=e.is_edited?oe():"",w=$.trim(i.comment)?''+getEscapedText(i.comment)+S+"":"",q=w?" imgcmt":"",x=d&&d.nonceval?"":' onload="$Support.handleUploadImageLoad( this )"',C=r?'documentclick="imagepreview"':"";return['",r?'':''+getEscapedText(o)+""+(i.ispreview?"":'( '+_+" )")+"",E(i,h,u),""+Smiley.replace(w)].join("")},E=function(e,t,i){var a=e.msgid||"",s=$Support.getParent,n=s?s().$ZSIQChat.getWidgetData:null;return s&&n&&n().commondata.UDServerRevamp&&n().usedownloadserver&&i&&(i["x-siq-mode"]="download",t=s().UDHandler.getUDDownLoadLink(i)),'
'+(t=e.ispreview?'':'')+"
"},oe=function(){return' ('+LSResource.getRealValue("common.edited")+")"},me=function(e){return!(!e||-1==e.indexOf("$"))},le=function(e){return!!$Support.EmbedObj&&(!(e=e||$Support.EmbedObj.visitorname)||e&&(0===e.lastIndexOf("Visitor ",0)||0===e.lastIndexOf("Guest",0)))},c=function(e,t){var i=ue(t),a=ne(e),s=($Support.EmbedObj||{}).isbot_uxchange_enabled;if(!a||!C(a,t)){var n,r,d=e.html,o=e.ispopulate,m=e.sender,l=$Support.Util.isMessageDIVScrolled(i.chatmaindiv),c=e.meta||{};if(i.chatdiv){var g=i.chatdiv.find('[proptype="flowresetter"]');if(!e.ignorebotcommand&&g&&g.remove(),O()&&j()&&!s)if(ce(m))D(!0);else{D(!m);var p=$("
").html(d).contents();if(p&&0 .ziq_msg").last();if(!a||$("#unreadarrow").length)return;var s=$(a).find('[data-field="message"]').last(),n=s.next(".siq-info-message").length;if(!i&&!n&&s.hasClass("siq-agntmsg")&&d(s,a,e))return;$(a).animate({scrollTop:a.scrollHeight-a.offsetHeight+10},e)}catch(e){}},d=function(e,t,i){if(!$Support.EmbedObj||!$Support.EmbedObj.uxclientconf)return!1;var a=t.offsetHeight,s=$(t).find('[sendertype="agent"]').last().parent(),n=0,r=s.nextAll('[data-field="message"]');1
'},ge=function(e,t){var i=e?"vismsg":"agntmsg";return!(t=t||$("#msgdiv")).find(".ziq_msg").last().hasClass(i)},pe=function(e){return e.isvisitor?t:t=!(!e.meta||!e.meta.hand_off)||!!e.hand_off},ue=function(e){try{return e?ZSIQConversationManager.getChatWinObjById(e):ZSIQConversationManager.getcurrchatwinobj()}catch(e){return{chatdiv:$("#msgdiv"),contentdiv:$("body").find(".siq_content"),attendername:$Support.EmbedObj&&$Support.EmbedObj.attendername?$Support.EmbedObj.attendername:Bot?Bot.getBotOBJ().name:"",presender:Message.presender,presendername:K,waitTimer:$Support.waitTimer,chatmaindiv:$("#msgmaindiv"),composer:$("#msgarea"),checkAndFocusMessageArea:function(){$("#msgarea").focus()}}}};return{getTranscript:function(e,t,i,a){var s=e.isbotmessage,n=ue(i)||{};e=t&&s?ie(e):e;var r=$Support.EmbedObj,d=(r&&r.eprops,e.convvisitorid),o=ce(e.sender)||d&&("null"==e.sender||me(e.sender))||e.isvisitor,m=r&&o&&!d?r.visitorname||e.name:e.dname,l=(s=e.isbotmessage,e.meta&&e.meta.input_card&&e.meta.input_card.isuseredit),c=n.presendername&&n.presendername==m;e.meta&&e.meta.hide_custom_message||$BotImpl.handleComposerVisibility(!1,i),l?c=!0:(n.presendername=m,K=m);var g="agntmsg siq-agntmsg",p="siq-user-name",u="siq-user-message",v=' sendertype="agent"',f="",h=e.deleted?" sqico-deletemsg msgdel":"";(o||e.isques)&&(g="vismsg siq-visitmsg",p="siq-visitor-name",u="siq-visitor-message",v=' sendertype="visitor"'),m=getEscapedText(m);var b=e.msg;if(e.mtype==CT_ATT_MSG&&(e.file=b),!e.file&&"object"==typeof b)return"";e.iscannedarticle&&(g+=" msg-card");var _="",y="";e.reply_to&&!h&&(_=MessageOperation.getReplyMsgHTML(e.reply_to),y=" w100 ");var $="",S='purpose="name"';!le(m)&&m||s||(m=LSResource.getRealValue("common.you")),!(r&&-1',f='documentclick="userdetails"');var w=l?"":e.time||"",q=e.uniqueid?e.uniqueid:e.msgid?e.msgid:"";q=e.file&&e.file.msgid?e.file.msgid:q;var x=e.reply_to?"":ae(b),C="",E="";e.file&&(C=" file_msg",E='isimage="'+re(e.msg.content)+'"');var M=e.ratinghtml?e.ratinghtml:"",T=e.meta&&e.meta.card_data&&e.meta.card_data.value?e.meta.card_data.value.image:null,I=T?e.meta.card_data.value:null,O="";I&&I.lat&&(O=" lat="+I.lat+" lng="+I.lng+' documentclick="openmapfromimage" ');var j=e.bot_image||T,D=r&&r.nonceval?"":' onload="$Support.handleUploadImageLoad( this )"',R=j?'
':"",L=j?"msg-botimg":"",k=e.widget_class?" "+e.widget_class:"",U=e.att_type&&"voice_note"==e.att_type,H=U?"voicenote-audio":"";U&&e.msg&&e.msg.comment&&(H+=" att_cmt "),g=t?g+" rm_anim":g,(c||o&&!d&&!ge(o,n.chatdiv))&&(g+=" mrgT2",m=$=S=v=""),g+=e.iswidget?" siq_widget":"";var B=te(e),W=B?"":' title="'+w+'"';B=B?'data-wtype="'+B+'"':"";var z=e.widget_cname?" widget_cname = "+e.widget_cname:"",A=e.suggestionhtml||"",V='data-msgid="'+ne(e)+'"',P=/\n/.test(b);(!o||e.is_edited||P)&&(b=Markdown.apply(b)),b=e.is_ignoreformat?b:se(b);var Q=ee(e);g+=Q?" buble_bg":"";var Z=e.is_edited&&!e.deleted?oe():"";b=Q||''+b+Z+"",(e.isvisitor=o)&&e.file&&e.att_type&&"voice_note"==e.att_type&&n.chatdiv&&n.chatdiv.find("#"+q).length&&(n.chatdiv.find("#"+q).remove(),ge(o,n.chatdiv)&&(m=r&&o&&!d?r.visitorname||e.name:e.dname,m=getEscapedText(m),!le(m)&&m||s||(m=LSResource.getRealValue("common.you"))));var N=e.msguid?" msg-id="+$Support.formatMsgUid(e.msguid):"",F={isvisitor:o,deleted:e.deleted,msgid:q,intime:n.intime||n.chatintime,isbotchat:n.isBotChat,chid:"pastconv"==n.chatstatus?-1:n.chatID,isquestion:e.isques,istrigmsg:n.istrigmsg};F.forwardtime=n.forwardtime||0;var J=X(F);n.isBotChat&&MessageOperation.hideMsgActn(n);var G=J?' ondblclick="replymsg"':"";return["
","
"+m+$+"
",'
'+_+R,e.file?a||de(e,i):b+M,J,"
"+A+Y(e,n),"
"].join("")},updateTranscript:c,removeTyping:D,showTyping:function(e){var t=e.chid||e.enc_chid,i=ue(t)||{};if(e.isautotyping||clearTimeout($Support.autotyping),!$.isEmptyObject(i)&&i.chatdiv.length&&0==i.contentdiv.find("#siq_bottype").length){var a=e.isuseredit,s=$Support.EmbedObj?e.dname||i.attendername:Bot.getBotOBJ().name,n=!ge("",i.chatdiv)||i.presender==e.sender&&!ce(i.presender)?"":s,r=e.msglist&&e.msglist[0]?e.msglist[0].msgid:"",d=n?getEncodedText(n):" ",o="";$.trim(d)&&(o=' sendertype="agent"');var m='
'+d+'
'+g()+"
",l=(e.meta||{}).handoff_config||{};c({html:m,ignorebotcommand:e.ignorebotcommand,sender:e.sender||" ",istyping:!0,handoff_config:l},t),a||(i.presendername=s,K=s)}},getCustomArticleCard:function(l){if(!l)return"";if("resource-share"==l.subtype)return $Temp.getResourceSharingHTML(l);var e=$Support.EmbedObj,t=e&&e.nonceval?"":' onload="$Support.handleUploadImageLoad( this )"',i=l.owner_imgkey?'':"";return'
'+(l.image?'
':"")+'
'+(l.title?getEncodedText(l.title):"")+'
'+getEncodedText(l.description||"")+"
"+(l.owner_name?'
'+i+'
'+LSResource.getRealValue("article.by")+" "+getEncodedText(l.owner_name)+"
":"")+(l.articles&&l.articles.length?function(e,t){var i="";for(var a in e){var s=e[a],n=s.source&&"zohodesk"==s.source,r=s.id||Object.keys(s)[0],d=s.text||s[r]||"",o=s.language_code||"";d&&(d=getEncodedText(d.replace(//gi," ")),i+='")}var m=t?"":'
'+LSResource.getRealValue("faq.relatedarticles")+":
";return'
'+m+i+"
"}(l.articles,l.hide_label):"")+"
"},getVideoCard:function(e){return e?'
':""},reSetPreviousSender:function(e){e.presendername=""},scroll:M,setMessageClass:I,isMessageExist:C,getMessageID:ne,getFormatedHTML:se,getImageURL:function(e){if(!e.sender||"-1"==e.sender)return"";var t=e.sender.split("_");t=t[2]||t[0];var i=$Support.getParent;if(i&&i().$ZSIQChat.getWidgetData().commondata.UDServerRevamp){var a={"x-siq-soid":$Support.EmbedObj.soid,"x-siq-module":"operators","x-siq-type":"operator_image","x-siq-parentid":t.replace("b",""),"x-siq-resourceid":e.sender,"x-siq-filetype":"image/jpg","x-siq-lsid":$Support.EmbedObj.livelsid};return i().UDHandler.getUDDownLoadLink(a)}return _SCHEMA+"://"+_EMBEDSERVERURL+"/"+CommonUtil.getScreenName()+"/userimg/"+t.replace("b","")+"/photo.ls?nocache=1"},getMessageDelay:function(e){var t=r((e||{}).meta);if(((e||{}).meta||{}).info_type)return t;if(null==t){var i=(e||{}).msglist;if(i&&0")),t=ce(e.sender)?t:Markdown.apply(t),t=ZSIQTranscript.getFormatedHTML(t)},getEditMsgHTML:oe,isTypingShown:O,removeBotResetter:function(e){e.chatdiv&&e.chatdiv.find('[proptype="flowresetter"]').remove()},getImageURLFromIMGKey:function(e){return _SCHEMA+"://"+_EMBEDSERVERURL+"/"+CommonUtil.getScreenName()+"/userimg/"+e+"/photo.ls?nocache=1&nps=202"},updateBotResetter:x,animate:T,updateHandoffText:q,setMessageDelay:function(e){n=r(e.meta)}}}();$Support={LSDB:parent.$ZSIQLSDB?parent.$ZSIQLSDB:opener?opener.$ZSIQLSDB:void 0,convlistindex:0,convlistlimit:{1:5,2:6,3:7},unReadChat:{},callParticipants:{},mediaData:{},resendProps:[],isallconvlistfetched:!1,getParent:function(){return window.parent.$ZSIQWidget?window.parent:window.opener&&opener.$ZSIQWidget?window.opener:void 0},DEPT_ONLINESTATUES:"1",DEPT_OFFLINESTATUES:"2",DEPT_ENGAGESTATUES:"3",chidmappinglist:{},joinedchatkeys:[],ismore_message_available:[],init:function(e){try{$Support.EmbedObj=new $SupportConfig(e),$Support.handlePendingCalls(),this.setTheme(e),this.setSeasonalThemeAttr(e),this.isscript="script"===e.params.src,$Support.Util.updateParentFontFamily(),this.Util.setBrowserValues(),$UI.focusMinimizeWindow(),DynamicMsg.init();try{Self.status.init()}catch(e){}if(this.cachearr={},$Support.Util.isPreview()&&parent.parent.ISCALL_FORM&&($Support.isCallForm=!0),$Support.getParent().$ZSIQUtil.startOnLoad(),this.isFetchAllFields()&&0!=ZSIQWindowView.getHomePageConvType().length)return void ZSIQConversationForm.fetchAllFields();this.handleChatWindowUI()}catch(e){}},isFetchAllFields:function(){return!(!ZSIQConversationForm||!this.EmbedObj.isformremoval||!ZSIQConversationForm.isOldFormView()&&!$Support.Util.isPreview())},showOnlyCallConsent:function(){if($Support.checkCustomFields()&&$Support.Util.validateFields($Support.contentdiv))return $Support.EmbedObj.call_status&&($Support.Util.isShowPrivacyChatConsent()||$Support.Util.isShowRecordingConsent())?void($("#onlycallconsent").length||(ZSIQWindowView.isOnlyCall()?$Support.contentdiv.append($Temp.getOnlyCallConsent()):$Support.container.find('[proptype="siqform"]').append($Temp.getOnlyCallConsent()))):$Support.handleCallView()},setEmbedLang:function(){$("html").attr("lang",$Support.EmbedObj.embedlang)},handleChatWindowUI:function(){this.setEmbedLang(),this.checkAndShowUI(),$Support.setLoadContentClass(),$Support.Util.isPreview()&&($Support.enableHeaderImage(),$CWPreview.init(),$CWPreview.handleChatWindowView(),parent.parent&&parent.parent.onloadChatWindow&&parent.parent.onloadChatWindow()),window.parent.$ZSIQChatWindow.handleESCEvent(window),window.parent.$UTSHandler.getUTSCachedata(),$Support.verifyChatDomain()&&($Support.Util.setDStorageIframe(),$Support.Util.loadPostMessage())},setSeasonalThemeAttr:function(e){var t=$("body");$Support.isSeasonalThemeEnabled=isUndefined(e.isSeasonalThemeEnabled)?$Support.isSeasonalTheme():e.isSeasonalThemeEnabled,$Support.isSeasonalThemeEnabled?(t.addClass("zsiq_seasonal"),t.attr("seasonal-type",$Support.getParent().$ZSIQChat.getSeasonalThemeObj().type)):(t.removeClass("zsiq_seasonal"),t.removeAttr("seasonal-type"))},setTheme:function(e){this.theme="theme"+e.theme},isFloat:function(){return"float"===$Support.type},checkAndShowUI:function(e,t){$Support.appendMetaTag();var i=$Support.EmbedObj;$UI.setContainer();var o=$Support.getParent().$ZSIQUtil.getAPIValues(),n=$Support.getParent().$zohosq||{};(o.floatwindowfields||o.customfield)&&$Support.handleFieldVisibility(o.floatwindowfields,o.customfield),!$Support.Util.isPreview()&&$Support.initiateConversationDB(t);var a=this.getCookieValue("ZLD"+i.livelsid);if(window.parent.$ZSIQWidget.getWidgetObject().isshowcallbubble)return $Support.container.append($Support.contentdiv=CallUIHandler.getInitialHtml()),void handleDrag();if($Support.Util.updateViewAttribute("msgarea"),$Support.Util.isPreview())return $Support.fieldlist&&ZSIQConversationForm.setFormFieldsInEobj($Support.fieldlist),i.status?$UI.init():$Support.showOfflineUI(),this.Util.setTextareaHeight(),parent.parent&&parent.parent.IS_HOMEPAGE_VIEW&&$Support.Util.showConversationEmptyPage(),$Support.handleApiData(n.values),void("function"==typeof n.previewReady&&n.previewReady());clearTimeout($Support.Util.jsdownloadtimer),a&&a.cid&&"-1"!=a.cid&&$Support.getParent().$ZSIQWidgetUI.getWidgetState()==$Support.getParent().$ZSIQWidgetUI.F_WINDOW?$Support.Util.downloadAdditionalFiles():$Support.Util.jsdownloadtimer=setTimeout($Support.Util.downloadAdditionalFiles,1e4),$Support.isConversationAllowed()||$Support.removeConvListStorage(),-1!=e&&$Support.handleApiData(n.values),this.Util.bindUtilEvents(),$Support.Util.calculateContentHeight(),ZSIQWindowView.isChatWithCall()&&$("#showsiqconv").show();var r=-1!=(($Support.EmbedObj.homepage_configs||{}).conversation_mode||[]).indexOf("call");!ZSIQConversationForm.isOldFormView()||$Support.getConversationData()||r||$("#showsiqconv").hide()},showOfflineUI:function(){$Support.Util.isPreview()&&($Support.contentdiv="",ZSIQConversationManager.resetConvDb()),$UI.updateOfflineUI(),$Support.isFloat()||this.Util.showOfflineBanner()},initiateConversationDB:function(e){var t="",i=$Support.EmbedObj,o=$Support.LSDB.getFromSession("ZLD"+$Support.EmbedObj.livelsid+"lastview"),n=$Support.getCookieValue("ZLD"+i.livelsid)||{};!$.isEmptyObject(n)&&$Support.updateCommonKeys(n);var a=n.ongoingchats||{};t=a[o]||{},!e&&$Support.processChatCookie(a,"connected",o),!$.isEmptyObject(t)&&(t.status="connected");var r=$Support.getWaitingCookie()||{};!$.isEmptyObject(r)&&$Support.updateCommonKeys(r);var s=r.ongoingchats||{};!e&&$Support.processChatCookie(s,"waiting",o),s[o]&&((t=s[o]).status="waiting");var p=$Support.getTriggerCookie();if(p){var d=p.isbottrigger;e||d?$Support.Util.handleBotTriggers(p.message,!0,o):$Support.Util.handleChatTrigger(p,!0,o),$Support.handleCallbackForchatContinue(ZSIQConversationManager.getChatWinObjById(p.winid),"Chat triggered")}var c=$Support.getQueueingCookie()||{};!$.isEmptyObject(c)&&$Support.updateCommonKeys(c);var l=c.ongoingchats||{};!e&&$Support.processChatCookie(l,"queueing",o),l[o]&&((t=l[o]).status="queueing");var u=!(p&&p.winid==ZSIQConversationManager.getcurrchatwinChid())&&$Support.isConversationAllowed();$Support.chidmappinglist[t.rcid]=t.cid||t.chid,$.isEmptyObject(t)?$Support.checkAndShowConvView(u):ZSIQConversationManager.init(t,t.status,o),delete ZSIQConversationManager.chidbeforereload,($.isEmptyObject(a)&&$.isEmptyObject(s)&&$.isEmptyObject(p)&&$.isEmptyObject(l)||e)&&(ZSIQConversationManager.populateInitialScreen(),ZSIQConversationForm.checkAndGetFormTranscript()),$Support.getQueuePositions(l)},processChatCookie:function(e,t,i){for(var o in e)if(e.hasOwnProperty(o)&&o!==i){var n=e[o];$Support.chidmappinglist[n.rcid]=n.cid||n.chid,ZSIQConversationManager.init(n,t,i)}},checkAndShowConvView:function(e){if(e)$Support.container.find("#showsiqconv").click();else{var t=$Support.getRecentLiveChatid();t&&$Support.Util.showMessageAreaUI("convmsg","",$("
").attr("chid",t))}},handleFieldVisibility:function(e,t){var i=$Support.EmbedObj,n=[];if(i.status&&e&&e.online?n=e.online.split(","):!i.status&&e&&e.offline&&(n=e.offline.split(",")),t&&0!=t.length)try{$.each(t,function(e,t){t.index=e;var i=t.name;if(n.length,/^_default./.test(i)){var o=i.replace("_default.","");0<=["name","email","phone"].indexOf(o)&&-1==n.indexOf(o)&&n.push(o)}})}catch(e){}if(n.length){i.eprops.isname[0]=!1,i.eprops.isemail[0]=!1,i.eprops.isphoneno[0]=!1;for(var o=0;o'+e.chatprivacycontent+""),this.Util.setTextareaHeight()}e.title&&(document.title=e.title);var I=e["rating.visible"],w=e["feedback.visible"];if((I||w)&&(I&&($Support.israting=$Support.iscallrating="hide"!=I),w&&($Support.isfeedback=$Support.iscallfeedback="hide"!=w)),e.clogo){var D=$("#complogo"),y=$("#compurl"),O=e.cwebsite;D.length&&D.attr("src",e.clogo),O&&(O=-1==O.indexOf("http")?"http://"+O:O,y.length?y.attr("href",O):D.wrapAll(""))}if($Support.EmbedObj.status&&e.floatwindowonlinetitle&&!o.attender&&!$Support.getTriggerCookie()&&$("#attname").text(e.floatwindowonlinetitle),$Support.EmbedObj.status||!e.floatwindowofflinetitle||o.attender||$("#attname").text(e.floatwindowofflinetitle),$Support.isConversationAllowed()&&e.defaultview&&"Classic"==e.defaultview&&this.openClassicUI(),e.pastchatvisible&&$Support.setPastChatVisibility(e.pastchatvisible),e.callstart&&t){$Support.updateVisitorName();var E=LSResource.getRealValue("av.info.callquesmsg",i.visitorname);$Support.container.find('[info = "question"]').val(E),i.isaudiocall=!0,i.question=E,$Support.updateInputValues(),$Support.startChat()}e.waitime&&($Support.EmbedObj.embedwaitingtime=e.waitime),this.updateValuesFromVisitorInfoCookie(),this.Util.fillApiValues()}try{$Support.isChatExist()||1!=e.initiatecall||$Support.getParent().$zoho.salesiq.call.start()}catch(e){}},handleAPIFunctionalities:function(e,t){var i=$Support.EmbedObj;"chatstart"==e?(i.addinfo.autochat=!0,$Support.getComposer().trigger("keyup")):"chatend"==e&&$Support.isChatExist()&&$Support.quitChat()},updateValuesFromVisitorInfoCookie:function(){var e=$Support.EmbedObj,t=this.getCookieValue("ZLD"+e.livelsid+"VISITORINFO");t&&(e.setVisitorName(t.name),e.setVisitorEmail(t.email),e.setAddinfo(t),t.phone&&e.setVisitorPhone(t.phone),this.removeCookie("ZLD"+e.livelsid+"VISITORINFO"))},getOfflineMessage:function(){var e=$Support.EmbedObj;if(e.bushrstatus)return $UI.getBusinessHrInfo();var t,i=$Support.getParent().$zohosq.values,o=i.offlineBannerText,n=i.engagedBannerText;if(o&&(o=getEncodedText(o)),n&&(n=getEncodedText(n)),$Support.isCallForm){var a=e.call_deptlist,r=(t=$Support.getAggregateStatus(a))[1],s=t[0],p=e.call_messages;return r?(this.engaged=!0,n||(p.agents_engaged?Smiley.replace(getEncodedText(DynamicMsg.fillValues(p.agents_engaged))):LSResource.getRealValue(1c||d.length'+LSResource.getRealValue(n)+"";this.Util.displayInfo(a)}$("#mraction").find("#sharedesktop").addClass("cmn_disable")},handleMeetingJoinCB:function(){this.Util.hideInfo(),$("#mraction").find("#sharedesktop").removeClass("cmn_disable")},shareDesktop:function(e){if(!$(e).hasClass("cmn_disable")){var t=ZSIQConversationManager.getChatWinObjById($EmbedManger.getChatID()),i=t.visitorID+"/integrations/zohoassist/authenticatescreenshare";CommonUtil.handleAjaxReq(i,{},function(){$Support.Util.hideMoreActionDiv()},"",{method:"PUT"}),t.endtimer&&$Support.clearEndTimer(t)}},isHandHeldDevice:function(){return!!$Support.Util.isSIQMobilePreview()||!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10|IEMobile|Opera Mini/i.test(navigator.userAgent)},isMobileWidth:function(){return $Support.getParent().document.body.offsetWidth<555||this.isHandHeldDevice()},setUVID:function(e){$Support.EmbedObj.uvid=e},setTabOwner:function(){if(!$Support.EmbedObj||!$Support.EmbedObj.cookie_optimization){var e="ZLD"+$Support.getParent().$ZSIQUtil.getLiveLSID()+"tabowner";this.LSDB.setCookie(e,LSMessanger.getSid())}},getTabOwner:function(){var e="ZLD"+$Support.getParent().$ZSIQUtil.getLiveLSID()+"tabowner";return this.LSDB.get(e)},incrementUnreadCount:function(e){var t="ZLD"+$Support.EmbedObj.livelsid+"unreadcount",i=this.LSDB.get(t)||{},o=i[e];o?o+=1:o=1,i[e]=o,this.LSDB.set(t,i),$Support.getParent().$ZSIQWidgetUI.updateCount(this.getUnreadCountOnWidget(i))},getUnreadCountOnWidget:function(e){var t=0;for(var i in e)e.hasOwnProperty(i)&&(t+=e[i]);return t},getUnreadCount:function(e){var t="ZLD"+($Support.EmbedObj||{}).livelsid+"unreadcount",i=this.LSDB.get(t)||{};return e?i[e]||"":this.getUnreadCountOnWidget(i)},removeUnreadCookie:function(e){var t="ZLD"+$Support.EmbedObj.livelsid+"unreadcount";if(e){var i=this.LSDB.get(t)||{};delete i[e],Object.keys(i).length?this.LSDB.set(t,i):this.LSDB.remove(t)}else this.LSDB.remove(t)},isAllowFreeLogo:function(){var e=$Support.EmbedObj,t=($Support.EmbedObj||{}).is_white_labelling_enabled;return!$Support.Util.isPreview()&&(!(CommonUtil.isIntegratedPortal()||!Licence.isFreePlan()&&!e.isBetaPortal)||!!t&&e.isWhiteLabelled)},handleDeptBasedStatusChange:function(e,t){for(var i=$Support.EmbedObj.deptlist,o=i.length,n=0;n')},getValuesForDynamicMsg:function(){var e=$Support.EmbedObj,t={};CommonUtil.addIfExists(t,"name",e.visitorname),CommonUtil.addIfExists(t,"email",e.visitoremail),CommonUtil.addIfExists(t,"phone",e.visitorphone),CommonUtil.addIfExists(t,"department",e.department);var i=e.question?e.question:$Support.composer?$.trim($Support.composer.val()):"";return CommonUtil.addIfExists(t,"question",i),CommonUtil.addIfExists(t,"visit_id",e.VISITID),CommonUtil.addIfExists(t,"attendername",e.attendername),CommonUtil.addIfExists(t,"attenderemail",e.attenderemail),t},transferChat:function(e,i){var o=ZSIQConversationManager.getChatWinObjById(i);if($BotImpl.enableComposer("",i),$BotImpl.handleComposerVisibility(!1,i),$Support.areUsersAvailable(o.department)){delete $Support.SIQFieldname,$Support.clearBotQuestionTimeout(),o.contentdiv.find("#conversationoption").remove();var t={};e&&e.msg&&"DEPARTMENT"!=e.msg.type&&e.msg.userid&&(t.operator_id=e.msg.userid),t.department_id=o.department,t.show_alert=!0,o.contentdiv.find(".zsiq_transferdiv").remove(),ZSIQTranscript.removeBotResetter(o),t.queue_support=!0,$Support.Util.checkAndResetComposerAttribute(o),CommonUtil.handleAjaxReq(o.visitorID+"/transfer",t,function(e){var t=e&&e.data||{};$Support.storeHideTransfer(i),o.setBotForwardedTime((new Date).getTime()),$Support.deleteBotCookie(i,o.forwardtime),o.isforwardchat=!0,delete o.isBotChat,$Support.handleBotForwardQueue(o,t)}.bind(o),function(e){var t=JSON.parse(e.responseText)||{};6e3==(t.error&&t.error.code)&&$Support.handleAgentsOfflineForTransfer(i),$Support.getParent().$ZSIQChat.getWidgetData().embedobj.transfer_waiting_banner&&($Support.removeWaitingCookie(o.chatID),$Support.removeWtimeCookie(o.chatID),o.hideBanner())}.bind(o),{method:"PUT"})}else $UI.showOperatorOffline(o)},handleBotForwardQueue:function(e,t){var i=t.average_response_time&&t.current_position;i&&e.contentdiv.find(".usractions").remove().end(),ZSIQTranscript.removeBotResetter(e),i&&"queueing"!=e.chatstatus&&($Support.updateChatCookie(e.chatID),e.handleQueueDisplay({average_response_time:t.average_response_time,position:t.current_position}),e.chatstatus="queueing",ZSIQTranscript.scroll())},deleteBotCookie:function(e,t){var i=$Support.EmbedObj,o=$Support.getCookieValue("ZLD"+i.livelsid),n=(o.ongoingchats||{})[e]||{};n.isforwardchat=!0,t&&(n.forwardtime=t),delete n.botchatprops,delete n.isbotchat,this.LSDB.setCookie("ZLD"+i.livelsid,o,31e4)},storeHandoffConfig:function(e,t){t||(t=$Support.EmbedObj.chatID),$Support.LSDB.storeInSession(t+"_handoffconfig",JSON.stringify(e))},getHandoffConfig:function(e){var t=$Support.LSDB.getFromSession(e+"_handoffconfig");return t?JSON.parse(t):{}},handleTransferMissed:function(e){var t=ZSIQConversationManager.getChatWinObjById(e.parents(".siq_content").attr("data-id"));$UI.removeTransferDiv(e,t),MessageOperation.hideMsgActn(t);var i=t.visitorID+"/missed",o=!1;"offline"==e.attr("purpose")&&(o=!0),$Support.LSDB.remove("ZLD"+t.chatID+"transfer_state"),CommonUtil.handleAjaxReq(i,"",function(e){ZSIQConversationForm.clearSessionStorage(),$Support.handleMissedVisitor(!0,null,!0,o,t)},function(){})},hideTransferOption:function(e){$UI.removeTransferDiv("",ZSIQConversationManager.getChatWinObjById(e)),this.setCookie()},storeHideTransfer:function(e){$Support.LSDB.storeInSession(e+"_handoff",!0);var t=ZSIQConversationManager.getChatWinObjById(e);t.hidetransfer=!0,$UI.populateUserAction(t)},areUsersAvailable:function(e){var t=$Support.EmbedObj;for(var i in t.deptlist)if(t.deptlist[i].ID==e)return!t.deptlist[i].ONLYBOTSAVAILABLE;return!1},getDeptName:function(e){var t=$Support.EmbedObj;for(var i in t.deptlist)if(t.deptlist[i].ID==e)return t.deptlist[i].DNAME||t.deptlist[i].NAME},getBotUser:function(e){try{var t=$Support.EmbedObj;for(var i in e=e||t.department,t.deptlist)if(t.deptlist[i].ID==e)return t.deptlist[i].BOTUSER}catch(e){}return null},isConversationAllowed:function(){if($Support.Util.isPreview())return!1;var e=$Support.EmbedObj;return JSON.parse(e.eprops.isconversation)&&Licence.verify("conversationallowed")},bindScrollForConversationListContainer:function(){$Support.convlistcontainer.scroll(function(e){var t=e.target;if($Support.convongoingchatobj&&0==t.scrollTop&&$Support.removeConversationPopupMessage(),t.scrollHeight-t.scrollTop===t.clientHeight){if($Support.convlistindex<$Support.convlistlimit[$Support.EmbedObj.windowsize])return;$Support.PopulateConversationList(function(e,t){if(e.length){var i="";e.forEach(function(e){i+=$Temp.getConversationHistoryHTML(e)}),t?$Support.convlistcontainer.find("#pastchatconv").prepend($(i)):$Support.convlistcontainer.find("#pastchatconv").append(i),$Support.Util.showConversationListUI()}},$Support.convlistindex+1)}})},PopulateConversationList:function(o,n){var a,r=$Support.getParent().$ZSIQUtil.getAvuid();if(r){var e=this.LSDB.getFromSession($Support.checkAndGetConvStorageID(r)+"_conversation");if(e&&e.length&&!n){o(e);var t=e[0];a=t.endtime,$Support.convlistindex=e.length}var i=$Support.getParent().$ZSIQUtil.getAPIVisitorID();if(n&&0!=n){if(0!=$Support.convlistcontainer.find("#convlistloading").length||$Support.isallconvlistfetched)return;$Support.convlistcontainer.find("#pastchatconv").append($Temp.getConversationListLoadingHTML())}var s=$Support.getApiURl(),p=i?"&cvuid="+encodeURIComponent(i):"";s+="?avuid="+encodeURIComponent(r)+p+"&app_id="+encodeURIComponent($Support.EmbedObj.livelsid),$.ajax({url:s,type:"GET",beforeSend:function(e){e.setRequestHeader("X-SIQ-Channel","website"),CommonUtil.setJWTHeader(e)},xhrFields:{withCredentials:!0},success:function(e){var t=$Support.formatConversationObject(e.data||[]);if($Support.isConversationAllowed()){if(!t.length)return a||($Support.isallconvlistfetched=!0),void($Support.Util.checkToShowConversationEmptyPage()&&$Support.Util.showConversationEmptyPage());n||$Support.LSDB.setCookie(r+"_accesstime",t[0].endtime,864e5);var i=!!a;$Support.updateConversationCache(t,r,i),o(t,i),$Support.convlistindex+=t.length,$Support.checkMediaOnReload&&(delete $Support.checkMediaOnReload,!window.avUIhandler&&$Support.getMediaLibraryJS())}else $Support.Util.isPreview()&&!$Support.container.find("#trigmsg").length&&$Support.Util.checkToShowConversationEmptyPage()&&$Support.Util.showConversationEmptyPage()}.bind(),error:function(e){$Support.resetAvuid(e),CommonUtil.jwtTokenFailCallback(e),CommonUtil.isJWTError(e)&&$Support.resendProps.push({successcb:o,startindex:n,callbackMethod:"conversation"})}})}},formatConversationObject:function(e){for(var t=[],i=!1,o=0;o'+MyDate.getHoursandMin(a,!0,"bclient")+''),!i&&ZSIQTranscript.scroll()}},updateMessageEdit:function(e){var t=$Support.chidmappinglist[e.chid],i=ZSIQConversationManager.getChatWinObjById(t),o=e.msg&&e.msg[0],n=$Support.formatMsgUid(e.msguid),a=(o=o.msg||{}).msg;if(o.time&&MyDate.getHoursandMin(o.time,!0,"bclient"),i.chatdiv){var r=i.chatdiv.find('[msg-id="'+n+'"]'),s="att"==MessageOperation.getMsgObj(n,t).mode;a=ZSIQTranscript.parseTextMessage({isfileatt:s,msg:a,sender:e.sender});var p=r.find('[proptype="msgholder"]');s?$Support.handleFileCommentEdit({msgcontainer:r,new_msg:a}):(p.html(a),p.find('[proptype="edited"]').length||p.append(ZSIQTranscript.getEditMsgHTML())),$Support.updateCommonDOMChangesOnMsgEdit({msgcontainer:r,chatobj:i}),$Support.updateLatestMessageOprInStorage({chatID:t,msguid:n,opr:"is_edited",convongoingchatobj:i.convongoingchatobj,editmsg:s?a:o.msg,edittime:o.time})}},updateMessageDelete:function(e){var t=$Support.chidmappinglist[e.chid],i=ZSIQConversationManager.getChatWinObjById(t),o=$Support.formatMsgUid(e.msguid),n=LSResource.getRealValue("chat.messagedelete");if(i.chatdiv){var a=i.chatdiv.find('[msg-id="'+o+'"]');0'+n+""),a.removeClass("file_msg")),a.find(".msg_action").remove(),$Support.updateCommonDOMChangesOnMsgEdit({msgcontainer:a}),r.find('[proptype="edited"]').remove(),$Support.updateLatestMessageOprInStorage({chatID:t,msguid:o,opr:"deleted",convongoingchatobj:i.convongoingchatobj,editmsg:n,edittime:e.time})}"booking_input_card"==(e.meta||{}).type&&$("#cwoverlay").remove()},updateLatestMessageOprInStorage:function(e){var t=e.chatID,i=$Support.getTranscriptFromSession(t)||[],o=i.length;if(o){for(var n=0;n').addClass("imgcmt").next(),ZSIQTranscript.scroll()),t.html(Smiley.replace($Support.Util.sanitizeMessage(e.new_msg))),t.find('[proptype="edited"]').length||t.append(ZSIQTranscript.getEditMsgHTML())},isVisitorID:function(e){return ZSIQTranscript.isLocalUser(e)||$Support.Util.isAnnonUser(e)},isAbusivemsgwarning:function(e){return"content_moderation_close"==e||"content_moderation_warning"==e||"content_moderation_block"==e},storeConversationChatTranscriptInSession:function(e,t){this.LSDB.storeInSession(e+"_transcript",t)},isConversationUIFocussed:function(){try{return!$Support.isCallTabFocused()&&($Support.convlistcontainer.is(":visible")||$Support.convtranscontainer.is(":visible"))}catch(e){}return!1},formatMessage:function(e,t,i){e=e?e.replace("
","\n"):e,e=t?e:getEscapedText(e);var o=Message.getDisplayContent(e);return i||(o=Markdown.apply(o,!0)),o=Message.format(o)},isConversationTransUIFocussed:function(){try{return $Support.convtranscontainer.is(":visible")}catch(e){}return!1},handleOnGoingchatActionsInConversation:function(e,t){var i=$Support.isConversationAllowed();$Support.toggleBackArrow(),(!$Support.isFAQEnabled()||($FAQ.updateMessageCount(e),"newchat"!==e&&"triggerchat"!==e||!$Support.isFAQUIFocussed()))&&(i||$Support.isCallForm)&&{newchat:function(){$Support.handleNewChatInConversation(t)},pickupchat:function(){$Support.handlePickupChatInConversation("",t)},wtime:function(){$Support.handleWaitingTimeUpdateInConversation(t)},newmsg:function(){$Support.handleNewMessageInConversation(t)},triggerchat:function(){$Support.handleTriggerChatInConversation(t)},typingstatus:function(){$Support.handleAgentTypingStatusInConversation(t)},missedchat:function(){$Support.handleMissedChatInConversation(t)},missedleave:function(){$Support.handleMissedLeaveInConversation(t)},endtimerupdate:function(){$Support.handleChatEndTimerUpdateInConversation(t)},endtimerclear:function(){$Support.handleChatEndTimerClearInConversation(t)},endchat:function(){$Support.handleChatEndInConversation(t)},leavemsg:function(){$Support.handleOfflineChatInConversation(t)},formchat:function(){$Support.handleOnGoingFormInConversation(t)},queueingchat:function(){$Support.handleOnGoingQueueInConversation(t)}}[e]()},handleNewChatInConversation:function(e){try{var t=$Support.EmbedObj,i=LSResource.getRealValue("conversation.pleasewait.toconnect"),o=!1,n=!1;if(-1!=e.chatID){var a=$Support.getRecentMessageOfOngoingChat(e);i=a.recentmsg||e.pmsg,o=a.isattachment,n=a.isvisitormsg}if(e.convongoingchatobj){if(e.convongoingchatobj.attr("id")=="conv"+e.chatID){var r=$Support.formatMessage(i,o,n);return e.convongoingchatobj.find("#convmsg").html(r),e.convongoingchatobj.find("#convwtime").removeClass("dN"),e.convongoingchatobj.trigger("click"),e.convongoingchatobj.removeAttr("status"),void(e.istriggeredchat&&(e.convongoingchatobj.attr("id","conv"+e.chatID),e.convongoingchatobj.attr("visitorid",e.visitorID),e.convongoingchatobj.attr("chid",e.chatID),e.convongoingchatobj.find("#convchatattendername").text(e.attendername?e.attendername:LSResource.getRealValue("conversation.awaitingtoconnect"))))}e.proactive&&(i=t.pmsg),e.convongoingchatobj.find(".siqc_eletype").show().html(c)[0].className="siqc_eletype",e.convongoingchatobj.attr("documentclick","fetchconvtranscript"),e.applyOngoingChatClass("siqc_cntbody",e.convongoingchatobj),e.convongoingchatobj=void 0,i=e.proactive?i:LSResource.getRealValue("conversation.pleasewait.toconnect")}!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show(),!i&&e.proactive&&(i=t.pmsg,$Support.container.find("#showsiqchatui").hide()),r=$Support.formatMessage(i,o,n);var s="";if($Support.isUserLogoEnabled("",e)&&e.attenderimagefkey&&(s=$Support.Util.getPhotoURL(e.attenderimagefkey,e.attender)),!e.convongoingchatobj||e.convongoingchatobj&&!e.istriggeredchat){var p=e.isdirectcall?"showongingcall":"";$Support.convlistcontainer.find("#currchatconv").prepend(e.convongoingchatobj=$($Temp.getchatWaitingUIinConversation({chatID:e.chatID,question:e.question,visitorID:e.visitorID},p)))}e.convongoingchatobj.find("#convchatattendername").text(e.attendername?e.attendername:LSResource.getRealValue("conversation.awaitingtoconnect")),e.convongoingchatobj.find("#convchatattenderimg").attr("src",s),e.attender||e.convongoingchatobj.find(".sqico-user").addClass("convrstn-wait"),e.convongoingchatobj.find("[propval='convmsg']").html(r);var d=e.intime||e.chatintime;e.convongoingchatobj.find("#convwtime").attr("convmtime",d).html(MyDate.timeDifference(d));var c=$Support.getUnreadCount(e.chatID),l="siqc_cntbody";c?(l+=" siqc_newchat",e.convongoingchatobj.find(".siqc_eletype").show().html(c)[0].className=$Support.getConversationIcon(e)):e.convongoingchatobj.find(".siqc_eletype")[0].className=$Support.getConversationIcon(e),$Support.applyOngoingChatClass(l,e.convongoingchatobj);var u=ZSIQConversationManager.isChatUIFocusses(e.winid);$Support.isConversationUIFocussed()||u||!e.proactive||$Support.isFAQUIFocussed()||($Support.isConversationTransUIFocussed()||!u||$Support.convlistcontainer.scrollTop()>e.convongoingchatobj.height())&&($Support.removeConversationPopupMessage(),$Support.container.append($Temp.getPopUpMessageInconversation(e.attendername,i,s,e.chatID)))}catch(e){}},getConversationIcon:function(e){return"siqc_eletype "+(e.isdirectcall||$Support.getOnGoingCallChatID()==e.chatID?"sqico-call":"sqico-chat2")},handleOnGoingFormInConversation:function(e){if(e){var t=e.currwinobj;t.convongoingchatobj||($Support.convlistcontainer.find("#currchatconv").prepend(t.convongoingchatobj=$($Temp.getchatWaitingUIinConversation({chatID:t.winid,question:t.question,visitorID:t.visitorID}))),$Support.convlistcontainer.find("#currchatconv").find("#convwtime").addClass("dN"),t.convongoingchatobj.find("#convchatattendername").text(getDecodedText(ZSIQConversationForm.getOperatorName())),!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show()),t.convongoingchatobj.find(".siqc_eletype")[0].className=$Support.getConversationIcon(t);var i=e&&e.msglist?e.msglist.length:"",o=i?e.msglist[i-1]:e,n=o.meta||{},a=n.input_card?n.input_card.type:n.field_name,r="classic"==e.form_type?e.title||LSResource.getRealValue("ne.operator.question",""):o.msg;r=""==r?ZSIQConversationForm.getDefaultMessage(a.replace("_","")):getEncodedText(r),r=Markdown.apply(r,!0),r=Message.format(r),t.convongoingchatobj.find("#convmsg").html(r)}},handleTriggerChatInConversation:function(e){$Support.convlistcontainer.find("#currchatconv").html(e.convongoingchatobj=$($Temp.getchatWaitingUIinConversation({chatID:e.winid,question:e.question,visitorID:e.visitorID}))),e.convongoingchatobj.find("#convchatattendername").text(e.triggername);var t="",i=$Support.getRecentMessageOfOngoingChat(e),o=i.recentmsg||e.pmsg;i.isattachment&&(o=i.rawmsg),o="string"==typeof o&&o.split("
").join(" "),o=getEscapedText(o),e.attenderimagefkey&&$Support.isUserLogoEnabled("",e)?t=$Support.Util.getPhotoURL(e.attenderimagefkey,e.attender):e.convongoingchatobj.find(".sqico-user").addClass("convrstn-wait"),e.convongoingchatobj.find("#convchatattenderimg").attr("src",t);var n=Markdown.apply(o,!0);e.convongoingchatobj.find("#convmsg").html(n);var a=e.time||(new Date).getTime();e.convongoingchatobj.find("#convwtime").attr("convmtime",a).html(MyDate.timeDifference(a)),$Support.container.find("#showsiqchatui").hide();var r=$Support.getUnreadCount(e.chatID),s="siqc_cntbody";r?(s+=" siqc_newchat",e.convongoingchatobj.find(".siqc_eletype").show().html(r)[0].className="siqc_eletype"):e.convongoingchatobj.find(".siqc_eletype")[0].className=$Support.getConversationIcon(e),$Support.applyOngoingChatClass(s,e.convongoingchatobj),!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show();var p=ZSIQConversationManager.isChatUIFocusses(e.winid)&&!$Support.isCallTabFocused();!$Support.isConversationUIFocussed()&&p||($Support.isConversationTransUIFocussed()||!p||$Support.convlistcontainer.scrollTop()>e.convongoingchatobj.height())&&($Support.removeConversationPopupMessage(),$Support.container.append($Temp.getPopUpMessageInconversation(e.triggername,o,t,e.winid)))},handleWaitingTimeUpdateInConversation:function(e){if(e){var t=ZSIQConversationManager.getChatWinObjById(e.winid);if(-1!=t.chatID&&t.convongoingchatobj){var i=e.wtime;$Support.applyOngoingChatClass("siqc_cntbody siqc_time",t.convongoingchatobj),t.convongoingchatobj.find(".siqc_eletype").html("").show()[0].className="siqc_eletype sqico-timer",t.convongoingchatobj.find("[propval='convwtime']").html(i)}}},handleMissedChatInConversation:function(e){var t=ZSIQConversationManager.getChatWinObjById(e.chid);if(t.convongoingchatobj){$Support.applyOngoingChatClass("siqc_cntbody siqc_chatend",t.convongoingchatobj);var i=LSResource.getRealValue(t.isdirectcall?"conversation.call.missedmsg":"conversation.missedmsg"),o=$Support.EmbedObj;t.convongoingchatobj.find("#convchatattendername").text(o.attendername?o.attendername:LSResource.getRealValue(t.isdirectcall?"conversation.missedcall":"conversation.missedchat")),t.convongoingchatobj.find("[propval='convmsg']").html(i);var n=t.intime||t.chatintime;t.convongoingchatobj.find("[propval='convwtime']").attr("convmtime",n).html(MyDate.timeDifference(n)),t.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype",t.convongoingchatobj.find(".sqico-user").removeClass("convrstn-wait"),t.convongoingchatobj.find(".siqc_usrimg").addClass("sqico-missed"),t.convongoingchatobj.attr("status","end");var a=ZSIQConversationManager.isChatUIFocusses(t.winid)||$("#callresbanner").length;$Support.isConversationUIFocussed()||a||($Support.removeConversationPopupMessage(),$Support.container.append($Temp.getPopUPInfoMessageInConversation(DynamicMsg.fillValues($Support.EmbedObj.missedmessage,!0),t.winid)))}},handleMissedLeaveInConversation:function(e){var t=e.currwinobj;t.convongoingchatobj&&(t.convongoingchatobj[0].className="siqc_cntbody",t.convongoingchatobj.find("[propval='convmsg']").html(getEscapedText(e.msg)))},handlePickupChatInConversation:function(e,t){if(t.convongoingchatobj){$Support.EmbedObj;var i="";$Support.isUserLogoEnabled("",t)&&t.attenderimagefkey&&(i=$Support.Util.getPhotoURL(t.attenderimagefkey,t.attender)),$Support.applyOngoingChatClass("siqc_cntbody",t.convongoingchatobj),e||t.convongoingchatobj.find("[propval='convmsg']").html(getEscapedText(t.question)),t.convongoingchatobj.find("#convchatattendername").text(t.attendername?t.attendername:"Awaiting agent"),t.convongoingchatobj.find("#convchatattenderimg").attr("src",i);var o=t.intime||t.chatintime;t.convongoingchatobj.find("#convwtime").attr("convmtime",o).html(MyDate.timeDifference(o)),t.convongoingchatobj.find(".siqc_eletype")[0].className=$Support.getConversationIcon(t),t.convongoingchatobj.find(".sqico-user").removeClass("convrstn-wait")}},handleOnGoingQueueInConversation:function(e){try{var t=$Support.EmbedObj,i=e.attendername;!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show(),e.convongoingchatobj&&!e.convongoingchatobj.find("#queueinfo").length&&(e.convongoingchatobj.remove(),delete e.convongoingchatobj);var o="",n=t.clogo_key&&"0"!=t.clogo_key.split("_")[0];!e.attender&&JSON.parse(t.eprops.iclogo)&&n?o=$Support.Util.getUserImageWithNPS(t.clogo):$Support.isUserLogoEnabled("",e)&&e.attenderimagefkey&&(o=$Support.Util.getPhotoURL(e.attenderimagefkey,e.attender)),e.convongoingchatobj||$Support.convlistcontainer.find("#currchatconv").prepend(e.convongoingchatobj=$($Temp.getchatQueueingUIinConversation({chatID:e.chatID,visitorID:e.visitorID}))),e.convongoingchatobj.find("#convchatattendername").text(i||$Support.getDeptName(e.department)),e.convongoingchatobj.find("#convchatattenderimg").attr("src",o),e.convongoingchatobj.find("[propval='convmsg']").html("You are in Queue no. 8 - 2:45 mins")}catch(e){}},handleNewMessageInConversation:function(e){var t=ZSIQConversationManager.getChatWinObjById(e.chid),i=t.convongoingchatobj;if(i||$Support.getOnGoingCallChatID()){var o=e.filename,n=e.content;o||(o=e.msg,"object"==typeof e.msg&&(o=getEncodedText(e.msg.fName),n=e.msg.content),e.meta&&"resource-share"==e.meta.subtype&&(o=getEncodedText(e.meta.display_card.articlename))),o=e.iscannedarticle?e.cardheader:o;var a=$Support.Util.isAnnonUser(e.sender),r=Message.getDisplayContent(o),s=$Support.Util.getFileClassType(n);a||s||(r=Markdown.apply(r,!0)),r=Message.format(r),r=s?''+getEncodedText(r)+"":r;var p="siqc_cntbody";i&&i.find("[propval='convmsg']").html(r);var d=$Support.getUnreadCount(t.chatID);if(d){p+=" siqc_newchat",i&&(i.add("#conv-tab").find(".siqc_eletype").show().html(d)[0].className="siqc_eletype"),$("#conv-tab").addClass("count");var c=ZSIQConversationManager.isChatUIFocusses(t.winid)&&!$Support.isCallTabFocused();if(($Support.isConversationUIFocussed()||!c)&&!Message.isLocalUser(e.sender)&&!$Support.isFAQUIFocussed()){if(!$Support.isConversationUIFocussed()&&!c||!i||$Support.convlistcontainer.scrollTop()>i.height()){$Support.removeConversationPopupMessage();var l="";-1!=e.sender.indexOf(t.attender)&&$Support.isUserLogoEnabled("",t)&&(l=$Support.Util.getPhotoURL(t.attenderimagefkey,t.attender)),$Support.container.append($Temp.getPopUpMessageInconversation(e.dname,r,l,t.chatID))}if(!c){var u=$Support.container.find("#showsiqconv");0==u.find("#siqnoticon").length&&u.prepend("")}}}else i&&(i.find(".siqc_eletype")[0].className=$Support.getConversationIcon(t));i&&$Support.applyOngoingChatClass(p,t.convongoingchatobj)}},removeConversationPopupMessage:function(){$Support.container.find("#convpopupmsg").remove(),$Support.container.find("#convpopupmsg").remove()},handleAgentTypingStatusInConversation:function(e){var t=$Support.chidmappinglist[e.chid],i=ZSIQConversationManager.getChatWinObjById(t);if(i.convongoingchatobj){$Support.EmbedObj;var o=e.msg,n=$Support.getUnreadCount(i.chatID),a="siqc_cntbody";if(o)a+=" siqc_type",i.convongoingchatobj.find("#convmsg").html(LSResource.getRealValue("conversation.agent.typing")),i.convongoingchatobj.find(".siqc_usrimg").addClass("sqico-typing");else{var r=$Support.getRecentMessageOfOngoingChat(i),s=r.recentmsg,p=Message.getDisplayContent(s);r.isvisitormsg||(p=Markdown.apply(p,!0)),p=Message.format(p),p=getEscapedText(p),i.convongoingchatobj.find("#convmsg").html(p),i.convongoingchatobj.find(".siqc_usrimg").removeClass("sqico-typing")}n?(a+=" siqc_newchat",i.convongoingchatobj.find(".siqc_eletype").show().html(n)[0].className="siqc_eletype"):i.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2",$Support.applyOngoingChatClass(a,i.convongoingchatobj)}},handleChatEndTimerUpdateInConversation:function(e){var t=e.currwinobj;if(t.convongoingchatobj){var i=e.isstart,o=LSResource.getRealValue("conversation.endtimer.secs",""+e.timer);$Support.applyOngoingChatClass("siqc_cntbody siqc_goend",t.convongoingchatobj),t.convongoingchatobj.find("#convwtime").html(o).show();var n=LSResource.getRealValue("conversation.chat.goingtoend");t.convongoingchatobj.find("#convmsg").html(n),t.convongoingchatobj.find(".siqc_eletype").html("").show()[0].className="siqc_eletype sqico-alert";var a=ZSIQConversationManager.isChatUIFocusses(t.winid);if(($Support.isConversationUIFocussed()||!a)&&($Support.isConversationTransUIFocussed()||$Support.convlistcontainer.scrollTop()>t.convongoingchatobj.height())){var r=$Support.Util.getPhotoURL(t.attenderimagefkey,t.attender);if(i)$Support.container.append($Temp.getPopUpAlertInconversation(t.attendername,LSResource.getRealValue("conversation.chatsess.goingtoend"),o,r));else{var s=$Support.container.find("#convpopupmsg");0!=s.length&&s.find("#alerttimer").html(o)}if($Support.isConversationTransUIFocussed()||!a){var p=$Support.container.find("#showsiqconv");p.find("#siqnoticon").remove(),p.prepend("")}}}},handleChatEndTimerClearInConversation:function(e){if(e.convongoingchatobj){var t=$Support.getRecentMessageOfOngoingChat(e),i=t.recentmsg,o=Message.getDisplayContent(i);t.isvisitormsg||(o=Markdown.apply(o,!0)),o=Message.format(o);var n="siqc_cntbody";e.convongoingchatobj.find("#convwtime").html(MyDate.timeDifference(e.intime||e.chatintime)),e.convongoingchatobj.find("#convmsg").html(o);var a=$Support.getUnreadCount(e.chatID);a?(n+=" siqc_newchat",e.convongoingchatobj.find(".siqc_eletype").show().html(a)[0].className="siqc_eletype"):e.convongoingchatobj.find(".siqc_eletype")[0].className=$Support.getConversationIcon(e),$Support.container.find("#showsiqconv").find("#siqnoticon").remove(),$Support.applyOngoingChatClass(n,e.convongoingchatobj),$Support.removeConversationPopupMessage()}},handleChatEndInConversation:function(e){var t=e.currwinobj;if(t.convongoingchatobj){var i=$Support.Util.isAnnonUser(e.sender)?"siqc_cntbody":"siqc_cntbody siqc_chatend";$Support.applyOngoingChatClass(i,t.convongoingchatobj);var o=e.currwinobj.isdirectcall,n=LSResource.getRealValue(o?"converation.call.ended":"converation.chat.ended");t.convongoingchatobj.find("[propval='convmsg']").html(n);var a=t.intime||t.chatintime;t.convongoingchatobj.find("[propval='convwtime']").attr("convmtime",a).html(MyDate.timeDifference(a)),t.convongoingchatobj.find(".siqc_eletype").html("").show()[0].className="siqc_eletype",t.convongoingchatobj.attr("status","end"),$Support.removeConversationPopupMessage(),$Support.removeInputWidget(t.contentdiv);var r=ZSIQConversationManager.isChatUIFocusses(t.winid)||$("#callresbanner").length;if(!$Support.isConversationUIFocussed()&&!r){var s=e.msg&&e.msg.opruser&&e.msg.opruser.dname?LSResource.getRealValue(o?"converation.agent.call.ended":"converation.agent.chat.ended",e.msg.opruser.dname):n;$Support.container.append($Temp.getPopUPInfoMessageInConversation(getEncodedText(s),t.winid))}$Support.handleDomainStorage("updatecorsdata","localstorage")}},handleOfflineChatInConversation:function(e){if($Support.isConversationAllowed()){var t=[];t.push(e);var i=$Support.getParent().$ZSIQUtil.getAvuid();$Support.updateConversationCache(t,i,!0);var o=$Temp.getConversationHistoryHTML(e);$Support.convlistcontainer.find("#pastchatconv").prepend(o),!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show()}},handleChatTransferInConversationListView:function(e){if(e.convongoingchatobj){$Support.EmbedObj;var t="";$Support.isUserLogoEnabled("",e)&&e.attenderimagefkey&&(t=$Support.Util.getPhotoURL(e.attenderimagefkey,e.attender)),e.convongoingchatobj.find("#convchatattenderimg").attr("src",t),e.convongoingchatobj.find("#convchatattendername").text(e.attendername)}},getRecentMessageOfOngoingChat:function(e){$Support.EmbedObj;var t=e.question,i=!1,o=!1,n=-1!=e.chatID?e.chatID:e.winid,a=$Support.cachearr[n]||[],r="";if(a.length){var s=a[a.length-1];if(s.msg){if(o=$Support.Util.isAnnonUser(s.sender),"object"!=typeof s.msg)t=s.iscannedarticle?s.cardheader:s.msg;else if("object"==typeof s.msg)if(s.msg.fName){t=s.msg.fName;var p=$Support.Util.getFileClassType(s.msg.content);r=t,t=p?''+getEncodedText(t)+"":t,i=!0}else if("cannedarticle"===s.msg.mode)t=$FAQ.getHeaderMessage(s.msg.msg);else{var d=s.msg.msglist||[],c=d.length;s.msg.form_type&&d&&c&&(t=d[c-1].msg||"",o=!0)}}else s.resourcearticle&&(r=s.meta.display_card.articlename,t=getEncodedText(r))}return{recentmsg:t,isattachment:i,isvisitormsg:o,rawmsg:r}},applyOngoingChatClass:function(e,t){t&&(t[0].className=e)},cacheCurrentChat:function(e){if($Support.isConversationAllowed()){$Support.EmbedObj;var t=[],i={};i.attender=e.attendername,i.attenderid=e.attender,i.attender_imgkey=e.attenderimagefkey,i.question=e.question,i.chid=e.chatID,i.visitorid=e.visitorID,i.endtime=(new Date).getTime(),i.isbotattender=e.isBotChat,i.department=e.department;var o=$Support.cachearr[e.chatID]||[],n=o[o.length-1];n&&(n.iscannedarticle&&(n.msg=n.cardheader),i.lastmsg=JSON.stringify(n)),t.push(i);var a=$Support.getParent().$ZSIQUtil.getAvuid();$Support.updateConversationCache(t,a,!0)}},handleNewsLetter:function(){$Support.Util.isPreview()&&$CWPreview.handleNewsLetter()},getEmbedSize:function(){var e=$Support.getParent().$ZSIQWidget.getEmbedSize();return 1==e?2:e},getEmbedSizeClass:function(){return $Support.isMobileWidth()?"":" zsiq_size"+$Support.getEmbedSize()},removeWidget:function(){try{$Support.getParent().$zoho.salesiq.tracking.off()}catch(e){}var e=$Support.getParent().$ZSIQChatWindow.getChatWindowDiv(),t=$Support.getParent().$ZSIQWidgetUI.getWidgetDiv();e&&e.remove(),t&&t.remove()},handleBotTransferAccept:function(e){var t=ZSIQConversationManager.getChatWinObjById(e);$Support.removeCookie("ZLD"+$Support.EmbedObj.livelsid+"WAITING"),$UI.removeCWaitHandler(),clearTimeout(t.waitTimer),$UI.removeTransferDiv("",t),delete t.waitTimer,delete t.waitingtime,delete t.isBotChat,delete t.botchatprops,$Support.handlePickupChatInConversation(!0,t);var i=$TH.getHeader();$Support.isUserLogoEnabled("",t)&&i.find(".cmplogo").attr("data-chttype","agent"),$UI.populateUserAction(t)},isChatExist:function(){var e=($Support.getCookieValue("ZLD"+$Support.EmbedObj.livelsid)||{}).ongoingchats||{},t=($Support.getWaitingCookie()||{}).ongoingchats||{},i=$Support.getQueueingCookie().ongoingchats||{};return 0",{chid:i}):"";i?$Support.Util.showMessageAreaUI("","",o):$Support.Util.showMessageAreaUI("showsiqchatui"),i&&$Support.Util.calculateTextareaHeight(t),$Support.sendReadCall()}return}$Support.Util.showConversationEmptyPage(e)}else $Support.Util.showConversationListUI(e)},isFAQUIFocussed:function(){try{return"faqview"===$Support.container.attr("cwview")}catch(e){}return!1},handleVTransLang:function(e){var t=$Support.getParent(),i=t.$ZSIQChat.getWidgetData().widgetobj,o=t.$ZSIQWidget.getEmbedObject().pinfo,n=i.privacyconfig||{};n=n.notifygt||{};var a=1==i.isgdprenabled,r=$Support.chidmappinglist[e.chid],s=ZSIQConversationManager.getChatWinObjById(r),p=!1,d=n.url||o.pinfo.gtpolicyurl;if(o&&o.pinfo){var c=o.pinfo;p=JSON.parse(c.isgdprenabled)}if(p){if(a||(2==e.GDPRStatus&&$Support.handleVTransLangStatus(1,e.lang,s),e.GDPRStatus=0),1==JSON.parse(e.GDPRStatus)){var l=d||_GT_ATTRIBUTIONLINK;l=CommonUtil.validateURL(l);var u=$UI.getTranslateBannerHTML(getUnescapedText(s.attendername),d);s.contentdiv.find(".chtcont").after(u),s.contentdiv.find("#gtconsenturl").attr("href",l),$Support.Util.calculateTextareaHeight(s)}else 2==JSON.parse(e.GDPRStatus)&&$UI.appendGTConsentDiv(d,e.lang,s.chatdiv);ZSIQTranscript.scroll()}},handleVTransLangStatus:function(e,t,i){i=i||ZSIQConversationManager.getcurrchatwinobj(),$UI.removeGTConsentDiv();var o=$Support.getAjaxURL("setvtranslang",dext),n=lsnocachefix("json");n.chid=i.chatID,n.visitorid=i.visitorID,n.gdprstatus=e,n.attender=i.attender,n.lang=t,$.ajax({url:o,data:n,type:"POST"})},handleBotSkipOffline:function(e){var t=ZSIQConversationManager.getChatWinObjById(e);clearTimeout(t.waitTimer),delete t.waitingtime,$UI.hideBanner(),this.removeWaitingCookie(t.chatID),t.contentdiv.find(".msgbox textarea").stop(),$UI.updateOfflineUI(!0),$Support.container.addClass("outerwin"),$Support.Util.showOfflineBanner(),t.contentdiv.find(".zsiq_transferdiv").remove()},handleBotTrigger:function(e,t){var i=e.msg,o=i.lsid;if(!o||o==$Support.EmbedObj.livelsid){i.msglist;var n={isbottrigger:!0,attenderdetails:{attender:i.attender},message:i,sendername:i.dname,time:i.time},a=i.departments;a&&(n.departments=a),$Support.setTriggerCookie(n),!t.repopulate&&$Support.getParent().$ZSIQChatWindow.openChatWindow(!0),t.department=1==a.length?a[0]:t.department,t.pmsg=e.msg,!t.repopulate&&$BotImpl.formatAndDisplay(e,t.winid),$Support.Util.updateHeader(e.msg),$Support.Util.updateViewAttribute("msgarea"),$('[data-chttype="agent"]').removeClass("sqico-chat"),$Support.container.find("#showsiqchatui").hide(),$Support.handleOnGoingchatActionsInConversation("triggerchat",t),!$Support.isConversationAllowed()&&$Support.container.find("#showsiqconv").hide(),$("footer").find(".sqico-chat").trigger("click")}},getOrderedDepartmentList:function(){var e=$Support.getApiDepartment(),t=ZSIQWindowView.getDeptList(),i=[];if(!e.length)return t;for(var o in e)for(var n in t){var a=t[n];if(a.NAME==getEncodedText(e[o])){i.push(a);break}}return i=i.length?i:t},getEmbedDepartments:function(){var e=$Support.getOrderedDepartmentList(),t=ZSIQConversationManager.getcurrchatwinobj();if("-1"==$Support.EmbedObj.department&&1==e.length&&-1==t.department&&($Support.EmbedObj.department=e[0].ID,t.department=e[0].ID),$Support.getParent().$ZSIQChat.isAgentSpcificSignatureChat()&&(e=$Support.convertDeptStatus(e)),!t.isbottrigmsg)return e;var i=$Support.getTriggerCookie();if(i&&i.departments){for(var o=i.departments,n=[],a=0;a").attr({chid:$Support.chidmappinglist[e],ssview:"true"}))},closeSSChatView:function(){try{SiqAVRouter.container.mediaUIHandler.closeChatWindow(ZSIQConversationManager.getcurrchatwinobj().RCHID)}catch(e){}},removeSSChatView:function(){$(parent.document.body).find(".siqembed").removeClass("zsiqchatwithss"),$("body").removeClass("ssview")},checkAndRemoveBotattender:function(e){var t=ZSIQConversationManager.getChatWinObjById(e),i=$Support.getBotUser(t.department),o=SUPPORT_REPS[e]||{};i&&"object"==typeof i&&-1!=i.indexOf($Support.EmbedObj.attender)?delete o[LSMessanger.getPrd()+"_"+$Support.getParent().$ZSIQWidget.getEmbedObject().pinfo.soid+"_b"+t.attender]:delete o[LSMessanger.getPrd()+"_"+$Support.getParent().$ZSIQWidget.getEmbedObject().pinfo.soid+"_"+t.attender]},handleReopenWaitingUI:function(e,t){var i=e.val();if($Support.EmbedObj,t&&13!=t||""===$.trim(i))t?e.removeClass("errfield"):e.addClass("errfield");else{e.val("");var o=e.attr("txtarea-id"),n=ZSIQConversationManager.getChatWinObjById(o);if(n.composer.show(),$BotImpl.disableComposer("pending"),n.reopenques=getEscapedText(i),n.showReopenWaitingUI(),n.isReopenMsg=!0,$TH.checkAndShowBotTyping&&$TH.checkAndShowBotTyping(n.department,!0),!LSMessanger.sid)return $Support.updateVisitorName(),$Support.checkAndRegisterWms(),void($Support.reopenobj=n);$Support.Util.hideConversation(),$Support.Util.updateViewAttribute("msgarea"),$Support.reOpenChat(n)}},reOpenChat:function(c){delete $Support.reopenobj;var e={},t=c.visitorID,i=Browser.getInfo()||{};LSMessanger.setNickName($Support.EmbedObj.visitorname);var o=$Support.getParent().$ZSIQUtil.getAPIValues(),n=$Support.getParent().$ZSIQUTS.isTrackingLive();$Support.LSDB.storeInSession(c.chatID+"_isreopenWaiting",!0),e.visitor={user_id:$Support.EmbedObj.vwmsid,avuid:$Support.getParent().$ZSIQUtil.getAvuid(),platform:navigator.platform,color_code:i.color,cookie_enabled:i.cookie,current_page:i.currentpage,java_enabled:i.java,js_version:i.jsversion,screen:i.screen,page_title:i.title,country_code:i.ccode,flash_version:i.flashversion,local_time_zone:i.localtime,referrer:i.referrer},o.waitime&&(e.custom_wait_time=o.waitime),e.visitor.cvuid=$Support.getParent().$ZSIQUtil.getAPIVisitorID(),e.message=c.reopenques,n&&(e.uvid=$EmbedManger.getuvid());var a=t+"/reopen";CommonUtil.handleAjaxReq(a,e,function(e){var t=e.data||{},i=t.chat_status||{},o="chat"==t.queue_type;if($BotImpl.enableComposer(),3!=i.state){var n=t.visitor||{},a=t.attender||{},r=$Support.getParent().$ZSIQUtil.getAvuid(),s=$Support.checkAndGetConvStorageID(r);c.visitorname=n.name,c.visitoremail=n.email,c.visitorphone=n.phone,c.RCHID=t.wms_chat_id,c.chatID=t.chat_id,c.setBotChatStatus&&c.setBotChatStatus(a.is_bot),"pastconv"==c.chatstatus&&delete c.chatstatus,$Support.chidmappinglist[c.RCHID]=c.chatID,c.intime=c.chatintime=t.start_time,"connected"===c.chatstatus||o||$Support.setWaitingCookie(c),MessageOperation.showMsgActn(c),c.composer&&c.composer.removeAttr("disabled"),$Support.convlistcontainer.find("#pastchatconv").find("[chid = "+c.chatID+"]").remove();var p=$Support.LSDB.getFromSession(s+"_conversation"),d=p.map(function(e){return e.chid}).indexOf(t.chat_id);c.isofflinechat&&(d=p.map(function(e){return e.visitorid}).indexOf(t.id)),p.splice(d,1),$Support.LSDB.storeInSession(s+"_conversation",p),c.isofflinechat&&($Support.EmbedObj.setEmbedStatus(!0),-1==$Support.EmbedObj.department&&$Support.handleDeptBasedStatusChange(c.department,!0),c.updateChatInfoinInstanceDom(),$Support.convlistcontainer.find("[visitorid="+c.visitorID+"]").remove(),delete c.isofflinechat),!o&&$Support.handleOnGoingchatActionsInConversation("newchat",c),o&&c.getChatQueuePosition(),c.contentdiv&&c.contentdiv.removeClass("nofdbk"),LSMessanger.joinchat(c.chatID,$Support.EmbedObj.vwmsid,"","",c.visitorID)}else $Support.handleReopenStatusChange(c)}.bind(c),function(){})},handleReopenStatusChange:function(e){var t=$Support.EmbedObj;$Support.removeWaitingCookie(e.chatID),$Support.removeWtimeCookie(e.chatID),clearTimeout(e.waitTimer),(e.chatID=-1)==t.department&&$Support.handleDeptBasedStatusChange(e.department,!1),ZSIQTranscript.removeTyping(!0);var i=!!$Support.getOnlineDeptCount();t.setEmbedStatus(i),clearTimeout(e.bnrtimer),delete e.waitingtime,e.contentdiv.find('[proptype="info_banr"]').remove(),e.hideMaskDiv(),e.chatmaindiv.after(e.chatendmsg=$($Temp.getChatEndHTML(!0))),e.composer.hide(),e.contentdiv.find("div.usrinpt").hide(),e.showBanner(LSResource.getRealValue("ne.offlinerespmsg"),!0),e.convongoingchatobj&&e.convongoingchatobj.find(".siqc_eletype").attr("class","siqc_eletype")},makeJoinChat:function(e,t){var i=($Support.getCookieValue("ZLD"+$Support.EmbedObj.livelsid)||{}).ongoingchats||{};$Support.initiateJoinchat(e,t,i)},initiateJoinchat:function(e,t,i){for(var o in i)if(i.hasOwnProperty(o)){var n=i[o]||{},a=n.cid||n.chid;LSMessanger.joinchat(a,$EmbedManger.getvwmsid(),e,t),-1==$Support.joinedchatkeys.indexOf(a)&&i[o].attender&&$Support.handleCallbackForchatContinue(ZSIQConversationManager.getChatWinObjById(a),"Ongoing")}},removeEndedChatInstanceAndElement:function(){$Support.convlistcontainer&&$Support.convlistcontainer.find("#currchatconv").find('[status="end"]').each(function(){var e=$(this);ZSIQConversationManager.removeFromConvDB(e.attr("chid")),e.remove(),$Support.convlistcontainer.find("#pastchatconv").empty()})},handleWidgetCustomAction:function(e,t){var i=($Support.getParent().$zohosq||{}).clientactions||{};i[e]&&"function"==typeof i[e]&&i[e](t)},pushToJoinChat:function(e){-1==$Support.joinedchatkeys.indexOf(e)&&$Support.joinedchatkeys.push(e)},quitConnetcedChats:function(){var e=$Support.EmbedObj,t=($Support.getCookieValue("ZLD"+e.livelsid)||{}).ongoingchats||{},i=ZSIQConversationManager.getChatWinObjById(Object.keys(t)[0]);!$.isEmptyObject(i)&&$Support.quitChat(i)},getSecLocationAPIObj:function(e){var t={country_code:e.countrycode,latitude:e.latitude,longitude:e.longitude,city:e.city,zip:e.zipcode,state:e.state,country:e.country};return JSON.stringify(t)},formatObjforResourceSharing:function(e){var t=e.meta,i={};i[t.article]=t.title;var o={display_card:{type:"articles",articles:[i],articlename:t.title,articleid:t.article},subtype:"resource-share"};return e.meta=o,e.msg="",e},getDeptObjByID:function(e){var t=$Support.EmbedObj.deptlist;if(t)for(var i in t)if(t[i].ID==e)return t[i]},getUserCountInDept:function(e){var t=$Support.getDeptObjByID(e)||{};return(t=t.USERS||[]).length},setPastChatVisibility:function(e){var t=$Support.EmbedObj.eprops;"show"==e?t.isconversation="true":"hide"==e&&(t.isconversation="false",$Support.removeConvListStorage())},removeConvListStorage:function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();$Support.LSDB.removeSessionStore($Support.checkAndGetConvStorageID(e)+"_conversation")},checkAbusiveChatEndOnWaiting:function(e){if(!$.isEmptyObject(e)){var t=e.chatID;$Support.removeWaitingCookie(t),$Support.removeWtimeCookie(t),e.removeWaitingTimeValues(),e.hideBanner()}},setQueueingChatCookie:function(e){var t=this.EmbedObj;if(t.type&&"embed"!=t.type){var i=$Support.getCookieValue("ZLD"+t.livelsid+"QUEUEINGCHATS")||{},o=i.ongoingchats||{};if(t.embedwaitingtime,i.name=t.visitorname,i.email=t.visitoremail,i.phone=t.visitorphone,i.vwmsid=t.vwmsid,e){var n={vid:e.visitorID,chatintime:e.intime,did:e.department,chid:e.chatID,rcid:e.RCHID,ques:e.question,visitid:e.VISITID,queueposition:e.position,avgresptime:e.avgresponsetime};e.attender&&(n.attender=e.attender),e.isforwardchat&&(n.isforwardchat=!0),o[e.winid||e.chatID]=n,i.ongoingchats=o}var a=31e4'+i+""),setTimeout(function(){$Support.removeCallResponseMessage(),t&&t()},3e3)},removeCallResponseMessage:function(){$("#callresbanner").remove()},handleCallEnd:function(e,t,i){if(clearInterval($Support.banner_calltimer),$Support.removeCallBanner(),e=$Support.chidmappinglist[e],t){this.hideCallView(),$Support.removeCallView();var o=ZSIQConversationManager.getcurrchatwinobj(),n=o.isdirectcall;o.chatID&&!n&&$Support.isConversationAllowed()?(ZSIQConversationManager.resetLastViewd(),$("#currchatconv").find('.siqc_cntbody[chid="'+o.chatID+'"]').trigger("click")):(e||o.chatID)&&$Support.isConversationAllowed()&&$("#showsiqconv").trigger("click"),$Support.removeConversationPopupMessage()}0==i&&$("#showsiqconv").show(),$Support.clearCallParticipants(),$Support.setConvListStatusIcon(e)},handleCallView:function(e,t){if(!t&&!window.avUIhandler)return $Support.handleCallViewCB=function(){$Support.handleCallView(e,t)},void $Support.getMediaLibraryJS();$Support.removeCallView(),window.currentRecorder&&window.currentRecorder.destroy();var i=ZSIQConversationManager.getcurrchatwinobj(),o=i.chatID;if(!$Support.EmbedObj.call_status&&(!o||i.isdirectcall))return $Support.updateInputValues(),SiqAVRouter.container.detailsHandler.populateRecorder(),$Support.showOnGoingCall(t),void $Support.checkAndRegisterWms();if(t)SiqAVRouter.container.audioImpl.startAudioCallAgain(t);else if(e){o&&i.attender||(LSDebugger.pushDebugInfo(i),LSDebugger.postDebugInfo("siqMedia: audio call | visitor start param failed | chat exists: "+$Support.isChatExist(),null,"",!0));var n={chatid:o,mediarequest:!0,mediainvitation:!0,wmsid:$Support.EmbedObj.vwmsid,lsuid:i.attender,lsid:$Support.getParent().$ZSIQWidget.getWidgetObject().lsid,session_id:SiqAVRouter.container.detailsHandler.getSessionID(),type:"audio",mode:"visitor"};SiqAVRouter.container.audioImpl.startAudioCall(n)}else parent.$zoho.salesiq.call.start()},onlyCallConsent:function(e){$("#onlycallconsent").remove(),e||($Support.LSDB.storeInSession(_SCREENNAME+"_gdpr_chatconsent",!0),"do_not_record"!=$Support.EmbedObj.call_recording.type?$Support.contentdiv.append($Temp.getOnlyCallConsent()):$Support.handleCallView())},connectAudioCall:function(e){e.removeAttr("connectAudioCall"),$Support.LSDB.storeInSession($Support.getAvuid()+"_"+$Support.EmbedObj.embedname+"_audio_consent",!0),$Support.handleCallView()},showCallList:function(){$Support.container.find("#showsiqconv").click()},showOnGoingCall:function(e){var t=$("header"),i=$Support.container;$("body").addClass("onlycallview").find("footer").hide(),$Support.isCallForm=!0,!ZSIQWindowView.isOnlyCall()&&$("body").addClass("zsiqcallchat"),t.addClass("siqdc-hdr siqdc-hdr-siz1 nologo"),$("#onlycall_main").show(),$Support.toggleBackArrow(),(e=e||$Support.getOnGoingCallChatID())&&($Support.updateCallProfile(e),ZSIQConversationManager.updateLastviewed(e,{chatid:e})),$Support.Util.updateViewAttribute("msgarea"),ZSIQConversationManager.getcurrchatwinobj().chatID&&(i.find(".siq_content[data-id]").hide(),$Support.isConversationAllowed()&&$Support.isConversationTransUIFocussed()&&$Support.Util.updateViewAttribute("convlist"))},removeCallView:function(){$("#onlycall_main").remove(),$Support.isCallForm=!1},updateCallProfile:function(e){var t=$Support.EmbedObj,i=ZSIQConversationManager.getChatWinObjById(e)||{},o=$Support.isUserLogoEnabled("",i)&&i.attenderimagefkey?$Support.Util.getPhotoURL(i.attenderimagefkey,i.attender):"";!JSON.parse(t.eprops.iclogo)||i&&i.attender&&$Support.getOnGoingCallChatID()||(o=t.clogo),$("header").find(".cmplogo").removeAttr("style"),$Support.Util.updateUserImage(o,i)},toggleBackArrow:function(){var e=$Support.getConversationData()||[];$Support.isConversationAllowed()&&($Support.isChatExist()||e.length||"msgarea"==$Support.container.attr("cwview"))?$("#showsiqconv").show():$.isEmptyObject(ZSIQConversationManager.getcurrchatwinobj())||!$Support.isCallForm||!$("#onlycall_main").is(":visible")||ZSIQConversationManager.getcurrchatwinobj().isdirectcall?$("#showsiqconv").hide():$("#showsiqconv").show()},hideCallView:function(){$("body").removeClass("onlycallview"),$("header").removeClass("siqdc-hdr siqdc-hdr-siz1 nologo"),$("#onlycall_main").hide(),$Support.toggleBackArrow();var e=ZSIQConversationManager.getcurrchatwinobj();e.isdirectcall||$Support.isConversationAllowed()||($Support.container.find('.siq_content[data-id="'+e.chatID+'"]').show(),$("#showsiqconv").hide())},convertCallToChat:function(e){$("#showsiqconv").show(),e.convongoingchatobj?e.convongoingchatobj.attr("documentclick","showchatui"):$Support.handleOnGoingchatActionsInConversation("newchat",e),delete e.isdirectcall,$Support.setCookie(e),$Support.showCallResponseBanner(LSResource.getRealValue("av.convertaschat"))},handleCallMonitorJoin:function(e){var t=e.participants[0];$Support.callParticipants[t.id]=t,$Support.updateCallParticipants(),$Support.updateAttenderTitle(e.chid)},updateAttenderTitle:function(e){$("header").find(".cmplogo .sqico-user:first-child").attr("title",ZSIQConversationManager.getChatWinObjById($Support.chidmappinglist[e]).attendername)},isChatDept:function(e){var t=(e&&ZSIQConversationManager.getChatWinObjById(e)||ZSIQConversationManager.getcurrchatwinobj()).department,i=$Support.EmbedObj.deptlist;for(var o in i)if(i[o].ID==t)return!0;return!1},updateCallParticipants:function(){var e="";for(var t in $Support.callParticipants)if(!$("header").find('[data-oprid="'+t+'"]').length){var i=$Support.callParticipants[t],o="true"==$Support.EmbedObj.eprops.icphoto;e+=''}var n=$("header").find(".cmplogo");!n.hasClass("siqmonitordiv")&&n.addClass("siqmonitordiv"),n.append(e)},handleIMGOnError:function(e){$(e).attr("src","")},clearCallParticipants:function(){$Support.callParticipants={};var e=$("header").find(".cmplogo");e.removeClass("siqmonitordiv").find(".siqcall-partcipnt").remove(),e.find(".sqico-user:first-child").removeAttr("title")},getCallCompanyLogo:function(){return $Support.getParent().$zohosq.values.clogo||(ZSIQWindowView.isHomeClogoEnabled()?$Support.Util.getUserImageWithNPS($Support.EmbedObj.clogo):"")},handleCallMonitorEnd:function(e){var t=e.participants[0].id;delete $Support.callParticipants[t],$("header").find('[data-oprid="'+t+'"]').remove()},handleLeaveVoiceMessage:function(i){$Support.sendOfflineMsg(LSResource.getRealValue("av.info.voicemsgtxt"),"",$Support.EmbedObj.vwmsid,function(e,t){LSDragDrop.pos=0,LSDragDrop.nooffiles=1,LSDragDrop.uploadFile(e,[i],"voice_message",t)},!0)},handleCallButtonStatus:function(e){var t=($Support.EmbedObj.call_status=e)?"av.info.callnow":"av.info.voicemsg";$Support.container.find(".makecall em").text(LSResource.getRealValue(t))},getInsertAfterElem:function(){return 0!=$("#callbanner").length?$("#callbanner"):$Support.container.find("header")},isCallTabFocused:function(){return $("body").hasClass("onlycallview")},handlePredefinedQuesChatInit:function(){if($Support.EmbedObj.chat_without_questionenabled){var e=$Support.EmbedObj.ques_conf,t=e.default_text||LSResource.getRealValue("preformques.defined");if(!e.mandatory&&t){var i=$.Event("keyup",{keyCode:13});$Support.contentdiv.find("#msgarea").val(t).trigger(i)}}},resetAvuid:function(e){var t=e.responseText&&JSON.parse(e.responseText)||{};t.error&&1055==t.error.code&&$Support.getParent().$ZSIQChat.fetchEmbedDetails(!0)},handlePendingCalls:function(){var e=$Support.EmbedObj,t=$Support.getCookieValue("ZLD"+e.livelsid)||{},i={arr_val:t.ongoingchats||{},searchkey:"isdirectcall",searchval:!0},o=CommonUtil.deepSearchObjByID(i);if(o)return $Support.quitChat({department:o.did,visitorID:o.vid,chatID:o.cid,userId:o.vwmsid}),void $Support.updateChatCookie(o.cid);t=$Support.getWaitingCookie(),i.arr_val=t.ongoingchats||{},(o=CommonUtil.deepSearchObjByID(i))&&($Support.missedVisitorAction("","","",{visitorID:o.vid,iscallskip:!0}),$Support.removeWaitingCookie(o.cid))},getAvuid:function(){return $Support.getParent().$ZSIQUtil.getAvuid()},checkAndCloseEmbed:function(e,t){"missed"===e.chatstatus&&("voice_note"===t?(clearTimeout($Support.bannertimeout),e.contentdiv.find('[proptype="info_banr"]').remove(),$Support.bannertimeout=setTimeout(function(){e.showBanner(DynamicMsg.fillValues($Support.EmbedObj.missedrespmsg,"",!0),!0,$Support.Util.closeEmbed,5e3)})):$Support.Util.closeEmbed(e))},checkAndStoreHandoff:function(e,t,i){var o=e.meta||{},n=o.handoff_config||{};n&&(o.hand_off&&(($Support.getDeptObjByID(t.department)||{}).ONLYBOTSAVAILABLE=!1,n.hand_off=o.hand_off),$Support.storeHandoffConfig(n,i))},getBroadCastCookieKey:function(e){return"ZLD"+e+"broadCasted"},postWmsClientLogs:function(e){$Support.EmbedObj.wms_debug_logs&&(LSDebugger.pushDebugInfo("WMS client logs "+WmsLite.getDebugInfo()),LSDebugger.postDebugInfo(e.type+" : Mtype : "+(e.mtype||"")+"| _WMSDOWN : "+_WMSDOWN,null,"",!0))},isBotAvailOnEmbedNBH:function(e){var t=$Support.EmbedObj;return 0<(($Support.getDeptObjByID(ZSIQConversationForm.isOldFormView()?t.offlinedeptid||t.department:(e||{}).department)||{}).BOTUSER||[]).length&&!t.status},checkAndSetWmsHeader:function(e,t){var i=$Support.EmbedObj;if(i.wms_debug_logs&&-1!=t.indexOf("/conversations")){var o=i.vwmsid,n=(WmsLite||{}).rsid;o&&e.setRequestHeader("x-siq-annonid",o),n&&e.setRequestHeader("x-siq-rsid",n)}},handleVisitorQuestionJsApi:function(){var e=$Support.isOnboarding(),t=$Support.getParent().$ZSIQUtil.getAvuid(),i=ZSIQConversationManager.getcurrchatwinobj();!$Support.contentdiv&&(window.$TH||{}).updateHeader&&$TH.updateHeader(i),e&&$Support.LSDB.removeSessionStore(t+"_formcontextinitiated"),-1!==(i||{}).visitorID&&$Support.EmbedObj&&!$Support.isChatExist()&&!$Support.getTriggerCookie()&&(e||ZSIQWindowView.isComponentEnabled("chat"))&&$Support.Util.showMessageAreaUI("showsiqchatui")},getCallDeptID:function(){var e=$Support.getOrderedDepartmentList();return parent.$zohosq._directcall||1==e.length?$Support.EmbedObj.call_department=e[0]&&e[0].ID:$Support.EmbedObj.call_department="-1",$Support.EmbedObj.call_department},isOnboarding:function(){return $Support.getParent().$ZSIQChat.isOnboarding()},handleBlockIPCallback:function(){var e=$Support.getParent();$Support.isOnboarding()&&!e.$ZSIQChat.isPreview()&&e.blockIPCallback()},setMessageFailureTimeOut:function(e,t,i){(ZSIQConversationManager.getChatWinObjById(i).lastMsgId||0)");for(var p in d)d[p]=getEscapedText(d[p]);o.pmsg=d.join("
")+"
"+getEscapedText(o.pmsg);var c=$Support.getTriggerCookie();c.message=o.pmsg,$Support.setTriggerCookie(c,!0)}}else if(this.pmsg&&"BOT_MESSAGE"!=this.pmsg.mode){var u=o.pmsg?o.pmsg.split("
"):[];for(var p in u)u[p]=getEscapedText(u[p]);o.pmsg=u.join("
")}7==$Support.getThemeID()&&s.removeClass("outerwin"),this.contentdiv||(n.contentdiv?(n.contentdiv.replaceWith(this.contentdiv=$($Temp.getChatAreaHTML().replace(/{CONTENTDIV}/g,this.winid).replace(/{TXTAREAID}/g,this.winid))),n.contentdiv.hide()):this.contentdiv=$($Temp.getChatAreaHTML(this).replace(/{CONTENTDIV}/g,this.winid).replace(/{TXTAREAID}/g,this.winid)).insertAfter($Support.getInsertAfterElem()),this.chatdiv=this.contentdiv.find('[proptype="msgdiv"]'),this.chatmaindiv=this.contentdiv.find('[proptype="msgmaindiv"]'),this.composer=this.contentdiv.find('[proptype="msgarea"]'),n.Util.handleResize(this),this.contentdiv=n.container.find("[data-id="+this.winid+"]"),this.checkAndUpdateContentdivView()),!e&&n.chatWindowUICallBk(this.winid);var l=$Support.getBroadcastText();l&&!i?this.showBanner(DynamicMsg.fillValues(l)):t||i||this.showWaitingDialog()},showWaitingDialog:function(){if($Support.getParent().$ZSIQChat.getWidgetData().embedobj.transfer_waiting_banner){if(!this.waitingtime||0'+s.chatprivacycontent+""),this.contentdiv.find(".maskdiv").remove().end().prepend($Temp.getUserEditHTML(t,this).replace(/{T&CBANNER}/g,n)),-1==this.department&&$UI.populateDropDown(),e||($Support.istriggeruseredit=!0,$Support.Util.handleCustomHTML(!0)),$Support.Util.calculateTextareaHeight();var a=$("#edituserdetails");return a.length&&a.find(".siq-input-text-box").first().focus(),void a.find("#newsletter").on("change",function(){$Support.subscribe=$(this).is(":checked")})}!ZSIQConversationForm.checkContextInitiated()&&ZSIQConversationForm.fetchFieldsToEdit(e,i,this)},updateVisitorNameinCW:function(t){var e=getEscapedText(t.name);if(e){var i=$Support.Util.CheckAllDefaultFieldsDisabled()?'':"";this.contentdiv.find('.vismsg div[purpose="name"]').html(e+i)}},populateFeedbackHTML:function(t,e,i){var n=this.contentdiv;n.find(".sqico-edit").remove(),n.find('[proptype="msgopr"]').remove();var s=JSON.parse($Support.EmbedObj.eprops.feedback[0]),o=!(e&&e.hide_rating)&&$Support.israting,a=$Support.isfeedback;if(t||!(s||o||a)||0==o&&0==a)this.emptyFeedback();else{0==a&&(this.isfeedbacksent=!0),n.removeClass("feedback_popup").addClass("feedback_popup");var r=!1===o?$Temp.getFeedbackOnlyHTML().replace(/{FDBKAREAID}/g,this.winid):$Temp.getFeedbackHTML(!a).replace(/{FDBKAREAID}/g,this.winid).replace(/{CHATID}/g,this.winid);n.find(".maskdiv").remove().end(),n.find("#msgdiv").append(r),this.emptyFeedback(o,i),ZSIQTranscript.scroll("",this.chatmaindiv)}},isAudioCallAllowed:function(){return"connected"==this.chatstatus&&!this.isBotChat&&!this.istriggeredchat&&!this.isforwardchat},handleFeedbackBtn:function(){$TH.populateSendBtn(LSResource.getRealValue("ne.submit"),this.winid),$("footer #sqico-send").before(' textarea").focus(),this.composer.attr("disabled","true"),clearTimeout(this.bnrtimer),this.contentdiv.find('[proptype="info_banr"]').remove()},showReopenWaitingUI:function(){ZSIQTranscript.scroll("",this.chatmaindiv);var t={sender:$Support.EmbedObj.vwmsid,dname:$Support.EmbedObj.visitorname,msg:Message.getDisplayContent(getEscapedText(this.reopenques)),isques:!0};delete this.isfeedbacksent,delete this.isratingsent,$BotImpl.formatAndDisplay(t,this.winid),$Support.updateWaitingCookie("",this.winid);var e=$Support.getBotUser(this.department);this.handleWaitingDisplay(null,null,e),this.composer.attr("dockeyup","sendmessage"),$Support.Util.hideFooter(),this.hideMaskDiv()},handleBotTriggers:function(){ZSIQConversationForm.getFormType()==CLASSIC_VIEW&&ZSIQConversationForm.clearSessionStorage(),this.checkPreviouslyInitiatedChat();$Support.EmbedObj,$Support.getParent().$ZSIQUtil.getAPIValues();delete this.waitingtime,delete this.question,$Support.Util.populateTriggerUI(this),$Support.handleBotTrigger({msg:this.pmsg},this),ZSIQConversationForm.checkAndGetFormTranscript(this)},checkPreviouslyInitiatedChat:function(){var t=$Support.EmbedObj.curraddvistid;if(t){var e=ZSIQConversationManager.getChatWinObjById(t).contentdiv;e&&e.remove(),ZSIQConversationManager.removeFromConvDB(t),delete $Support.EmbedObj.curraddvistid,delete $Support.requestRunning_addvist,ZSIQConversationManager.resetLastViewd()}},handleChatTrigger:function(){this.checkPreviouslyInitiatedChat(),delete this.question,delete this.waitingtime,$Support.Util.populateTriggerUI(this),$Support.handleOnGoingchatActionsInConversation("triggerchat",this),!this.convongoingchatobj&&$Support.handleTriggerChatInConversation(this),ZSIQConversationForm.checkAndGetFormTranscript(this),MessageOperation.hideMsgActn(this)},populateFormChatArea:function(){$Support.updateInputValues(this),this.showChatArea(),$Support.LSDB.storeInLocalStorage(this.winid+"ques",this.question),!$Support.isNewHeader()&&$TH.populateSendBtn(LSResource.getRealValue("ne.send"),this.winid);var t=$Support.getParent().$ZSIQUtil.getAPIValues();$Support.handleApiData(t),t.floatwindowfields&&$Support.handleFieldVisibility(t.floatwindowfields),$Support.Util.setMessageClass(),$Support.Util.isPreview()||(MessageOperation.hideMsgActn(this),ZSIQConversationForm.checkContextInitiated()?ZSIQConversationForm.checkAndGetFormTranscript(this):ZSIQConversationForm.fetchConfigurations(this))},setSoundConfig:function(){var t=$Support.LSDB.getFromSession(this.chatID+"_sound");this.soundval=t},isSoundOff:function(){return"-1"==this.soundval},removeWaitingTimeValues:function(){clearTimeout(this.waitTimer),delete this.istriggeredchat,delete this.proactive,delete this.waitingtime,delete this.waitTimer,$Support.LSDB.removeSessionStore(this.chatID+"_isreopenWaiting")},handleMultiTrigger:function(){var t=$Support,e=(t.container,t.EmbedObj,this.contentdiv&&this.contentdiv.find(".siq-user-message")),i=$Support.getParent().$ZSIQUtil.getAPIValues();if(0!=e.length&&-1===this.chatID&&this.istrigmsg&&i.mtrigger){var n=e.html();if(n){var s=n.split("
");for(var o in s)s[o]=getEscapedText(s[o]);this.pmsg=s.join("
")+"
"+getEscapedText(this.pmsg);var a=$Support.getTriggerCookie();a.message=this.pmsg,$Support.setTriggerCookie(a,!0),e.html(this.pmsg)}}},getChatQueuePosition:function(){var t=this.visitorID+"/position";CommonUtil.handleAjaxGetReq(t,function(t){var e=t.data||{};this.handleQueueDisplay(e)}.bind(this),function(t){var e=JSON.parse(t.responseText)||{},i=e.error&&e.error.code;if(6162==i||6161==i){var n={};n[this.chatID]={visitorID:this.visitorID},$Support.rejoinchats(n)}}.bind(this))},handleQueueDisplay:function(t){clearTimeout(this.waitTimer),delete this.waitingtime,delete this.waitTimer,this.clearQueuetimer(),t.chid=this.chatID,t.average_response_time=this.calculatAvgWaitingTime(t.average_response_time);var e=$Temp.getQueueBannerHTML(t);this.position=t.position,this.avgresponsetime=this.currentqueuetime=t.average_response_time*t.position,this.contentdiv&&!this.contentdiv.find("#queuetime").length&&(this.hideBanner(),this.contentdiv.prepend(this.queuebanner=$(e))),this.appendQueueHandOffHtml(t),$Support.handleOnGoingchatActionsInConversation("queueingchat",this),this.updateQueueTimer(),$Support.setQueueingChatCookie(this)},appendQueueHandOffHtml:function(t){var e=$Temp.getQueueHandOffHtml(t);this.chatdiv.find("#leavemsgonqueue").length||this.chatdiv.append(e)},updateQueueTimer:function(){if(this.queuebanner){var t=CommonUtil.convertMstoMinAndSec(this.currentqueuetime);this.queuebanner.find("#queuepos").text(LSResource.getRealValue("chatqueue.queueno",""+this.position)),this.queuebanner.find("#queuetime").text(LSResource.getRealValue("chatqueue.agent.connect",t)),this.convongoingchatobj&&this.convongoingchatobj.find("#queueinfo").text(LSResource.getRealValue("chatqueue.position",this.position+","+t))}this.currentqueuetime-=1e3,this.currentqueuetime<=1e3?this.resetQueueTimer():(this.clearQueuetimer(),this.queueTimer=setTimeout(function(){this.updateQueueTimer()}.bind(this),1e3))},resetQueueTimer:function(){this.clearQueuetimer(),this.hideBanner(function(){this.showBanner(LSResource.getRealValue("chatqueue.infobanner.msg"),!0,function(){this.handleQueueDisplay({average_response_time:this.avgresponsetime,position:this.position})}.bind(this),2e3)}.bind(this))},handleQueuePositionChange:function(t){this.position=t.current_position,this.avgresponsetime=this.currentqueuetime=this.calculatAvgWaitingTime(t.average_response_time)*t.current_position,this.clearQueuetimer(),this.updateQueueTimer(),$Support.setQueueingChatCookie(this)},calculatAvgWaitingTime:function(t){return!t||t<6e4?6e4:t},handleDequeueChat:function(t){var e=!window.parent.BOT_DELAY_CONF||!t.is_auto_accept;this.removeQueueCookie(),e&&(this.convongoingchatobj&&this.convongoingchatobj.remove(),delete this.convongoingchatobj,delete this.chatstatus,$Support.handleOnGoingchatActionsInConversation("newchat",this),$Support.setWaitingCookie(this),$Support.updateWaitingCookie("",this.chatID)),this.hideQueueBanner(),e&&this.handleWaitingDisplay()},handleLeavemsgforQueue:function(){this.removeQueueCookie(),this.hideQueueBanner(),$Support.handleOnGoingchatActionsInConversation("missedchat",{chid:this.chatID}),$Support.handleMissed("CWTOUT","2",!0,this)},hideQueueBanner:function(){this.hideBanner(),this.chatdiv.find("#leavemsgonqueue").remove()},removeQueueFromConvList:function(){this.convongoingchatobj&&(this.convongoingchatobj.find('[proptype="queuetitle"]').remove(),this.convongoingchatobj.find('[propval="siqduration"]').removeClass("dn"))},removeQueueCookie:function(){this.clearQueuetimer(),$Support.removeQueueingCookie(this.chatID),this.removeQueueFromConvList()},handleQueueingCookie:function(){var t=$Support.EmbedObj;$Support.checkAndRegisterWms(),LSMessanger.setNickName(t.visitorname),$UI.setHeader(),$UI.setBody(!0),$UI.setFooter(),!ZSIQConversationForm.isOldFormView()&&ZSIQConversationForm.checkContextInitiated()||this.showChatArea("","",!0),DynamicMsg.setValues($Support.getValuesForDynamicMsg()),this.chatstatus="queueing",this.chatID&&this.updateTranscriptFromSession(),this.checkAndUpdateContentdivView()},clearQueuetimer:function(){clearTimeout(this.queueTimer),delete this.queueTimer,"queueing"==this.chatstatus&&delete this.chatstatus},setBotChatStatus:function(t){""+t=="true"?this.isBotChat=!0:(this.isBotChat=!1,$BotImpl.enableComposer())},handleDelayEndAction:function(t){clearTimeout(this.endactiondelay),this.endactiondelay=setTimeout(function(){$Support.handleEndActionInCoversation(t)}.bind(t),1e3*t.endactiondelay)},setBotForwardedTime:function(t){this.forwardtime=t,this.chatmaindiv&&this.chatmaindiv.removeClass("bot_chat")},renderBotDelayinfo:function(t){$BotImpl.disableComposer("","",this.chatID);var e=(t||{}).meta||{};"random"!=e.info_type?this.handleSequenceDelayinfo(e):this.handleRandomDelayinfo(e)},handleRandomDelayinfo:function(t){this.setDelayInfo(t.info[Math.floor(Math.random()*t.info.length)])},handleSequenceDelayinfo:function(t){this.delayinfoindex=1,this.setDelayInfo(t.info[0]),this.delayInfoTimeOut(t)},delayInfoTimeOut:function(t){var e=t.info.length,i=t.delay/e*1e3;setTimeout(function(){this.setDelayInfo(t.info[this.delayinfoindex]),this.delayinfoindex++,this.delayinfoindex==e||this.delayinfoindex>e||this.delayInfoTimeOut(t)}.bind(this),i)},setDelayInfo:function(t){if(t){var e=this.contentdiv.find("#typgstatus");e.text(t+"..."),e.prop("title",t+"..."),$("#msgbox_main").find(".flogo").hide()}},clearDelayInfo:function(){var t=this.contentdiv.find("#typgstatus");t.text(""),t.prop("title",""),$("#msgbox_main").find(".flogo").show()}},{init:function(t,e,i){if(t.isdirectcall){var n=t.cid||t.chid;return"connected"==e&&$Support.updateChatCookie(n),"waiting"==e&&$Support.removeWaitingCookie(n),ZSIQConversationManager.populateInitialScreen(),void ZSIQConversationForm.checkAndGetFormTranscript()}var s=new h(t);t.proactive&&($Support.isCallForm=!1),r[s.winid]=s,ZSIQConversationManager.chidbeforereload=i;var o={connected:"populateChatArea",startchat:"updateValAndStartChat",waiting:"handleWaitingCookie",trigger:"handletrigger",pastconv:"getConversationChatTranscript",bottrigger:"handleBotTriggers",chattrigger:"handleChatTrigger",formview:"populateFormChatArea",bottrigger:"handleBotTriggers",queueing:"handleQueueingCookie"},a=o[e];$Support.getParent().$ZSIQChat.getWidgetData().embedobj.transfer_waiting_banner&&(t.isBotChat||t.isforwardchat)&&(a=o.waiting),a&&s[a](),$Support.contentdiv=""},resetLastViewd:function(){n=-1},resetConvDb:function(){r={}},populateInitialScreen:function(){$Support.EmbedObj.status?$UI.init():$Support.showOfflineUI()},getChatWinObjById:function(t){return r[t]||{}},getVisitorId:function(t){return(r[t]||{}).visitorID},getConvDB:function(){return r},removeFromConvDB:function(t){delete r[t],n==t&&(n=-1)},getcurrchatwinobj:function(){return r[n]||{}},getcurrchatwinChid:function(){return(r[n]||{}).winid||-1},updateLastviewed:function(t,e){if(!$Support.isFAQUIFocussed()&&(n=t,$Support.LSDB.storeInSession("ZLD"+$Support.EmbedObj.livelsid+"lastview",t),(!e||-1!=e.chatid||!e.chatendmsg)&&$Support.Util.hideFooter(),!$Support.isFAQEnabled()&&!$Support.isNewHeader())){var i=$Support.container.find("footer");i.show(),i.find("#sqico-send").show()}},isChatUIFocusses:function(t){return this.getcurrchatwinChid()==t},getConnectedCount:function(){Object.keys(r).length;var t=0;for(var e in r)r.hasOwnProperty(e)&&-1!=r[e].chatID&&"pastconv"!=r[e].chatstatus&&t++;return t}}}();var MessageOperation=function(){var d=function(e,t){e=$Support.formatMsgUid(e);for(var a=$Support.cachearr[t]||$Support.LSDB.getFromSession(t+"_transcript"),r=a&&a.length,s=0;s=e[0].scrollHeight?"scrollbottom":"";!r||"pastconv"==a.chatstatus&&"scrolltop"==r||"connected"==a.chatstatus&&"scrollbottom"==r||o({type:r,target:e,chatobj:a})}},editMessage:function(e){var t=e.parents('[data-field="message"]'),a=ZSIQConversationManager.getcurrchatwinobj(),r=t.attr("msg-id"),s=p(d(r,a.chatID));a.chatdiv.find('[proptype="msgeditor"]').remove();var i=(s.msg||s.question||"").replace(//gi,"\n");a.chatdiv.append($Temp.getVisitorEditMsgHTML({chid:a.chatID,msg:i,msguid:r,iattach:0'+getEncodedText(n)+"";i.append(s)}}}},appendConsentDiv:function(e,t){var n,o=e?"$Support.getMissedUserConsent":"$Support.getUserConsent",i=t.chatdiv||$("#msgdiv");t.composer||$Support.getComposer(),n='
'+(getEscapedText($Support.EmbedObj.creditcardbanner_content)||LSResource.getRealValue("ne.agent.cardmask"))+''+LSResource.getRealValue("common.yes")+''+LSResource.getRealValue("common.no")+"
",0==$(" #creditcardconsent ").length&&i.append(n)},appendChatConsentDiv:function(e,t,n,o){if(o){this.removeTransferDiv("",o);var i=o.chatdiv||$("msgdiv"),a=LSResource.getRealValue("common.gdpr.agent.chatconsent2");n&&(a=""+a+"");var s=$Support.EmbedObj.chatconsentmsg||LSResource.getRealValue("common.gdpr.agent.chatconsent1")+" "+a+" "+LSResource.getRealValue("common.gdpr.agent.chatconsent3"),r=LSResource.getRealValue("common.gdpr.agent.accept"),c=LSResource.getRealValue("common.gdpr.agent.decline"),d=$Support.getParent().$ZSIQUtil.getAPIValues(),u=o.winid;if(d.textbannerobj&&d.textbannerobj.online){var p=d.textbannerobj.online;if(s=p.description&&0!=p.description.trim().length?p.description:s,r=p.acceptbutton&&0!=p.acceptbutton.trim().length?p.acceptbutton:r,c=p.declinebutton&&0!=p.declinebutton.trim().length?p.declinebutton:c,p.policytextandlink){var l=p.policytextandlink,f=l.text&&0!=l.text.trim().length?l.text:"",g=l.link&&0!=l.link.trim().length&&$Support.getParent().$ZSIQUtil.isValidURL(l.link)?l.link:"";s=$Support.getParent().$ZSIQUtil.hyperLinksSubString(s,f,g)}}chatconsenthtml='
'+s+'
'+r+"'+c+"
",0==i.find(" #chatconsentdiv ").length&&i.append(chatconsenthtml),$BotImpl.disableComposer("pending")}},removeTransferDiv:function(e,t){var n=(t=t||{}).contentdiv&&t.contentdiv.find(".zsiq_transferdiv");n.fadeOut("slow",function(){n.remove(),e&&"missed"==t.botchatprops.status&&"Continue with Bot"==e[0].innerHTML&&(t.botchatprops.status="connected",$Support.setCookie(t))})},removeConsentDiv:function(){var e=$("#creditcardconsent");e.fadeOut("slow",function(){e.remove()})},removeChatConsentDiv:function(){$("#chatconsentdiv").remove()},removeOfflineConsentDiv:function(){var e=$("#offlineconsent");e.fadeOut("slow",function(){e.remove(),$Support.Util.setTextareaHeight()})},appendGTConsentDiv:function(e,t,n){n=n||$("msgdiv"),e=-1==(e=e||_GT_ATTRIBUTIONLINK).indexOf("http")?"http://"+e:e;var o=" "+LSResource.getRealValue("helplink.learnmore")+"",i=LSResource.getRealValue("common.gdpr.agent.translateinfo")+o,a=LSResource.getRealValue("common.gdpr.agent.accept"),s=LSResource.getRealValue("common.gdpr.agent.decline");gtconsenthtml='
'+i+'
'+a+"'+s+"
",0==$(" #gtconsentdiv ").length&&(n.append(gtconsenthtml),n.find("#gtconsenturl").attr("href",e))},removeGTConsentDiv:function(){var e=$("#gtconsentdiv");e.fadeOut("slow",function(){e.remove()})},showTransferMissed:function(e){e.contentdiv.find(".zsiq_transferdiv").remove();var t='
'+LSResource.getRealValue("ne.agent.transfermissed")+'
'+LSResource.getRealValue("ne.chatwindow.continuewithbot")+''+LSResource.getRealValue("settings.embed.offline")+"
";(e.chatdiv||$("#msgdiv")).append(t);var n=e.chatmaindiv||document.getElementById("msgmaindiv");n.scrollHeight-n.scrollTop==n.clientHeight||n.scrollHeight";(e.chatdiv||$("#msgdiv")).append(t);var n=e.chatmaindiv||$("#msgmaindiv");n.scrollHeight-n.scrollTop==n.clientHeight||n.scrollHeight
':"'}};var _ZLDReq=function(){};_ZLDReq.samples="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_ZLDReq.getC=function(e,s){var t=e.charCodeAt(s);if(255>18)),a.push(_ZLDReq.samples.charAt(t>>12&63)),a.push(_ZLDReq.samples.charAt(t>>6&63)),a.push(_ZLDReq.samples.charAt(63&t));switch(e.length-r){case 1:t=_ZLDReq.getC(e,s)<<16,a.push(_ZLDReq.samples.charAt(t>>18)+_ZLDReq.samples.charAt(t>>12&63)+"==");break;case 2:t=_ZLDReq.getC(e,s)<<16|_ZLDReq.getC(e,s+1)<<8,a.push(_ZLDReq.samples.charAt(t>>18)+_ZLDReq.samples.charAt(t>>12&63)+_ZLDReq.samples.charAt(t>>6&63)+"=")}return a.join("")};$Support.Util={jsdownloadtimer:-1,ispostloaddone:!1,isbotconversation:!1,handleTextClear:function(e,t){e.parent().find('input[type="text"]').val("")},minimizeEmbed:function(){$("body").hasClass("ssview")?$Support.closeSSChatView():$Support.getParent().$ZSIQChatWindow.minimizeChatWindow()},handleMinimizeinBannerTimeout:function(){ZSIQConversationForm.clearSessionStorage(),ZSIQConversationForm.isOldFormView()?ZSIQConversationManager.getConnectedCount()||$Support.Util.minimizeEmbed():$Support.Util.closeEmbed(),$Support.convongoingchatobj&&$Support.convongoingchatobj.remove()},maximizeEmbed:function(){this.postMessage("newEmaximize",{width:"371",height:"460"})},closeEmbed:function(e,t){if(e=e||{},ZSIQConversationManager.getConnectedCount()){e.callquitstatus=!1,e.chatID=-1;var i=$Support.joinedchatkeys,n=i.indexOf(e.winid),a=e.contentdiv;return-1!=n&&i.splice(n,1),e.presender="",a&&(a.find('[proptype="action_icons"]').removeClass("show_send"),a.find("div.usrinpt").hide()),void(e.chatmaindiv&&e.chatmaindiv.after(e.chatendmsg=$($Temp.getChatEndHTML(!0))))}$Support.getParent().$ZSIQChatWindow.closeChatWindow(!0),$Support.enableTextarea(),$Support.contentdiv=null;var o=$Support.EmbedObj;$Support.callquitstatus=!1,o.setVisitorID(-1),o.setChatID(-1),$BotImpl.resetDisableComposerTimer(),o.setVisitID(-1),$Support.joinedchatkeys=[],Message.presender="",$Support.init($Support.getParent().$ZSIQWidget.getEmbedObject()),$Support.getParent().$ZSIQChatWindow.constructIframe(!0)},setThemeInFloat:function(e){this.postMessage("settheme",e)},triggerAdditionalFileDownload:function(){var e=$Support.Util;e.ispostloaddone||(clearTimeout(e.jsdownloadtimer),e.downloadAdditionalFiles())},downloadAdditionalFiles:function(){if(!$Support.Util.ispostloaddone){var e=$Support.getParent(),t=e.$ZSIQWidget.getEmbedObject(),i=e.$ZSIQChat.getWidgetData().commondata,n=i.schema+"://"+t.embedserverurl,a=e.$zohosq.nonce,o=document.querySelectorAll("head");if(0==o.length&&((o=[])[0]=document.createElement("head"),document.insertBefore(document.body,o[0])),t.ucomp){var r=document.createElement("script"),s="/salesiq/js/embedpostload_AzTWQmRAmJ_gC5tjq1nQtOK-Bq_63D4SRw02ElThh8KBg6dIAoH8YpiVjw21k33a_.js",d=i.jsstaticserver+s;i.isCDNEnabled&&(d=i.jscdnstaticserver+s);var p=e.$ZSIQChatWindow.splitJSHashgetSRIVal(s);r.src=d,a&&r.setAttribute("nonce",a);var c=e.$ZSIQUtil.setIntegrityAttr;p&&(r=c(r,p)),o[0].appendChild(r);var l="/salesiq/styles/embedpostload_dBPALmBrUUQx6UQCqhrHRAnXKYuzd7kbohP_9_u1_ja8OvzFI6FxFQsa_RYQV65s_.css",u=$Support.getParent().$ZSIQWidget.getWidgetObject().cssstaticserver+l;i.isCDNEnabled&&(u=$Support.getParent().$ZSIQWidget.getWidgetObject().csscdnstaticserver+l);var g=document.createElement("link"),m=e.$ZSIQChatWindow.splitJSHashgetSRIVal(l);g.type="text/css",g.rel="stylesheet",g.href=u,a&&g.setAttribute("nonce",a),m&&(g=c(g,m)),o[0].appendChild(g)}else{for(var h=["/js/embed/new/chatwindow/jquery.ztooltip.js","/js/cw/lsdragdrop.js","/js/cw/pasteimage.js","/js/cw/validator.js","/js/cw/clickoutside.js"],v=0;v'+Smiley.replace(c)+"";m.find("#attabtme").replaceWith(v),m.find("#siqconvchaticon").remove();j=$Support.getParent().$ZSIQUtil.getAPIValues();var S=JSON.parse(r.eprops.iclogo)?r.clogo:"";j.clogo&&(S=j.clogo);var f=o.attenderimagefkey,b=$Support.isUserLogoEnabled("",o)&&f?$Support.Util.getPhotoURL(f,o.attender):"",C=o.istrigmsg&&!o.isBotChat&&!f;S=(S=l&&!C?b:S)||!o.isBotChat&&!o.isBotattendedchat?S:ZSIQTranscript.getImageURL({sender:o.attender}),h.find(".cmplogo").removeAttr("style"),$Support.Util.updateUserImage(S,o),h.find(".cmplogo"),$Support.Util.updateHeaderBotType("",o),$Support.isUserLogoEnabled("",o)&&h.find(".cmplogo").attr("data-chttype","agent");var w=h.find('[prop="clogo"]'),I=l?"sqico-user":"sqico-chat";w.removeClass("sqico-chat sqico-user wincustom_bg").addClass(I),h.removeClass("nologo category siq-usr conv_headview siqdc-hdr");var y=$("#complogo").parent();y.removeClass("sqico-faqico sqico-faqdept resource-hdr"),S||(ZSIQWindowView.isOnlyCall()?h.addClass("nologo"):y.addClass("sqico-clogo"),(o.proactive||o.istrigmsg)&&h.addClass("siq-usr")&&m.find("#complogo").attr("src",""),w.addClass("wincustom_bg")),(o.proactive||o.istrigmsg||-1==o.chatID)&&y.addClass("sqico-user"),o.attendername&&!o.isBotChat&&h.addClass("conv_headview"),$Support.Util.reSetHeaderClass();var U=$Support.container.find("#showsiqconv");U.find("#siqnoticon").hide(),$Support.isConversationAllowed()&&$Support.isShowConversationArrow(o)&&U.show();var E=i&&i.attr("ssview");if(E||!$.isEmptyObject(o)&&-1==ZSIQConversationManager.getcurrchatwinChid()){$Support.container.removeClass("outerwin");var _=o.contentdiv;_?_.show():$Support.Util.populateTriggerUI(o);var q=ZSIQConversationManager.getcurrchatwinobj();E&&a!=q.winid&&q.contentdiv&&q.contentdiv.hide(),$Support.contentdiv&&$Support.contentdiv.hide(),-1!=o.chatID&&($Support.Util.hideFooter(),o.composer.focus()),ZSIQConversationManager.updateLastviewed(o.winid,{chatid:o.chatID,chatendmsg:o.chatendmsg})}else $Support.contentdiv&&$.isEmptyObject(ZSIQConversationManager.getcurrchatwinobj())&&($Support.container.addClass("outerwin"),$Support.contentdiv.show(),$Support.isCallForm||$Support.container.find("footer").show());$Support.removeConversationPopupMessage(),$Support.applyOngoingChatClass("siqc_cntbody",o.convongoingchatobj);var O=$Support.getUnreadCount(o.chatID),T=o.chatmaindiv;if(O&&!$.isEmptyObject(o)){$Support.removeUnreadCookie(o.chatID),$Support.getParent().$ZSIQWidgetUI.removeUnreadCount();var k=U.find(".siqc_prochtcls");0!=k.length&&k.remove(),T.length&&Message.scroll(T[0]),o.composer.focus()}var x=SUPPORT_REPS[o.chatID]||{};Object.keys(x).length;if(o.convongoingchatobj){var Q="siqc_eletype";if(-1!=o.chatID||o.istrigmsg||ZSIQConversationForm.checkContextInitiated()){var Z="";try{Z=SiqAVRouter.container.detailsHandler.getCallType(o.RCHID)}catch(e){}"screen_share_smart"===Z||"screen_view_smart"===Z?Q+=" sqico-screenshare":Q=$Support.getConversationIcon(o)}o.convongoingchatobj.find(".siqc_eletype").html("")[0].className=Q}t&&o.composer.val(t),$Support.isFAQEnabled()&&$Support.Util.handleFooterDivisionSel($("#conv-tab")),$Support.Util.handleResize(o);try{D=ZSIQConversationManager.getChatWinObjById(o.chatID).RCHID;SiqAVRouter.container.detailsHandler.triggerIconCheck(D)}catch(e){}}}else{var j=$Support.getParent().$ZSIQUtil.getAPIValues();$Support.container.find('[proptype="contentdiv"]').hide(),$Support.contentdiv=$($Temp.getBodyHTML()).insertAfter($Support.getInsertAfterElem()),$Support.composer=$Support.contentdiv.find("#msgarea"),-1==ZSIQWindowView.getDepartment()&&$UI.populateDropDown(),$TH.updateFooter(),!o.question&&j.question&&($Support.composer.text(j.question),$Support.toggleSendButton($Support.composer)),ZSIQConversationForm.isOldFormView()&&($Support.EmbedObj.has_dynamic_custom_fields&&($Support.isstartchatevent=!0),$Support.handleApiData(j)),$Support.container.addClass("outerwin"),$Support.contentdiv.show(),ZSIQConversationManager.resetLastViewd(),!$Support.isConversationAllowed()||i&&i.attr("isemtypage")||$Support.isStatusChange||($Support.removeEndedChatInstanceAndElement(),"faqchtnow"!=e&&"restartchat"!=e&&$Support.container.find("#showsiqconv").click()),delete $Support.isStatusChange,$Support.Util.showMessageAreaUI(e);try{var D=ZSIQConversationManager.getChatWinObjById(o.chatID).RCHID;SiqAVRouter.container.detailsHandler.triggerIconCheck(D)}catch(e){}}}},toggleAudioCallIcon:function(e,t){},showConversationListUI:function(){var e=ZSIQConversationManager.getcurrchatwinobj();ZSIQConversationManager.resetLastViewd(),$Support.container.find("footer").show();var t=$Support.convlistcontainer.find("#convwtime");0!=t.length&&t.html(MyDate.timeDifference(t.attr("convmtime"))),$Support.convlistcontainer.find("#pastchatconv").find("[convmtime]").each(function(){var e=$(this),t=e.attr("convmtime");t&&e.html(MyDate.timeDifference(t))}),!$.isEmptyObject(e)&&0"),S.find("#siqnoticon").show(),S.show(),$Support.Util.reSetHeaderClass();try{var C=ZSIQConversationManager.getChatWinObjById(n.chatID).RCHID;SiqAVRouter.container.detailsHandler.triggerIconCheck(C)}catch(e){}},showSiqChatUI:function(e){var t=$Support.EmbedObj,i=e&&$Support.isfeedback&&e.isfeedbacksent,n=e&&$Support.israting&&e.isratingsent,a=e&&!$Support.isfeedback&&!e.israting;e&&!$.isEmptyObject(e)?e.contentdiv.hide():$Support.contentdiv&&$Support.contentdiv.hide();var o=$Support.isChatExist(),r=$Support.container.find("#showsiqchatui");$Support.isFAQEnabled()||$Support.container.find("footer").hide(),t.allow_multiplechat&&(!o||o&&_WMSACK)&&!t.curraddvistid&&!ZSIQConversationForm.checkContextInitiated()?r.show():o||!(i||n||a||!e.lchid||$.isEmptyObject(e)||-1==e.lchid)||e.proactive||$Support.getTriggerCookie()||ZSIQConversationForm.checkContextInitiated()||r.show(),$Support.Util.checkAndHideCallIcon(),$Support.removeConversationPopupMessage(),$Support.Util.calculateContentHeight()},checkAndHideCallIcon:function(){$Support.getOnGoingCallChatID()?$Support.container.find("#showsiqchatui").find(".sqico-call").hide():$Support.container.find("#showsiqchatui").find(".sqico-call").show()},isAnnonUser:function(e){try{if(-1!=e.indexOf("$"))return!0}catch(e){}return!1},getFileClassType:function(e){var t="";return e?t=-1!=e.indexOf("image")?"sqico-camera":-1!=e.indexOf("audio")?"sqico-audio":-1!=e.indexOf("video")?"sqico-video":"sqico-file-min":t},hexToRGBA:function(e,t){return e+=4==e.length?e.slice(1,4):"","rgba("+parseInt(e.slice(1,3),16)+", "+parseInt(e.slice(3,5),16)+", "+parseInt(e.slice(5,7),16)+", "+(t||1)+")"},handleCompanyLogo:function(e){var t=$("#complogo"),i=$("header");t.on("load",function(){t.parent().removeClass("sqico-clogo"),i.removeClass("nologo")}),t.on("error",function(){var e=ZSIQConversationManager.getcurrchatwinobj();$("#blur_userbg").hide().parent().removeClass("hide_fontico"),ZSIQWindowView.isOnlyCall()&&("convchat"==$Support.container.attr("cwview")?i.removeClass("siq-usr nologo"):i.addClass("nologo"),t.parent().addClass("sqico-clogo")),t.attr("src")&&(t.attr("src",""),$Support.Util.isBotTranscript(e)?t.parents(".cmplogo").addClass("siq_botimg"):t.parent().addClass("sqico-clogo"))})},lastMessageTemplate:function(e){if(e){var t=$Support.getParent().$ZSIQChat.getWidgetData().embedobj.ratingOverrideDisabled?"cur-non":"";return'
'+($Support.EmbedObj.ratingcomplete||LSResource.getRealValue("ne.rating.message")+"
"+LSResource.getRealValue("ne.rating.fbmessage"))+"
"+(e?'
'+{sad:"😞",neutral:"😐",happy:"😄"}[e]+'
'+$Temp.getStarHTML()+"
":"")+"
"}},showChatFeedback:function(e){e.addClass("sel")},handleFeedbackSubmit:function(e){var t=e.contentdiv.find('[proptype = "feedback_res"]');if(0==t.length){var i=e.chatdiv;ZSIQTranscript.updateTranscript({html:this.lastMessageTemplate(e.rating)},e.winid),ZSIQTranscript.setMessageClass();var n=i.find(".fd_lastmsg");n.hasClass("single_msg")&&n.find('[purpose="name"]').text(e.attendername),Message.scroll(e.chatmaindiv[0]);var a=t.find(".rating");a.find(".sel").removeClass("sel"),a.find("span:nth-child("+(6-e.rating)+")").addClass("sel")}else t.removeClass("sel").find('[data-prop="rating"]').text(e.rating)},setMessageClass:function(e){var a=$Support.container.find(".ziq_msg:not(.siq_widget)");a.each(function(e){var t=$(this);t.removeClass("single_msg lst_msg");var i=$(a[e-1]),n=$(a[e+1]);!n.length&&!i.length||!n.length&&t.hasClass("agntmsg")&&i.hasClass("vismsg")||!n.length&&t.hasClass("vismsg")&&i.hasClass("agntmsg")||t.hasClass("agntmsg")&&n.hasClass("vismsg")&&i.hasClass("vismsg")||t.hasClass("vismsg")&&n.hasClass("agntmsg")&&(i.hasClass("agntmsg")||!i.length)?t.addClass("single_msg"):(!n.length||t.hasClass("agntmsg")&&n.hasClass("vismsg")||t.hasClass("vismsg")&&n.hasClass("agntmsg"))&&t.addClass("lst_msg")})},getTextColor:function(e){var t=this.getRGB(e);return 186<.299*t[0]+.587*t[1]+.114*t[2]?{text_color:"#444",icon_color:"#ccc"}:{text_color:"#fff"}},getRGB:function(e){return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)]},isDarkTheme:function(e,t,i){return Math.sqrt(e*e*.299+t*t*.587+i*i*.114)<=100},calculateTextareaHeight:function(e){if($Support.container&&!$Support.container.hasClass("outerwin")){var t=!$.isEmptyObject(e),i=$Support.container,n=t?e.contentdiv.find(".msgarea"):i.find(".msgarea");if(n.length){n.removeAttr("style");var a=t?e.contentdiv:i.find(".content"),o=n[0].scrollHeight+2,r=140<(o=o<70?70:o)?{height:"140px",overflow:"auto"}:{height:o+"px",overflow:"hidden"};if(n.css(r),!$Support.isNewHeader()){var s=$("#consentbannerdiv").length?$("#consentbannerdiv").height()+10:0,d=a.height()-a.find(".txtarewrap").height();a.find(".chtcont").css({height:d-s+"px"}),i.find(".dragmask").css({height:d+"px"})}}}},calculateContentHeight:function(e){if($Support.container&&!$Support.isNewHeader()){var t=$Support.container,i=2*parseInt(t.css("border-left-width")),n=t.outerHeight()-(t.find("header").outerHeight()+t.find("footer").outerHeight()+i);t.find(".siq_content").css({height:n}),t.find('[ctype="hstrycntnt"]').css({height:n})}},getImagePreviewHTML:function(e){var t=e.user_photo||CommonUtil.getStaticURL("/salesiq/images/user/user_160-160_89i0BdyGeZWJcYU7BVOlHitGPiIOeem87Occ-XrlTQwajKLc6sOwms6LE8a-wgrH_.png");return'

'+getEncodedText(e.user)+'

'+getEncodedText(e.comment)+"
"+(e.durl?''+e.size+'':"")+'
'},showImagePreview:function(e){var t=e.parents('[data-field="message"]'),i=t.hasClass("vismsg"),n=t.find(".siq-attach-image").attr("src");if(n){var a=t.find("code").text(),o=t.find(".fdload").attr("href"),r=i?"":$Support.container.find("header img").attr("src"),s=$Support.EmbedObj,d=$("#attname").text();i&&(d=ZSIQTranscript.isInValidVisitorName(s.visitorname)?LSResource.getRealValue("common.you"):s.visitorname);var p={url:n,comment:a,durl:o,user:d,user_photo:r,size:t.find("[data-filesize]").attr("data-filesize")},c=this.getImagePreviewHTML(p);$(window.parent.document).find("body").append(c),$Support.getParent().$ZSIQUtil.bindEventsForImgPreview()}},handleUpdateBTN:function(e){var t=$("#continue_btn"),i="true"==t.attr("data_isupdate"),n=i?"ne.update":"common.continue";e&&(n=i?"common.updating":"common.continuing"),t.text(LSResource.getRealValue(n))},handleAccordian:function(n){var a=$('[data-type="accordian-item"]').hide();$('[data-type="accordian-header"]').click(function(){var e=$(this),t=a.filter(":visible"),i=e.prev();if($('[data-type="accordian-header"]').find(".sqico-uarrow").removeClass("sqico-uarrow"),t.animate({height:"toggle",opacity:"toggle"},"500"),$("#faqdiv").find(".expand").removeClass("expand"),t[0]!=i[0])return"function"==typeof n&&n(e),e.find(".sqico-darrow").addClass("sqico-uarrow"),i.animate({height:"toggle",opacity:"toggle"},"500"),!1})},handleOnlineStatus:function(e,t){var i=$Support,n=i.EmbedObj,a=i.contentdiv,o=$Support.isCallForm?$Support.isCallOnline():$Support.isOnlineChat();ZSIQConversationForm.checkContextInitiated()&&ZSIQConversationManager.getcurrchatwinobj().contentdiv&&(a=ZSIQConversationManager.getcurrchatwinobj().contentdiv),a||($UI.init(e),a=i.contentdiv),t&&!o&&$UI.showBanner(LSResource.getRealValue("ne.onlinemsg"),!0,null);var r=a.find("#msgarea");r.attr("dockeyup","textarea").val(null!=n.question?n.question:$("#msgarea").val()).parents(".msgbox").removeClass("posrel");var s=LSResource.getRealValue("ne.message.hitenter");t&&(s=LSResource.getRealValue("ne.message.choose")),$Support.getJSAPIMessageHint&&(s=$Support.getJSAPIMessageHint()||s),r.attr("dockeydown","textarea").attr("placeholder",s),$Support.isFAQEnabled()||$("footer").find(".floatrg").remove().end().append($Temp.getSendBtnHTML(LSResource.getRealValue("common.startchat"))),""!=r.val()&&$("footer").find("em#sqico-send").attr("documentclick","textarea"),i.Util.setTextareaHeight();var d=$Support.getParent().$ZSIQWidget.getWidgetObject();d.status=!0,d.onlysticker=!0,$Support.getParent().$ZSIQWidgetUI.drawWidget(d)},updateViewAttribute:function(e){$Support.isBotChat||$Support.isBotattendedchat;$("body").find('[prop="header"]').find(".cmplogo").attr("data-chttype","conv"),$Support.container.attr("cwview",e),"2"===$Support.container.attr("themeid")&&$("body").attr("cwview",e)},getFAQLabel:function(){return $Support.isFAQEnabled()&&$Support.EmbedObj.faqaccess&&($Support.EmbedObj.faqaccess[1].label||LSResource.getRealValue("faq.header.title"))},getChatConsentStatus:function(){var e=$Support.getParent().$ZSIQChat.getWidgetData().widgetobj,t=$Support.EmbedObj.pprops,i=$Support.LSDB.getFromSession(_SCREENNAME+"_gdpr_chatconsent");return!(!(1==e.isgdprenabled)||!JSON.parse(t.isgdprenabled)||1!=JSON.parse(t.chatprivacyconfig)||i)},getConversationSelect:function(e){for(var t="",i=e.options,n=e.type,a=0;a'+r+""}return'
'+t+"
"},chooseField:function(e,t){var i=$(t.target).attr("val"),n=$Support.EmbedObj,a=n.chatID;Message.animate(e.parents(".ziq_msg"),!0,function(e){if(e.remove(),-1==n.department||$Support.Util.IsMandatoryFieldsAvailable())return $Support.getComposer().val(i),$Support.EmbedObj.question=i,$Support.disableTextarea(),$UI.showUserEditUI(),void $Support.container.find('[documentclick="updateuserdetails"]').attr("callback","trigger");!$Support.isbottrigmsg||a&&"-1"!=a?Message.send(a,i):($Support.EmbedObj.question=i,ZSIQTranscript.updateTranscript({html:ZSIQTranscript.getTranscript({msg:i,sender:$Support.EmbedObj.vwmsid}),ispopulate:!0}),$Support.handleBotTriggerReply(i))})},getOfflineAPIConsent:function(e){var t=$Support.getParent().$ZSIQUtil.getAPIValues();if(t.textbannerobj&&t.textbannerobj.offline){var i=t.textbannerobj.offline;if(e=i.description&&0!=i.description.trim().length?i.description:e,i.policytextandlink){var n=i.policytextandlink,a=n.text&&0!=n.text.trim().length?n.text:"",o=n.link&&0!=n.link.trim().length&&$Support.getParent().$ZSIQUtil.isValidURL(n.link)?n.link:"";e=$Support.getParent().$ZSIQUtil.hyperLinksSubString(e,a,o)}}return e},getTypingHTML:function(){return'
'},setDStorageIframe:function(){var e=document.createElement("iframe"),t=_SCHEMA+"://"+_EMBEDSERVERURL+"/setdstorage.ls";e.id="dstorageframe",e.src=t,e.style.display="none",$Support.container.append(e)},isDragNotAllowed:function(){return!CommonUtil.isAllowFileSharing()||$Support.waitingtime||!$Support.isChatExist()},updateHeader:function(e){if(e){var t=e.dname||e.attendername;t=getEscapedText(t||"");var i=getEscapedText(e.aboutme||""),n='
'+Smiley.replace(i)+"
";$("#attname").html(t),$("#attabtme").replaceWith(n)}},reSetHeaderClass:function(){$Support.container.find("header").removeClass("min_header").removeAttr("style"),$("#header_style").remove()},checkWindowVisibility:function(){if(parent.$ZSIQUtil.getCookieValue("dragpos")){var e=$(window.parent.document).find("body"),t=e.find(".siqembed"),i=t.offset();(i.left+t.width()>e.width()||i.top+t.height()>e.height())&&(t.css({left:"auto",right:"15px",top:"auto",bottom:"15px"}),parent.$ZSIQUtil.storeCookieVal("dragpos","",!0))}},toggleFreeLogo:function(){var e=$("#msgbox_main").find(".flogo");$("#typgstatus").text()?e.fadeOut(250):e.fadeIn(250)},checkAndAddFreeLogo:function(e){var t=($Support.EmbedObj||{}).is_white_labelling_enabled;($Support.isNewHeader()||t)&&(e.find("#siqfreelogo").remove(),e.append($Temp.getFreeLogoHTML()))},removeHeaderType:function(){$Support.container.find("header").removeAttr("header-type").find(".cmplogo").removeClass("siq_botimg")},updateHeaderBotType:function(e,t){$Support.Util.removeHeaderType(),$Support.Util.isBotTranscript(t)&&$Support.container.find("header").attr("header-type","bot")},isMessageDIVScrolled:function(e){var t=e&&e[0]||$("#msgmaindiv")[0],i=$(t).find(".ziq_msg").last()[0];if(!i||!t)return!1;var n=i.getBoundingClientRect(),a=!1;if($Support.EmbedObj&&$Support.EmbedObj.uxclientconf){var o=t.getBoundingClientRect(),r=$(t).find("#agenttransfer").outerHeight(),s=n.height+r,d=s-o.height;a=01')}}},handleUnReadScroll:function(){var e=$("#unreadarrow"),t=$Support.EmbedObj.uxclientconf;e.length&&($("#unreadarrow").remove(),ZSIQTranscript.scroll(200,"",t),$Support.sendReadCall())},handleMessageDIVScroll:function(){$("#unreadarrow").length&&!$Support.Util.isMessageDIVScrolled()&&$Support.Util.handleUnReadScroll()},checkAndRemoveUnreadDIV:function(){var e=$("#unreadarrow");if(e.length){var t=$("#msgmaindiv"),i=t[0];t.scrollTop()>i.scrollHeight-i.clientHeight-20&&(e.remove(),$Support.sendReadCall())}},isBotTranscript:function(e){var t=(e=e||{}).attender,i=$Support.getBotUser(e.department),n=$Support.container.attr("cwview");if(("msgarea"==n||"convchat"==n)&&t&&i&&-1!=i.indexOf(t))return!0;var a=$Support.isConversationUIFocussed();return a&&$Support.Util.isbotconversation||!a&&e.isBotChat},checkToShowConversationEmptyPage:function(e){var t=$Support.Util.isPreview()?parent.parent:{},i=!e&&$Support.getConversationData(),n=(ZSIQConversationForm.isOldFormView()&&$Support.oldformemptyfield,-1!=(($Support.EmbedObj.homepage_configs||{}).conversation_mode||[]).indexOf("call")),a=$Support.getParent().$ZSIQChatWindow.isChatExist()&&!ZSIQConversationManager.getcurrchatwinobj().isdirectcall,o=t.BOOKINGINTEG_FIELDS||t.BOOKINGINTEG_CARDS;return!(!$Support.isNewHeader()||i||a||!(ZSIQWindowView.isChatWithCall()||ZSIQWindowView.isOnlyCall()||!ZSIQConversationForm.isOldFormView()&&ZSIQWindowView.isChatOnlyEnabled())||!n&&ZSIQConversationForm.isOldFormView()&&!ZSIQWindowView.isOnlyCall()||o)},showConversationEmptyPage:function(e){if(!$Support.convongoingchatobj&&!ZSIQConversationForm.checkContextInitiated()||$Support.Util.isPreview()){$Support.Util.removeFormEmptyBg();ZSIQWindowView.isChatOnlyEnabled();var t=$Support.convlistcontainer;t.append($Temp.conversationEmptyState()),t.addClass("emptybg"),$Support.Util.showConversationListUI();var i=-1!=(($Support.EmbedObj.homepage_configs||{}).conversation_mode||[]).indexOf("call");(i||ZSIQWindowView.isOnlyCall())&&$("body").find("header").addClass("siqdc-hdr").find("#complogo").attr("src",$Support.getCallCompanyLogo()),!$Support.Util.isPreview()&&$("#msgarea").focus(),$("#showsiqchatui").hide(),i&&$("footer").hide()}else{var n=e?"conv-tab"==e.attr("id"):"",a=$Support.getRecentLiveChatid()?"":$("
").attr("chid",$Support.LSDB.getFromSession("ZLD"+$Support.EmbedObj.livelsid+"lastview"));n&&$Support.Util.showMessageAreaUI("","",a)}},handleBlurImage:function(e){if($Support.isNewHeader()){var t=$(e),i=t.parent(),n=i.find("canvas")[0]||i.append('').find("canvas")[0],a=i.height(),o=i.width();n.height=a,n.width=o,n.getContext("2d").drawImage(e,0,0,a,o),$(n).show(),i.addClass("hide_fontico"),t.parents("header").removeClass("nologo")}},handleImgError:function(e){e.src=""},removeFormEmptyBg:function(){var e=$Support.convlistcontainer;e&&(e.find("#emptybg").remove(),e.removeClass("emptybg"),$Support.Util.hideCallView())},hideFooter:function(){$Support.isNewHeader()&&$Support.container.find("footer").hide()},handleAbusiveDetectionMsgObj:function(e,t){var i=e.meta&&e.meta.meta_type,n=e.sender;return!t&&"content_moderation_close"!=i&&"content_moderation_warning"!=i&&"content_moderation_block"!=i||n!=$Support.EmbedObj.vwmsid&&"null"!=n||(e.sender="-1",e.nname=e.dname=LSResource.getRealValue("abusive.msg.sender")),e},sanitizeMessage:function(e){return"string"==typeof e&&$Support.EmbedObj&&$Support.EmbedObj.message_sanitization_enabled?getEscapedText(e):e},checkToShowReopenButton:function(){var e=$Support.EmbedObj;return!!e.isreopenenabled&&(!!e.allow_multiplechat||!ZSIQConversationManager.getConnectedCount())},checkAndHideReopenMaskDiv:function(e){(e.isdirectcall||!$Support.EmbedObj.allow_multiplechat&&ZSIQConversationManager.getConnectedCount())&&(e.hideReopenMaskDiv(),e.chatendmsg.remove(),delete e.chatendmsg)},resetFormFieldValue:function(){var e=$Support.EmbedObj.eprops;e.isname={0:"false",1:{ismandatory:"false"}},e.isemail={0:"false",1:{ismandatory:"false"}},e.isphoneno={0:"false",1:{ismandatory:"false"}}},isShowPrivacyChatConsent:function(){var e=1==$Support.getParent().$ZSIQChat.getWidgetData().widgetobj.isgdprenabled,t=$Support.EmbedObj.pprops,i=$Support.LSDB.getFromSession(_SCREENNAME+"_gdpr_chatconsent");return!(!e||!JSON.parse(t.isgdprenabled)||1!=JSON.parse(t.chatprivacyconfig)||i)},isShowRecordingConsent:function(){return!$Support.LSDB.getFromSession($Support.getAvuid()+"_"+$Support.EmbedObj.embedname+"_audio_consent")&&"do_not_record"!=$Support.EmbedObj.call_recording.type},handleFooterDivisionSel:function(e){$("header").find('[prop="clogo"]').find("span").removeClass("sqico-faqico sqico-faqdept resource-hdr").addClass("sqico-user sqico-clogo"),e.parent().find(".sel").removeClass("sel"),e&&e.addClass("sel").focus()},handleEnterOnFocus:function(e,t,i){["min_iframe","showchatui","showconvlist","showresource","showconversation","showfaq","showonlycallconsent"].includes(i)&&(e.preventDefault(),$Support.isTabEnter=!0,t.trigger("click"))},getAccessibilityAttribute:function(e){var t=e?"focus":"ifocus";return $Support.getParent().$ZSIQWidget.getEmbedObject().accessibility_enabled?$Support.Util.isPreview()?"":'role="button" '+t+' tabindex="0"':""},getFeedbackAndRatingLables:function(e){var t=$Support.EmbedObj.fbandrating_titles,i=getEncodedText(t[{rating:"rating",fbandrating:"feedback_and_rating",feedback:"feedback"}[e]]);return $Support.Util.isPreview()&&(i=getEncodedText($CWPreview.getFeedbackTitle())),(i=Smiley.replace(i))||LSResource.getRealValue({rating:"ne.rating.alone",fbandrating:"ne.rating",feedback:"ne.feedback"}[e])},checkAndResetComposerAttribute:function(e){$Support.validateCharLimit&&(delete $Support.validateCharLimit,e.composer.removeAttr("maxlength"),e.contentdiv&&e.contentdiv.length&&(e.contentdiv.find('[proptype="vislimit"]')[0].innerText=""))}};Gator(document).on("click","[documentclick]",function(s){try{var c=$(this);({sendCallRating:function(){if(!$Support.Util.isPreview()&&($(".sqico-star").removeClass("sel"),c.addClass("sel"),$Support.handleCallResponseMessage(c.attr("data-reaction")),!this.feedbacksent)){var e=SiqAVRouter.chatwinobj;$Support.setRating(c,e)}},sendCallFb:function(){$Support.sendFeedback(c.parent().find("#fdbkarea"),"",!0)},moreaction:function(){$Support.Util.showMoreAction(c,s)},sendmail:function(){$UI.populateSendMail(c,s)},smiley:function(){$UI.populateSmiley(c)},userdetails:function(){var e=c.closest("section [data-id]").attr("data-id"),t=ZSIQConversationManager.getcurrchatwinobj(e);-1!=t.chatID&&(MessageOperation.removeMessagoprPopups(),t.showUserEditUI(!0,!0))},hideuserdetails:function(){ZSIQConversationManager.getcurrchatwinobj().hideUserEditUI(),$Support.hideBotEditUICB(),$Support.checkAndPopulateLastMessage()},reopenchat:function(){var e=c.parent().prev().find("#reopenmsgarea");$Support.handleReopenWaitingUI(e)},hidemaskdiv:function(){ZSIQConversationManager.getcurrchatwinobj().hideReopenMaskDiv()},updateuserdetails:function(){$Support.checkAndUpdateInfo(c)},triggermsg:function(){$Support.startTriggerChat(c)},min_iframe:function(){$Support.Util.minimizeEmbed()},max_iframe:function(){$Support.Util.maximizeEmbed()},close_iframe:function(){$Support.Util.closeEmbed("",c)},closeChat:function(){var e=ZSIQConversationManager.getcurrchatwinobj();avUIhandler.container.detailsHandler.handleEndSession(e.RCHID,function(){var e=ZSIQConversationManager.getcurrchatwinobj();$Support.quitChat(e)})},chatend:function(){MessageOperation.closeMsgActionPopup(),LSDebugger.postDebugInfo("Chat ended by visitor",null,"",!0),ZSIQConversationManager.getcurrchatwinobj().chatdiv.append($Temp.getVisitorDeleteMsgHTML({},"chatend")),$Clickoutside.bindclick(MessageOperation.closeMsgActionPopup,"","","",!0)},triggermail:function(){$Support.sendMail(c)},triggermailconfirm:function(){$Support.sendMailConfirm(c)},updatetranslatecookie:function(){$Support.updateTranslateCookie()},rating:function(){$Support.Util.handleRating(c)},showChatFeedback:function(){$Support.Util.showChatFeedback(c)},resetbotflow:function(){$BotImpl.handleBotflowCommand({chatobj:ZSIQConversationManager.getcurrchatwinobj(),command:c.attr("command")})},toggleaudio:function(){$Support.Util.toggleAudio(c)},captcha:function(){$Support.Util.handleCaptcha()},restartchat:function(){$Support.restartchat()},showreopenchatui:function(){var e=c.closest("section [data-id]").attr("data-id");ZSIQConversationManager.getChatWinObjById(e).reOpenChatUI()},imgupload:function(){PasteImage.uploadImage($Support.container)},imgcancel:function(){$Support.Util.hidePasteUI()},accepturl:function(){$Support.Util.openPushPage(c.attr("url"))},sendmessage:function(){$Support.triggerSendMessage(c)},textarea:function(){$Support.Util.handleStartChat(function(){$Support.startChat(c)},s)},missedleavemsg:function(){$Support.Util.handleStartChat(function(){$Support.missedLeaveMsg(c)},s,"","leavemsg")},leavemessage:function(){$Support.Util.handleStartChat(function(){$Support.handleLeaveMessage()},s)},feedback:function(){$Support.sendFeedback(c)},hideprogress:function(){$UI.hideUploadProgress(c.attr("msgid"))},hidefeedback:function(){var e=c.attr("chatid")||c.closest("section [fdbkarea-id]").attr("fdbkarea-id"),t=ZSIQConversationManager.getChatWinObjById(e);$Support.Util.hideFeedback(t)},openmeeting:function(){$Support.handleMeetingJoinCB()},sharedesktop:function(){$Support.shareDesktop(c)},sharescreen:function(){},resendmsg:function(){var e=c.attr("uniqueid");if(e){var t=$Support.failedMessageObj[e],n=t.data;LSMessanger.sendMessage(t.chid,n.text,"",e,RESEND_MANUAL,void 0,!0)}else LSMessanger.resendMessages(RESEND_MANUAL)},showconvlist:function(){if(window.currentRecorder&&window.currentRecorder.isRecording()&&window.currentRecorder.stopRecorder(),!$Support.isCallTabFocused()||ZSIQConversationManager.getcurrchatwinobj().isdirectcall||$Support.isCallForm){$Support.Util.checkAndHideCallIcon();var e=s.target;if($Support.Util.removeFormEmptyBg(),$("header").hasClass("siqdc-hdr"))$Support.hideCallView();else if($(e).parents("header").hasClass("category"))$FAQ.showFAQUI(c);else if("siqnoticon"!=e.id){var t=s.hasOwnProperty("originalEvent");$Support.Util.handleShowConversation(t)}}else{$Support.hideCallView();try{SiqAVRouter.container.detailsHandler.clearBusyUI(!0,ZSIQConversationManager.getcurrchatwinobj().RCHID)}catch(e){}}},showchatui:function(){var e=c.attr("chid");if(c.hasClass("proactv_chat")&&ZSIQConversationManager.getChatWinObjById(e).isdirectcall)return $Support.removeConversationPopupMessage(),void(!$("header").hasClass("siqdc-hdr")&&$Support.showOnGoingCall(e));var t=$Support.getOnGoingChatIDs()[0];t&&!$Support.isConversationAllowed()&&c.hasClass("sqico-chat")?$Support.showChatUI($('')):("chat"===$(c[0]).attr("btntype")&&$Support.getParent().$ZSIQChat.getWidgetData().embedobj.triggerOnChatnow&&$Support.checkAndHandleTriggerOnRestart("",!0),$Support.showChatUI(c,s))},inichat:function(){$Support.handlePredefinedQuesChatInit()},removealert:function(){$Support.container.find("#alertbanner").remove()},fetchconvtranscript:function(){$Support.fetchConversationTranscript(c,s)},removeconvpopupmsg:function(){$Support.removeConversationPopupMessage()},toggleMadatoryField:function(){$CWPreview.toggleMadatoryField(c)},triggerDeleteEMField:function(){$CWPreview.triggerDeleteEMField(c)},newsletter:function(){$Support.handleNewsLetter()},transferchat:function(){$Support.transferChat("",c.parents(".siq_content").attr("data-id"))},removetransfer:function(){var e=ZSIQConversationManager.getChatWinObjById(c.closest("section [data-id]").attr("data-id"));$UI.removeTransferDiv(c,e),$Support.storeHideTransfer(e.chatID)},transfermissed:function(){$Support.handleTransferMissed(c)},hidetransferoption:function(){$Support.hideTransferOption(),$Support.storeHideTransfer()},audiocall:function(){try{var e=$(s.target),t=$("#onlycall_main"),n=SiqAVRouter.container.detailsHandler;if(window.currentRecorder&&window.currentRecorder.destroy(),MessageOperation.closeMsgActionPopup(),e.hasClass("cmn_disable")||e.hasClass("callagain-txt")&&!n.callAgainAllowed())return;t.length&&($Support.hideCallView(),t.remove(),$Support.EmbedObj.call_status=!0),$Support.handleCallView(!0,c.attr("data-chatid"));var o=ZSIQConversationManager.getcurrchatwinobj(),a=o.chatID,i=SiqAVRouter.container.audioImpl;if("-1"==a)return i.clearOngoingCallDataOnFailure(),void n.hideAudioCall();if($(s.target).hasClass("cmn_disable"))return;a&&o.attender||(LSDebugger.pushDebugInfo(o),LSDebugger.postDebugInfo("siqMedia: audio call | visitor start param failed | chat exists: "+$Support.isChatExist(),null,"",!0));var r={chatid:a,mediarequest:!0,mediainvitation:!0,wmsid:$Support.EmbedObj.vwmsid,lsuid:o.attender,lsid:$Support.getParent().$ZSIQWidget.getWidgetObject().lsid,session_id:n.getSessionID(),type:"audio",mode:"visitor"};i.startAudioCall(r)}catch(e){}},imagepreview:function(){$Support.Util.showImagePreview(c)},showfaq:function(){$FAQ.showFAQUI(c)},faqcategory:function(){$FAQ.showCategory(c),s.stopPropagation()},faqsearch:function(){$FAQ.handleSearch(c)},openmapfromimage:function(){ZMaps.openMapsFromImage(s)},showconversation:function(){$Support.Util.isPreview()||$Support.showConversation(c)},faqpreview:function(){$FAQ.showFAQPreview(c)},resourcepreview:function(){$ZSIQResouces.showResourcePreview(c)},handleresourcedept:function(){$ZSIQResouces.handleResourceDept(c)},showresource:function(){$ZSIQResouces.showResourcesView(c)},extendview:function(){$FAQ.showAllArticlesInCategory(c)},validateConversation:function(){$Support.Util.chooseField(c,s)},unreadscroll:function(){$Support.Util.handleUnReadScroll()},validateConversation:function(){ZSIQConversationForm.validateConversation(c)},getChatUserConsent:function(){var e=c.attr("isproactive");e=e&&JSON.parse(e),$Support.getChatUserConsent(c.attr("type"),c.attr("skipregister"),e,c.attr("winid"))},downloadvcard:function(){ZSIQContactCard.downloadVCard(c)},sharemyscreen:function(){ZSIQMedia.shareMyScreen(c)},handleCta:function(){$Support.handleWidgetCustomAction(c.attr("data-val"),{name:c.attr("name")})},leaveMsgForQueue:function(){ZSIQConversationManager.getChatWinObjById(c.attr("chatid")).handleLeavemsgforQueue()},voicenote:function(){if(!$(s.target).attr("disabled")){var e=ZSIQConversationManager.getcurrchatwinobj().RCHID;window.currentRecorder&&!window.currentRecorder.isVoiceNote()&&window.currentRecorder.destroy(),Recorder().init(!1,e,"",!0)}},showonlycallconsent:function(){$Support.showOnlyCallConsent()},onlycallconsent:function(){$Support.onlyCallConsent("cancel"==c.attr("data-type"))},connectAudioCall:function(){$Support.connectAudioCall(c)},forwardcategory:function(){$ZSIQResouces.forwardCategory(c)},backwardcategory:function(){$ZSIQResouces.backwardCategory(c,!0)},showongingcall:function(){$Support.showOnGoingCall(c.attr("chid"))},scrolltomsg:function(){MessageOperation.navigateRepliedMessage(c)},editmsg:function(){MessageOperation.editMessage(c)},closemsgactionpopup:function(){MessageOperation.closeMsgActionPopup()},closereplypopup:function(){MessageOperation.removeReplymsgdiv()},sendeditmsg:function(){MessageOperation.sendeditmsg(c)},smileyedit:function(){Smiley.showSmileyList("","",c.parents('[proptype="msgeditor"]').find('[proptype="editorarea"]'))},deletemsg:function(){MessageOperation.deleteMessage(c)},senddeletemsg:function(){MessageOperation.senddeletemsg(c)},replymsg:function(){MessageOperation.replyMessage(c)},clearFileInput:function(){c[0].value=""},chatconsent:function(){var e=c.attr("data-url"),t=parseInt(80*screen.width/100),n=parseInt(77*screen.height/100),o=(screen.width-t)/2,a=(screen.height-n)/2;window.open(e,null,"popup,width="+t+",height="+n+",left="+o+",top="+a)}})[c.attr("documentclick")]()}catch(e){}});var isComposing=!1,hasCompositionJustEnded=!1,brow_lang=$Support.getParent().$ZSIQUtil.getBrowserLanguage();Gator(document).on("keydown","[dockeydown]",function(e){var t=$(this),n=t.attr("dockeydown"),o=$Support.Util.getKeyCode(e);if(229==o&&hasCompositionJustEnded)return!1;hasCompositionJustEnded=!1,27==o&&$Clickoutside.handleEscape(e),{textarea:function(){$Support.Util.handleKeyDown(t,o,e)},captcha:function(){13==o&&($Support.addVisitor(),e.preventDefault())},pasteimage:function(){27==o&&($Support.Util.hidePasteUI(),e.preventDefault())},dropdown:function(){$Support.Util.handleDrpdwnEvent(t,o,e)},triggermail:function(){$Support.Util.sendMail(e,t)},removeError:function(){t.removeClass("errfield")},searchfaq:function(){27==o&&t.parent().find(".sqico-close").trigger("click")}}[n]()}).on("compositionstart",function(e){var t=$(e.target);isComposing=!0,t.attr("dockeyup")&&$Support.toggleSendButton(t)}).on("compositionend",function(e){hasCompositionJustEnded=!(isComposing=!1)}).on("compositionupdate",function(e){var t=$(e.target);t.attr("dockeyup")&&$Support.toggleSendButton(t)}),$(document).on("keyup","[dockeyup]",function(e){var t=$Support.Util.getKeyCode(e);if(!isComposing&&!hasCompositionJustEnded||(hasCompositionJustEnded=!1,"13"!=t)){var n=$(this);({textarea:function(){$Support.Util.handleTextareaEnter(n,t,e,function(){$Support.startChat(n)})},sendmessage:function(){$Support.handleSendMessage(n,t,e)},sendeditmsg:function(){$Support.handleSendMessage(n,t,e,function(){MessageOperation.sendeditmsg(n)},function(){MessageOperation.handleEditMessage(n)})},reopenchat:function(){$Support.handleReopenWaitingUI(n,t)},leavemessage:function(){$Support.Util.handleTextareaEnter(n,t,e,function(){$Support.handleLeaveMessage(n)},!0)},triggermsg:function(){$Support.handleTriggerMsg(n,t,e)},missedleavemsg:function(){$Support.Util.handleTextareaEnter(n,t,e,function(){$Support.missedLeaveMsg(n)},!0)},feedback:function(){CallImpl.isCallWithChat?$Support.Util.handleCallFdbEnter(n,t,e):$Support.Util.handleFeedback(n,t,e)},triggermail:function(){$Support.Util.handleSendMail(n,t,e)},handlepasteimage:function(){PasteImage.handlepasteimage(n)},searchfaq:function(){$FAQ.searchFAQ(n,e)},validateConversation:function(){ZSIQConversationForm.validateConversation(n,e)}})[n.attr("dockeyup")]()}}),$(document).mousedown($Support.Util.triggerAdditionalFileDownload),Gator(document).on("blur","[docblur]",function(e){var t=$(this);({email:function(){ZSIQConversationForm.isOldFormView()?$Support.Util.validateFields(t.parent()):$Support.Util.isFormsUI()&&ZSIQConversationForm.checkInputVal(t)},custominput:function(){if(ZSIQConversationForm.isOldFormView())return $Support.Util.validateFields(t.parent()),void $Support.Util.handleInputChange(t.attr("id"),t.val());ZSIQConversationForm.checkInputVal(t)},required:function(){$Support.Util.validateFields(t.parent())},checkInputVal:function(){ZSIQConversationForm.checkInputVal(t)}})[t.attr("docblur")]()}),Gator(document).on("keydown",function(e){var t=$Support.Util.getKeyCode(e);27==t?($Clickoutside.handleEscape(e),CommonUtil.handleEscape(e)):13===t&&$('[btn-type="siq-ok-btn"]').trigger("click")}),Gator(document).on("keyup",function(e){try{"Escape"==e.key&&SiqAVRouter&&SiqAVRouter.container.commonImpl.getActiveCallData()&&SiqAVRouter.container.mediaUIHandler.checkAndSwitchFullScreen(SiqAVRouter.container.commonImpl.getActiveCallData(),e)}catch(e){}var t=$(e.target);t.filter("[data-validate*='required']").length&&(""===$.trim(t.val())?t.next().addClass("req"):t.next().removeClass("req"))}),Gator(document).on("focusin",function(e){KeyHandler.winfocus=!0,$Support.iswindowfocused=!0,Message.stopBlinking()}),Gator(document).on("focusout",function(e){KeyHandler.winfocus=!1,$Support.iswindowfocused=!1});var wheel=void 0!==window.onwheel?"wheel":"mousewheel";function bindDragDropEvents(){CommonUtil.isAllowFileSharing()&&($Support.isNewHeader()&&jQuery.event.addProp?jQuery.event.addProp("dataTransfer"):jQuery.event.props.push("dataTransfer"),$Support.container.on({dragover:function(e){"slider"!==e.srcElement.getAttribute("data-type")&&(e.preventDefault(),$UI.showDragDropUI())},drop:function(e){e.preventDefault();var t=ZSIQConversationManager.getcurrchatwinobj(),n=t.chatID;-1!=n&&n&&"pastconv"!=t.chatstatus&&$Support.Util.handleDropEvent(n,e),$UI.hideDragDrop()},dragleave:function(e){$UI.hideDragDrop()}}))}function handlePaste(){CommonUtil.isAllowPasteImage()&&$("#msgarea").on("paste",function(e){PasteImage.onPaste(e,this),e.stopImmediatePropagation()})}function handleDrag(){if(!$Support.isMobileWidth()){var t=$("header"),n=0,o=0,a=0,i=0;t.on("mousedown.drag",function(e){"INPUT"!==e.target.tagName&&(a=e.pageX,i=e.pageY,t.on("mousemove.drag",function(e){n=e.pageX,o=e.pageY,parent.$ZSIQChatWindow.handleDrag(a-n+"#"+(i-o)),e.stopImmediatePropagation()}),e.preventDefault(),t.on("mouseup.drag",function(e){r(e)}).on("mouseleave.drag",function(e){r(e)}))})}function r(e){parent.$ZSIQChatWindow.cacheChatDivPosition(),t.off("mousemove.drag mouseleave.drag"),e.stopImmediatePropagation()}}Gator(document).on(wheel,"[docwheel]",function(e){var t=$(this);({handlescroll:function(){try{scrollHandler.init(t,e),CommonUtil.debounce(function(){MessageOperation.handleMsgDivScroll(t)},500)()}catch(e){}},removeUnread:function(){$Support.Util.checkAndRemoveUnreadDIV()}})[t.attr("docwheel")]()}),$(window).resize(function(){$Support.Util.handleResize(),$Support.Util.checkWindowVisibility()}),Gator(document).on("keypress","[onenter]",function(e){if("13"==(e.keyCode?e.keyCode:e.which)){var t=$(this),n=t.attr("onenter");$Support.Util.handleEnterOnFocus(e,t,n);var o={updateuserdetails:function(){$Support.checkAndUpdateInfo(t.parents(".editfields").find('[documentclick="updateuserdetails"]'))}};o[n]&&o[n]()}}),KeyHandler={isWindowFocused:function(){return KeyHandler.winfocus}},$(document).on("change","[docchange]",function(e){var t=this;({attachment:function(){ZSIQFileUpload.destroyBotConfig(),ZSIQFileUpload.handleFileUpload(t,e)}})[$(t).attr("docchange")]()}),$(document).on("focus","[docfocus]",function(e){var t=$(this);({inputFocus:function(){t.parent().addClass("sel")}})[t.attr("docfocus")]()}),$(document).on("animationend","[docanimationend]",function(e){var t=$(this),n=t.attr("docanimationend"),o={handleMsgAnimationEnd:function(){t.removeClass("replymsge_anim")}};o[n]&&o[n]()}),Gator(document).on("dblclick","[ondblclick]",function(e){var t=$(this),n=t.attr("ondblclick"),o=$(e.target),a={replymsg:function(){"message"==t.attr("data-field")&&"msgholder"!=o.attr("proptype")&&MessageOperation.replyMessage(t,!0)}};a[n]&&a[n]()}),$(document).on("mouseenter","[dochover]",function(e){var t=$(this),n=t.attr("dochover"),o={setmsgactionpos:function(){MessageOperation.setMsgActnPos(t),e.stopPropagation()}};o[n]&&o[n]()});$ThemeHandler={},$ThemeHandler.theme={updateContainer:function(){$(".siqembed").remove(),$("body").append($Temp.getCloseWindowHTML()).append($Support.container=$($Temp.getContainerHTML())),$UI.focusMinimizeWindow()},updateHeader:function(e){(t=$Support.container.find("header")).length&&t.remove(),$Support.container.prepend($Temp.getHeaderHTML(e)),$Support.toggleBackArrow();var t,o=$Support.getParent();o.$ZSIQChat.getWidgetData().embedobj.isFixedHeaderEnabled?o.$ZSIQWidget.getWidgetObject().isDraggable?handleDrag():(t=$Support.container.find("header")).addClass("nodrag"):handleDrag();$("#zsiq_customcss").remove(),$("body").append(this.getCustomColor()),$Support.Util.handleCompanyLogo(e)},updateInnerHeader:function(e){var t=$Support.container.find("header");$Support.container.removeClass("outerwin"),t.length?this.animateHeader(e):this.updateHeader(e)},updateBody:function(e,t){$Support.container.append($Support.contentdiv=$($Temp.getBodyHTML(e,t))).append($Support.convlistcontainer=$($Temp.getConversationContainerHTML())).append($Support.convtranscontainer=$($Temp.getConversationTranscriptContainerHTML())),$Support.bindScrollForConversationListContainer(),$Support.chatdiv=$("#msgdiv"),$Support.chatmaindiv=$("#msgmaindiv"),$Support.composer=$("#msgarea");var o=$Support.getParent().$zv;o.isChatwindowOpen&&"2"!=ZSIQConversationForm.getFormType()&&($Support.composer.text(o.question),document.querySelector('[btntype="chat"]').click())},updateFooter:function(){$Support.container.find("footer").remove().end().append($Temp.getFooterHTML()),!$Support.isConversationUIFocussed()&&$.isEmptyObject(ZSIQConversationManager.getcurrchatwinobj())||$Support.isFAQEnabled()||$Support.container.find("footer").hide(),$Support.container.find("#showsiqchatui").remove().end().append($Temp.getConversationCreateChatIConHTML()),this.populateSendBtn(),$Support.Util.handleResize(),$Support.Util.isCampaignEnabled()&&($Support.subscribe=!1,$("#newsletter").on("change",function(){$Support.subscribe=$(this).is(":checked")}));var e=$("#chatconsent");$Support.Util.getChatConsentStatus()&&1==e.length&&$("#chatconsent").on("change",function(){1==$(this).is(":checked")?$Support.toggleSendButton($Support.getComposer()):$Support.Util.removeSendClickAction()})},updateDeptDropdown:function(){var e=$("#sqico-drpdwn");if(e.length){e.dropdown({options:$Support.getEmbedDepartments(),purpose:"department",defaultval:LSResource.getRealValue("ne.chosedepartment")});var t=$Support.getParent().$zohosq.nonce;t&&$Support.contentdiv&&$Support.contentdiv.find('[purpose="department"]').next("#dropcontent").find("li").attr("nonce",t)}},animateHeader:function(e){var t=$Support.container.find("header"),o=t.find(".cmplogo");o.removeClass("siq_botimg"),e.attendername&&(t.find("#attname").html(getEscapedText(e.attendername)).attr("title",e.attendername),t.find(".cmpylogo").removeClass("sqico-chat").addClass("sqico-user"));var n=getEscapedText(e.aboutme||""),i=n?"":"noaboutme",r='
'+Smiley.replace(n)+"
";t.find("#attabtme").replaceWith(r),t.removeClass("noaboutme").addClass(i).removeAttr("header-type");var a=$Support.isUserLogoEnabled("",e);if((e.image_fkey||e.userimg)&&a){t.removeClass("nologo");var s=e.image_fkey?$Support.Util.getPhotoURL(e.image_fkey,e.attendername):e.userimg;o.removeAttr("style").find("#complogo").attr("src",$Support.Util.getUserImageWithNPS(s)),!e.isBotChat||t.attr("header-type","bot")}else(e.chid||!a&&e.attendername)&&(t.removeClass("nologo").addClass("nologo"),o.removeAttr("style").find("#complogo").removeAttr("src"),$("#blur_userbg").hide().parent().removeClass("hide_fontico"));a&&e.attendername?o.attr("data-chttype","agent"):o.removeAttr("data-chttype")},showBanner:function(e,t,o,n,i,r){if(0!=e.length){var a=$Support.contentdiv||ZSIQConversationManager.getcurrchatwinobj().contentdiv,s=!1;a.find("#info_banr").length||(s=!0,a.prepend($Temp.getBannerHTML(e,t,i,r)),e=""),$Support.Util.showInfoBanner(e,t,s,o,n)}},hideBanner:function(e,t){var o=$Support.contentdiv||ZSIQConversationManager.getChatWinObjById(t).contentdiv;(o=o||ZSIQConversationManager.getcurrchatwinobj().contentdiv).find("#info_banr").slideUp(500,function(){$(this).remove(),"function"==typeof e&&e()})},showTimerBanner:function(e){clearTimeout($Support.Util.bnrtimer),$Support.contentdiv.append($Temp.getTimerBannerHTML(e))},populateSendMail:function(e){var t=ZSIQConversationManager.getChatWinObjById(e.parents(".siq_content").attr("data-id")),o=this,n=t.contentdiv,i="chatendmail"==e.attr("id")?n.find(".chtlnks"):n.find(".txtarewrap"),r=n.find("#smailbx");r.length||i.before(r=$($Temp.getSendMailHTML()));var a=$Support.EmbedObj.visitoremail||"";r.find("input").val(a),$Clickoutside.bindclick(function(){o.hideUtilityDiv(r)},"smailbx",e.attr("id"))},populateSendMailConfirm:function(e,t){var o=ZSIQConversationManager.getChatWinObjById(t),n=o.contentdiv||$Support.contentdiv,i=this,r=!1,a=n.find(".usrinpt"),s=n.find(".infomsg.chtend");(a=a.length&&-1!=o.chatID?a:s).hasClass("chtend")&&(a.hide(),r=!0);var c=n.find("#consentbannerdiv");"gtranslateconsent"==c.attr("cattr")&&(c.remove(),$Support.Util.calculateTextareaHeight(o),c=n.find("#consentbannerdiv")),c.length||a.before(c=$($Temp.getSendMailConfimHTML(e,t))),$Support.Util.calculateTextareaHeight(o),$Clickoutside.bindclick(function(){i.hideUtilityDiv(c,!0,r,o)}.bind(o),"consentbannerdiv","smailbx")},populateSmiley:function(e){Smiley.showSmileyList()},hideUtilityDiv:function(e,t,o,n){e.animate({bottom:"-60px",opacity:"0"},400,function(){e.remove(),t&&!o&&$Support.Util.calculateTextareaHeight(n),o&&n&&n.contentdiv.find(".infomsg.chtend").show()})},animateUtilityDiv:function(e){e.animate({bottom:"82%",opacity:"1"},400,function(){e.find("input").focus()})},showUserEditUI:function(e,t,o){if(ZSIQConversationForm.isOldFormView()){var n=$Support.contentdiv.find(".editfields");if(n.length&&!n.hasClass("hidemaskanim"))return;$Support.contentdiv.find(".maskdiv").remove().end().prepend($Temp.getUserEditHTML(e)),-1==$Support.EmbedObj.department&&$UI.populateDropDown(),t||$Support.Util.handleCustomHTML(!0),$Support.Util.calculateTextareaHeight();var i=$("#edituserdetails");i.length&&i.find(".siq-input-text-box").first().focus()}else!ZSIQConversationForm.checkContextInitiated()&&ZSIQConversationForm.fetchFieldsToEdit(t,o)},hideUserEditUI:function(){$Support.enableTextarea(),$UI.hideMaskDiv()},hideMaskDiv:function(){var e=$Support.contentdiv.find(".maskdiv").addClass("hidemaskanim");$Support.Util.removeDiv(e),$Support.contentdiv.removeClass("siq_popup")},showCaptcha:function(e){if($Support.contentdiv&&null!=CommonUtil.getCaptcha(e)){var t=$Support.contentdiv,o=$Temp.getCaptchaHTML(e),n=t.find(".maskdiv");n.length?n.html(o):t.prepend('
'+o+"
")}},hideCaptcha:function(){if($Support.contentdiv){var e=$Support.contentdiv.find(".captcha").addClass("hidemaskanim");$Support.Util.removeDiv(e)}},showWaitingDialog:function(){if(!(!$Support.waitingtime||$Support.isBotChat||$Support.proactive&&-1!=$Support.EmbedObj.chatID))return clearTimeout($Support.Util.bnrtimer),{text:function(){$Support.contentdiv.prepend($Temp.getWaitingTextHTML()),$UI.wait_div=$("#wait_div")},video:function(){$(".content").prepend($Temp.getWaitingTextHTML()).animate({top:"auto"},400)}}[$Support.EmbedObj.waitaction]()},populateCWaitHandler:function(){var e=$Support.contentdiv;if($Support.cwaitmsg){var t=e.find("#cwaitmsg");if(t.length)return void t.html($Support.cwaitmsg);e.find("#info_banr").after($Temp.getWaitHandlerHTML())}},removeCWaitHandler:function(){$("#cwaitmsg").remove()},populateVisitorQuestion:function(e,t){var o=ZSIQConversationManager.getChatWinObjById(t),n=$Support.EmbedObj,i=o.visitorname||(ZSIQTranscript.isInValidVisitorName(n.visitorname)?"":n.visitorname),r=o.question,a=o.istrigmsg&&ZSIQConversationForm.checkContextInitiated();if(r||$Support.getTriggerCookie()){var s=n.vwmsid;(o.istrigmsg||o.proactive)&&(i=o.triggername,r=e||o.pmsg,s=o.triggername),r=getEscapedText(r),o.istrigmsg&&!o.isbottrigmsg&&"string"==typeof r&&(r=r.replace(/<br>/g,"
"));var c={sender:s,dname:i,msg:Message.getDisplayContent(r),isques:a?"":o.question,restrict_msgsanitize:!0};$BotImpl.formatAndDisplay(c,t),o.presender=s}},checkAndShowBotTyping:function(e,t){$Support.isBotAvailable(e)&&(t&&$BotImpl.disableComposer(),ZSIQTranscript.showTyping({isautotyping:t}))},getInfoMsgHTML:function(e,t){return $Temp.getInfoHTML(e,t)},populateUserAction:function(e){if(e){var t=e.contentdiv;$Support.EmbedObj;e.setSoundConfig(),t.find(".usractions").remove().end().find(".usrinpt").prepend($Temp.getUserActionsHTML(e));var o=t.find("#mraction li"),n=o.length;n?1===n&&t.find("#moreaction").removeAttr("title").attr({documentclick:o.attr("documentclick"),class:o.attr("class"),title:o.attr("title")}).html(o.children()):t.find("#moreaction").hide(),this.populateSendBtn(LSResource.getRealValue("ne.send"),e.winid),(1!=n||!JSON.parse($Support.EmbedObj.eprops.icsound))&&$Support.Util.handleUnmute(e)}},removeUserActions:function(e){e&&e.contentdiv&&e.contentdiv.find(".usractions").remove().end()},getSoundHTML:function(e,t){var o=$Temp.getSoundHTML(t);return e&&(o=o.replace(/
  • /g,""),o=$(o).empty()),o},populateIcon:function(){$UI.removeSmileyIcon(),$Support.contentdiv.find("#smilelist").after($Temp.getIconHTML())},removeSmileyIcon:function(){$Support.contentdiv.find("#smiley").remove(),$("#action_icons").remove()},populateSendBtn:function(e,t){CommonUtil.isFooterEnabled()||$("footer").find(".floatrg").remove().end().append($Temp.getSendBtnHTML(e).replace(/{SQICOSEND}/g,t))},handleOfflineStatus:function(e,t,o){var n=$Support,i=(n.EmbedObj,n.contentdiv),r=ZSIQConversationForm.isOldFormView();ZSIQConversationManager.getcurrchatwinobj().contentdiv&&(i=ZSIQConversationManager.getcurrchatwinobj().contentdiv),i||($UI.init(e),i=n.contentdiv),t&&$Support.isOnlineChat()&&$UI.showBanner(n.getOfflineMessage(),!0,null);var a=i.find("#msgarea"),s=$Support.isFAQEnabled()?LSResource.getRealValue("ne.message.clicksubmit.icon"):LSResource.getRealValue("ne.message.clicksubmit");t&&!r&&(s=LSResource.getRealValue("ne.message.choose")),$Support.getJSAPIMessageHint&&(s=$Support.getJSAPIMessageHint()||s),a.attr("placeholder",s),$Support.isFAQEnabled()&&(a.parent().find("#sqico-send").remove(),a.after($Temp.getSendIcon(!0))),r?a.attr("dockeyup","leavemessage").val(null!=o?o:$("#msgarea").val()).parents(".msgbox").addClass("posrel"):a.attr("dockeyup","leavemessage"),a.removeAttr("dockeydown"),this.populateSendBtn(LSResource.getRealValue("ne.submit")),r&&!$Support.isFAQEnabled()&&$("footer").show(),""!=i.find("#msgarea").val()&&$("footer").find("em#sqico-send").attr("documentclick","leavemessage"),n.Util.setTextareaHeight()},handleMissedStatus:function(e,t,o){o=$.isEmptyObject(o)?ZSIQConversationManager.getcurrchatwinobj():o;var n=$Support,i=o.composer||$("#msgdiv");i.removeAttr("disabled").attr("placeholder",$Support.isFAQEnabled()?LSResource.getRealValue("ne.missed.placeholder.icon"):LSResource.getRealValue("ne.missed.placeholder")),i.removeAttr("dockeydown"),t||(e?o.showBanner(LSResource.getRealValue("ne.offlinemsg")):o.isdirectcall?$Support.showCallResponseBanner(DynamicMsg.fillValues(n.EmbedObj.call_messages.agents_busy,"",!0)):o.showBanner&&o.showBanner(DynamicMsg.fillValues(n.EmbedObj.missedmessage,"",!0))),this.removeUserActions(o),o.contentdiv&&o.contentdiv.addClass("missed").find('[proptype="msgarea"]').attr("dockeyup","missedleavemsg"),$TH.populateSendBtn(LSResource.getRealValue("ne.submit"),o.winid)},populateFeedbackHTML:function(e){if(!CallImpl.isCallWithChat){var t=$Support.contentdiv;t.find(".sqico-edit").remove();var o=JSON.parse($Support.EmbedObj.eprops.feedback[0]),n=$Support.israting,i=$Support.isfeedback;if(!(o||n||i)||0==n&&0==i)this.emptyFeedback();else{$Support.isfeedbacksent=!i,$Support.contentdiv.removeClass("feedback_popup").addClass("feedback_popup");var r=!1===$Support.israting?$Temp.getFeedbackOnlyHTML():$Temp.getFeedbackHTML(!i);t.find(".maskdiv").remove().end(),t.find("#msgdiv").append(r),this.emptyFeedback(n),ZSIQTranscript.scroll("",$Support.chatmaindiv)}}},handleFeedbackBtn:function(){this.populateSendBtn(LSResource.getRealValue("ne.submit")),$("footer #sqico-send").before(''+LSResource.getRealValue("common.cancel")+"")},emptyFeedback:function(e){var t=$Support.contentdiv;t.find("div.usrinpt").remove(),$("footer #sqico-send").remove(),t.addClass("nofdbk"),e&&$("#fdbkarea + .sqico-send").hide()},updateCloseIcon:function(){$Support.container.find(".sqico-min").replaceWith($Temp.getCloseHTML())},showFdbkResponse:function(e){var t=e.chatmaindiv;if(Message.scroll(t),$Support.isfeedback){var o=DynamicMsg.fillValues($Support.EmbedObj.feedbackcomplete,"",!0)||LSResource.getRealValue("visitorchat.feedback.submit");e.showBanner(o,"psabs",!0)}this.feedbackAck(e)},feedbackAck:function(e){$Support.Util.hideFeedback(e),e.chatmaindiv.addClass("fdbalone"),e.chatmaindiv.find('.vismsg [purpose="name"]').removeAttr("documentclick")},getInfoMsgContent:function(e,t,o,n){var i=Message.getInfoHTML(e,t,o,n);return i?this.getInfoMsgHTML(i):""},showDragDropUI:function(){if(!$Support.Util.isDragNotAllowed()){this.hideDragDrop();var e=ZSIQConversationManager.getcurrchatwinobj();e.contentdiv&&e.contentdiv.prepend($Temp.getDragDropHTML())}},hideDragDrop:function(){if(!$Support.Util.isDragNotAllowed()){var e=ZSIQConversationManager.getcurrchatwinobj();e.contentdiv&&e.contentdiv.find("#dragmask").remove()}},getPreviewHTML:function(){return $Temp.getPreviewHTML()},displayInfo:function(e){$UI.showBanner(e)},getCustomHTML:function(e){var t=e.type||e.format||"text";return/^(phone|number|text|email|url|percentage|decimal|percent|website)$/.exec(t)?$Temp.getCInputHTML(e):{checkbox:function(){return $Temp.getCCheckBxHTML(e)},radio:function(){return $Temp.getCRadioHTML(e)},selectbox:function(){return $Temp.getCDropDwnHTML(e)},textarea:function(){return $Temp.getCTextareaHTML(e)},label:function(){return $Temp.getCLabelHTML(e)}}[t]()||""},getFormattedCustomobj:function(e){var t=e.meta||{},o=t.input_card||{};return{hint:o.placeholder,name:t.field_name,options:o.options,required:!t.skippable,type:o.type,visibility:o.visibility,maxlength:o.maxlength,style:o.style,question:t.msg}},showUploadProgress:function(a,s){var c=$Support.EmbedObj,p=ZSIQConversationManager.getChatWinObjById(s),d=a.fileobj,l=a.msgid;if(d&&"image/svg+xml"!=d.type){var m=d.name||a.filename,e=$('span[msgid="'+l+'"]'),u=c.vwmsid;if(this["fileprg"+l]||e.length){var t=a.prgval,o=parseInt(t.loaded/t.total*100),n=e.find(".file_prgs"),i=o/100*360;180':"";o&&$Support.container.find('[proptype ="contentdiv"]').each(function(){var e=$(this);e.find('.vismsg div[purpose="name"]').html(o+n),e.find('[proptype="visname"]').text(t.name)})},getBusinessHrInfo:function(){var e=$Support.EmbedObj;if(!e.bushrstatus)return"";var t=LSResource.getRealValue("ne.offlinemsg"),o=e.bushrtiming;if(!o)return t;var n;for(var i in o){var r=o[i];r.length&&(isUndefined(n)&&(n=i),o[n][0]!==r[0]&&!1)}return $Temp.getBusnsInfoHTML(o[n][0])},setSoundConfig:function(){var e=$Support.EmbedObj,t=$Support.LSDB.getFromSession(e.chatID+"_sound");e.setSoundConfig(t)},addGroupIcon:function(){$Support.container.find("#complogo").after($Temp.getGroupIconHTML())},removeGroupIcon:function(){$Support.container.find("#complogo").next(".sqico-grpico").remove()},getCustomColor:function(){var e=parent.$zohosq.nonce?'nonce="'+parent.$zohosq.nonce+'"':"",t='[focus=""]:focus-visible { -moz-box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.3); -webkit-box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.3); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.3);}';if(4==$Support.getThemeID()){var o='";return l?o:""}var n=$Support.EmbedObj.eprops,i=parent.$zv.embedtheme||n.color[1].code,r=$Support.Util.getTextColor(i),a=r.text_color,s=r.icon_color,c=$Support.Util.getRGB(i),p="",d=c[0]+", "+c[1]+", "+c[2],l="";$Support.EmbedObj.isaccessibilityenabled&&!$Support.Util.isPreview()&&(l=$Support.Util.isDarkTheme(c[0],c[1],c[2])?t:'[focus=""]:focus-visible { -moz-box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.3);}',l+='[ifocus=""]:focus-visible { background-color: rgba('+d+",0.1) !important;}");"#0066cc"!=i&&(p='header, .win_close, .emtpg_btn em, [themeid="9"] header:after, [themeid="10"] header:after, .buble_bg .msgbx, .siqc_edt .wincustom_bg { background-image : -webkit-linear-gradient( 90deg, rgb( '+d+" ) 0%, rgba( "+d+", 0.9 ) 100%) !important; background-image : -moz-linear-gradient( 90deg, rgb( "+d+" ) 0%, rgba( "+d+", 0.9 ) 100%) !important; background-image : -ms-linear-gradient( 90deg, rgb( "+d+" ) 0%, rgba( "+d+", 0.9 ) 100%) !important}");var m="";return s&&(m+='.headercont, .siq-convback.sqico-larrow:hover:before, .win_close.sqico-larrow:hover::before, .emtpg_btn em:hover:before, .faq-srch .sqico-close:hover:before, div.faq-srch input[type="text"], .min-view:hover .sqico-search:before, .chat_btn, div.win_close.sqico-larrow::before, .siqc_eletype.sqico-screenshare { color: '+a+' !important }.win_close.sqico-larrow::before, .siq-convback.sqico-larrow::before, .emtpg_btn em:before, .sqico-user:before, .sqico-typing.siqc_usrimg img[src=""] + .sqico-user:after, .faq-srch .sqico-close:before, .sqico-search::before, .sqico-chat:before { color: '+s+" !important; }.faq-srch input::placeholder{ color: #999 !important; }.cmplogo, .siq-convback.sqico-larrow:hover, .faq-srch, .min-view.faq-srch:hover { background-color: rgba(0, 0, 0, .05); }.vismsg .range .range-path {background-color: #999 !important;}.vismsg span.siq-voice-control:before {color: #000;}.siq-voice-audio .range-handle, .vismsg .siq-voice-audio .range-val, .vismsg .siq-voice-control.sqico-pause:after, .vismsg .siq-voice-control.sqico-pause:before { background-color: #000 !important;}.vismsg span.siq-voice-control { border-color: #888;}"),o='"},getHeader:function(){return $Support.container.find("header")},getTranslateBannerHTML:function(e,t){return $Temp.getTranslateBannerHTML(e,t)},checkAboutmeClass:function(){var e=$("#attabtme");e.removeClass("empty_abtme"),e.text()||e.addClass("empty_abtme")}};!function(t){t.$Template=t.$Template||{};var _=$Support.Util.getAccessibilityAttribute(!0);$Temp=$Template.theme={getContainerHTML:function(){$Support.EmbedObj;if($("body").find("#formcss").remove(),ZSIQConversationForm.isOldFormView()){var e='';$("body").append(e)}var i=($Support.isParentIframe()?"":" emfullwindow")+" emwin";return i+=CommonUtil.isFooterEnabled()?" faq":"",i+=$Support.isNewHeader()?" zsiq-newtheme":"",i+=$Support.Util.isPreview()?" newpreview":"",$Support.isSignature($Support.EmbedObj)&&$("body").addClass("signature_embed"),$Support.isFullViewEmbed()&&$("body").addClass("fullview_embed"),i+=t._ISRTLSUPPORTEDLANG?" zsiqrtl_lang":"",ZSIQWindowView.isOnlyCall()&&$("body").addClass("zsiqdircall"),ZSIQWindowView.isChatWithCall()&&$("body").addClass("zsiqcallchat"),['
    '].join("")},getCloseWindowHTML:function(){var e="hide"===$Support.getParent().$zv.closebutton?"hide-close":"";return $("body").find(".win_close").remove(),'
    "+$Temp.getCloseSeasonalImage()+"
    "},getHeaderHTML:function(e){e=e||{};var i=$Support.EmbedObj,t=JSON.parse(i.eprops.iclogo)?$Support.Util.getUserImageWithNPS(i.clogo):"",s=e.attenderimagefkey||e.imagefkey||e.image_fkey,a=e&&$Support.isUserLogoEnabled("",e)&&s?$Support.Util.getPhotoURL(s,e.attender):"",o=e&&e.attendername;a=!a&&e.isBotChat?ZSIQTranscript.getImageURL({sender:e.attender}):a;var c=e.isBotChat?$Support.Util.getUserImageWithNPS(a):a,n=(t=o?c:t)?"":"nologo";o=getEscapedText($Support.getChatWindowTitle(o));var l=getEscapedText(e&&(e.aboutme||e.attenderaboutme)||""),d=l?"":" noaboutme",r=!1;if(i.companywebsite){var p=i.companywebsite;r=!0}return['
    ','','",r?"":"",'
    ','
    '+o+"
    ",'
    '+l+'
    ',"
    ",ZSIQWindowView.isCallFormSupported()?"":'',"
    "].join("")},getUserImageHTML:function(){var e=$Support.EmbedObj;return''},getBodyHTML:function(e,i){var t=$Support.getJSAPIMessageHint(),s=$Support.EmbedObj,a=$Support.isSignature(s),o=s.isformremoval,c=ZSIQWindowView.isOnlyCall()||$Support.isCallForm,n=c?s.call_status:s.status,l=0==n?$Support.isFAQEnabled()?LSResource.getRealValue("ne.message.clicksubmit.icon"):LSResource.getRealValue("ne.message.clicksubmit"):LSResource.getRealValue("ne.message.hitenter"),d=t?'placeholder="'+t+'"':'placeholder="'+l+'"',r=t?'aria-label="'+t+'"':'aria-label="'+l+'"',p=s.chat_without_questionenabled&&!this.getFieldHTML()&&!(!s.lastdeptid&&-1==s.department);if(p=p&&($Support.oldformemptyfield=!0),!ZSIQConversationForm.isOldFormView()&&!c||$Support.oldformemptyfield)return'
    '+$Temp.getEmptySlate(n)+'
    '+this.getFreeLogoHTML()+'
    '+this.getSendIcon(!n,n)+'
    ';if(e)return'
    ';s=$Support.EmbedObj;var u="content posrel siq_content siqforms";(a=$Support.isSignature(s))&&(u+=" algn_hgt ");var m=ZSIQWindowView.getEProps(c),v=s.pprops.chatcookiepolicyurl,g=ZSIQWindowView.isOnlyCall(),b=s.call_status,h=g&&"convlist"==$Support.container.attr("cwview"),f=b?h?"common.call":"av.info.callnow":"av.info.voicemsg",q=b?"sqico-call":"sqico-record",S=$Support.Util.getChatConsentStatus()&&!b,y=!s.lastdeptid&&-1==ZSIQWindowView.getDepartment()&&1<$Support.getOrderedDepartmentList().length||i,R=ZSIQWindowView.isCallFormSupported()?'"+LSResource.getRealValue(f)+' ":"";return['
    ',m.isname&&JSON.parse(m.isname[0])&&!o?this.getNameHTML(m.isname[1].ismandatory):"",m.isemail&&JSON.parse(m.isemail[0])&&!o?this.getEmailHTML(m.isemail[1].ismandatory):"",m.isphoneno&&JSON.parse(m.isphoneno[0])&&!o?this.getPhoneHTML(m.isphoneno[1].ismandatory):"",o?this.getFieldHTML():"",y?'
    ':"",'
    ',this.getQuesAreaHTML(n),0==n?this.getChatConsentHTML(v):"",o?"":this.getCampaignHTML(),"
    ",R,"
    "].join("")},getOnlyCallConsent:function(){var e="",i="onlycallconsent";if($Support.Util.isShowPrivacyChatConsent()){var t=$Support.EmbedObj.pprops.chatcookiepolicyurl;e=LSResource.getRealValue("common.gdpr.agent.chatconsent2"),t&&(e=""+e+""),e=LSResource.getRealValue("common.gdpr.agent.chatconsent1")+" "+e+" "+LSResource.getRealValue("common.gdpr.agent.chatconsent3")}else $Support.Util.isShowRecordingConsent()&&(e=getEscapedText($Support.EmbedObj.call_recording.call_consent_message)||LSResource.getRealValue("av.info.audiorecordingconsent.defaultvalue"),i="connectAudioCall");return this.getConsentHTML(e,i)},getConsentHTML:function(e,i){return'
    '+e+'
    '+LSResource.getRealValue("common.gdpr.agent.accept")+''+LSResource.getRealValue("common.gdpr.agent.decline")+"
    "},getCallHistory:function(e){e.status=e.status||e.call_status;var i=-1!=["miss","cancel","reject"].indexOf(e.status),t="visitor"==e.initiated_by,s=t?"sqico-outgoing":"sqico-incomming",a=e.connected_time||e.pickup_time,o=e.duration||MyDate.timeDistance(e.end_time,a),c=e.departmentname||$Support.EmbedObj.brandname;return'
    '+(i?'
    '+(t?LSResource.getRealValue("embed.call.missinfo",c):LSResource.getRealValue("av.call.missedinfo"))+"
    ":'
    '+LSResource.getRealValue("converation.call.oncall",o)+'
    '+c+"
    ")+'
    '+MyDate.timeDifference(e.created_time)+", "+MyDate.getTime(e.created_time)+"
    "+(i?"":'
    '+LSResource.getRealValue("av.call.endinfo")+'
    ')+"
    "},getMediaWaitingBanner:function(e){return'
    '+LSResource.getRealValue(e)+'
    '},getFieldHTML:function(){var e=ZSIQWindowView.getVisitorFileds();$Support.fieldlist=e,($Support.getParent().$ZSIQUtil.getAPIValues()||{}).floatwindowfields&&ZSIQConversationForm.updateformconfig();for(var i=$Support.fieldlist||[],t={visitor_name:this.getNameHTML,visitor_email:this.getEmailHTML,visitor_phone:this.getPhoneHTML},s=i.length,a="",o=parent.$ZSIQUtil.getJWTToken(),c=0;c'+t+"
  • "},getQuesAreaHTML:function(e){if(ZSIQWindowView.isCallFormSupported())return"";var i=$Support.EmbedObj,t=e?"textarea":"leavemessage",s=e?'dockeydown="textarea"':"";if(ZSIQConversationForm.isOldFormView()){var a="",o="";i.chat_without_questionenabled&&!i.ques_conf.mandatory&&(a='
    Chat now
    ',o="dn");var c=0==e?$Support.isFAQEnabled()?LSResource.getRealValue("ne.message.clicksubmit.icon"):LSResource.getRealValue("ne.message.clicksubmit"):LSResource.getRealValue("ne.message.hitenter");return['
    ','',this.getSendIcon(!e),"
    "+a].join("")}var n=$Support.getJSAPIMessageHint(),l=n?'placeholder="'+n+'"':'placeholder="'+LSResource.getRealValue("ne.message.hitenter")+'"';return'
    '+this.getFreeLogoHTML()+'
    '+this.getSendIcon(!e)+'
    '},getNameHTML:function(e,i,t){i=i||"";var s="optional",a='docblur="checkInputVal"',o="",c=getEncodedText(t)||LSResource.getRealValue("ne.entername");!0===CommonUtil.parseToJSON(e)&&(s="required",a=' docblur="required"',o='iserrorfield="true"');var n=$Support.Util.isInValidVisitorName($Support.EmbedObj.visitorname)?"":$Support.EmbedObj.visitorname;$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){i=i||"";s="optional";var l="";a="";return!0===CommonUtil.parseToJSON(e)&&(s="required",l=" ("+LSResource.getRealValue("ne.required")+")",a=' docblur="required"'),'
    '+$Temp.getRequiredHTML()+"
    "}return'
    Name '+$Temp.getRequiredHTML(e)+"
    "},getEmailHTML:function(e,i,t){$Support.EmbedObj;var s=!0===CommonUtil.parseToJSON(e)?"required":"optional",a=getEncodedText(t)||LSResource.getRealValue("ne.action.enteremail"),o=$Support.EmbedObj.visitoremail||"";return ZSIQConversationForm.isOldFormView()?['
    ',''+$Temp.getRequiredHTML(),$Temp.getFetchMailHTML(),"
    "].join(""):'
    Email'+$Temp.getRequiredHTML(e)+""+$Temp.getFetchMailHTML()+"
    "},getFetchMailHTML:function(e){$Support.EmbedObj;return ZSIQConversationForm.isOldFormView()?$Support.EmbedObj.fetchid?'
    ':"":$Support.EmbedObj.fetchid?'':""},getPhoneHTML:function(e,i,t){$Support.EmbedObj;var s=$Support.EmbedObj.visitorphone||"",a=getEncodedText(t)||LSResource.getRealValue("cw.form.phone.placeholder");if(ZSIQConversationForm.isOldFormView()){var o="optional",c="",n="";return!0===CommonUtil.parseToJSON(e)&&(o="required",c=" ("+LSResource.getRealValue("ne.required")+")",n=' docblur="required"'),'
    '+$Temp.getRequiredHTML()+"
    "}o="optional",n='docblur="checkInputVal"';var l="";return!0===CommonUtil.parseToJSON(e)&&(o="required",n=' docblur="required"',l='iserrorfield="true"'),'
    Phone '+$Temp.getRequiredHTML(e)+"
    "},getCampaignHTML:function(e){$Support.EmbedObj;return $Support.Util.isCampaignEnabled()||e?(e=e||LSResource.getRealValue("embed.campaign.label"),ZSIQConversationForm.isOldFormView()?['"].join(""):'
    "):""},getChatConsentHTML:function(e){if($Support.Util.getChatConsentStatus()){var i=LSResource.getRealValue("common.gdpr.agent.offlineaccept2");e&&(e=-1==e.indexOf("http")?"http://"+e:e,i=""+i+"");var t=LSResource.getRealValue("common.gdpr.agent.offlineaccept1","")+i;return['"].join("")}},getChatAreaHTML:function(){var e=$Support.getJSAPIMessageHint(),i=$Support.EmbedObj,t=$Support.isSignature(i),s=e||LSResource.getRealValue("ne.message.hitenter"),a='placeholder="'+s+'"',o='aria-label="'+s+'"';return['
    ','
    ',"
    ",'
    ',this.getFreeLogoHTML(),'
    ',"
    ","
    "].join("")},getRecorderHTML:function(){return['
    ','
    ','',"
    ",'
    ','','','',"",'','','","
    "].join("")},getSendIcon:function(e,i){return $Support.isFAQEnabled()?'":""},getVisitorInputFieldCountHtml:function(){return($Support.EmbedObj||{}).restrict_visitor_input?'':""},getIconHTML:function(e){var i=ZSIQConversationManager.getChatWinObjById($("#msgarea").attr("txtarea-id")),t="connected"===(e||i.chatstatus)&&-1!==i.visitorID,s=!i.composer.is(":disabled"),a=i.isBotChat,o=$Support.EmbedObj.eprops,c=JSON.parse(o.showsmiley)&&s?'':"",n=CommonUtil.isAllowFileSharing()&&t?''+this.getSendFileHtml()+"":"",l=t&&$Support.EmbedObj.isvoicenotesallowed&&o.isvoicenotesenabled&&!a?'':"";return'
    '+this.getVisitorInputFieldCountHtml()+c+l+n+'
    '},getUserActionsHTML:function(e){var i=$Support.EmbedObj.eprops;$Support.EmbedObj.isBetaPortal;return['
    ','
    ','
    ','','',"
    ",'
      ',JSON.parse(i.icsound)&&EmbedSound.isPlayerEnable()?this.getSoundHTML(e.soundval):"",JSON.parse(i.icmail)?'
    • '+LSResource.getRealValue("ne.action.sendmail")+"
    • ":"",CommonUtil.isAllowAssist()&&!e.isBotChat?'
    • '+LSResource.getRealValue("embed.desktop.sharing")+"
    • ":"","
    ","
    "].join("")},getSoundHTML:function(e){return isUndefined(e)||-1!=e?'
  • '+LSResource.getRealValue("ne.action.mute")+"
  • ":'
  • '+LSResource.getRealValue("ne.action.unmute")+"
  • "},getFooterHTML:function(){var e,i=$Support.isFAQEnabled(),t=$Support.EmbedObj;if(i){var s=($Support.getParent().$ZSIQUtil.getAPIValues()||{}).articlecontent||{};e=getEscapedText(s.title||$Support.Util.getFAQLabel())}var a=CommonUtil.isFooterEnabled()?" faq_footer":"",o="",c=$Support.Util.getAccessibilityAttribute();t.ismulti_categoryenabled&&(t.resource_config.faq||{}).enabled&&(o='
    "+(getEscapedText($ZSIQResouces.getFaqLabel())||"FAQs")+"
    ");var n="showfaq",l=e,d="";d=t.article_revamp_enabled?(t.resource_config.article||{}).enabled?'
    "+(l=getEscapedText($ZSIQResouces.getArticleLabel()))+"
    ":"":'
    "+l+"
    ";var r="";return(o||d)&&(r='
    '+LSResource.getRealValue("ne.conversation")+'
    '),['
    ',$Support.EmbedObj.sm?'
    ':"",this.getFreeLogoHTML(),CommonUtil.isFooterEnabled()?'
    '+r+o+d+"
    ":"","
    "].join("")},getFreeLogoHTML:function(){var e=$Support.EmbedObj.isreopenenabled?"f-logo":"";return $Support.isAllowFreeLogo()?'":""},getSendBtnHTML:function(e){if(ZSIQWindowView.isCallFormSupported())return"";var i=$Support.EmbedObj.status,t=ZSIQConversationForm.isOldFormView();return i?t&&(e=e||LSResource.getRealValue("ne.startchat")):e=e||LSResource.getRealValue("ne.submit"),'
    '+(e||"")+"
    "},getBannerHTML:function(e,i,t,s){var a='
    "},getSendMailHTML:function(){return['
    ','',"
    "].join("")},getSendMailConfimHTML:function(e,i){var t=i||"";return['
    ',''+LSResource.getRealValue("common.gdpr.emaildoubleoptin","")+""+e+"?",'
    '+LSResource.getRealValue("common.no")+"
    ","
    "].join("")},getSmileyHTML:function(){var e='
    ',i=Smiley.defaultsmileyobj;for(var t in i)e+='
    ';return e+="
    "},getUserEditHTML:function(e,i){i=i||{};var t=$Support,s=t.EmbedObj,a=s.eprops,o=a.isname[1].ismandatory,c=a.isemail[1].ismandatory,n=a.isphoneno[1].ismandatory,l=s.isformremoval,d=e?LSResource.getRealValue("ne.update"):LSResource.getRealValue("common.continue");t.ismissed&&(d=LSResource.getRealValue("ne.submit"),c="true");var r=' onenter="updateuserdetails"';return['
    ',$Support.Util.checkToShowField("isname","siq_name")&&!l?this.getNameHTML(o,r):"",$Support.Util.checkToShowField("isemail","siq_email")&&!l?this.getEmailHTML(c,r):"",$Support.Util.checkToShowField("isphoneno","siq_phone")&&!l?this.getPhoneHTML(n,r):"",l?this.getFieldHTML():"",-1==i.department?'
    ':"","{T&CBANNER}",'
    ','

    '+d+"

    ",'

    '+LSResource.getRealValue("common.cancel")+"

    ","
    ","
    "].join("")},getCaptchaHTML:function(e){return["
    ","
    "+LSResource.getRealValue("ne.captcha.title1")+"
    ","

    "+LSResource.getRealValue("ne.captcha.title2")+"

    ","
    "+CommonUtil.getCaptcha(e)+'
    ','','
    ','

    '+LSResource.getRealValue("ne.submit")+"

    ","
    ","
    "].join("")},getWaitingTextHTML:function(e){return['
    ',''+DynamicMsg.fillValues($Support.EmbedObj.waitmsg,"",!0)+"",''+MyDate.formatMS(1e3*e)+"","
    "].join("")},getInfoHTML:function(e,i){return'
    '+e+"
    "},sendIconForFeedback:function(){return''},getFeedbackHTML:function(e){var i=$Support.EmbedObj.ratingtitle?$Support.EmbedObj.ratingtitle:LSResource.getRealValue("ne.rating.byline");return['
    ','
    ',"
    ",'
    '+$Support.Util.getFeedbackAndRatingLables(e?"rating":"fbandrating")+"
    ",'
    '+this.getStarHTML()+"
    ",'","
    ",e?"":''+this.sendIconForFeedback(),"
    ",'',"
    "].join("")},getFeedbackOnlyHTML:function(e){return['
    ','
    '+$Support.Util.getFeedbackAndRatingLables("feedback")+"
    ",'
    ',''+this.sendIconForFeedback(),"
    ","
    "].join("")},getStarHTML:function(e){var i="",t={sad:"😞",neutral:"😐",happy:"😄"};for(var s in{sad:{classname:"sad_icon"},neutral:{classname:"neutral_icon"},happy:{classname:"happy_icon"}}){i+=''+t[s]+""}return i},getSendFileHtml:function(){$Support.EmbedObj;return''},getDragDropHTML:function(){return'
    '+LSResource.getRealValue("ne.dropfile")+"
    "},getPreviewHTML:function(){return['
    ','
    ','
    ','

    ','','200',"
    ",'
    ','

    '+LSResource.getRealValue("common.upload")+"

    ",'

    '+LSResource.getRealValue("common.cancel")+"

    ","
    ","
    "].join("")},getCCheckBxHTML:function(e){var i=e.options,t=getEscapedText(e.name)||"",s=($Support.EmbedObj,"");if(ZSIQConversationForm.isOldFormView()){for(var a='
    '+this.getCustomWrap(e),o=0;o",a+='",a+='
    "}return a+="
    "}for(a="",o=0;o"}return'
    '+$Temp.getCustomWrap(e)+"
    "+a+"
    "},getCRadioHTML:function(e){var i=e.options,t=getEscapedText(e.name)||"",s=($Support.EmbedObj,"");if(ZSIQConversationForm.isOldFormView()){for(var a='
    '+this.getCustomWrap(e),o=0;o",a+='
    "}return a+=""}for(a="",o=0;o"}return'
    '+$Temp.getCustomWrap(e)+"
    "+a+"
    "},getCustomWrap:function(e){e.options;var i=getEscapedText(e.name)||"",t=$Temp.getRequiredHTML(e.required);ZSIQConversationForm.isOldFormView()&&(t=JSON.parse(e.required)?$Temp.getRequiredHTML("*"):"");var s=''+getEscapedText(e.hint)+t+"",a=CommonUtil.parseToJSON(e.required)?'iserrorfield="true"':"";return s+='
    "},getRequiredHTML:function(e){$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){var i=e||"";return''+i+""}return CommonUtil.parseToJSON(e)?'*':""},getCInputHTML:function(e){var i=getEscapedText(e.name)||"";$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){var t=e.defaultvalue?' value="'+e.defaultvalue+'" ':"",s=e.required&&JSON.parse(e.required)?$Temp.getRequiredHTML():"";return['
    ','"+s,"
    "].join("")}var a=getEscapedText(e.hint)||i;return'
    '+a+$Temp.getRequiredHTML(e.required)+""+$Temp.getFetchMailHTML()+"
    "},getCustomAttr:function(e){e.options;var i=getEscapedText(e.name)||"",t=getEscapedText(e.hint)||i,s=CommonUtil.parseToJSON(e.required)?"required":"optional",a=e.type?e.type:"text",o=e.maxlength||("url"==e.type||"textarea"==e.type?100:30),c=e.minlength?'minlength="'+e.minlength+'"':"",n=s+" "+a;$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView())return'placeholder="'+t+'" id="'+i+'" mandatory="'+e.required+'" custom="'+i+'" name="'+i+'" data-validate="'+n+'" autocomplete="off" maxlength="'+o+'" '+c+' info="'+a+'"';var l=CommonUtil.parseToJSON(e.required)?'iserrorfield="true"':"";return'id="'+i+'" mandatory="'+e.required+'" '+l+' custom="'+i+'" name="'+i+'" data-validate="'+n+'" autocomplete="off" maxlength="'+o+'" info="'+a+'"'},getCDropDwnHTML:function(e){var i=getEscapedText(e.name)||"",t=($Support.EmbedObj,e.value?' val="'+e.value+'" ':"");return ZSIQConversationForm.isOldFormView()?'
    ":'
    "},getCTextareaHTML:function(e){var i=getEscapedText(e.name)||"";$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){var t=CommonUtil.parseToJSON(e.required)?$Temp.getRequiredHTML():"",s=e.defaultvalue?e.defaultvalue:"";return['
    ','"+t,"
    "].join("")}var a=getEscapedText(e.hint)||i;return'
    '+a+$Temp.getRequiredHTML(e.required)+""+$Temp.getFetchMailHTML()+"
    "},getCLabelHTML:function(e){return e.hint?'
    "+getEscapedText(e.hint)+"
    ":""},getCustomStyle:function(e){var i=e.Style||e.style,t="";if(i)for(var s in i)t+=s+":"+i[s]+";";return t?'style="'+t+'"':""},getCloseHTML:function(){return''},getChatEndHTML:function(e,i){if(i=i||{},ZSIQWindowView.isOnlyCall()||!$Support.isChatDept(i.chid)||ZSIQConversationManager.getcurrchatwinobj().isdirectcall)return"";var t=$Support.EmbedObj,s=LSResource.getRealValue("ne.chatend.clickhere",t.isreopenenabled?'documentclick="showreopenchatui"':'documentclick="restartchat"');return['
    '+(t.chatendmessage||LSResource.getRealValue(t.isreopenenabled?"ne.chatend.reopen":"ne.chatend",s)),'
    ',JSON.parse(t.eprops.icmail)&&!e?''+LSResource.getRealValue("ne.email.transcript")+"":"","
    ","
    "].join("")},getBusnsInfoHTML:function(e){return["
    "+LSResource.getRealValue("ne.offlinemsg")+"
    ","
    "+LSResource.getRealValue("ne.busnshr")+' : Monday to Friday '+e+"
    "].join("")},getGroupIconHTML:function(){return''},getWaitHandlerHTML:function(){return['
    '+$Support.cwaitmsg,"
    "].join("")},getConversationContainerHTML:function(){return''},getConversationHistoryHTML:function(e){$Support.EmbedObj;var i=e.attender_imgkey&&$Support.isUserLogoEnabled(e)?_SCHEMA+"://"+_EMBEDSERVERURL+"/"+_SCREENNAME+"/userimg/"+e.attender_imgkey+"/photo.ls?nocache=1":"";!e.attender_imgkey&&e.isbotattender&&(i=ZSIQTranscript.getImageURL(JSON.parse(e.lastmsg)));var t=e.attender,s="";e.chid||e.attender?e.attender&&!e.transfer_missed||(t=LSResource.getRealValue("call"==e.type?"conversation.missedcall":"conversation.missedchat"),s=" sqico-missed",i=""):(t=LSResource.getRealValue("conversation.offlinechat"),s=" sqico-offline");var a=Message.getDisplayContent($Support.Util.sanitizeMessage(e.question)),o=!1,c="";if(e.lastmsg){var n=JSON.parse(e.lastmsg),l=n.deleted;if(o=$Support.Util.isAnnonUser(n.sender),n=$Support.Util.sanitizeMessage(n.msg)){if("object"==typeof n)"cannedarticle"===n.mode&&(a=$FAQ.getHeaderMessage(n.msg)),l?a=LSResource.getRealValue("chat.messagedelete"):n.fName&&(a=n.fName,c=$Support.Util.getFileClassType(n.content));else if(a=Message.getDisplayContent(n),o||(a=Markdown.apply(a)),"string"==typeof n)try{JSON.parse(JSON.parse(n).mode&&"MEDIA"===JSON.parse(n).mode)&&(a=Message.getAVMessageBlock(JSON.parse(n),!0))}catch(e){}a=c?''+getEncodedText(a)+"":a,a=o?LSResource.getRealValue("common.you")+": "+a:a}}var d=$Support.getMediaData(e)||e.media;if(d){var r=-1!=["miss","cancel","reject"].indexOf(d.status),p=d.connected_time||d.pickup_time,u=d.duration||MyDate.timeDistance(d.end_time,p);a=r?''+LSResource.getRealValue("audiovideo.missed")+"":"direct"==d.mode?''+LSResource.getRealValue("av.outgoing",u)+"":''+LSResource.getRealValue("av.incoming",u)+""}return['
    ','
    ','
    ',"
    ",'
    ',''+getEncodedText(t)+"",'
    '+a+"
    ","
    ",'
    '+MyDate.timeDifference(e.endtime)+'
    ',"
    "].join("")},getCallFAQHtml:function(){return''},getConversationCreateChatIConHTML:function(){return parent.$ZSIQWidget.getEmbedObject().pinfo.only_call_enabled?'":''},getConversationTranscriptContainerHTML:function(){var e=$Support.EmbedObj;return['"].join("")},getLoadingHTML:function(){return'
    '},getConversationListLoadingHTML:function(){return'
    '},getchatWaitingUIinConversation:function(e,i){$Support.EmbedObj;var t=i||"showchatui";return['
    ','
    ','','
    ',"
    ",'
    ','','

    '+getEscapedText(e.question)+"

    ","
    ",'
    ',"
    "].join("")},getPopUpMessageInconversation:function(e,i,t,s){return['
    ','
    ','','
    ',"
    ",'
    ',''+getEncodedText(e)+'","
    ",'',"
    "].join("")},getPopUpAlertInconversation:function(e,i,t,s){return['
    ','
    ','','
    ',"
    ",'
    ',''+getEncodedText(e)+'

    '+getEncodedText(i)+"

    ",'
    '+t+"
    ","
    ",'',"
    "].join("")},getPopUPInfoMessageInConversation:function(e,i){return['
    ','
    ','

    '+e+"

    ","
    ",'',"
    "].join("")},getOutgoingcallUI:function(e,i){var t="",s="";return null==e||""==e?s="":t="",null==i&&(i=""),['
    ','",''+i+''+LSResource.getRealValue("av.info.calling")+"",'
    ','
    ',"
    "].join("")},getReconnectionUI:function(e,i,t){var s="",a="";return null==e||""==e?s="sqico-person":a="",['
    ','",''+t+''+LSResource.getRealValue(i)+"",'
    ','
    ',"
    "].join("")},getConnectionDisconnectedUI:function(e,i){var t="",s="";return null==e||""==e?t="sqico-person":s="",['
    ','",''+$Support.EmbedObj.attendername+''+LSResource.getRealValue(i)+"",'
    ','
    ',"
    "].join("")},getUserBusyUI:function(e,i){var t="",s="";return null==e||""==e?t="sqico-person":s="",['
    ','','",''+i+''+LSResource.getRealValue("av.info.userbusy")+"",'
    ','
    ','
    ',"
    "].join("")},getAudioCallUI:function(e,i){var t="",s="";return null==e||""==e?s="":t="",['
    ','",''+LSResource.getRealValue("av.info.callfrom")+""+i+"",'
    ','
    ','
    ',"
    "].join("")},getOnCallUI:function(e,i){var t="",s="";return null==e||""==e?t="sqico-person":s="",['
    ','",''+i+'','
    ','
    ',"
    "].join("")},getStartRecordUI:function(e){var i="";return null==e||""==e?"sqico-person":i="+$Support.EmbedObj.attendername+",['
    ','
    ','
    ','
    ',i,"
    ",'
    ','
    '+$Support.EmbedObj.attendername+"
    ",'
    ','
    ',"
    ",'
    ','
    ',"
    ","
    ","
    ","
    "].join("")},getAudioRecordedUI:function(e,i,t,s){var a="";return null==e||""==e?"sqico-person":a="+i+",['
    ','
    ','
    ','','
    ',a,"
    ",'
    ','
    '+i+"
    ",'
    ','
    ',"
    ",'
    ','
    ','
    ','
    ',"
    ","
    ","
    ","
    "].join("")},getTranslateBannerHTML:function(e,i){var t=" "+LSResource.getRealValue("helplink.learnmore")+"";return['
    '+LSResource.getRealValue("common.gdpr.agent.translateinfo")+" "+LSResource.getRealValue("common.gdpr.gtranslatehead")+'
    '+t+'
    '+LSResource.getRealValue("common.okay")+"
    "].join("")},handleStartChatBTN:function(e){var i=$.isEmptyObject(e)?$Support.contentdiv:e.contentdiv;i.find('[proptype="action_icons"]').length||i.find('[proptype="smilelist"]').after('
    '+this.getVisitorInputFieldCountHtml()+'
    ')},handleMissedChatBtns:function(e){var i=$Support.EmbedObj,t=$.isEmptyObject(e)?$Support.contentdiv:e.contentdiv,s=t.find('[proptype="action_icons"]');s.length&&s.remove();var a=i.isvoicenotesallowed&&i.eprops.isvoicenotesenabled?'':"";t.find('[proptype="smilelist"]').after('
    '+a+'
    ')},getAskMediaPermission:function(e){var i="zsiq-"+e;return"Chrome"==e&&(i=""),'
    '+LSResource.getRealValue("av.info.pleasetaponlock","")+"

    ("+LSResource.getRealValue("common.or")+")

    "+LSResource.getRealValue("av.info.enablemicrophonesetting")+'
    '+LSResource.getRealValue("chatwindow.mailcopy.clickhere")+"
    "},getMediaSetting:function(e){var i="zsiq-"+e;return"Chrome"==e&&(i=""),'
    '+LSResource.getRealValue("av.info.pleaseallowmicrophone")+"
    "},getCallHomePageHeader:function(e){var i=$Support.EmbedObj,t=i.homepage_configs,s=e?t.online_content||"chat.home.online":t.offline_content||"chat.home.offline";return ZSIQWindowView.isOnlyCall()&&(s=e?"call.home.online":"call.home.offline"),'
    '+getEncodedText(i.brandname)+'

    '+LSResource.getRealValue(getEncodedText(s))+"

    "},conversationEmptyState:function(){var e=$Support.EmbedObj,i=ZSIQWindowView.isComponentEnabled,t=i("call"),s=i("chat");if(!ZSIQWindowView.isOnlyCall()){var a=-1!=(($Support.EmbedObj.homepage_configs||{}).conversation_mode||[]).indexOf("call");if(!ZSIQWindowView.isChatOnlyEnabled()&&a){var o=function(e,i,t){return''+LSResource.getRealValue(i)+""},c=s?e.status:e.call_status,n=getEncodedText($Support.Util.getFAQLabel()),l="";if(e.article_revamp_enabled){var d=(e.resource_config.article||{}).enabled?"articles":(e.resource_config.faq||{}).enabled?"faqs":"";n=getEncodedText("articles"==d?$ZSIQResouces.getArticleLabel():$ZSIQResouces.getFaqLabel()),l=d?''+n+"":""}else l=''+n+"";return'
    '+this.getCallHomePageHeader(c)+'
    '+(t?o("sqico-call","common.call",'btntype="call"'):"")+(s?o("sqico-chat","common.chat",'btntype="chat"'):"")+($Support.isFAQEnabled()?l:"")+"
    "}!a&&$Support.container.find("header").removeClass("siqdc-hdr");var r=$Support.isConversationAllowed()?"cw.emptypage.title":"connectedchat.empty",p=$Support.getParent().$ZSIQChat.getWidgetData().embedobj.triggerOnChatnow?'btntype="chat"':"";return'
    '+LSResource.getRealValue(r)+'
    "+LSResource.getRealValue("ne.chatnow")+"
    "}var u=parent.$ZSIQWidget.getEmbedObject().einfo.embedstatus.call_status,m=(e.call_status=u)?"av.info.callnow":"av.info.voicemsg",v=u?"sqico-call":"sqico-record";return'
    '+$Temp.getCallHomePageHeader(u)+'
    "+LSResource.getRealValue(m)+"
    "},getReOpenMsgArea:function(){return['
    ','
    '+LSResource.getRealValue("chat.reopen")+"
    ",'
    ','',"
    ",'

    '+LSResource.getRealValue("common.cancel")+'

    '+LSResource.getRealValue("common.send")+"

    ","
    "].join("")},getResourceSharingHTML:function(e){return['
    ','
    ','',''+LSResource.getRealValue("faq.article")+"","
    ",'
    '+getEscapedText(e.articlename)+"
    ","
    "].join("")},getQueueBannerHTML:function(e){var i=CommonUtil.convertMstoMinAndSec(e.average_response_time);return['
    ','
    '+LSResource.getRealValue("chat.inqueue","")+"",' - Queue no. '+e.position+"","
    ",'
    Queue position updates in ~ '+i+" mins
    ","
    "].join("")},getchatQueueingUIinConversation:function(e){return['
    ','
    ','','
    ',"
    ",'
    ','','- '+LSResource.getRealValue("chatqueue.inque")+"",'

    ',"
    ",'
    ',"
    "].join("")},getQueueHandOffHtml:function(e){return['
    '+LSResource.getRealValue("chatqueue.wait")+''+LSResource.getRealValue("chatqueue.leavemsg")+"
    "].join("")},getReplyMessageHTML:function(e){var i=e.msg&&"voice_note"==e.msg.att_type,t={message:''+e.msg+"",img_att:'
    '+getEscapedText(e.att_comment)+"
    ",file_att:''+getEscapedText(e.att_comment)+""},s=e.msgtype,a=t[s],o=$Support.isVisitorID(e.sender)?'proptype="visname"':"",c="img_att"!=s&&"file_att"!=s||i?"":" filereply_msg",n=e.ignoreclose?"":'';return['
    "+getEncodedText(e.dname)+'
    '+CommonUtil.checkAndGetReadableTime(e.time)+""+n+"
    "+a+"
    "].join("")},getMessageActionsHTML:function(e){var i=$Support.EmbedObj||{},t='';return!e.isvisitor||parseInt(e.msgid)':"")+t+(i.ismsgdelete_enabled?'':"")].join("")},getBotflowSetBackHTML:function(e){return'
    '+(e.rollback&&!e.disabled?''+LSResource.getRealValue("bot.rollbackflow")+"":"")+(e.restart?''+LSResource.getRealValue("bot.restartflow")+"":"")+"
    "},getVisitorEditMsgHTML:function(e){var i="",t="",s="";e.iattach&&(i=' isattachement="true"',t=" data-validate='charlimit 150' ",s='');var a=!i&&JSON.parse($Support.EmbedObj.eprops.showsmiley)?'
    ':"";return['
    '+LSResource.getRealValue("chat.msg.edit")+'
    "+s+a+'
    '+LSResource.getRealValue("common.cancel")+''+LSResource.getRealValue("common.done")+"
    "].join("")},getVisitorDeleteMsgHTML:function(e,i){var t=LSResource.getRealValue("chat.msg.delete"),s=LSResource.getRealValue("chat.msg.delete.desc"),a=LSResource.getRealValue("av.info.delete"),o="delico",c="senddeletemsg";return"chatend"===i&&(t=LSResource.getRealValue("ne.title.chatend"),s=LSResource.getRealValue("chat.end.desc"),a=LSResource.getRealValue("common.end"),o="end",c="closeChat"),['
    '+t+'
    '+s+'
    '+LSResource.getRealValue("common.cancel")+''+a+"
    "].join("")},getBlockMsgHTML:function(e){return'
    '+e+"
    "},getBookingErrorHTML:function(e){return'
    '+LSResource.getRealValue("embed.data.notavail")+"
    "+$Temp.getBlockMsgHTML(LSResource.getRealValue(e?"bookings.service.disabled":"bookings.staff.disabled"))},getCloseSeasonalImage:function(){return $Support.getParent().$ZSIQChat.isSeasonalTheme()?'':""}}}(window);var scrollHandler=function(){var r,n,m={},s=0,l={8:{min:85,max:120},9:{min:93,max:140},10:{min:87,max:110}},d={bottom:30,skew:9},i=function(e,t){var o=t.deltaY||-1*t.wheelDelta,i=m.header.height(),a=i-o;clearTimeout(s),i[themeid="9"] header:after { bottom: '+d.bottom+"px !important; "+a+" -webkit-"+a+" -moz-"+a+" -o-"+a+" -ms-"+a+" }")}};return{init:function(e,t){if($Support.Util.checkAndRemoveUnreadDIV(),a(e,t),-1==[4].indexOf($Support.getThemeID())&&!$("body").hasClass("ssview")&&!ZSIQWindowView.isOnlyCall()){if(!m.size){var o=l[$Support.getThemeID()];m.header=$Support.container.find("header"),m.size=getObjectSize(m),m.theme=$Support.getThemeID(),r=o.min,n=o.max}m.event=t,i(e,t),$TH.checkAboutmeClass(),$.fn.ztooltip.remove()}}}}();ZSIQConversationForm=function(){var s=$Support,d={},r={visitorname:{placeholder:"cw.form.name.placeholder",message:"cw.form.name.question",postmessage:"common.name"},visitoremail:{placeholder:"cw.form.email.placeholder",message:"cw.form.email.question",postmessage:"cw.form.email"},visitorphone:{placeholder:"cw.form.phone.placeholder",message:"cw.form.phone.question",postmessage:"ne.enterphone"},department:{postmessage:"common.department",message:"embed.choose_department"},campaign:{message:"embed.campaign.label"}},l={visitor_name:"isname",visitor_email:"isemail",visitor_phone:"isphoneno"},a=function(e,t,i,r){d=i||d;var a=o(e,t);$Support.requestRunning_fetchvisitorconfigurations=!0,$.ajax({url:a,type:"GET",success:function(e){var t=e&&e[0].objString?e[0].objString.form:{};delete $Support.requestRunning_fetchvisitorconfigurations,ZSIQWindowView.visitorFileds[ZSIQWindowView.getBrandStatus()]=t.msglist||[];parent.$ZSIQUtil.getJWTToken();if(Object.keys(t).length)return $Support.Util.resetFormFieldValue(),D(t.dname,t.title),u(t.msglist),Y(t.form_fields_auto_pick_enabled),$Support.chatstart&&($Support.showMessageWindowUI(),delete $Support.chatstart),"function"==typeof r?void r():ZSIQConversationForm.isOldFormView()||$Support.Util.isPreview()?(K(t),!0,void $Support.handleChatWindowUI()):(N()||$.isEmptyObject(d)||(d.contentdiv.find('[purpose="name"]').find(".sqico-edit").first().addClass("dN"),t.currwinobj=d,$Support.handleOnGoingchatActionsInConversation("formchat",t)),void n(e));var i=$Support.getParent().$ZSIQChat.getWidgetData().components;-1!==i.indexOf("chat")||-1===i.indexOf("call")?(!0,$Support.Util.resetFormFieldValue(),d.istrigmsg||d.proactive?x():((ZSIQConversationForm.isOldFormView()||$Support.Util.isPreview())&&$Support.handleChatWindowUI(),!ZSIQConversationForm.isOldFormView()&&!ZSIQConversationForm.maualedit&&x(),r&&r()),delete ZSIQConversationForm.maualedit,ZSIQConversationForm.clearSessionStorage()):r&&r()},error:function(e){delete $Support.requestRunning_fetchvisitorconfigurations,ZSIQConversationForm.clearSessionStorage(),$Support.handleChatWindowUI();var t=e&&e.status;LSDebugger.postDebugInfo("Fetchvisitorconfigurations Call - Errorstatus:"+t+"| AVUID:"+$Support.getParent().$ZSIQUtil.getAvuid(),null,"",!0)}})},o=function(e,t){ispreview=$Support.Util.isPreview();var i=s.getParent(),r=i.$ZSIQChat.getWidgetData().widgetobj.lsid||$Support.EmbedObj.appID,a=ispreview?"1":i.$ZSIQUtil.getAvuid();""!=a&&a||LSDebugger.postDebugInfo("AVUID empty for fetchvisitorconfig actual cookie val|"+s.LSDB.get("ZLD"+r+"avuid")+"| avuid taken from server immediate response |"+i.$ZSIQChat.server_avuid,null,"",!0),delete i.$ZSIQChat.server_avuid;var o=$Support.getAjaxURL("fetchvisitorconfigurations",dext),n=d&&d.question;return n=encodeURIComponent(n),o+="?avuid="+a+"&lsid="+r+(!N()&&n?"&visitor_question="+n:"")+(N()||ispreview||t?"&fetchallfields="+!0:"")+(e?"&clear_context="+!0:"")+("&app_status="+ZSIQWindowView.getBrandStatus())},n=function(e){var t=e&&e[0].objString?e[0].objString.form:{},i=($Support.EmbedObj,t.msglist||[]),r=i.length,a=t.visitor_question,o=t.form_type,n=d.isbottrigmsg&&a&&"conversation"==o;if(d.question||N()||!a||(d.question=a,!n&&p(r,t.form_type,a)),"classic"==o||N())m(e);else if(1"+getEscapedText(a)+"
    "+getEscapedText(e[a])+"
    "}return{sender:t,dname:t,msg:r,isvisitor:!0,time:i,isdisablecache:!0,restrict_msgsanitize:!0}};_disableComposer=function(){setTimeout(function(){$BotImpl.disableComposer()},2e3)};var N=function(e){return ZSIQConversationForm.maualedit},G=function(){var e,t=$Support.getParent().$ZSIQUtil.getAvuid(),i=J();i&&(d.question=i,$Support.Util.showMessageAreaUI("","","",d),d.showChatArea()),S(),!i&&s.LSDB.storeInSession(t+"_vist_ques",d.question),e=[{sender:"-1",dname:U(),meta:{field_name:"department",skippable:!1,isskiptopost:!1},msg:LSResource.getRealValue("embed.choose_department"),mtime:""+(new Date).getTime(),currwinobj:d}],$Support.handleOnGoingchatActionsInConversation("formchat",e[0]),e=F(e[0]),(e=g(e)).isdisablecache=!0,$BotImpl.formatAndDisplay(e,d.winid),_disableComposer()};_updateDeptValue=function(e,t){e.prev("#bottype_msg").remove(),e.remove(),!0,x()};var J=function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();return s.LSDB.getFromSession(e+"_vist_ques")},H=function(e){var t=$Support.fieldlist||[],i=t.map(function(e){return e.meta?e.meta.input_card?e.meta.input_card.type:e.meta.field_name:""}).indexOf(e);-1!=i&&t.splice(i,1)},z=function(){return!$Support.getCookieValue("ZLD"+$Support.EmbedObj.livelsid)||$Support.Util.IsMandatoryFieldsAvailable()||ZSIQConversationForm.getFormType()==CLASSIC_VIEW},K=function(e){if(e){for(var t=e.msglist||[],i=($Support.fieldlist=t).length,r=[],a=0;a( '+r+" )
    "),$("#msgbox_main").find(".flogo").hide())),void i.addClass("error_bar")}!function(e){var t=e.val()||$("#msgarea").val();if("true"==e.attr("iscustomfield")){var i=e.attr("fieldtype");k(i,t,!0)}else{var r=e.attr("purpose");"visitorname"==r&&(q("name","visitorname",t),$Support.EmbedObj.visitorname=t),"visitoremail"==r&&(q("email","visitoremail",t),$Support.EmbedObj.visitoremail=t),"visitorphone"==r&&(q("contactnumber","visitorphone",t),$Support.EmbedObj.visitorphone=t)}V(e,t.trim())}(i)}},clearSessionStorage:function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();$Support.LSDB.removeSessionStore(e+"_formcontextinitiated"),$Support.LSDB.removeSessionStore(e+"_vist_ques"),delete ZSIQConversationForm.classicformdata},checkInputVal:function(e){e.attr("value",$.trim(e.val())),e.val()||e.parent().removeClass("sel")},getOperatorName:U,getFormQuestion:function(){return s.EmbedObj.eprops.question[1].msg||LSResource.getRealValue("ne.operator.question","")},fetchFieldsToEdit:function(e,t,i){if(i&&(d=i),ZSIQConversationForm.maualedit=e,ZSIQConversationForm.triggerclbk=t){var r=$Support.EmbedObj;return d.question=$.trim(d&&d.composer.val())||$Widget.getLastMessage(),$BotImpl.formatAndDisplay({sender:r.visitorname,dname:r.visitorname,msg:d.question,isques:d.question},d.winid),d&&d.composer.val(""),void this.fetchConfigurations(d)}a()},updateAndGetClassicFormData:function(e){var t=e.msg;_classicformdata={};var i=t.msglist||[];i=w(i);for(var r,a=t.title||LSResource.getRealValue("ne.operator.question",""),o=MyDate.getHoursandMin(e.time,!0,"bclient"),n=t.msglist.length,s=0;s"+getEscapedText(a)+"
    "+getEscapedText(e[a])+"
    "}return{sender:t,dname:t,msg:r,isvisitor:!0,time:i,isdisablecache:!0,restrict_msgsanitize:!0}};_disableComposer=function(){setTimeout(function(){$BotImpl.disableComposer()},2e3)};var N=function(e){return ZSIQConversationForm.maualedit},G=function(){var e,t=$Support.getParent().$ZSIQUtil.getAvuid(),i=J();i&&(d.question=i,$Support.Util.showMessageAreaUI("","","",d),d.showChatArea()),S(),!i&&s.LSDB.storeInSession(t+"_vist_ques",d.question),e=[{sender:"-1",dname:U(),meta:{field_name:"department",skippable:!1,isskiptopost:!1},msg:LSResource.getRealValue("embed.choose_department"),mtime:""+(new Date).getTime(),currwinobj:d}],$Support.handleOnGoingchatActionsInConversation("formchat",e[0]),e=F(e[0]),(e=g(e)).isdisablecache=!0,$BotImpl.formatAndDisplay(e,d.winid),_disableComposer()};_updateDeptValue=function(e,t){e.prev("#bottype_msg").remove(),e.remove(),!0,x()};var J=function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();return s.LSDB.getFromSession(e+"_vist_ques")},H=function(e){var t=$Support.fieldlist||[],i=t.map(function(e){return e.meta?e.meta.input_card?e.meta.input_card.type:e.meta.field_name:""}).indexOf(e);-1!=i&&t.splice(i,1)},z=function(){return!$Support.getCookieValue("ZLD"+$Support.EmbedObj.livelsid)||$Support.Util.IsMandatoryFieldsAvailable()||ZSIQConversationForm.getFormType()==CLASSIC_VIEW},K=function(e){if(e){for(var t=e.msglist||[],i=($Support.fieldlist=t).length,r=[],a=0;a( '+r+" )
    "),$("#msgbox_main").find(".flogo").hide())),void i.addClass("error_bar")}!function(e){var t=e.val()||$("#msgarea").val();if("true"==e.attr("iscustomfield")){var i=e.attr("fieldtype");k(i,t,!0)}else{var r=e.attr("purpose");"visitorname"==r&&(q("name","visitorname",t),$Support.EmbedObj.visitorname=t),"visitoremail"==r&&(q("email","visitoremail",t),$Support.EmbedObj.visitoremail=t),"visitorphone"==r&&(q("contactnumber","visitorphone",t),$Support.EmbedObj.visitorphone=t)}V(e,t.trim())}(i)}},clearSessionStorage:function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();$Support.LSDB.removeSessionStore(e+"_formcontextinitiated"),$Support.LSDB.removeSessionStore(e+"_vist_ques"),delete ZSIQConversationForm.classicformdata},checkInputVal:function(e){e.attr("value",$.trim(e.val())),e.val()||e.parent().removeClass("sel")},getOperatorName:U,getFormQuestion:function(){return s.EmbedObj.eprops.question[1].msg||LSResource.getRealValue("ne.operator.question","")},fetchFieldsToEdit:function(e,t,i){if(i&&(d=i),ZSIQConversationForm.maualedit=e,ZSIQConversationForm.triggerclbk=t){var r=$Support.EmbedObj;return d.question=$.trim(d&&d.composer.val())||$Widget.getLastMessage(),$BotImpl.formatAndDisplay({sender:r.visitorname,dname:r.visitorname,msg:d.question,isques:d.question},d.winid),d&&d.composer.val(""),void this.fetchConfigurations(d)}a()},updateAndGetClassicFormData:function(e){var t=e.msg;_classicformdata={};var i=t.msglist||[];i=w(i);for(var r,a=t.title||LSResource.getRealValue("ne.operator.question",""),o=MyDate.getHoursandMin(e.time,!0,"bclient"),n=t.msglist.length,s=0;s'},CallImpl.compImgHtml=function(){var e=$Support.EmbedObj.clogo;return e?'
    '},CallImpl.getCompImgHtmlCALFAQ=function(){return'
    '},CallImpl.checkAndStartCall=function(e){if(!$("#dept_strtcall").hasClass("bg-ddd")){var l=$("#call_inptfields");if(!$Support.Util.validateFields(l))return $(".cal-bodycont").animate({scrollTop:0},500),!1;""!=$("#visname").val().trim()&&($Support.EmbedObj.visitorname=$("#visname").val()),""!=$("#visemail").val().trim()&&($Support.EmbedObj.visitoremail=$("#visemail").val()),this.isCallWithChat=!0,CallImpl.updateUI(AV_OUTGOINGCALL),$Support.startChat()}},CallImpl.checkFeedbackMsgHgt=function(){var e=$Support.container;$("#faqcall").length&&(e=$("#faqcall"));var l=e.find(".cal-footer"),a=e.find("#fdbkarea");l.removeAttr("style");var t=a[0].scrollHeight+2,i=140'},CallImpl.checkInputFields=function(){var e=$("#callfaq_inptfields");if(!$Support.Util.validateFields(e))return!1;""!=$("#visname").val().trim()&&($Support.EmbedObj.visitorname=$("#visname").val()),""!=$("#visemail").val().trim()&&($Support.EmbedObj.visitoremail=$("#visemail").val()),CallUIHandler.getTemplate(AV_DEPT,AV_MAXIMIZE)},CallImpl.checkDeptFields=function(){$("#dept_strtcall").parent().hasClass("fcal-enb")&&(this.isCallWithChat=!0,CallImpl.updateUI(AV_OUTGOINGCALL),$Support.startChat())},CallImpl.handleFAQClick=function(e){$("body").find("#faqcall").remove(),e&&$("body").append($Temp.getOnCallUI(avimpl.attenderimgurl)),$Support.container.find(".sqico-faqico").click(),document.getElementsByClassName("zsembd_audiocl")[0].sdrag()},CallImpl.updateRecorderHTML=function(e){var l=$Support.chidmappinglist[e];ZSIQConversationManager.getChatWinObjById(l).contentdiv.find(".usrinpt").append($Temp.getRecorderHTML().replace(/{SQICOVOICENOTE}/g,l))};function CallUIHandler(){}CallUIHandler.classmapp={},CallUIHandler.classmapp[AV_INCOMINGCALL]="",CallUIHandler.classmapp[AV_OUTGOINGCALL]="outcal",CallUIHandler.classmapp[AV_CONNECTING]="cal-recnct",CallUIHandler.classmapp[AV_ONGOING]="outcal",CallUIHandler.classmapp[AV_RECONNECTING]="cal-recnct",CallUIHandler.classmapp[AV_USERBUSY]="",CallUIHandler.classmapp[AV_RATING]="pL25",CallUIHandler.classmapp[AV_USERBUSY]="";var CALLALONE=1,CALLPLUSFAQ=2,CHATPLUSCALLPLUSFAQ=3;CallUIHandler.getTemplate=function(l,a,e){if("FAQPLUSCALL"!=CallImpl.getTheme()){switch((-1==e?$("#audiorec"):$("#audiocal")).replaceWith(this.mapTemp(l)),handleDrag(),setTimeout(function(){$(".zsembd_audiocl").hide()},1),a){case AV_MINIMIZE:$Support.getParent().$ZSIQWidgetUI.handleMinimizeCall();break;case AV_MAXIMIZE:$Support.getParent().$ZSIQWidgetUI.handleMinCall();break;case AV_FEDBCK:$Support.getParent().$ZSIQWidgetUI.handlefbCall()}}else 0<$("body").find("#faqcall").length?$("body").find("#faqcall").replaceWith(this.getTempForCALLPLUSFAQ(l,CALLPLUSFAQ)):$("body").prepend(this.getTempForCALLPLUSFAQ(l,CALLPLUSFAQ))},CallUIHandler.mapTemp=function(l){return"theme5"==CallImpl.getTheme()?this.getTempForSignChat(l):CallUIHandler.classmapp.hasOwnProperty(l)?this.getTempForThemes(l):this.getRequiredHtml(l)},CallUIHandler.getRequiredHtml=function(l,a){var e="";switch(l){case AV_INCOMINGCALL:e=a==CALLPLUSFAQ?this.getFQCALINCallhtml():this.getIncommingCallHtml();break;case AV_OUTGOINGCALL:e=a==CALLPLUSFAQ?this.getFQCALOUTCallhtml():this.getOutgoingCallHtml();break;case AV_CONNECTING:e=a==CALLPLUSFAQ?this.getFQCALConnectingCallhtml():this.getConnectingHtml();break;case AV_ONGOING:e=a==CALLPLUSFAQ?this.getFQCALOnCallhtml():this.getOnGoingCallHtml();break;case AV_RECONNECTING:e=this.getReConnectingHtml();break;case AV_USERBUSY:e=a==CALLPLUSFAQ?this.getFQCALUserBusyhtml():this.getUserBusyHtml();break;case AV_RATING:e=a==CALLPLUSFAQ?this.getFQCALRatinghtml():this.getRatingHtml();break;case AV_BODY:e=a==CALLPLUSFAQ?this.getFQCALBodyhtml():this.getBodyHtml();break;case AV_DEPT:e=this.getFQCALDepthtml();break;case AV_CALLAGAIN:e=a==CALLPLUSFAQ?this.getFQCALCallAgainhtml():this.getCallCancelledHtml();break;case AV_RATINGSUCCESS:e=this.getRatingSuccessHtml();break;case AV_FDBCK:e=a==CALLPLUSFAQ?this.getFQCALFDBKhtml():this.getFdbkratingHtml();break;case AV_FDBCKSUCCESS:e=a==CALLPLUSFAQ?this.getFQCALFDBKSucesshtml():this.getFdbkSuccessHtml();break;case AV_RECORDING:e=a==CALLPLUSFAQ?this.getFQCALRecordhtml():this.getRecordingHtml();break;case AV_PLAY:e=a==CALLPLUSFAQ?this.getFQCALAVPlayhtml():this.getRecordAVPlayHtml();break;case AV_RECORDSENTSUCCESS:e=a==CALLPLUSFAQ?this.getFQCALRecordSuccesshtml():this.getRecordSuccessHtml()}return e},CallUIHandler.getTempForThemes=function(l){return['
    ','
    ','
    ',this.getRequiredHtml(l),"
    ","
    "].join("")},CallUIHandler.getTempForSignChat=function(l){return['
    ','
    ','
    ',this.getRequiredHtml(l),"
    "].join("")},CallUIHandler.getTempForCALLPLUSFAQ=function(l,a){return['
    ',this.getRequiredHtml(l,a),"
    "].join("")},CallUIHandler.getNameText=function(){var l=CallImpl.getAttenderName();return'"},CallUIHandler.getOutgoingCallHtml=function(){return['
    '+CallImpl.compImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.calling")+"

    ",'
    '].join("")},CallUIHandler.getIncommingCallHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'
    '+CallUIHandler.getNameText()+'

    '+LSResource.getRealValue("av.info.reconnecting")+"

    ",'
    '].join("")},CallUIHandler.getOnGoingCallHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'
    '+CallUIHandler.getNameText()+'

    00:00

    ','
    '].join("")},CallUIHandler.getConnectingHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'
    '+CallUIHandler.getNameText()+'

    '+LSResource.getRealValue("av.info.connecting")+"

    ",'
    '].join("")},CallUIHandler.getReConnectingHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'
    '+CallUIHandler.getNameText()+'

    '+LSResource.getRealValue("av.info.reconnecting")+"

    ",'
    '].join("")},CallUIHandler.getUserBusyHtml=function(){return['
    '+CallImpl.compImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.voicemsg")+"

    ",'
    '].join("")},CallUIHandler.getRatingHtml=function(){var l=$Support.EmbedObj.ratingtitle?$Support.EmbedObj.ratingtitle:LSResource.getRealValue("ne.rating.byline");return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'
    ','",'
    ','','','',"
    ",'","
    "].join("")},CallUIHandler.getStarHTML=function(l){for(var a="",e=null!=l?"":'documentclick="sendCallRating"',s=0;s<5;s++)a+='";return a},CallUIHandler.getCallCancelledHtml=function(){return['
    '+CallImpl.getBackGndImg("Comp")+'
    ','
    '+CallImpl.compImgHtml()+'
    '+CallImpl.getCompValueForKey("name")+'
    ','

    '+CallImpl.getCompValueForKey("desc")+'

    '].join("")},CallUIHandler.getFdbkratingHtml=function(){var l=ZSIQConversationManager.getChatWinObjById(avimpl.chid).rating;return['
    '+CallImpl.getBackGndImg()+'
    ','
    '+CallImpl.getAttenderImgHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+$Support.getReactionIndex(l)+'
    '].join("")},CallUIHandler.getFdbkSuccessHtml=function(){return['
    '+CallImpl.getBackGndImg()+'
    ','
    '+CallImpl.getAttenderImgHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.ratingandfbk")+'
    '].join("")},CallUIHandler.getRecordingHtml=function(){return['
    ','
    '+CallImpl.compImgHtml()+'

    00:00:00

    '+LSResource.getRealValue("av.info.recordingaudio")+"

    ",'
    00:00
    '].join("")},CallUIHandler.getRecordAVPlayHtml=function(){return['
    ','
    '+CallImpl.compImgHtml()+"
    ",'
    00:00 / 00:00
    '].join("")},CallUIHandler.getRecordSuccessHtml=function(){return['
    ','
    '+CallImpl.compImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.voicesent")+'

    '].join("")},CallUIHandler.getBodyHtml=function(){var l=$Support.EmbedObj,a=($Support.EmbedObj.status,l.eprops);return['
    '+CallImpl.getBackGndImg("Comp")+'
    '+CallImpl.compImgHtml()+'
    '+CallImpl.getCompValueForKey("name")+'
    '+LSResource.getRealValue("av.info.welcomemsg")+"
    ",'
    ',JSON.parse(a.isname[0])?this.getNameHTML(a.isname[1].ismandatory):"",JSON.parse(a.isemail[0])?this.getEmailHTML(a.isemail[1].ismandatory):"",'
    ',1<$Support.EmbedObj.deptlist.length?'
    '+LSResource.getRealValue("av.info.deptchoose")+"
    ":'
    ',1<$Support.EmbedObj.deptlist.length&&(l.department,1)?this.getDeptList():"","
    "].join("")},CallUIHandler.getNameHTML=function(l,a){a=a||"";var e="optional",s="";e="required",LSResource.getRealValue("ne.required"),s=' docblur="required"';var t=$Support.Util.isInValidVisitorName($Support.EmbedObj.visitorname)?"":$Support.EmbedObj.visitorname,i=t?"dN":"";return''},CallUIHandler.getEmailHTML=function(l){LSResource.getRealValue("ne.required");var a=$Support.EmbedObj.visitoremail||"";return['',this.getFetchMailHTML()].join("")},CallUIHandler.handletextfiled=function(l){$(l).siblings("span").addClass("dN"),""==l.value&&$(l).siblings("span").removeClass("dN")},CallUIHandler.getPhoneHTML=function(l){var a="optional",e="",s="";return"true"===l&&(a="required",e=" ("+LSResource.getRealValue("ne.required")+")",s=' docblur="required"'),'
    '+this.getRequiredHTML("*")+"
    "},CallUIHandler.getRequiredHTML=function(l){return l=l||"",'*'},CallUIHandler.getFetchMailHTML=function(l){return $Support.EmbedObj.fetchid?'
    ':""},CallUIHandler.getDeptList=function(){var l="",a=$Support.EmbedObj.deptlist;for(i in a){var e=a[i].DNAME;l+=''+e+""}return['
    ',l,'
    '].join("")},CallUIHandler.getFQCALINCallhtml=function(){},CallUIHandler.getFQCALBodyhtml=function(){var l=$Support.EmbedObj,a=($Support.EmbedObj.status,l.eprops);return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+CallImpl.getCompValueForKey("desc")+"

    ",'
    ',JSON.parse(a.isname[0])?this.getNameHTML(a.isname[1].ismandatory):"",JSON.parse(a.isemail[0])?this.getEmailHTML(a.isemail[1].ismandatory):"",'
    '+LSResource.getRealValue("av.info.deptchoose")+"
    "].join("")},CallUIHandler.getFQCALDepthtml=function(){var l="",a=$Support.EmbedObj.deptlist;for(i in a){var e=a[i].DNAME;l+=''+e+""}return setTimeout(function(){$("#FQCLdeptlist").on("click","[call-dept]",function(){$("#FQCLdeptlist").find("[call-dept]").removeClass("fcal-sel"),$(this).addClass("fcal-sel"),$Support.EmbedObj.department=this.id,$("#dept_strtcall").parent().removeClass("fcal-dis").addClass("fcal-enb")})},2),['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+CallImpl.getCompValueForKey("desc")+"

    ",'
    '+LSResource.getRealValue("av.info.deptchoose")+'
    ',l,'
    '+LSResource.getRealValue("av.info.call")+"
    "].join("")},CallUIHandler.getFQCALOUTCallhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+LSResource.getRealValue("av.info.calling")+"

    ",'
    '+LSResource.getRealValue("av.info.mute")+'
    '+LSResource.getRealValue("av.info.end")+"
    "].join("")},CallUIHandler.getFQCALConnectingCallhtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+'

    '+LSResource.getRealValue("av.info.connecting")+"

    ",'
    '+LSResource.getRealValue("av.info.mute")+'
    '+LSResource.getRealValue("av.info.faq")+'
    '+LSResource.getRealValue("av.info.end")+"
    "].join("")},CallUIHandler.getFQCALOnCallhtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+'

    00:00

    ','
    '+LSResource.getRealValue("av.info.mute")+'
    '+LSResource.getRealValue("av.info.faq")+'
    '+LSResource.getRealValue("av.info.end")+"
    "].join("")},CallUIHandler.getFQCALRatinghtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.rating")+'
    '+this.getStarHTML()+'

    '+LSResource.getRealValue("av.info.ratingclick")+"

    "].join("")},CallUIHandler.getFQCALFDBKhtml=function(){var l=ZSIQConversationManager.getChatWinObjById(avimpl.chid).rating;return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.ratingsuccess")+'
    '].join("")},CallUIHandler.getFQCALFDBKSucesshtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.ratingandfbk")+'
    '+LSResource.getRealValue("av.info.callback")+"
    "].join("")},CallUIHandler.getFQCALCallAgainhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+CallImpl.getCompValueForKey("desc")+"

    ",'
    '].join("")},CallUIHandler.getFQCALUserBusyhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+LSResource.getRealValue("av.info.oprbusy")+'

    '+LSResource.getRealValue("av.info.voicemsg")+"

    ",'
    '+LSResource.getRealValue("av.info.voicemsgtxt")+'
    '+LSResource.getRealValue("av.info.faq")+'
    '+LSResource.getRealValue("av.info.callback")+"
    "].join("")},CallUIHandler.getFQCALRecordhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    00:00:00

    ','
    00:00
    '+LSResource.getRealValue("av.info.stop")+"
    "].join("")},CallUIHandler.getFQCALAVPlayhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    00:00

    ','
    '+LSResource.getRealValue("av.info.voicemsgtxt")+'
    '+LSResource.getRealValue("av.info.play")+'
    '+LSResource.getRealValue("av.info.send")+"
    "].join("")},CallUIHandler.getFQCALRecordSuccesshtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+LSResource.getRealValue("av.info.voicesent")+"

    ",'
    '].join("")},CallUIHandler.getInitialHtml=function(){return['
    '+CallImpl.getBackGndImg("Comp")+'
    ','
    '+CallImpl.compImgHtml()+"
    ",'
    '+CallImpl.getCompValueForKey("name")+'
    ','

    '+CallImpl.getCompValueForKey("desc")+'

    '+LSResource.getRealValue("av.info.callnow")+"
    "].join("")};var getBrowserFromUserAgent=function(e){var t=e.toLowerCase(),r="unknown-unknown";if(-1',n=n.querySelector("#level_audio2"),g={elem:n,ctx:n.getContext("2d"),step:-4,bufferLength:null,dataArray:null,stepincrement:2,waveTrigger:null,lineX:0},e=o.querySelector('[cntrl="settings"]'),t=o.querySelector('[cntrl="playRecord"]'),r=o.querySelector('[cntrl="stopRecord"]'),u={start:{trigger:e,cntrl:"startRecord",add:"zsiqmico-record",remove:"zsiqmico-settings",title:LSResource.getRealValue("av.info.recordagain")},stop:{trigger:r,cntrl:"stopRecord",add:"zsiqmico-stop",remove:"zsiqmico-send",title:LSResource.getRealValue("av.info.stop")},setting:{trigger:e,cntrl:"settings",add:"zsiqmico-settings",remove:"zsiqmico-record"},play:{trigger:t,cntrl:"playRecord",add:"zsiqmico-play",remove:"zsiqmico-pause",title:LSResource.getRealValue("av.info.play")},pause:{trigger:t,cntrl:"pauseRecord",add:"zsiqmico-pause",remove:"zsiqmico-play",title:LSResource.getRealValue("av.info.pause")},send:{trigger:r,cntrl:"uploadRecord",add:"zsiqmico-send",remove:"zsiqmico-stop",title:LSResource.getRealValue("av.info.send")},add:{trigger:r,cntrl:"uploadRecord",add:"zsiq_media_mL13",title:LSResource.getRealValue("av.info.send")},remove:{trigger:r,cntrl:"uploadRecord",remove:"zsiq_media_mL13",title:LSResource.getRealValue("av.info.send")}},x=function(){A=0,f("setting"),u.setting.trigger.style.display="none",u.play.trigger.style.display="none",f("remove"),f("stop"),ie(!0),R=100*h},C=function(){f("send"),u.setting.trigger.style.display="flex",u.play.trigger.style.display="flex",f("add"),f("play"),f("start"),R=A,A=0},I=function(){o.remove()}},H=function(){var e=$Support.chidmappinglist[m];CallImpl.updateRecorderHTML(m),o=document.getElementById(e),B(),x=function(){le("disable"),A=0,R=100*h,a=o.querySelector("#sqico-timer");var e,t,r,n=o.querySelector("#sqico-canvas");n.innerHTML='',n=n.querySelector("#level_audio"),g={elem:n,ctx:n.getContext("2d"),bufferLength:null,dataArray:null,waveTrigger:null,lineX:0},B(),U=!0,e=o.querySelector('[cntrl="cancelRecord"]'),t=o.querySelector('[cntrl="settings"]'),r=o.querySelector('[cntrl="stopRecord"]'),u={setting:{trigger:t,cntrl:"settings"},cancel:{trigger:t,cntrl:"cancelRecord",title:LSResource.getRealValue("av.info.delete")},play:{trigger:e,cntrl:"playRecord",add:"sqico-play",remove:"sqico-pause",title:LSResource.getRealValue("av.info.play")},pause:{trigger:e,cntrl:"pauseRecord",add:"sqico-pause",remove:"sqico-play",title:LSResource.getRealValue("av.info.pause")},send:{trigger:r,cntrl:"uploadRecord",add:"siq-send-button",remove:"siq-voice-stop-icn",title:LSResource.getRealValue("av.info.send")},add:{trigger:r,cntrl:"uploadRecord",add:"sqico-send",title:LSResource.getRealValue("av.info.send")},addMargin:{trigger:r,cntrl:"uploadRecord",add:"mL15",title:LSResource.getRealValue("av.info.send")},removeCancelIcon:{trigger:e,cntrl:"playRecord",add:"sqico-play",remove:"sqico-close",title:LSResource.getRealValue("av.info.play")},addDisable:{trigger:t,cntrl:"",add:"cmn_disable",title:LSResource.getRealValue("av.info.delete")}}},C=function(){R=A,A=0,U=!1,f("removeCancelIcon"),(SiqAVRouter&&SiqAVRouter.container).detailsHandler.hasAudioCallInvitation()?le("disable"):le("show"),$("body").find("#recording-icon").remove(),f("play"),u.setting.trigger.style.display="flex",f("cancel"),f("send"),f("add"),f("addMargin"),o.querySelector(".siq-send-button").setAttribute("documentclick","");var r=0,e=getBrowserFromUserAgent(navigator.userAgent).split("-")[0],n="Chrome"==e||"Opera"==e;V=n;var i=o.querySelector("#sqico-canvas");function t(e){var t=i.offsetLeft-(r-e.clientX);A=R/parseInt(i.clientWidth)*t,l&&(l.currentTime=n?A/200:A/100),r=e.clientX}function a(e){document.onmouseup=null,document.onmousemove=null,q&&l&&(me(),l.play())}i.style.cursor="pointer",i.onclick=function(e){var t=i.getBoundingClientRect(),r=$Support.EmbedObj.isRtlLang?t.right-e.clientX:e.clientX-t.left;A=R/parseInt(i.clientWidth)*r,l&&(q&&l.pause(),l.currentTime=n?A/200:A/100,q&&l.play())},i.onmousedown=function(e){e.stopPropagation(),r=e.clientX,document.onmouseup=a,q&&l&&(l.pause(),clearInterval(c)),document.onmousemove=t}},I=function(){f("addDisable"),o.querySelector(".siq-send-button").remove(),o.querySelector(".siqc-progress").style="display:flex"}},P=function(){var e,t,r,n,i;(o=document.querySelector("#audiorec"))&&(o.querySelector("#startRecord").style="display : none",B(),a=o.querySelector("#sqico-timer"),e=o.querySelector('[cntrl="recordAgain"]'),t=o.querySelector('[cntrl="playRecord"]'),r=o.querySelector('[cntrl="pauseRecord"]'),n=o.querySelector('[cntrl="stopRecord"]'),i=o.querySelector('[cntrl="uploadRecord"]'),u={start:{trigger:e,cntrl:"recordAgain"},play:{trigger:t,cntrl:"playRecord"},pause:{trigger:r,cntrl:"pauseRecord"},stop:{trigger:n,cntrl:"stopRecord"},send:{trigger:i,cntrl:"uploadRecord"}},x=function(){A=0,o.querySelector("#sqico-canvas").style="display : none",u.stop.trigger.style.display="flex",u.play.trigger.style.display="none",u.pause.trigger.style.display="none",u.send.trigger.style.display="none",u.start.trigger.style.display="none",R=100*h},C=function(){R=A;var r=A=0,e=getBrowserFromUserAgent(navigator.userAgent).split("-")[0],n="Chrome"==e||"Opera"==e;V=n;var i=o.querySelector("#sqico-canvas");function t(e){var t=i.offsetLeft-(r-e.clientX);A=R/parseInt(i.clientWidth)*t,l&&(l.currentTime=n?A/200:A/100),r=e.clientX}function a(e){document.onmouseup=null,document.onmousemove=null,q&&l&&(me(),l.play())}i.style="display : flex",i.innerHTML='',i=i.querySelector("#level_audio"),g={elem:i,ctx:i.getContext("2d"),bufferLength:null,dataArray:null,waveTrigger:null,lineX:0},i.style.cursor="pointer",i.onclick=function(e){var t=i.getBoundingClientRect(),r=$Support.EmbedObj.isRtlLang?t.right-e.clientX:e.clientX-t.left;A=R/parseInt(i.clientWidth)*r,l&&(q&&l.pause(),l.currentTime=n?A/200:A/100,q&&l.play())},i.onmousedown=function(e){e.stopPropagation(),r=e.clientX,document.onmouseup=a,q&&l&&(l.pause(),clearInterval(c)),document.onmousemove=t},u.start.trigger.style.display="flex",u.stop.trigger.style.display="none",u.play.trigger.style.display="flex",u.send.trigger.style.display="flex"},I=function(){})},E=function(){window.currentAudioElement&&window.currentAudioElement.pause(),window.currentRecorder||(window.currentRecorder=we),w&&de(!0),q&&X(),!q&&S&&(U=!0,x(),n.postMessage({command:"clear"}),l=null,N(),S=!1)},D=function(){w&&de(!1),S||(U=!1,C(),i.close(),J(),n.postMessage({command:"getView"}),ie(!0),S=!0)},X=function(){l&&(q=!1,clearInterval(c),l.pause(),(!w&&!CallImpl.isCallWithChat||"FAQPLUSCALL"==CallImpl.getTheme())&&ie(!1)),T?(u.pause.trigger.style.display="none",u.play.trigger.style.display="flex"):f("play")},e=function(){if(window.currentAudioElement&&window.currentAudioElement.pause(),window.currentRecorder||(window.currentRecorder=we),T?(u.play.trigger.style.display="none",u.pause.trigger.style.display="flex"):f("pause"),l)return q=!0,!w&&!CallImpl.isCallWithChat||"FAQPLUSCALL"==CallImpl.getTheme()?ee(te,25):ee(oe,50),l.play(),void me();l=new Audio,q=!0,!w&&"FAQPLUSCALL"==CallImpl.getTheme()&&ee(te,25),r(),me()},r=function(){var e=URL.createObjectURL(new Blob([s],{type:"audio/wav"}));if(l.src=e,!CallImpl.isCallWithChat||T){(i=new AudioContext).resume();var t=i.createMediaElementSource(l);p=i.createAnalyser(),t.connect(p),p.connect(i.destination),w||T?ee(oe,50):ee(te,25)}l.play(),l.currentTime=V?A/200:A/100},W=function(){var i,a,e=ue();if(w&&R<100&&e&&e.RCHID==m)return $UI.showBanner(LSResource.getRealValue("voicenote.timer.check.banner.content"),!0,null,5e3),void Q();o.removeEventListener("click",t),X(),I(),setTimeout(function(){var e,t,r,n=w?"Voice note":"Audio";a=window.lamejs?(e=s,t=lamejs.WavHeader.readHeader(e),r=new Int16Array(e.buffer,t.dataOffset,t.dataLen/2),i=function(e,t,r){for(var n=[],i=new lamejs.Mp3Encoder(e,t,128),a=r.length,o=0;1152<=a;o+=1152){var l=r.subarray(o,o+1152),s=i.encodeBuffer(l);0',r.mic.forEach(function(a){var e="";t===a.deviceId&&(e='class="sqico-tick"'),n+="
    '+a.label+"
    "}),n+=""}if(r.speaker.length){t="default";n+='"}n+="",$(window.parent.document).find("body").append(n),$("#audio_setting",parent.document).on("click","[mdevice-switch]",function(){$("#audio_setting",parent.document).find("[mdevice-switch]").removeClass("sel-bor");var a=$(this).addClass("sel-bor").attr("mdevice-switch");$("#audio_setting",parent.document).find("[mdevice-cnt]").hide(),$("#audio_setting",parent.document).find('[mdevice-cnt="'+a+'"]').show()}),$("#audio_setting",parent.document).on("click","[deviceid]",function(){var a=$(this).parent().attr("mdevice-cnt");if($("#audio_setting",parent.document).find('[mdevice-cnt="'+a+'"]').children().removeClass("sqico-tick"),$(this).addClass("sqico-tick"),"mic"!=a){var e=$(this).attr("deviceid"),n=document.getElementById("remoteaudio");void 0!==n.sinkId&&n.setSinkId(e).then(function(){})}});var e=parent.document.getElementById("siqiframe").getBoundingClientRect(),i=document.getElementById("call_stngicon").getBoundingClientRect(),c=parent.document.getElementById("audio_setting").style,o=e.left+i.left,l=e.top+i.top;c.left=CallImpl.CALLFAQ?o-260+"px":o-284+"px",c.top=CallImpl.CALLFAQ?l+15+"px":l-31+"px",$(document).click(function(a){$(a.target).closest("#audio_setting",parent.document).length||$(a.target).closest("#call_stngicon",parent.document).length||$("#audio_setting",parent.document).is(":visible")&&$("#audio_setting",parent.document).hide()})})},avaction.checkConnectionAndCall=function(a,e,n){var t=getStaticURL("/salesiq/images/spacer_5Wgj_nuZq1_wS_S4I4YFafauD4gqbOBXrZwzKtiQFPXWh21kmvBkUfQl6-vN8h9z_.gif");$("body").append(''),$("#ntwcheckimg").on("load",function(){"function"==typeof a&&avaction.successCallBack(a,n),$("#ntwcheckimg").remove()}),$("#ntwcheckimg").on("error",function(){"function"==typeof e&&avaction.errorCallBack(a,e,n),$("#ntwcheckimg").remove()}),$("#ntwcheckimg").attr("src",t+"?nocache="+(new Date).getTime())},avaction.checkConnectionActivity=function(a,e,n){avaction.reconnectinterval||(avaction.reconnectinterval=setInterval(function(){avaction.checkConnectionAndCall(a,"",n)},5e3))},avaction.successCallBack=function(a,e){avaction.connectionStatus=!0,avaction.reconnectinterval&&(clearInterval(avaction.reconnectinterval),avaction.reconnectinterval=null),a(e)},avaction.errorCallBack=function(a,e,n){avaction.connectionStatus=!1,e!=avaction.checkConnectionActivity?e():e(a,e,n)},avaction.transferInitiateReq=function(a,e){if(!AgentDB.getRepresentative()[CurrentUser.getLSUID()].callstatus||"DEPARTMENT"!=a.type){var n=a.chid,t=e?a.creator:a.sender,i=a.visitorid,c=a.mediaid;a.transferReqTimeout=setTimeout(function(){PortalUI.rejectTransChat(n,t,i,c)},3e4),avaction.addCallTransferObj(a,e),avaction.showcallTransferInvitation(a,e),Sound.playTune("vchat-transfer",6)}},avaction.showcallTransferInvitation=function(a,e){if(1===$("body").find(".call_wh").length&&$(".call_wh").find(".call_pickup").length<2?($("#additionalcallcount").remove(),$(".call_wh").append(Template.getTransferReqUI(a,e))):0===$("body").find(".call_wh").length&&$("body").append('
    '+Template.getTransferReqUI(a,e)+"
    "),2==$(".call_wh").find(".call_pickup").length){var n=avaction.getCallTransferOBJ(),t=Object.keys(n).length-2;$("#additionalcallcount").remove(),0+'+t+"more Calls")}},avaction.checkAndUpdateCallTransferInvitation=function(){for(var a=avaction.getCallTransferOBJ(),e=Object.keys(a),n=0;n'+$Temp.getLoadingHTML()+"")):$("#faqdiv").html($Temp.getLoadingHTML());r=t?"&canned_category_id="+t:"";_appsenabled?r+="&app_id="+$Support.EmbedObj.livelsid:r+="&department_id="+e,$Support.getParent().$ZSIQUtil.ajax(d()+"/visitor/v2/"+_SCREENNAME+"/cannedmessages?limit="+c+r+"&language_code="+$Support.EmbedObj.embedlang,function(e){var t=JSON.parse(e).data;a(t)},function(){},!0)}else a(s)},i=function(e){var t=$Support.LSDB.getFromSession(p());if(t){var a=[];if(_appsenabled)a=t;else for(var i=0;i
    '+LSResource.getRealValue("faq.article.viewall")+'
    '+r+'
    '}}var c=$("#faqdiv"),d=!c.find("#article-wrap").length;c.html('
    '+s+"
    "),d&&c.hide().fadeIn(),$Support.Util.handleAccordian(function(e){var t=c.attr("department_id"),a=e.parent().attr("category_id");n(t,a,function(e){_appsenabled?$Support.LSDB.storeInSession("faq_"+a,e):$Support.LSDB.storeInSession("faq_"+t+"_"+a,e),l(t,"",e,a)})})},l=function(e,t,a,i){a=a||(_appsenabled?$Support.LSDB.getFromSession("faq_"):$Support.LSDB.getFromSession("faq_"+e));for(var s=q(t),o=0,r="",c=[],d=_(),n=0;n/gi," ");u=getEncodedText(u);var f=l.visitors_liked,m=E().enabled&&f&&"0"!=f?"'+l.visitors_liked+"":"",g=p&&"0"!=p?""+p+" "+v+"":LSResource.getRealValue("faq.noviews");r+='
    '+getEncodedText(u)+'

    '+g+m+"

    ",c.push(l.id),o++}}s&&!d&&$("#"+i).html(r),h(),(d&&o||o&&!s)&&$("#faqbox").find("#faqdiv").html(r),o||$("#faqbox").find("#faqdiv").html(S(t))},h=function(){$("#faqbox").find("#faqdiv").length||$("#faqbox").html('
    ')},S=function(e,t){e=getEncodedText(e)||"",$FAQ.toggleSearchIcon(e||1<$("#faqdiv").find('[data-type="accordian"]').length),t="faqs"===t?"FAQs":"articles";var a=e?LSResource.getRealValue("widget.location.notfound"):LSResource.getRealValue("faq.noresult",t),i=e?LSResource.getRealValue("faq.noresult.desc",[t,e]):LSResource.getRealValue("faq.empty",t),s=-1==$Support.EmbedObj.chatID?LSResource.getRealValue("ne.chatnow"):LSResource.getRealValue("ne.gotochat");return'

    '+a+"

    "+i+(R()?'
    '+s+"
    ":"")+"
    "},q=function(e){return!e&&(!!$Support.EmbedObj.faqaccess.length&&"1"==$Support.EmbedObj.faqaccess[1].orderbycategory)},p=function(e){return e?"faq_"+e:"faq_count_"+$Support.EmbedObj.mappeddept},c=function(e,t){for(var a="",i=0;i
    '+r+'

    '+o+"

    ")}}var c=$("#faqdiv");if(a){var d=!c.find(".faqlst").length;c.html(a),d&&c.hide().fadeIn()}else c.html(S(t))},s=function(e){$(".faq-srch").remove();var t=getEncodedText(e.title||""),a="faqs"==$ZSIQResouces.getCurrentView()?LSResource.getRealValue("faqsearch.hint"):e.placeholder||LSResource.getRealValue("faq.search.hint");$Support.isNewHeader()?!e.hasarrow||$("#showsiqconv").show():t=e.hasarrow?''+t:t;var i=getEscapedText(e.desc||""),s=e.classname||"",o=$("#attname"),r=$("#attabtme");o.html(t).attr("title",e.title);var c=e.hasarrow?"":" fulwdth";!i&&$("#attname").removeClass("nosrch"),r.html(i).after('').show();var d="2"===$Support.container.attr("themeid")?$("#cmpylogo"):$("header");d.removeClass("faq_srch"),d.find('[prop="clogo"]').find("span").addClass("sqico-user sqico-clogo").removeClass("sqico-catgeory"),d.removeClass("category").addClass(s),d.find("#showsiqcategory").hide(),$Support.Util.removeHeaderType(),$Support.Util.reSetHeaderClass(),$("#complogo").parent().removeClass("hide_fontico")},R=function(){return $Support.EmbedObj.status&&!$Support.isChatExist()&&!$Support.getTriggerCookie()&&ZSIQWindowView.isComponentEnabled("chat")},L=function(e,t){var a=$Support.LSDB.getFromSession("article_"+e.id[0])||{},i=$ZSIQResouces.getCurrentView(),s=$Support.EmbedObj;(s.ismulti_categoryenabled&&"faqs"==i||s.article_revamp_enabled&&"articles"==i)&&(a=$ZSIQResouces.getstatsobj(e.id[0]));var o={2:"visitors_viewed",3:"visitors_liked",4:"visitors_disliked",7:"viewed",8:"liked",9:"disliked"},r=e.type[0],c=0,d=o[r];if(Object.keys(a).length){var n=a[o[parseInt(r)+5]];a[d]?c=a[d]=parseInt(a[d])+1:n&&(c=a[o[parseInt(r)+5]]=parseInt(n)+1)}$Support.LSDB.storeInSession("article_"+e.id[0],a);var l=LSResource.getRealValue(1==c?"common.view":"faq.views");t.find("em[viewid="+e.id+"]").text(c+" "+l),"3"==r&&$("#faqdiv").find("em[likeid="+e.id+"]").text(c).removeClass("sqico-like").addClass("sqico-like")},t=function(e,t){return'
    Q
    A
    Q
    A
    '},T=function(e,t){if(e){var a=t||["h1.toc_anchors","h2.toc_anchors","h3.toc_anchors","h4.toc_anchors","h5.toc_anchors","h6.toc_anchors"],i=function(e,t){return(e=a.indexOf(e))<(t=a.indexOf(t))},s=e.querySelectorAll(a.join());if(s&&s.length){for(var o,r,c=s.length,d=[],n=0;n
    Table of contents
    {TOCELEMENTS}
    '.replace(/{TOCELEMENTS}/g,o(e))},o=function(a,i){var s="";return Object.keys(a).forEach(function(e){var t=a[e];return 0{CHILDELEMETHTML}"},u=function(e,t){return""==$.trim(e.content)?"":'"},a=function(e){var t=($Support.getParent().$ZSIQUtil.getAPIValues()||{}).articlecontent||{};s({title:(e||{}).title||t.title||$Support.Util.getFAQLabel(),desc:(e||{}).disabledesc?"":t.subline||LSResource.getRealValue("faq.header.desc"),placeholder:t.placeholder||LSResource.getRealValue("faq.search.hint")});var a=$("header").find('[prop="clogo"]').find("span");a.removeClass("sqico-faqico resource-hdr sqico-faqdept").addClass("sqico-user sqico-clogo"),e.iconcls&&a.removeClass().addClass(e.iconcls),$("#faqdiv").removeAttr("department_id")},_=function(){return $Support.EmbedObj.ismulticategoryenable},f=function(t){var e=t.data,a=$(window.parent.document);if(!a.find(".salesiq-overlay").length){if(!e||!e.message)return a.find("body").append((i=CommonUtil.getStaticURL("/salesiq/images/articleemptystate_zf9AUVL6ctqkbpDADvPk190JMOBWGyyWjGTV33oUW1JTRsgSHZ7LCsy8GXMXm9E2_.svg"),'

    '+LSResource.getRealValue("faq.empty.desc")+'

    ')),void $Support.getParent().$ZSIQUtil.bindEventsForImgPreview();var i;y({type:t.type,resourcelang:e.res_lang},t.articleid,function(e){!t.ignoresession&&L(e,t.target)},2);var s,o,r,c,d,n,l,p,v=CommonUtil.SanitizeHtmlContent(e.article_info.content),u=T(CommonUtil.stringToHTML(v)),f=0{CHATNOW}':"",'
    {HEADER}
    {TOCELEMENTCONTAINER}
    {CONTENT}
    ').replace(/{TOCELEMENTCONTAINER}/g,f),g=$Support.isChatExist()?LSResource.getRealValue("ne.gotochat"):LSResource.getRealValue("ne.chatnow"),h=""===t.showvote&&E().enabled?(c=(r=e).stats,d=r.visitors_liked||c&&c.liked||"",n=r.visitors_disliked||c&&c.disliked||"",l=E().content||LSResource.getRealValue("faq.ishelpful"),'
    '+d+''+n+"
    "):"",S=e.article_info.savedby,q="";if((p=$Support.EmbedObj).ismulti_categoryenabled?(p.resource_config[$ZSIQResouces.getCurrentResourceServerKey()]||{}).show_creator_image:p.resourcebaseconfigs.show_creator_image){var _="common.updated",w=e.modified_time;$Support.EmbedObj.article_revamp_enabled&&(_="common.published",w=e.published_time),q='
    '+(0==S.modifier_image.split("/")[5].indexOf("0_")?'':'')+'
    '+getEncodedText(S.modifier_name)+"
    "+LSResource.getRealValue(_)+" "+MyDate.timeDifference(w).toLowerCase()+"
    "}var b='

    '+getEncodedText(e.message)+"

    "+q;m=m.replace(/{HEADER}/g,b).replace(/{ARTICLEID}/g,t.articleid).replace(/{VOTE}/g,h).replace(/{CHATNOW}/g,g).replace(/{CONTENT}/g,v),$(window.parent.document).find("body").append(m);var C=$(window.parent.document).find(".zfaq-title")[0];CommonUtil.hasElips(C)&&C.setAttribute("title",e.message),$Support.getParent().$ZSIQUtil.bindEventsForImgPreview()}};return{showFAQUI:function(e){if(!$Support.Util.isPreview()){$ZSIQResouces.resetResourceHolders(),ZSIQConversationManager.resetLastViewd();var i=$("#faqdiv");ZSIQWindowView.isChatWithCall()&&($("footer").show(),$("header").removeClass("siqdc-hdr")),i.length||($("#faqbox").remove(),$("footer").before(t("faq_oldview")),i=$("#faqdiv")),$("#faqdiv").addClass("faq_oldview"),$("#faqbox").removeClass("resource-vw"),$Support.Util.handleFooterDivisionSel($("#faqtab")),i.parents(".siqembed").children("section").hide();var s=$Support.EmbedObj.mappeddept,o=!0;r(function(e){if(e[0]&&!e[0].hasOwnProperty("department_id")&&(_appsenabled=!0),_appsenabled)0<(t=$Support.LSDB.getFromSession(p())).length?$FAQ._showCategory(t):i.html(S());else if(c(e),s&&"-1"!==s){for(var t=$Support.LSDB.getFromSession(p()),a=0;a
    '+LSResource.getRealValue("faq.article.viewall")+'
    '+e.headerlabel+'
    '},t=function(){return'
    '},f=function(){return("faqs"==g?W():r())||LSResource.getRealValue(v[g])},r=function(){var e=$Support.EmbedObj,t=(e.resource_config.article||{}).custom_title||{},a=e.embedlang;return t[a]||t[a.toLowerCase()]||LSResource.getRealValue(v.articles)},o=function(){return($Support.EmbedObj.resource_config[d()]||{}).categorial_view},c=function(){var e=l(),t=e.length;return 1==t&&(s=e[0].ID||Object.keys(e[0])[0]),!($Support.EmbedObj.resource_config[d()]||{}).merge_department&&1',i=0;i'+e.DNAME+" "}r+="",$("#faqbox").html(r),$FAQ.updateHearderVal({title:LSResource.getRealValue(v.departments),disabledesc:!0,iconcls:"sqico-faqdept resource-hdr"}),$("header").find(".faq-srch").remove(),$("#attname").addClass("nosrch")},p=function(e){if(!o())return C(),void L();A("","",e)},q=function(e){ZSIQConversationManager.resetLastViewd();var t=$("#faqdiv");t.length||($("#faqbox").remove(),$("footer").before($FAQ.getBGImageHTML("new_resource")),t=$("#faqdiv")),$("#faqbox").addClass("resource-vw"),$Support.Util.handleFooterDivisionSel(e),t.parents(".siqembed").children("section").hide()},b=function(e,t){for(var a,r,i=(e||{}).srchreslt||X(),o=i.length,c="",d=(e||{}).query,n=0;n
    '+r+'

    '+a.viewed+a.liked+"

    ")}$FAQ.toggleSearchIcon(!!c),Q(),c=c||$FAQ.noResultsHTML(d,g);var p=m.faq_count||m.articles_count;t&&!d&&!p&&"faqview"==$Support.container.attr("cwview")&&$FAQ.updateHearderVal({title:f(),disabledesc:!0,iconcls:M()}),w({res_html:c,issrch:d}),J()},w=function(e){!o()||e.issrch?$("#faqbox").html(e.res_html):$("#faqdiv").find('[proptype="resource"]').find('[data-type="accordian-item"]').append(e.res_html)},S=function(e){var t=e.stats,a=1==t.viewed?LSResource.getRealValue("common.view"):LSResource.getRealValue("faq.views");return{viewed:t.viewed&&"0"!=t.viewed?""+t.viewed+" "+a+"":""+LSResource.getRealValue("faq.noviews")+"",liked:t.liked&&"0"!=t.liked&&$FAQ.getVoteConfig().enabled?"'+t.liked+"":""}},A=function(a,t,r){if(!R({id:a,callback:D,type:"category"})){var e=$Support.EmbedObj,i=k((t||{}).defaultlang?{defaultlang:!0}:""),o=("faqs"==g?"faqcategories":"articlecategories")+"?"+(-1!=s?"department_id="+s+"&":"")+(a?"parent_category_id="+a+"&":"")+"app_id="+e.appID+"&language_code="+i;!a&&C(),CommonUtil.handleAjaxGetReq(o,function(e){var t=F(e.data);D({resourcedata:t,subcategory:!!a||""},r),j(t,a?"category":"")},function(e){(t=t||{}).categoryid_val=a,E(t,e)},{isv3api:!0,isresourceapi:!0})}},R=function(e){var t=I();return e.id?!(!m||!m[e.type])&&(e.callback({resourcedata:m[e.type],subcategory:!!e.id||""}),!0):!!t.length&&(e.callback({resourcedata:t}),!0)},k=function(e){e=e||{};var t=$Support.EmbedObj;return e.defaultlang||y?(t.resource_config[d()].default_language||{}).code:$Support.getParent().$ZSIQUtil.getAPILanguage()||t.embedlang},C=function(e){var t=$Temp.getLoadingHTML();t=e?'
    '+t+"
    ":t,(e||$("#faqbox")).html(t)},Q=function(){$("#convloadingui").remove(),$('[proptype="subload"]').remove()},F=function(e){return e.length?e.sort(function(e,t){return e.order-t.order}):[]},L=function(a,e){if((a=a||{}).query||!(X()||[]).length){var r=(a||{}).query,t=r||"articles"!=g?"":"&include_child_category_articles=false",i=k(a.defaultlang?{defaultlang:!0}:""),o="faqs"==g,c=$Support.EmbedObj,d=("faqs"==g?"faqs":"articles")+"?"+(m.id?"category_id="+m.id+t:"")+(-1!=s?"&department_id="+s:"")+(r?"&search_query="+r:"")+"&app_id="+c.livelsid+"&language_code="+i+"&limit=99";CommonUtil.handleAjaxGetReq(d,function(e){var t=function(e){for(var t=[],a=e.length,r=0;r
    '+o+'

    '+n+'

    '))}u||y||m.id?($FAQ.toggleSearchIcon(!!u),U({data:e,category_layerHtml:u},t)):E({categoryid_val:""},h)},U=function(e,t){var a=e.data;if(Q(),e.category_layerHtml||(e.category_layerHtml=$FAQ.noResultsHTML("",g),!m[H()]&&$('[proptype="category"][data-type="accordian"]').find('[data-type="accordian-header"]').remove()),a.subcategory)return $("#faqdiv").find('[proptype="category"]').find('[data-type="accordian-item"]').append(e.category_layerHtml),void $FAQ.checkAndCloseSearch();a.parent_id=a.parent_id||"-1",$("#faqbox").html(e.category_layerHtml).attr("parent_id",a.parent_id),$FAQ.checkAndCloseSearch(),"-1"==a.parent_id&&t&&$FAQ.updateHearderVal({title:f(),disabledesc:!0,iconcls:M()}),J()},M=function(){return"faqs"==g?"sqico-faqico resource-hdr":""},T=function(e){var t=e.attr("category_id");m=CommonUtil.deepSearchAndGetObj(I(),"id",t)[0]||{},N();var a={category_name:V(m),logo:_(m)};$FAQ.handleCategoryHeader(a)},P=function(e,t){var a=$.extend({},e[0]);a.answer=Markdown.apply(a.answer),$FAQ.renderFAQPreview({data:$FAQ.formateArticleObj(G([a]))[0],target:t,articleid:t.attr("resource-id"),type:g,showvote:$Support.getParent().$ZSIQUtil.getCookieValue("Article_"+t.attr("resource-id")),ignoresession:!1})},G=function(e){var t=e&&e[0];return t.message="
    "+t.answer+"
    ",t.modified_time=t.last_modified_time,t.title=t.default_question,e},N=function(){var e="",t="";m[H()]&&(e+=a({headerlabel:LSResource.getRealValue(v[g]),type:"resource"}),t="resource"),m.children_count&&(e+=a({headerlabel:LSResource.getRealValue("embed.resoruce.category"),type:"category"}),!t&&(t="category")),$("#faqbox").html('
    '+e+"
    ").attr("parent_id",m.id),B(),$("#faqdiv").find('[proptype="'+t+'"]').find('[data-type="accordian-header"]').trigger("click")},B=function(){$Support.Util.handleAccordian(function(e){var t=e.parent('[data-type="accordian"]');t.addClass("expand"),$FAQ.toggleSearchIcon(!0);var a=t.find('[data-type="accordian-item"]');1==$("#faqdiv").find('[data-type="accordian"]').length&&t.addClass("one-accordian"),a.find("[resource-id]").length||a.find("[category_id]").length||(C(a),"resource"==t.attr("proptype")?L():A(m.id))})},Z=function(){m={},s=-1,g="",z()},z=function(){n=""},J=function(){var e="2"===$Support.container.attr("themeid")?$("#cmpylogo"):$("header").find(".headercont"),t=e.find("#showsiqcategory");c()&&(t.length?t.show():c()&&e.prepend('
    '))},W=function(){var e=$Support.EmbedObj,t=(e.resource_config.faq||{}).custom_title||{},a=e.embedlang;return t[a]||t[a.toLowerCase()]||LSResource.getRealValue(v.faqs)},K=function(e){var t=$("#faqdiv").find('[proptype="'+e+'"]').find('[data-type="accordian-item"]');if(t.length)return $('[proptype="subload"]').remove(),void t.append($FAQ.noResultsHTML());$("#convloadingui").remove(),$("#faqbox").html($FAQ.noResultsHTML())},X=function(){return!o()&&c()&&-1!=s?(m[s]||{}).resources:m.resources};return{showResourcesView:function(e,t){if(!$Support.Util.isPreview()){if(ZSIQWindowView.isChatWithCall()){$("footer").show(),$("header").removeClass("siqdc-hdr"),$Support.Util.handleFooterDivisionSel($("#"+{faqs:"faqshow",articles:"faqtab"}[e.attr("proptype")]))}var a;t?z():Z(),y=!1,$("header").removeClass("faq_srch"),a=e,g=t?g:a.attr("proptype"),q(a),$FAQ.updateHearderVal({title:f(),disabledesc:!0,iconcls:M()}),$Support.Util.updateViewAttribute("faqview"),c()?u():p()}},getCurrentView:function(){return g},getFaqLabel:W,getArticleLabel:r,getCurrentResourceServerKey:d,forwardCategory:T,backwardCategory:function(e,t){$("header").find("#attname").removeAttr("title"),C();var a=I();if($.isEmptyObject(m)&&c()||!o())u();else if(m.parent_category_id)T($('
    '));else{D({resourcedata:a},t),$FAQ.toggleSearchIcon(a.length),m={};var r="articles"===g?"article":"faq";if(!$Support.EmbedObj.resource_config[r].merge_department){var i=$Support.getDeptName(s);i=getEncodedText(i),$("#attname").html(i).attr("title",i),("2"===$Support.container.attr("themeid")?$("#cmpylogo"):$("header")).find('[prop="clogo"]').find("span").addClass("sqico-faqdept resource-hdr").removeClass("sqico-user sqico-clogo")}}},showResourcePreview:function(e){var t,a,r,i,o=$("header").hasClass("faq_srch")&&n?n:X(),c=CommonUtil.deepSearchAndGetObj(o,"id",e.attr("resource-id"));if($Support.contentdiv="","articles"==g)return c=c[0],t={id:c.id,targetelem:e,defaultlang:O().enabled,langcode:c.language.code},a=k((t=t||{}).defaultlang?{defaultlang:!0}:""),r=t.langcode==a?a:t.langcode,i="articles/"+t.id+"/translations/"+r,void CommonUtil.handleAjaxGetReq(i,function(e){$FAQ.renderFAQPreview({data:x(e.data),target:t.targetelem,showvote:$Support.getParent().$ZSIQUtil.getCookieValue("Article_"+t.id),articleid:t.id})},function(e){},{isresourceapi:!0});P(c,e)},handleResourceDept:function(e){s=e.attr("res-deptid"),y=!1;var t=getEncodedText(e.attr("res-deptname"));$FAQ.updateHearderVal({title:t,disabledesc:!0,iconcls:"sqico-faqdept resource-hdr"}),p()},getstatsobj:function(e){return CommonUtil.deepSearchAndGetObj(X(),"id",e)[0].stats},fetchResource:L,resetResourceHolders:Z,resetSearchView:function(e){if(o())return $.isEmptyObject(m)?void p(e):void T($('
    '));L("",e)},ResourceBackArrowHTML:t,getResourceLangCode:k,formatArticleContent:x}}();$BotImpl=function(){var n,c=18e4,S={},w=[],T=ZSIQTranscript,_=function(e){I();var t=P(e);$.isEmptyObject(t)||""==t.chatdiv.html()&&u("",e)},I=function(){S={},clearInterval($BotImpl.timer),T.removeTyping()},M=function(e,t,i){var a=e.chid||e.enc_chid;if($Widget.isPreview())T.removeTyping();else{var n,s=ZSIQConversationManager.getChatWinObjById(a);$Support.Util.checkAndResetComposerAttribute(s),s.isReopenMsg&&(n=s.chatdiv.children().last().text()!==s.attendername,s.isReopenMsg=!1),T.removeTyping(n)}if((!e.meta||!e.meta.disablesound)&&v(a),g(e)?e.meta.input_card&&e.meta.display_card?m(e):$Widget.showBotReply(e):(e.isbotmessage=y(e),e.time=MyDate.getHoursandMin(e.time,!0,"bclient"),e.html=T.getTranscript(e,!1,a),T.updateTranscript(e,a)),t){if(I(),e.meta&&(e.meta[$Widget.input_card]||"pending"==e.meta.action)||u("",a),$BotImpl.resetDisableComposerTimer(),e.meta)if("pending"==e.meta.action)C("pending",c,a);else if(e.meta.allow_typing){u("",a);var r=($Support.EmbedObj||{}).restrict_visitor_input;if("text"!=e.meta.type&&r)ZSIQConversationManager.getChatWinObjById(a).composer.attr("maxlength","255"),$Support.validateCharLimit=!0}else if("wait_for_user_input"==e.meta.behaviour){var o=e.meta.input_card&&e.meta.input_card.type||"",d=-1!==["name","email","tel","calendar","location"].indexOf(o)?"input_data":"";e.meta.input_card?C(d,"",a,o):u("",a)}}else{var l=((i||{}).meta||{}).info,p=P(a);l?$Widget.isPreview()?$Support.renderBotDelayinfo(i):p.renderBotDelayinfo(i):T.showTyping(e)}},m=function(e){var t=$.extend(!0,{},e),i=$.extend(!0,{},e);delete t.meta.input_card,delete i.meta.display_card,i.time+="1",i.msgid+="1",i.msg="",$Widget.showBotReply(t),$Widget.showBotReply(i)},g=function(e){var t=e.meta;return!!e.meta&&(t[$Widget.display_card]||t[$Widget.input_card]||t.suggestions||t.related_phrases)},r=function(e){var t={msgobj:e,winobj:ZSIQTranscript.getChatWindowOBJ()};$ZSIQBookinghandler.init(t),I()},D=function(e,t,i,a,n){if(0==getObjectSize(S)||i||"dispatchBotMessageToVisitor"===e.type)if("progress"!==e.type){var s=e.meta;if($Support.chidmappinglist&&(e.chid=$Support.chidmappinglist[e.chid]||t||e.chid),clearInterval($BotImpl.timer),!s)return e.msg&&!e.msg.msglist?(!e.restrict_msgsanitize&&(e.msg=$Support.Util.sanitizeMessage(e.msg)),void ZSIQTranscript.updateTranscript({html:ZSIQTranscript.getTranscript(e,"",t)},t)):void d(e);S=e,s.image&&(e.bot_image=e.meta.image),!a&&o(e,e.chid),$Widget.isPreview()&&"booking_input_card"==(e.meta||{}).type?e.msglist&&e.msglist.length?l(e,1,r):r(e):e.msglist?($Support.EmbedObj||{}).isbot_uxchange_enabled&&y(e)?p(e,1):l(e,1,"",n):M(e,!0)}else $BotImpl.showBotProcessing(e);else w.push(e)},o=function(e,t){if(!e.isdisablecache){var i=e.msglist;if(i)for(var a=0;a
    ');for(var i=0;ii.length)){var a=e.chid||e.enc_chid,n=T.getMessageDelay(i[t]),s=e.disablesound,r=function(){!function(e,t,i,a){var n=e.msglist,s=P(i);if(s.chatdiv){if($Widget.isPreview()?$Support.clearDelayInfo():s.clearDelayInfo(),t'+getEscapedText(o.name)+''+g(o)+"",i.inviteobj=o}else if(i.staff_ids&&1==i.staff_ids.length){var r=CommonUtil.deepSearchObjByID({arr_val:l,searchval:i.staff_ids[0],searchkey:"id"});!$.isEmptyObject(r)&&r||(i.disabled=!0,r={}),i.inviteobj=r,i.staff_ids[0].val=r.name,$ZSIQBookinghandler.carddetails.card_title=$ZSIQProfilePic.init({src:r.image_url,name:getEscapedText(r.name),desc:getEscapedText(r.designation),custom_cls:"small-prof"})}var n=i.handoff_config;i.booking_card=e.booking_card,i.preselectedfield=e.preselectedfield,i.formatted_time=e.formatted_time;var s={msg:(i.disabled||a?$Temp.getBookingErrorHTML(c(i)):"")||$ZSIQBookinghandler.carddetails.card_title+'
    '+$ZSIQBookinghandler.carddetails.card_description+"
    ",msgid:e.msguid,msguid:e.msguid||e.time,chid:t.chatID,sender:e.sender,meta:{input_card:e.meta,hand_off:n,restart_command:i.restart_command,rollback_command:i.restart_command},time:e.time,dname:e.dname};ZSIQTranscript.removeTyping(),$Widget.showBotReply(s),$BotImpl.enableComposer()}(e)}})},getCalendardesc:function(){return n},getStaffList:function(){return l},getServiceList:function(){return d},getServiceAndStaffList:i,fetchAvailability:s,checkAvailableDates:u,fetchAvailableSlots:function(i){var e=i.visitorid;i.visitorid&&-1!=i.visitorid||!$Widget.isPreview()||(e="1",$Support.getBotPreviewChatId&&$Support.getBotPreviewChatId());var t=e+"/integrations/zohobookings/availableslots?";t+=(i.staff_id?"staff_id="+i.staff_id:"")+"&service_id="+i.service_id+"&time_zone="+i.timezone,t+="&selected_date="+i.date,CommonUtil.handleAjaxGetReq(t,function(e){if(e.error&&7019==e.error.code&&"function"==typeof i.errorcallback)i.errorcallback(e.error);else{var t=e.data.availableslots;"function"==typeof i.callback&&i.callback(t)}},function(){})},bookAppointment:function(t){var e=t.visitorid,i="";t.visitorid&&-1!=t.visitorid||!$Widget.isPreview()||(e="1",i=$Support.getBotPreviewChatId&&$Support.getBotPreviewChatId());var a=e+"/integrations/zohobookings/appointments",o={participants:[{name:t.name,phone_number:t.phn_no,email:t.email}],service_id:t.service_id,from_time:t.from_time,time_zone:t.time_zone,initiator_type:"visitor",msg_id:t.msg_id};t.staff_id&&(o.staff_id=t.staff_id),i&&(o.preview_chat_id=i),CommonUtil.handleAjaxReq(a,o,function(e){"function"==typeof t.callback&&t.callback(e.data)},t.errorcallback,{method:"PUT"})},getIntegrationDetails:t,getFormFieldIntegInfo:function(e,t){var i=[];return e.serviceIDs||e.staffIDs?(e.serviceIDs.length?(o.sel_id=e.serviceIDs[0],o.sel_key="associated_services",o.sel_listval=t,i.push(o)):(r.sel_id=e.staffIDs[0],r.sel_key="associated_staffs",r.sel_listval=t,i.push(r)),i[0]&&(i[0].addclass="posrel")):i.push(o,r),i.push(n),i},renderFormFields:function(e,t){for(var i=e.length,a=0;a'},updateCache:function(e){Message.getMessageBlock(e.msgobj,"",e.winobj.chatID,e.winobj)},updateBookingStatusInStorage:function(e){var t=$Support.chidmappinglist[e.chid]||e.chid,i=$Support.formatMsgUid(e.msguid),a=$Support.getTranscriptFromSession(t)||[],o=a.length;if(o){for(var r=0;r
    '+i.title+'
    '},a=function(){$Support.container.find("#closeoverlay").off("click.close").on("click.close",function(){$Support.container.find("#cwoverlay").remove(),"function"==typeof i.closecallback&&i.closecallback()}),$("#siqoverlay").on("click","[evetype]",function(e){if("function"==typeof i.callback){var t=$(this);i.callback(t,t.attr("evetype"))}})},o=function(){$Support.container.find("#alertbanner").remove()},r=function(e){return'

    '+e+'

    '};return{init:function(e){(i=e||{}).targetelem.after(t()),a()},changeOverlayTitle:function(e){var t,i;t=e,(i=$("#cwoverlay").find('[proptype="overlayitle"]')).find('[proptype="titleclass"]').removeClass().addClass("clr8 "+t.iconcalss).attr("evetype",t.callbackattr||""),i.find('[proptype="title"]').html(t.text)},handleAlertBanner:function(e){var t;t=e,$Support.container.find("#overlaywrapper").prepend(r(t)).animate({scrollTop:0},1e3),$Widget.isPreview()&&$Support.container.find("#overlaywrapper").find('[documentclick="removealert"]').click(o),function(){clearTimeout(this.alertTimer),this.alertTimer=setTimeout(o,5e3)}()}}}(),$ZSIQFormField=function(){var t="",e=function(){var e="";return t.isdropdownheader&&(e="drop_hdr"),t.fieldtitle=LSResource.getRealValue(t.fieldtitle),{txtinput:'',datahold:'
    '+getEscapedText(t.fieldtitle)+'
    '}[t.type]},i=function(){t.targetelem.append('
    '+t.aboutfield+"
    "+e()+"
    "),a()},a=function(){t.targetelem.find('[proptype="txtinput"]').off("input").on("input",function(e){var t=$(e.target);t.removeClass("errfield"),t.next("span").addClass("dn")})};return{init:function(e){t=e||{},i()},getFormLayout:function(){return'
    '+LSResource.getRealValue("booking.proceed")+"
    "}}}();var $ZSIQButtons=function(){var t=function(e){this._dataobj=e};return t.prototype={getButtonTemplate:function(){for(var e=this._dataobj.iscurvedtype?"tag-btn-div":"tag-div",t=this._dataobj.options.length,i="",a=0;a'+o+""}return i},renderButton:function(){this._dataobj.targetelem.append(this.getButtonTemplate()),this.setEvents()},setEvents:function(){this._dataobj.targetelem.find('[proptypes="siqbtns"]').off("click.siqbtn").on("click.siqbtn",function(e){var t=$(e.target);t.addClass("sel"),this._dataobj.callback(t,t.attr("data-val"))}.bind(this)),this.setBtnSlider()},setBtnSlider:function(){if(this._dataobj.slider){this._dataobj.targetelem.addClass("btnslider"),this._dataobj.targetelem.css("width",this._dataobj.targetelem[0].scrollWidth);var e=this._dataobj.targetelem.find(".sel")[0],t=$Widget.getRtlPos(),i=0;if($Widget.isRtl()){var a=e.parentElement.offsetWidth-e.offsetLeft-e.offsetWidth;i=a<300?0:-a}else{var o=e.offsetLeft;i=300=e[0].scrollWidth?e.css(a,"0px"):e[0].scrollWidth-Math.abs(i)<300?e.css(a,t-(e[0].scrollWidth-Math.abs(i))+"px"):e.css(a,i+"px")}.bind(this))}},{init:function(e){new t(e).renderButton()}}}(),$ZSIQProfilePic=function(){var t=function(e){this._dataobj=e};return t.prototype={getProfileTemplate:function(){var e='
    {PROFIMG}
    {PROFNAME}{PROFDESC}
    ',t=this._dataobj.custom_cls||"";if(this._dataobj.src&&(e=e.replace(/{PROFIMG}/g,'')),this._dataobj.name){var i=this._dataobj.ignorebold?"":"sbold ";e=e.replace(/{PROFNAME}/g,'
    '+getEscapedText(this._dataobj.name)+"
    ")}return this._dataobj.desc&&(e=e.replace(/{PROFDESC}/g,'
    '+getEscapedText(this._dataobj.desc)+"
    ")),e.replace(/{PROFIMG}/g,"").replace(/{PROFNAME}/g,"").replace(/{PROFDESC}/g,"")},renderProfileView:function(){return this._dataobj.targetelem?(this._dataobj.targetelem.append(this.getProfileTemplate()),void this.setEvents()):this.getProfileTemplate()},setEvents:function(){}},{init:function(e){return new t(e).renderProfileView()}}}();$Clickoutside={callbackfn:null,dest:null,src:null,ignoreesckey:null,bindclick:function(l,c,i,n,t){null==this.callbackfn||this.dest==c||this.ignoreclick||this.callbackfn(),this.callbackfn=l,this.dest=c,this.src=i,this.ignoreesckey=n,this.ignoreclick=t},handledclick:function(l){var c=getEventSourceId(l),n="object"==typeof this.src?this.src:[];if(null!=this.callbackfn&&this.src!=c&&!this.ignoreclick&&!n.includes(c)){var t=$(getSource(l)).parents();for(i=0;i",s=$Widget.getLayout();s=(s=(s=s.replace(/{BOT_WIDGET}/g,l)).replace(/{CLASSNAME}/g,"botbtn")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(s),a.hint="calendar"===a.type?LSResource.getRealValue("widget.calendar.hint"):LSResource.getRealValue("widget.rangecalendar.hint"),a.contentdiv=ZSIQTranscript.getChatWindowOBJ(a.chatid).contentdiv,a.contentdiv.find("#bot_calender").on("click",function(){zDatepicker.init(a,e),($Widget.isPreview()?window.parent.IS_RTL_SUPPORTED:($Support.EmbedObj||{}).isRtlLang)&&window.parent.document.querySelector(".salesiq-overlay").classList.add("zsiq-rtl")})},v=function(){var a=ZSIQTranscript.getChatWindowOBJ(d.chatid).contentdiv,e='
    '+LSResource.getRealValue("common.skip")+'
    ',l=a&&a.find('[proptype="msgdiv"] .msgbx').last().parent();l.find("#skipquestion").length||(l.append(e),$("#skipquestion").click(function(){($Support.EmbedObj||{}).company_input_enhancment&&$(this).parents(".ziq_msg").removeAttr("data-widget data-wtype").removeClass("siq_widget"),$(this).remove(),u({type:"skip",chatid:d.chatid,msg:"-",id:t,skipped:!0}),d.skip_callback&&d.skip_callback()}),ZSIQTranscript.scroll())},n=function(a,e,l){y="";var s=$Widget.getMessageOBJ(),i=s.meta||{},v=i.display_card&&i.display_card.type;if(v=!v&&i.related_phrases?"relatedphrases":v,s.isgetwidgethtml)return y=a,void(s.widget_cname=l);var n=$.extend({},s),t=s.time||s.mtime,u=l;-1!=["suggestions","relatedphrases"].indexOf(v)?$.extend(n,{msg:s.msg,time:MyDate.getHoursandMin(t,!0,"bclient"),isbotmessage:!0,iswidget:!0,widget_cname:u,suggestionhtml:a||""}):$.extend(n,{msg:a||s.msg,time:MyDate.getHoursandMin(t,!0,"bclient"),isbotmessage:!0,iswidget:!0,widget_cname:u}),e&&(n.is_ignoreformat=!0),n.html=ZSIQTranscript.getTranscript(n,"",d.chatid),ZSIQTranscript.updateTranscript(n,d.chatid)},u=function(a){var e=a.chatid;$BotImpl.enableComposer("",e);var l=ZSIQTranscript.getChatWindowOBJ(e);l.contentdiv.find("#skipquestion").remove();var s=a.msg,i=a.value||s,v=b.meta;if(s){var n=a.id,t=("true"===$("#bot_widget"+n).attr("hasquestion")?$("#bot_widget"+n):$("#cmpnt"+n)).parents(".ziq_msg"),u=t.find(".cmpnt-desc").html();if(u&&$.trim(u)){if(v&&v.input_card){var d=v.input_card.type;"multiple-product"===d?t.removeAttr("widget_cname"):"select"===d&&"object"==typeof i&&LSDebugger.postDebugInfo("Single select payload mismatch, config:"+JSON.stringify(a),null,"",!0),t.find(".msgbx").html(u).parent().removeAttr("data-widget").removeClass("siq_widget")}}else k().animate(t,!0,function(a){a.remove()});(!v||!v.ignoremeta)&&(o={type:a.type,value:i}),a.data_id&&(o.id=a.data_id),l.contentdiv.find("#conversationoption").remove(),r=s,$Support.sendMessage(r,l.composer),b.active=!1,$BotImpl.handleComposerVisibility(!1,e)}else k().formatAndDisplay(b)},c=function(l){var a=$("#cmpnt"+l.id).parents(".ziq_msg"),s=l.chatid,i=ZSIQTranscript.getChatWindowOBJ(s);i.contentdiv.find("#skipquestion").remove(),$BotImpl.enableComposer("",l.chatid);k().animate(a,!0,function(a){if(b.active=!1,l.ratinghtml){l.star&&(l.ratinghtml=l.ratinghtml.replace(/<\/div>$/,""+l.msg+"")),b.mode="botrating",b.ratinghtml=l.ratinghtml,b.chid=s,b.msg=getEncodedText(a.find(".cmpnt-desc").text());var e=l.value;b.value=e,a.remove(),o={type:l.type,value:e},k().formatAndDisplay(b),r=l.msg,$Support.sendMessage(r,i.composer)}})};return{input_card:"input_card",display_card:"display_card",suggestions:"suggestions",showBotReply:function(a){var e=a.meta;function l(){d.callback=a.callback||e.callback||"",d.validate=a.data_validate,d.isuseredit=a.isuseredit,d.iscustomfield=a.iscustomfield,d.triggerclbk=a.triggerclbk,d.fieldname=e&&e.field_name||"",d.hide_label=e.hide_label,d.subtype=e.subtype,e.skippable&&(d.skippable=e.skippable,d.skip_callback=e.skip_callback||""),d.chatid=a.enc_chid||a.chid}t=a.time||a.mtime||(new Date).getTime(),b={sender:a.sender,msgid:a.msgid,meta:e,time:t,dname:a.dname,msg:a.msg,isbotmessage:a.isbotmessage,isgetwidgethtml:a.isgetwidgethtml,msguid:a.msguid,reply_to:a.reply_to},d={},e[this.input_card]&&((d=e[this.input_card]).msguid=a.msguid,e[this.display_card]&&(d.image=e[this.display_card].image),l(),s()),e[this.display_card]&&((d=e[this.display_card]).msguid=a.msguid,"suggestions"==d.type&&this.formatSuggestionObj(a),l(),s()),e.related_phrases&&(d.msglist=e.related_phrases,d.type="relatedphrases",b.msg&&(b.msg=ZSIQTranscript.getFormatedHTML(b.msg)),l(),s()),e.suggestions&&!a.isgetwidgethtml&&(d.type="suggestions",d.list=e.suggestions,d.hide_composer=e.hide_custom_message,a.msg&&this.handleMessage(a),l(),s())},formatSuggestionObj:function(a){d.list=d.phrases,d.isdisplaycard=!0},handleMessage:function(a){var e=a.enc_chid||a.chid,l=a.meta;a.isbotmessage=$BotImpl.isBotMessage(a),a.time=MyDate.getHoursandMin(t,!0,"bclient"),l&&l[this.display_card]&&(a.bot_image=l[this.display_card].image),a.iswidget=!0,a.html=ZSIQTranscript.getTranscript(a,"",e),ZSIQTranscript.updateTranscript(a,e)},getWidgetHTML:function(a){$Widget.showBotReply($.extend(a,{isgetwidgethtml:!0}));var e=$Widget.getMessageOBJ();return e.widget_cname&&(a.widget_cname=e.widget_cname),y||a.msg},getLayout:function(){return function(){var a=b.msg&&"file"==b.msg.type;b.msg=b.msg?b.msg:"",a&&(b.msg=ZSIQTranscript.getFileAttachHTML({msg:b.msg,file:b.msg}));var e="articles"==d.type,l=!!b.msg,s=$Support.EmbedObj,i="4"===$Support.container.attr("themeid")?" cmpnt-transtheme":"",v=s&&s.nonceval?"":' onload="$Support.handleUploadImageLoad( this )"',n=d.image&&!e?'
    ':"";return'
    '+n+'
    '+Markdown.apply(b.msg)+'
    {BOT_WIDGET}
    '}()},attachHTML:function(a,e,l){n(a,e,l)},removeComponent:function(a){!function(a){if(0
    '+((e=a)?getEncodedText(e):LSResource.getRealValue("widget.location.set"))+"
    ";var e},getFileUploadHtml:function(a){return'
    '+((e=a)?getEncodedText(e):LSResource.getRealValue("widget.fileupload.set"))+'
    ';var e},setMetaData:function(a){o=a},getMetaData:function(){return"object"==typeof o?$.extend({},o):o},clearMetaData:function(){o=""},getMetaCardData:function(){return(a={}).card_data=$.extend({},o),a;var a},getLastMessage:function(){return r},clearLastMessage:function(){r=""},isRtl:function(){return $Widget.isPreview()?window.parent.IS_RTL_SUPPORTED:($Support.EmbedObj||{}).isRtlLang},getRtlPos:function(){return $Widget.isRtl()?"right":"left"},getPhoneObj:function(){return[{key:"+61",val:"Australia",subval:"+61"},{key:"+93",val:"Afghanistan",subval:"+93"},{key:"+355",val:"Albania",subval:"+355"},{key:"+213",val:"Algeria",subval:"+213"},{key:"+1-684",val:"American Samoa",subval:"+1-684"},{key:"+376",val:"Andorra",subval:"+376"},{key:"+244",val:"Angola",subval:"+244"},{key:"+1-264",val:"Anguilla",subval:"+1-264"},{key:"+672",val:"Antarctica",subval:"+672"},{key:"+1-268",val:"Antigua and Barbuda",subval:"+1-268"},{key:"+54",val:"Argentina",subval:"+54"},{key:"+374",val:"Armenia",subval:"+374"},{key:"+297",val:"Aruba",subval:"+297"},{key:"+43",val:"Austria",subval:"+43"},{key:"+994",val:"Azerbaijan",subval:"+994"},{key:"+1-242",val:"Bahamas",subval:"+1-242"},{key:"+973",val:"Bahrain",subval:"+973"},{key:"+880",val:"Bangladesh",subval:"+880"},{key:"+1-246",val:"Barbados",subval:"+1-246"},{key:"+375",val:"Belarus",subval:"+375"},{key:"+32",val:"Belgium",subval:"+32"},{key:"+501",val:"Belize",subval:"+501"},{key:"+229",val:"Benin",subval:"+229"},{key:"+1-441",val:"Bermuda",subval:"+1-441"},{key:"+975",val:"Bhutan",subval:"+975"},{key:"+591",val:"Bolivia",subval:"+591"},{key:"+387",val:"Bosnia and Herzegovina",subval:"+387"},{key:"+267",val:"Botswana",subval:"+267"},{key:"+55",val:"Brazil",subval:"+55"},{key:"+246",val:"British Indian Ocean Territory",subval:"+246"},{key:"+1-284",val:"British Virgin Islands",subval:"+1-284"},{key:"+673",val:"Brunei",subval:"+673"},{key:"+359",val:"Bulgaria",subval:"+359"},{key:"+226",val:"Burkina Faso",subval:"+226"},{key:"+257",val:"Burundi",subval:"+257"},{key:"+855",val:"Cambodia",subval:"+855"},{key:"+237",val:"Cameroon",subval:"+237"},{key:"+1",val:"United States",subval:"+1"},{key:"+238",val:"Cape Verde",subval:"+238"},{key:"+1-345",val:"Cayman Islands",subval:"+1-345"},{key:"+236",val:"Central African Republic",subval:"+236"},{key:"+235",val:"Chad",subval:"+235"},{key:"+56",val:"Chile",subval:"+56"},{key:"+86",val:"China",subval:"+86"},{key:"+57",val:"Colombia",subval:"+57"},{key:"+269",val:"Comoros",subval:"+269"},{key:"+682",val:"Cook Islands",subval:"+682"},{key:"+506",val:"Costa Rica",subval:"+506"},{key:"+385",val:"Croatia",subval:"+385"},{key:"+53",val:"Cuba",subval:"+53"},{key:"+599",val:"Netherlands Antilles",subval:"+599"},{key:"+357",val:"Cyprus",subval:"+357"},{key:"+420",val:"Czech Republic",subval:"+420"},{key:"+243",val:"Democratic Republic of the Congo",subval:"+243"},{key:"+45",val:"Denmark",subval:"+45"},{key:"+253",val:"Djibouti",subval:"+253"},{key:"+1-767",val:"Dominica",subval:"+1-767"},{key:"+1-809",val:"Dominican Republic",subval:"+1-809"},{key:"+1-829",val:"Dominican Republic",subval:"+1-829"},{key:"+1-849",val:"Dominican Republic",subval:"+1-849"},{key:"+670",val:"East Timor",subval:"+670"},{key:"+593",val:"Ecuador",subval:"+593"},{key:"+20",val:"Egypt",subval:"+20"},{key:"+503",val:"El Salvador",subval:"+503"},{key:"+240",val:"Equatorial Guinea",subval:"+240"},{key:"+291",val:"Eritrea",subval:"+291"},{key:"+372",val:"Estonia",subval:"+372"},{key:"+251",val:"Ethiopia",subval:"+251"},{key:"+500",val:"Falkland Islands",subval:"+500"},{key:"+298",val:"Faroe Islands",subval:"+298"},{key:"+679",val:"Fiji",subval:"+679"},{key:"+358",val:"Finland",subval:"+358"},{key:"+33",val:"France",subval:"+33"},{key:"+689",val:"French Polynesia",subval:"+689"},{key:"+241",val:"Gabon",subval:"+241"},{key:"+220",val:"Gambia",subval:"+220"},{key:"+995",val:"Georgia",subval:"+995"},{key:"+49",val:"Germany",subval:"+49"},{key:"+233",val:"Ghana",subval:"+233"},{key:"+350",val:"Gibraltar",subval:"+350"},{key:"+30",val:"Greece",subval:"+30"},{key:"+299",val:"Greenland",subval:"+299"},{key:"+1-473",val:"Grenada",subval:"+1-473"},{key:"+1-671",val:"Guam",subval:"+1-671"},{key:"+502",val:"Guatemala",subval:"+502"},{key:"+44-1481",val:"Guernsey",subval:"+44-1481"},{key:"+224",val:"Guinea",subval:"+224"},{key:"+245",val:"Guinea-Bissau",subval:"+245"},{key:"+592",val:"Guyana",subval:"+592"},{key:"+509",val:"Haiti",subval:"+509"},{key:"+504",val:"Honduras",subval:"+504"},{key:"+852",val:"Hong Kong",subval:"+852"},{key:"+36",val:"Hungary",subval:"+36"},{key:"+354",val:"Iceland",subval:"+354"},{key:"+91",val:"India",subval:"+91"},{key:"+62",val:"Indonesia",subval:"+62"},{key:"+98",val:"Iran",subval:"+98"},{key:"+964",val:"Iraq",subval:"+964"},{key:"+353",val:"Ireland",subval:"+353"},{key:"+44-1624",val:"Isle of Man",subval:"+44-1624"},{key:"+972",val:"Israel",subval:"+972"},{key:"+39",val:"Italy",subval:"+39"},{key:"+225",val:"Ivory Coast",subval:"+225"},{key:"+1-876",val:"Jamaica",subval:"+1-876"},{key:"+81",val:"Japan",subval:"+81"},{key:"+44-1534",val:"Jersey",subval:"+44-1534"},{key:"+962",val:"Jordan",subval:"+962"},{key:"+7",val:"Russia",subval:"+7"},{key:"+254",val:"Kenya",subval:"+254"},{key:"+686",val:"Kiribati",subval:"+686"},{key:"+383",val:"Kosovo",subval:"+383"},{key:"+965",val:"Kuwait",subval:"+965"},{key:"+996",val:"Kyrgyzstan",subval:"+996"},{key:"+856",val:"Laos",subval:"+856"},{key:"+371",val:"Latvia",subval:"+371"},{key:"+961",val:"Lebanon",subval:"+961"},{key:"+266",val:"Lesotho",subval:"+266"},{key:"+231",val:"Liberia",subval:"+231"},{key:"+218",val:"Libya",subval:"+218"},{key:"+423",val:"Liechtenstein",subval:"+423"},{key:"+370",val:"Lithuania",subval:"+370"},{key:"+352",val:"Luxembourg",subval:"+352"},{key:"+853",val:"Macau",subval:"+853"},{key:"+389",val:"Macedonia",subval:"+389"},{key:"+261",val:"Madagascar",subval:"+261"},{key:"+265",val:"Malawi",subval:"+265"},{key:"+60",val:"Malaysia",subval:"+60"},{key:"+960",val:"Maldives",subval:"+960"},{key:"+223",val:"Mali",subval:"+223"},{key:"+356",val:"Malta",subval:"+356"},{key:"+692",val:"Marshall Islands",subval:"+692"},{key:"+222",val:"Mauritania",subval:"+222"},{key:"+230",val:"Mauritius",subval:"+230"},{key:"+262",val:"Reunion",subval:"+262"},{key:"+52",val:"Mexico",subval:"+52"},{key:"+691",val:"Micronesia",subval:"+691"},{key:"+373",val:"Moldova",subval:"+373"},{key:"+377",val:"Monaco",subval:"+377"},{key:"+976",val:"Mongolia",subval:"+976"},{key:"+382",val:"Montenegro",subval:"+382"},{key:"+1-664",val:"Montserrat",subval:"+1-664"},{key:"+212",val:"Western Sahara",subval:"+212"},{key:"+212",val:"Morocco",subval:"+212"},{key:"+258",val:"Mozambique",subval:"+258"},{key:"+95",val:"Myanmar",subval:"+95"},{key:"+264",val:"Namibia",subval:"+264"},{key:"+674",val:"Nauru",subval:"+674"},{key:"+977",val:"Nepal",subval:"+977"},{key:"+31",val:"Netherlands",subval:"+31"},{key:"+687",val:"New Caledonia",subval:"+687"},{key:"+64",val:"Pitcairn",subval:"+64"},{key:"+505",val:"Nicaragua",subval:"+505"},{key:"+227",val:"Niger",subval:"+227"},{key:"+234",val:"Nigeria",subval:"+234"},{key:"+683",val:"Niue",subval:"+683"},{key:"+850",val:"North Korea",subval:"+850"},{key:"+1-670",val:"Northern Mariana Islands",subval:"+1-670"},{key:"+47",val:"Svalbard and Jan Mayen",subval:"+47"},{key:"+968",val:"Oman",subval:"+968"},{key:"+92",val:"Pakistan",subval:"+92"},{key:"+680",val:"Palau",subval:"+680"},{key:"+970",val:"Palestine",subval:"+970"},{key:"+507",val:"Panama",subval:"+507"},{key:"+675",val:"Papua New Guinea",subval:"+675"},{key:"+595",val:"Paraguay",subval:"+595"},{key:"+51",val:"Peru",subval:"+51"},{key:"+63",val:"Philippines",subval:"+63"},{key:"+48",val:"Poland",subval:"+48"},{key:"+351",val:"Portugal",subval:"+351"},{key:"+1-787",val:"Puerto Rico",subval:"+1-787"},{key:"+1-939",val:"Puerto Rico",subval:"+1-939"},{key:"+974",val:"Qatar",subval:"+974"},{key:"+242",val:"Republic of the Congo",subval:"+242"},{key:"+40",val:"Romania",subval:"+40"},{key:"+250",val:"Rwanda",subval:"+250"},{key:"+590",val:"Saint Martin",subval:"+590"},{key:"+290",val:"Saint Helena",subval:"+290"},{key:"+1-869",val:"Saint Kitts and Nevis",subval:"+1-869"},{key:"+1-758",val:"Saint Lucia",subval:"+1-758"},{key:"+508",val:"Saint Pierre and Miquelon",subval:"+508"},{key:"+1-784",val:"Saint Vincent and the Grenadines",subval:"+1-784"},{key:"+685",val:"Samoa",subval:"+685"},{key:"+378",val:"San Marino",subval:"+378"},{key:"+239",val:"Sao Tome and Principe",subval:"+239"},{key:"+966",val:"Saudi Arabia",subval:"+966"},{key:"+221",val:"Senegal",subval:"+221"},{key:"+381",val:"Serbia",subval:"+381"},{key:"+248",val:"Seychelles",subval:"+248"},{key:"+232",val:"Sierra Leone",subval:"+232"},{key:"+65",val:"Singapore",subval:"+65"},{key:"+1-721",val:"Sint Maarten",subval:"+1-721"},{key:"+421",val:"Slovakia",subval:"+421"},{key:"+386",val:"Slovenia",subval:"+386"},{key:"+677",val:"Solomon Islands",subval:"+677"},{key:"+252",val:"Somalia",subval:"+252"},{key:"+27",val:"South Africa",subval:"+27"},{key:"+82",val:"South Korea",subval:"+82"},{key:"+211",val:"South Sudan",subval:"+211"},{key:"+34",val:"Spain",subval:"+34"},{key:"+94",val:"Sri Lanka",subval:"+94"},{key:"+249",val:"Sudan",subval:"+249"},{key:"+597",val:"Suriname",subval:"+597"},{key:"+268",val:"Swaziland",subval:"+268"},{key:"+46",val:"Sweden",subval:"+46"},{key:"+41",val:"Switzerland",subval:"+41"},{key:"+963",val:"Syria",subval:"+963"},{key:"+886",val:"Taiwan",subval:"+886"},{key:"+992",val:"Tajikistan",subval:"+992"},{key:"+255",val:"Tanzania",subval:"+255"},{key:"+66",val:"Thailand",subval:"+66"},{key:"+228",val:"Togo",subval:"+228"},{key:"+690",val:"Tokelau",subval:"+690"},{key:"+676",val:"Tonga",subval:"+676"},{key:"+1-868",val:"Trinidad and Tobago",subval:"+1-868"},{key:"+216",val:"Tunisia",subval:"+216"},{key:"+90",val:"Turkey",subval:"+90"},{key:"+993",val:"Turkmenistan",subval:"+993"},{key:"+1-649",val:"Turks and Caicos Islands",subval:"+1-649"},{key:"+688",val:"Tuvalu",subval:"+688"},{key:"+1-340",val:"U.S. Virgin Islands",subval:"+1-340"},{key:"+256",val:"Uganda",subval:"+256"},{key:"+380",val:"Ukraine",subval:"+380"},{key:"+971",val:"United Arab Emirates",subval:"+971"},{key:"+44",val:"United Kingdom",subval:"+44"},{key:"+598",val:"Uruguay",subval:"+598"},{key:"+998",val:"Uzbekistan",subval:"+998"},{key:"+678",val:"Vanuatu",subval:"+678"},{key:"+379",val:"Vatican",subval:"+379"},{key:"+58",val:"Venezuela",subval:"+58"},{key:"+84",val:"Vietnam",subval:"+84"},{key:"+681",val:"Wallis and Futuna",subval:"+681"},{key:"+967",val:"Yemen",subval:"+967"},{key:"+260",val:"Zambia",subval:"+260"},{key:"+263",val:"Zimbabwe",subval:"+263"},{key:"+1",val:"Canada",subval:"+1"},{key:"+1-204",val:"Canada",subval:"+1-204"},{key:"+1-226",val:"Canada",subval:"+1-226"},{key:"+1-236",val:"Canada",subval:"+1-236"},{key:"+1-249",val:"Canada",subval:"+1-249"},{key:"+1-250",val:"Canada",subval:"+1-250"},{key:"+1-289",val:"Canada",subval:"+1-289"},{key:"+1-306",val:"Canada",subval:"+1-306"},{key:"+1-343",val:"Canada",subval:"+1-343"},{key:"+1-365",val:"Canada",subval:"+1-365"},{key:"+1-387",val:"Canada",subval:"+1-387"},{key:"+1-403",val:"Canada",subval:"+1-403"},{key:"+1-416",val:"Canada",subval:"+1-416"},{key:"+1-418",val:"Canada",subval:"+1-418"},{key:"+1-431",val:"Canada",subval:"+1-431"},{key:"+1-437",val:"Canada",subval:"+1-437"},{key:"+1-438",val:"Canada",subval:"+1-438"},{key:"+1-450",val:"Canada",subval:"+1-450"},{key:"+1-506",val:"Canada",subval:"+1-506"},{key:"+1-514",val:"Canada",subval:"+1-514"},{key:"+1-519",val:"Canada",subval:"+1-519"},{key:"+1-548",val:"Canada",subval:"+1-548"},{key:"+1-579",val:"Canada",subval:"+1-579"},{key:"+1-581",val:"Canada",subval:"+1-581"},{key:"+1-587",val:"Canada",subval:"+1-587"},{key:"+1-604",val:"Canada",subval:"+1-604"},{key:"+1-613",val:"Canada",subval:"+1-613"},{key:"+1-639",val:"Canada",subval:"+1-639"},{key:"+1-647",val:"Canada",subval:"+1-647"},{key:"+1-672",val:"Canada",subval:"+1-672"},{key:"+1-705",val:"Canada",subval:"+1-705"},{key:"+1-709",val:"Canada",subval:"+1-709"},{key:"+1-742",val:"Canada",subval:"+1-742"},{key:"+1-778",val:"Canada",subval:"+1-778"},{key:"+1-780",val:"Canada",subval:"+1-780"},{key:"+1-782",val:"Canada",subval:"+1-782"},{key:"+1-807",val:"Canada",subval:"+1-807"},{key:"+1-819",val:"Canada",subval:"+1-819"},{key:"+1-825",val:"Canada",subval:"+1-825"},{key:"+1-867",val:"Canada",subval:"+1-867"},{key:"+1-873",val:"Canada",subval:"+1-873"},{key:"+1-902",val:"Canada",subval:"+1-902"},{key:"+1-905",val:"Canada",subval:"+1-905"},{key:"+1-204",val:"Canada",subval:"+1-204"},{key:"+1-226",val:"Canada",subval:"+1-226"},{key:"+1-236",val:"Canada",subval:"+1-236"},{key:"+1-249",val:"Canada",subval:"+1-249"},{key:"+1-250",val:"Canada",subval:"+1-250"},{key:"+1-289",val:"Canada",subval:"+1-289"},{key:"+1-306",val:"Canada",subval:"+1-306"},{key:"+1-343",val:"Canada",subval:"+1-343"},{key:"+1-365",val:"Canada",subval:"+1-365"},{key:"+1-387",val:"Canada",subval:"+1-387"},{key:"+1-403",val:"Canada",subval:"+1-403"},{key:"+1-416",val:"Canada",subval:"+1-416"},{key:"+1-418",val:"Canada",subval:"+1-418"},{key:"+1-431",val:"Canada",subval:"+1-431"},{key:"+1-437",val:"Canada",subval:"+1-437"},{key:"+1-438",val:"Canada",subval:"+1-438"},{key:"+1-450",val:"Canada",subval:"+1-450"},{key:"+1-506",val:"Canada",subval:"+1-506"},{key:"+1-514",val:"Canada",subval:"+1-514"},{key:"+1-519",val:"Canada",subval:"+1-519"},{key:"+1-548",val:"Canada",subval:"+1-548"},{key:"+1-579",val:"Canada",subval:"+1-579"},{key:"+1-581",val:"Canada",subval:"+1-581"},{key:"+1-587",val:"Canada",subval:"+1-587"},{key:"+1-604",val:"Canada",subval:"+1-604"},{key:"+1-613",val:"Canada",subval:"+1-613"},{key:"+1-639",val:"Canada",subval:"+1-639"},{key:"+1-647",val:"Canada",subval:"+1-647"},{key:"+1-672",val:"Canada",subval:"+1-672"},{key:"+1-705",val:"Canada",subval:"+1-705"},{key:"+1-709",val:"Canada",subval:"+1-709"},{key:"+1-742",val:"Canada",subval:"+1-742"},{key:"+1-778",val:"Canada",subval:"+1-778"},{key:"+1-780",val:"Canada",subval:"+1-780"},{key:"+1-782",val:"Canada",subval:"+1-782"},{key:"+1-807",val:"Canada",subval:"+1-807"},{key:"+1-819",val:"Canada",subval:"+1-819"},{key:"+1-825",val:"Canada",subval:"+1-825"},{key:"+1-867",val:"Canada",subval:"+1-867"},{key:"+1-873",val:"Canada",subval:"+1-873"},{key:"+1-902",val:"Canada",subval:"+1-902"},{key:"+1-905",val:"Canada",subval:"+1-905"}].sort(function(a,e){var l=a.val.toUpperCase(),s=e.val.toUpperCase();return l';this.$rangepoint.html(e),this.$rangeelem=this.$rangepoint.children();for(var s=0;s
    '+(e&&this.config_obj.from_hint?getEncodedText(this.config_obj.from_hint):"")+'
    '+(i&&this.config_obj.to_hint?getEncodedText(this.config_obj.to_hint):"")+"
    ":""},s.prototype.renderComponentHtml=function(){var t=this.config_obj.values.length,e=this.isSliderWithHint(),i='
    '+this.config_obj.values[0]+'
    '+this.config_obj.values[t-1]+'
    '+(this.config_obj.range?'':"")+'
    '+this.getSliderHintHtml()+'
    ',s=$Widget.getLayout();s=(s=(s=s.replace(/{BOT_WIDGET}/g,i)).replace(/{CLASSNAME}/g,"botslider")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(s)},s.prototype.setDivOBJ=function(){var t=this.contentdiv.find("#cmpnt"+this.msgid);this.$displayelem=t.find("#range-display"),this.$rangepoint=t.find("#range-point-wrap"),this.$sliderrighthead=t.find("#sliderrighthead"),this.$sliderlefthead=t.find("#sliderlefthead"),this.$rangeval=t.find("#slider-val")},s.prototype.handleEvents=function(){var i=this,t=this.contentdiv.find("#cmpnt"+this.msgid);function e(t){var e=this;$(document).bind("mouseup touchend",function(t){$(document).off("mouseup touchend mousemove touchmove"),i.handleHeaderMovement(t)}),$(document).on("mousemove touchmove",function(t){i.handleHeaderMovement(t,e)})}this.ismousedown=!1,this.$sliderrighthead.bind("mousedown touchstart",e),this.config_obj.range&&this.$sliderlefthead.bind("mousedown touchstart",e),t.find("#range-body").click(function(t){i.handleNearestClick(t)}),this.$rangeelem.click(function(t){i.handleDotClicked(t)}),t.find("#range-selected").click(function(){i.handleCallBack()}),this.config_obj.enablearrowkeyopertion&&(this.$sliderrighthead.keyup(function(t){i.handleKeyOperation(t,this)}),this.config_obj.range&&this.$sliderlefthead.keyup(function(t){i.handleKeyOperation(t,this)}))},s.prototype.handleHeaderMovement=function(t,e){if(t.stopPropagation(),"mousemove"==t.type||"touchmove"==t.type){var i=("touchmove"==t.type?t.originalEvent.touches[0].pageX:t.pageX)-this.negwidth,s=$(e);this.updateSliderPosition(i,s)}else{var o=this.$sliderrighthead;if(this.handlePointMove(o[0].offsetLeft,o),this.config_obj.range){var n=this.$sliderlefthead;this.handlePointMove(n[0].offsetLeft,n)}}},s.prototype.handlePointMove=function(t,e){this.updateSliderPosition(this.getNearestPointPosition(t),e)},s.prototype.handleNearestClick=function(t){var e=t.target.id||"";if("sliderrighthead"!==e&&"sliderlefthead"!==e){var i=this.getNearestPointPosition(t.pageX-this.negwidth);this.moveNearestHeader(i)}},s.prototype.handleDotClicked=function(t){var e=t.target.getAttribute("dot");null!=this.dotoffset[e]&&this.moveNearestHeader(this.dotoffset[e])},s.prototype.moveNearestHeader=function(t){var e=this.$sliderrighthead,i=e[0].offsetLeft;if(this.config_obj.range){var s=this.$sliderlefthead[0].offsetLeft;e=sthis._sliderwidth?this._sliderwidth:t<0?0:t,this.contentdiv.find(".range-value").empty(),e.css("left",t),this.$rangeval.css("width",t);var i=this.$sliderrighthead[0].offsetLeft;if(this.config_obj.range){var s=this.$sliderlefthead[0].offsetLeft;s=this.dotoffset[i]&&this.$rangeelem[i].classList.add("sel");this.$rangeval.css("left",t+"px").css("width",e-t+"px")},s.prototype.handleDisplayValue=function(){var t=this.$sliderrighthead[0].offsetLeft;this.showPointValues(t);var e=this.getTextForPoint(this.getNearestPointPosition(t));if(this.config_obj.range){var i=this.$sliderlefthead[0].offsetLeft;this.showPointValues(i),e=this.getTextForPoint(this.getNearestPointPosition(i))+" - "+e}this.isSliderWithHint()?this.selected_value=e:this.$displayelem.text(e)},s.prototype.showPointValues=function(t){var e=this.dotoffset.indexOf(t);if(0'+n+"";else t+='
    '+n+"
    "}return t+='
    '+(this.select_label?this.select_label:LSResource.getRealValue("common.confirm"))+"
    "},bindEvent:function(){var t=this;this.contentdiv.find("#multiselect [data-value]").off("click.multiple").on("click.multiple",function(){t.handleMultiselection(this)}),this.contentdiv.find("#cnfmsel").click(function(){t.handleConfirm(this)})},handleMultiselection:function(t){(t=$(t)).hasClass("sel")?(t.find("span").removeClass("sqico-tick"),t.removeClass("sel"),this.sel_count--,this.sel_count=this.min_selection&&this.contentdiv.find(".compnt-btn").addClass("btn-enbl"))},handleConfirm:function(t){if($(t).hasClass("btn-enbl")){var i="",e=$(t).parent().find("[data-value]"),n=e.length,s=[],l=0;if(0!=this.sel_count){for(var a=0;a');var l=i.target?i.target:"_blank";l="_self"===l?"_parent":l;var o=e.split("://")[0],c="http"==o||"https"==o?e:"https://"+e,s=getEncodedText(i.text)||e;t+='
    '+r+''+s+"
    "}}return t+=""}},{init:function(t,n){t.links?new i(t).populateButtons(n):t.callback("",n)}}}();Rating=(BotRating=function(t,e){this.type=t.type||"smiley",this.image=t.data||this.getRatingobj(t)||"",this.level=t.level||5,this.callback=t.callback||function(){},this.msgid=e,this.chatid=t.chatid,this.contentdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).contentdiv},BotRating.prototype.smileyobj={3:{text:["common.neutral","common.good","common.great"],classname:["cmpnt-rtng","cmpnt-rtng good","cmpnt-rtng great"]},5:{text:["smiley.angry","smiley.sad","common.neutral","common.good","common.great"],classname:["cmpnt-rtng angry","cmpnt-rtng sad","cmpnt-rtng","cmpnt-rtng good","cmpnt-rtng great"]}},BotRating.prototype.getRatingobj=function(t){return"smiley"===t.type?this.smileyobj[t.level]:"gesture"===t.type?{text:["common.like","common.dislike"]}:void 0},BotRating.prototype.renderRating=function(){var t=this.type;"smiley"!=t?"star"!=t?"gesture"==t&&this.renderGestureHtml():this.renderStarHtml():this.renderSmileyHtml()},BotRating.prototype.renderSmileyHtml=function(){var t=this.image,e='
    ',i=["😐","😄","😍"];5===this.level&&i.unshift("😠","😞");for(var a=0;a'+r+''+LSResource.getRealValue(t.text[a])+"
    "}e+="";var s=$Widget.getLayout();for(s=(s=(s=s.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"botrating")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(s),a=0;a';var a='
    '+e+"
    ",n=$Widget.getLayout();n=(n=(n=n.replace(/{BOT_WIDGET}/g,a)).replace(/{CLASSNAME}/g,"botrating")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(n)},BotRating.prototype.renderGestureHtml=function(){var t=this.image,e='
    👍
    '+LSResource.getRealValue(t.text[0])+'
    👎
    '+LSResource.getRealValue(t.text[1])+"
    ",i=$Widget.getLayout();i=(i=(i=i.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"botrating")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(i)},BotRating.prototype.handleEvents=function(){var t=this.contentdiv.find("#cmpnt"+this.msgid),e=this;t.find("#rating-wrap").click(function(t){e.handleClicked(t)})},BotRating.prototype.handleClicked=function(t){"star"!=this.type?"smiley"==this.type?this.handleSmileyRating(t):this.handleGestureRating(t):t.target.hasAttribute("star-count")&&this.handleStarRating(t)},BotRating.prototype.handleSmileyRating=function(t){var e=t.target.parentElement;if(e.hasAttribute("data-type")){var i=$(e).find("[purpose=text]").text(),a=$(e).attr("index"),n=e.lastChild.remove();$(n).remove(),this.callback({type:"happiness-rating",value:a,msg:i,ratinghtml:e.outerHTML,id:this.msgid,chatid:this.chatid})}},BotRating.prototype.handleGestureRating=function(t){var e=t.target.parentElement;if(e.hasAttribute("data-type")){var i=$(e).find("[purpose=text]").text(),a=i==$("#like-rating").find("[purpose=text]").text(),n=e.lastChild.remove();$(n).remove(),this.callback({type:"like",value:a,msg:i,ratinghtml:e.outerHTML,id:this.msgid,chatid:this.chatid})}},BotRating.prototype.handleStarRating=function(t){var e=t.target,i=e.getAttribute("star-count");this.callback({type:"star-rating",value:i,msg:i,ratinghtml:e.outerHTML,id:this.msgid,star:!0,chatid:this.chatid})},{init:function(t,e){if(t.type&&""!=t.type){var i=new BotRating(t,e);i.renderRating(),i.handleEvents()}else t.callback("",e)},smiley_init:function(t,e){t.type="smiley",Rating.init(t,e)},star_init:function(t,e){t.type="star",Rating.init(t,e)},like_init:function(t,e){t.type="gesture",Rating.init(t,e)}});"use strict";var zDatepicker=function(){var k={months:["date.january","date.february","date.march","date.april","date.may","date.june","date.july","date.august","date.september","date.october","date.november","date.december"],abbrmonths:["date.jan","date.feb","date.mar","date.apr","date.may","date.jun","date.jul","date.aug","date.sep","date.oct","date.nov","date.dec"],abbrdays:["date.sun","date.mon","date.tue","date.wed","date.thu","date.fri","date.sat"],pad:function(e,t){return e<10&&(e="0"+e),e},toString:function(e){var t=1
    !{label}
    !{schedule}
    ',main:'
    !{date_info}
    !{body}
    !{showTime}
    ',daysSpan:"
    !{shortDay}
    ",dropDown:'
    !{currentValue}
    !{value}
    ',weekWrapperStart:'
    ',meridiemAM:'
    !{AM}!{PM}
    ',meridiemPM:'
    !{AM}!{PM}
    ',timeTemplate:'
    !{timeBody}
    !{timezoneBody}
    ',weekWrapperEnd:"
    ",currentDay:"
    !{day}
    ",normalDay:"
    !{day}
    ",disabledDay:"
    !{day}
    ",selectedDay:"
    !{day}
    ",RangeselectedDay:"
    !{day}
    ",monthsView:'
    !{year}
    !{body}
    ',normalMonth:"!{month}",yearsView:"
    !{year_info}
    !{body}
    ",normalYear:"!{year}",timezone:'
    !{currentTimezone}
    '},i=function(e,t){this.options={format:"yyyy/mm/dd",range:e.range,view:e.view||0,onselect:e.callback,selected:"",showTime:e.time,tz:e.tz,label:e.label,from:e.from&&k.convertToDate(e.from),to:e.to&&k.convertToDate(e.to),limit:e.limit&&k.convertToDate(e.limit),select_label:e.select_label,time_format:e.time_format,dateonly:e.dateonly,availability_checker:e.availability_checker,ondateclick:e.ondateclick,ontzsel:e.ontzsel,supported_days:e.days},this.msgid=t,this.type=e.type,this.parentdiv=e.parentdiv,this.chatid=e.chatid,this.options.limit=this.options.limit||[this.options.from,this.options.to]};return i.prototype={init:function(){var y,e,g=new Date,f=this.options.dateonly?"":k.toString(g,this.options.format),s=g.getFullYear(),t="24"==this.options.time_format,a=g.getHours();a=t?a:12"+k.pad(o)+"";return s.replace("!{value}",r)};function d(e,t){return e-e%t}var S=function(){return q.timezone.replace("!{currentTimezone}",this.tz_name)}.bind(this),o=function(){var e=this.options.dateonly?"sqico":"siqico",t=q.main.replace("!{date_info}",k.toMonthAndYearString(g)).replace(/{LARROW}/g,e+"-larrow").replace(/{RARROW}/g,e+"-rarrow"),s="",r="",a=q.weekWrapperStart,o=[],d=!1,c=k.convertSupportedDays(this.options.supported_days),l="",m=null,i=window.parent.document.body.querySelector("#datepicker_body");if(i&&(m=i.querySelector('[data-target="schedule"]')).classList.remove("ptr-none"),k.listDates(g).forEach(function(e){var t="";0===e.getDay()&&(s+=q.weekWrapperStart);var a=c&&-1==c.indexOf(e.getDay()),i=f&&k.isSameDay(k.toDate(f,this.options.format),e);k.isSameMonth(g,e)?(d=!0,a?(r=q.disabledDay,l="ptr-none ",i&&m&&m.classList.add("ptr-none")):r=this.options.range&&e>=k.toDate(D,this.options.format)&&e<=k.toDate(b,this.options.format)?q.RangeselectedDay:i?q.selectedDay:this.options.limit&&(this.options.limit[0]&&!k.compareDay(e,this.options.limit[0],"ge")||this.options.limit[1]&&!k.compareDay(e,this.options.limit[1],"le"))?q.disabledDay:q.normalDay):(a&&(l="ptr-none"),r=q.disabledDay);var n=k.toString(e,this.options.format);d&&o.push(n),d=!1,s+=r.replace("!{day}",e.getDate()).replace("{unsupportedday}",l).replace("!{data}",n),6===e.getDay()&&(s+=q.weekWrapperEnd),this.options.range&&k.isSameDay(e,k.toDate(D,this.options.format))&&(t="Start"),this.options.range&&k.isSameDay(e,k.toDate(b,this.options.format))&&(t="End"),s=s.replace("!{extra}",t)}.bind(this)),"function"==typeof this.options.availability_checker&&this.options.availability_checker(o),["date.su","date.mo","date.tu","date.we","date.th","date.fr","date.sa"].forEach(function(e){a+=q.daysSpan.replace("!{shortDay}",LSResource.getRealValue(e))}),a+=q.weekWrapperEnd,t=t.replace("!{body}",a+s),this.options.showTime){var n="24"==this.options.time_format,p=q.timeTemplate,h=n?z(this.hours,0,23,1,"hours"):z(this.hours,1,12,1,"hours"),u=z(this.minutes,0,55,5,"minutes"),v=n?"":("PM"==this.meridiem?q.meridiemPM:q.meridiemAM).replace("!{AM}",LSResource.getRealValue("time.AM")).replace("!{PM}",LSResource.getRealValue("time.PM"));p=p.replace("!{timeBody}",h+u+v),t=(t=t.replace("!{showTime}",p)).replace("!{timezoneBody}",this.options.tz?S():'
    '+this.tz_name+"
    ")}else t=t.replace("!{showTime}","");(w(t),this.options.showTime)&&y.querySelectorAll(".calndr-drp").forEach(function(e){e.onclick=function(e){var t=y.querySelector(".show");t&&t!=this.nextSibling&&t.classList.remove("show"),this.nextElementSibling.classList.toggle("show"),e.stopImmediatePropagation()}});this.isDateWithinRange(f)||$('[data="'+f+'"]').addClass("disabledday")}.bind(this),c=function(){var e=q.monthsView.replace("!{year}",g.getFullYear()),t="";k.months.forEach(function(e){t+=q.normalMonth.replace("!{month}",LSResource.getRealValue(e)).replace("!{month}",LSResource.getRealValue(e))}),w(e.replace("!{body}",t))},l=function(){for(var e=s,t=q.yearsView.replace("!{year_info}",e-7+"-"+(e+7)),a="",i=[],n=e-7;n<=e+7;n++)i.push(n);i.forEach(function(e){a+=q.normalYear.replace("!{year}",e).replace("!{year}",e)}),w(t.replace("!{body}",a))},m={date:function(e){if(this.options.range)if(D)if(D&&!b){if(b=e,k.toDate(D,this.options.format)>k.toDate(b,this.options.format)){var t=D;D=b,b=t}this.options.selected=[D,b],this.updateHeader()}else D&&b&&(D=e,b="");else D=e;f=e,"function"!=typeof this.options.ondateclick?(this.options.range||(this.options.selected=e,this.updateHeader()),o()):this.options.ondateclick(f)}.bind(this),"prev-month":function(){g=k.moveMonth(g,-1),o()},"next-month":function(){g=k.moveMonth(g,1),o()},disabledday:function(e){var t=k.toDate(e,this.options.format);this.isDateWithinRange(t)&&(g=t,o(),m.date(e))}.bind(this),"mo-yr-info":c,month:function(e){var t=k.months.indexOf(e);g=new Date(g.setMonth(t)),o()},"yr-info":l,year:function(e){g=new Date(g.setFullYear(parseInt(e))),c()},"prev-year":function(){s-=15,l()},"next-year":function(){s+=15,l()},hours:function(e){this.hours=e,o()}.bind(this),minutes:function(e){this.minutes=e,o()}.bind(this),schedule:function(){this.options.range&&!b||!this.isDateWithinRange()||(this.options.onselect({type:this.type,msg:this.getReadableSelection(),id:this.msgid,value:this.getValues(),chatid:this.chatid}),e.parentNode.removeChild(e),removeEventListener("click",i))}.bind(this),close:function(){e.parentNode.removeChild(e),removeEventListener("click",i)},meridiem:function(e){this.meridiem=e,o()}.bind(this),showtzlist:function(){y.querySelector("#datepicker_timezone").insertAdjacentHTML("beforeend",TimeZone.getTimeZoneHTML(!1)),y.querySelector("#tz-list input").addEventListener("input",function(e){TimeZone.handleSearch(e,this,!1)}),!this.parentdiv&&u()},timezone:function(e,t,a){this.timezone=e,this.timezoneid=a,this.tz_name=t.innerHTML,y.querySelector("#tz-list").remove(),!this.parentdiv&&u(!0),"function"==typeof this.options.ontzsel&&this.options.ontzsel(a),o()}.bind(this)},p=this,h=function(e,t,a,i){var n=y.querySelector(".calndr-settime");if(!n)return!0;var s=n.querySelector("#tz-list"),r=n.querySelector(".show");if(t=t?t.value:"",s){if("timezone"===t)return m.timezone(a,e,i),p.updateHeader(),!1;if(e===s||"showtzlist"===t||s.contains(e))return!1;s.remove(),u(!0)}else r&&e!==r&&r.classList.remove("show");return!0},u=function(e){var t=window.parent.document.querySelector("#siqdateback");e?t.classList.remove("siqshowbckico"):t.classList.toggle("siqshowbckico")};if(this.parentdiv){var v=this.parentdiv[0];v.insertAdjacentHTML("beforeend",'
    '),e=v.querySelector("#datepicker_body"),y=v.querySelector("#zsiqdatepicker")}else{var M;M=q.overlay.replace("!{label}",getEncodedText(this.options.label)||LSResource.getRealValue("common.scheduleameeting")).replace("!{schedule}",getEncodedText(this.options.select_label)||LSResource.getRealValue("common.schedule")),window.parent.document.body.insertAdjacentHTML("beforeend",M),e=window.parent.document.querySelector("#datepicker_body"),y=window.parent.document.querySelector("#zsiqdatepicker")}o(),this.options.selected=f,this.updateHeader();var T=e||this.parentdiv[0];i=T.addEventListener("click",function(e){var t,a,i,n,s;e.stopPropagation(),a=(t=e).target.attributes,i=a&&a["data-target"],n=a.data&&a.data.value,s=a&&a["data-id"]&&a["data-id"].value,h(t.target,i,n,s)&&i&&(m[i.value](n),p.updateHeader())})},updateHeader:function(){var e=window.parent.document.querySelector("#selectedDateInfo");e&&(e.innerHTML=this.getReadableSelection())},getReadableSelection:function(){var e=this.options.tz?" "+this.timezone:"",t=this.options.showTime?" "+this.hours+":"+this.minutes+" "+this.meridiem:"";if("object"==typeof this.options.selected){var a=this.getRangeString();return a.from+" to "+a.to+t+e}var i=k.toDate(this.options.selected,this.options.format);return this.options.dateonly?k.toString(i,"readable"):k.toString(i,"readable")+t+e},getRangeString:function(){var e=k.toDate(this.options.selected[0],this.options.format),t=k.toDate(this.options.selected[1],this.options.format);return{from:k.toString(e,"readable"),to:k.toString(t,"readable")}},getValues:function(){var e={tz:this.timezone,time_zone_id:this.timezoneid},t=this.options.showTime?" "+this.hours+":"+this.minutes+" "+this.meridiem:"",a=this.options.selected;return this.options.range?(e.from_time=new Date(a[0]+t).getTime(),e.to_time=new Date(a[1]+t).getTime()):e.time=new Date(a+t).getTime(),e},handleTimeFormat:function(){var e=this.getReadableSelection();if(!this.options.showTime)return e;var t=(-1==e.indexOf("GMT")?e:e.substring(e.indexOf(" GMT"),0)).split(/\s(.+)/)[1],a=t.split(":"),i=a[0],n=a[1].split(" ");if(-1==t.indexOf("AM")&&12!=i)i=parseInt(a[0])+12;return e.replace(t,i+":"+n[0]+":00")},getTimestamp:function(){if(this.options.range){var e=new Date(this.options.selected[0]),t=new Date(this.options.selected[1]);return this.options.tz&&(e=k.toTimezone(e,this.timezone.replace("GMT","")),t=k.toTimezone(t,this.timezone.replace("GMT",""))),e.getTime()+"-"+t.getTime()}var a=this.options.selected+(this.options.showTime?" "+this.hours+":"+this.minutes+" "+this.meridiem:"");return a=new Date(a),this.options.tz&&(a=k.toTimezone(a,this.timezone.replace("GMT",""))),a.getTime()},isDateWithinRange:function(e){if(this.options.from||this.options.to){var t=this.options.from?new Date(this.options.from):"",a=this.options.to?new Date(this.options.to):"",i="",n="";if(e||(e=this.options.selected),this.options.range){if(!e||"string"==typeof e)return!0;if(!e[0])return!1;i=new Date(e[0]),n=new Date(e[1])}else n=i=new Date(e);if(t&&k.compareDay(i,t,"l"))return!1;if(a&&k.compareDay(n,a,"g"))return!1}return!0}},{init:function(e,t){var a=new i(e,t);return a.init(),a},getDayStrig:function(e,t){return k.toString(e,t)},getMonthAndDateString:function(e){return k.toMonthAndDateString(e)},convertTimeIntoMeridiem:function(e){return k.convertTimeIntoMeridiem(e)},convert24To12HrString:function(e){return k.convert24To12HrString(e)},convert12To24HrString:function(e){return k.convert12To24HrString(e)}}}();var Suggestions=function(){var a=function(t,i){this.dataval=t.list,this.callback=t.callback,this.id=i,this.componentid=i,this.type=t.type,this.userconfig=t,this.chatid=t.chatid,this.isdisplaycard=t.isdisplaycard,this.chatobj=ZSIQTranscript.getChatWindowOBJ(this.chatid),this.chatdiv=this.chatobj.chatdiv};return a.prototype={populateButtons:function(){var t=this.getButtonHtml(),i=this.chatdiv,a=$Support&&($Support.EmbedObj||{}).isbot_uxchange_enabled,s=a?i.children('[data-field="message"]').last():i.children().last(),e=s.attr("proptype");i.find("#conversationoption").remove(),this.isdisplaycard?$Widget.attachHTML(t,!0):0!==i.find(".zsiq_transferdiv").length&&!a||"feedbackcontainer"===e?s.prev().append(t):s.append(t),ZSIQTranscript.scroll("",this.chatobj.chatmaindiv),this.bindEvent()},getButtonHtml:function(){var t="",i="conversationoption";if(i=this.isdisplaycard?i+this.id:i,"suggestions"!==this.type)return'
    Skip';for(var a=0;a'+Smiley.replace(o)+""}else{var c=getEncodedText(this.dataval[a]);t+=''+Smiley.replace(c)+""}}return'
    '+t+"
    "},bindEvent:function(){var i=this;$(this.chatdiv).off("click.suggest","span[prop=suggestions]").on("click.suggest","span[prop=suggestions]",function(t){i.chooseField(this)})},chooseField:function(t){t=$(t),this.callback({msg:t.attr("val"),id:this.componentid,element:t,config:this.userconfig,data_value:t.attr("data-value"),config:this.userconfig,data_id:t.attr("sug_id"),type:t.attr("prop"),chatid:this.chatid})}},{init:function(t,i){($BotImpl.enableComposer("",t.chatid),t.hide_composer&&$BotImpl.handleComposerVisibility(!0,t.chatid),t.list)?new a(t,i).populateButtons():t.callback("",i)}}}();var Singleselect=function(){var i=function(t,e){this.dataval=this.getFormattedOptions(t.options),this.callback=t.callback,this.select_label=t.select_label,this.componentid=e,this.userconfig=t,this.chatid=t.chatid,this.contentdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).contentdiv};return i.prototype={getFormattedOptions:function(t){var e=[],i=t.length;if(t[0].id)return t;for(var a=0;a'+getEncodedText(i.text)+"
    "}return t+=""},bindEvent:function(){var t=this;this.contentdiv.find("#singleselect [data-value]").off("click.select").on("click.select",function(){t.handleSingleselection(this)})},handleSingleselection:function(t){(t=$(t)).parent().find("[data-value]").removeClass("sel"),t.addClass("sel");var e=t.attr("op_id"),i="";this.dataval.forEach(function(t){t.id==e&&(i=t.text)}),this.callback({msg:i,id:this.componentid,type:"select",element:t,config:this.userconfig,data_value:t.attr("data-value"),data_id:t.attr("op_id"),chatid:this.chatid})}},{init:function(t,e){t.options?new i(t,e).populateButtons():t.callback("",e)}}}();var BotArticle=function(){var a=function(t,i){this.data=t,this.data.id=i,this.chatid=t.chatid,this.chatobj=ZSIQTranscript.getChatWindowOBJ(this.chatid),this.contentdiv=this.chatobj.contentdiv,this.isresourcesharing="resource-share"==this.data.subtype};return a.prototype={renderArticle:function(){var t=this.isresourcesharing?"artcle-vw article-share":"artcle-vw",i=$Widget.getLayout();i=(i=(i=i.replace(/{BOT_WIDGET}/g,ZSIQTranscript.getCustomArticleCard(this.data))).replace(/{CLASSNAME}/g,"")).replace(/{WIDGET_TYPE}/g,"display-card"),i=this.isresourcesharing?i.replace(/{ARTCLID}/g,"article-id="+this.data.articleid):i.replace(/{ARTCLID}/g,""),$Widget.attachHTML(i),this.contentdiv.find("#cmpnt"+this.data.id).parents(".msgbx").addClass(t)},setEvents:function(){var i=this;this.data.articles&&this.data.articles.length&&this.contentdiv.off("click.article","#rel-articles-"+this.data.id).on("click.article","#rel-articles-"+this.data.id,function(t){i.handleClicked(t)})},handleClicked:function(t){var i=$(t.target),e=i.attr("article-id");if(this.isresourcesharing){var a=i.closest("div #cmpnt"+this.data.id);e=a.attr("article-id"),i=a}e&&$FAQ.showFAQPreview(i,function(){this.chatobj.showBanner(LSResource.getRealValue("faq.notavail",LSResource.getRealValue("faq.article")),!0)}.bind(this))}},{init:function(t,i){var e=new a(t,i);e.renderArticle(),e.setEvents()},handleClicked:function(t){var i=t.target,e=$(i).attr("article-id");e&&Educate.faqPreview(e,$(i),void 0,void 0,function(){this.contentdiv.find("#faqpreview_footer").remove()},!0)}}}();var BotTimeSlot=function(){var e=["date.january","date.february","date.march","date.april","date.may","date.june","date.july","date.august","date.september","date.october","date.november","date.december"],i=["date.sunday","date.monday","date.tuesday","date.wednesday","date.thursday","date.friday","date.saturday"],s=function(t,e){this.data=t,this.label=getEncodedText(t.label)||LSResource.getRealValue("widget.timeslot.shedulemeeting"),this.select_label=t.select_label,this.time=e||Date.now(),this.minutes=0,this.shedule={time:"",time_str:"",date:"",date_str:"",tz:"",gmt:""},this.chatid=t.chatid,this.contentdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).contentdiv,this.timezone_id=t.time_zone_id},o=function(t){return LSResource.getRealValue(e[t])},m=function(t){return LSResource.getRealValue(i[t])},a=function(t,e){if(Array.isArray(e))for(var i=0;i",e=$Widget.getLayout();e=(e=(e=e.replace(/{BOT_WIDGET}/g,t)).replace(/{CLASSNAME}/g,"botbtn")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(e),this.contentdiv.find("#bot_timeslot").on("click",function(t){this.contentdiv.find(".cmpnt-wrap").removeClass("botbtn"),this.contentdiv.find("#bot_timeslot").replaceWith(this.getTimeSlotHTML()),this.renderTimeSlot(this.data)}.bind(this))},getTimeSlotHTML:function(){return'
    '+this.getNextPrevHTML()+"
    "},getNextPrevHTML:function(){return'
    '+LSResource.getRealValue("common.prev")+'
    '+LSResource.getRealValue("common.next")+"
    "},renderTimeSlot:function(t){this.elem=this.contentdiv.find("#timeslot-"+this.time);var e="timeslots"==this.data.type?"time":"date";this.setDateTimeSlots(e),this.elem.find("#timeslot-move").attr("slot",e),this.setTitleAndZone();var i=this;this.elem.find("#timeslot-move [move]").on("click",function(t){i.handleMoveClick(this,t)})},setTitleAndZone:function(){var t="timeslots"==this.data.type?"widget.timeslot.selecttime":"widget.timeslot.selectday",e='
    '+this.label+'
    '+LSResource.getRealValue(t)+"
    ";this.elem.find("#title-zone").html(e);var i=this;this.elem.find("#title-zone .sqico-larrow").hide().on("click",function(t){i.handleBackArrow()}),this.elem.find("#tz_drpdown").on("click",function(t){"date"!=i.elem.find("#timeslot-move").attr("slot")&&"timeslots"!=i.data.type||i.elem.has("#tz-list").length||i.showTimeZoneList(t)}),this.setTimeZone(),ZSIQTranscript.scroll()},showTimeZoneList:function(t){if(this.data.tz){var e=TimeZone.getTimeZoneHTML(!0);this.elem.find("#timeslot-select").after(e);var i=this;this.elem.find("#tz-list").on("click",function(t){i.handleTimeZoneClick(t)}),this.elem.find("#tz-list input").on("input",function(t){TimeZone.handleSearch(t,this,!0)}),l(i,t)}},setDateTimeSlots:function(t){var e=this,i="";this.data.slots&&(i="date"==t?this.getDateSlots():this.getTimeSlots()),this.elem.find("#timeslot-select").html(i),this.elem.find("#timeslot-select ["+t+"]").on("click",function(t){e.handleDateTimeClick(this,t)}),ZSIQTranscript.scroll()},handleTimeZoneClick:function(t){var e=t.target;if(e.hasAttribute("data")){var i=$(e).html();this.elem.find("#tz-list").remove(),this.shedule.gmt=$(e).attr("data"),this.shedule.tz=i,this.shedule.timezoneid=i.substring(i.lastIndexOf("(")+1,i.lastIndexOf(")")),this.setTimeZone()}},setTimeZone:function(){var t=this.data.tz?this.shedule.tz:"timeslots"==this.data.type?this.shedule.date_str:"";this.elem.find("#tz_drpdown").html(t)},handleDateTimeClick:function(t,e){if("date"==this.elem.find("#timeslot-move").attr("slot")){var i=$(t).attr("date");if(i){this.shedule.date=i,this.shedule.date_str=$(t).text(),this.minutes=0,this.elem.find("#timeslot-move").attr("slot","time"),this.setDateTimeSlots("time");var s=this.elem.find("#title-zone");s.find(".sqico-larrow").show(),s.find("#tz_drpdown").html(this.shedule.date_str),s.find("[slot-title]").html(LSResource.getRealValue("widget.timeslot.selecttime"))}}else{var l=$(e.target).attr("time");l&&(this.shedule.time=l,this.shedule.time_str=$(e.target).text(),this.setSelectedResult(),this.elem.find("#timeslot-select").hide(),this.elem.find("#timeslot-move").hide().attr("slot","confirm"))}},setSelectedResult:function(){var l=this.shedule.date_str+" at "+this.shedule.time_str,t=this.select_label?this.select_label:LSResource.getRealValue("common.confirm"),e='
    '+this.label+'
    '+l+'
    '+this.shedule.tz+'
    '+t+"
    ";this.elem.find("#title-zone").html(e);var a=this;this.elem.find("#title-zone .sqico-larrow").on("click",function(t){a.handleBackArrow()}),l+=" "+this.shedule.tz,this.elem.find("#confirm").on("click",function(t){var e={id:a.time,msg:l,type:a.data.type,chatid:a.chatid},i=a.shedule.date.split("/"),s=(i=i[1]+"/"+i[0]+"/"+i[2])+" "+a.shedule.time;e.value={tz:a.shedule.gmt,slot:"timeslots"==a.data.type?a.shedule.time:a.shedule.date+" "+a.shedule.time,time:new Date(s).getTime().toString(),time_zone_id:a.shedule.timezoneid},a.data.callback(e)})},enableBackArrow:function(){this.elem.find("#title-zone .sqico-larrow").show()},handleBackArrow:function(){var t=this.elem.find("#timeslot-move").attr("slot");"time"==t?(this.elem.find("#title-zone .sqico-larrow").hide(),this.elem.find("#timeslot-move").attr("slot","date"),this.setDateTimeSlots("date"),this.elem.find("#title-zone [slot-title]").html(LSResource.getRealValue("widget.timeslot.selectday")),this.setTimeZone()):"confirm"==t&&(this.elem.find("#timeslot-move").show().attr("slot","time"),this.elem.find("#timeslot-select").show(),this.setTitleAndZone(),"timeslots"!=this.data.type&&(this.elem.find("#title-zone .sqico-larrow").show(),this.elem.find("#tz_drpdown").html(this.shedule.date_str)),this.setDateTimeSlots("time"))},handleMoveClick:function(t){var e=$(t).attr("move"),i=this.elem.find("#timeslot-move").attr("slot");if("date"==i){if("prev"==e){var s=this.index-this.limit;this.index=s<0?0:s}else if("next"==e){s=this.index+this.limit;this.index=s>=this.datelist.length?this.index:s}this.setDateTimeSlots("date")}else if("time"==i){if("prev"==e){s=this.minutes-6;this.minutes=s<0?0:s}else if("next"==e){s=this.minutes+6;this.minutes=s>=a(this.shedule.date,this.data.slots).length?this.minutes:s}this.setDateTimeSlots("time")}},getReadableDate:function(t){var e=-1!=t.indexOf("/")?t.split("/"):t.split("-"),i=e[1];i=isNaN(parseInt(i))?new Date(i+" 01 0001").getMonth():i-1;var s=new Date(e[2],i,e[0]);return e=t,o(s.getMonth())+" "+s.getDate()+", "+s.getFullYear()},getDateSlots:function(){var t,e="",i=this.elem.find("#timeslot-move");3'+m(t.getDay())+' '+d+""}return e},getTimeSlots:function(){var t="",e=a(this.shedule.date,this.data.slots),i=this.elem.find("#timeslot-move");if(!e)return"";function s(t){if(!t)return"";var e=t.split(":"),i=e[0]%=24;i=(i=12==i?12:i%12)<10?"0"+i:i;var s=11'+i+":"+e[1]+" "+s+""}6'+s(e[l++])+s(e[l])+"":"";return t}};var l=function(t,e){$Clickoutside&&$Clickoutside.bindclick(function(){t.elem.find("#tz-list").remove()},"tz-list","tz_drpdown",!0,e)};return{init:function(t,e){new s(t,e).init()}}}();var ZMaps=function(){var c,n,o,i,l,r,s,d,u,g,p,v=!1,y="846325856-2a81c23553466f915ea4fe888922e009",m="api/v3/search?",f={},_=function(){try{return $Support.getZMapKeys()}catch(e){return{zmapapicss:_ZMAPCSSURL,zmapstaticurl:_ZMAPSTATICURL,zmapapiurl:_ZMAPAPIURL,zmapapikey:_ZMAPAPIKEY,mapboxgl:window.mapboxgl}}},L=function(){p=$Widget.isPreview()?window:window.parent},a=function(){var e=$Widget.getLocationWidgetHtml(c.label),t=$Widget.getLayout();t=(t=(t=t.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"bot-locatn")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(t),(d=document.querySelector("#bot_location")).addEventListener("click",h)},h=function(){R(c.lat,c.lng)},b=function(e,t){var a=p.document;a.body.insertAdjacentHTML("beforeend",A("overlay")),o=a.querySelector("#glocation_body");var n=a.querySelector("#widget_holder"),i=a.createElement("div");i.style.height="700px",n.insertAdjacentElement("beforeend",i),_event=o.addEventListener("click",function(e){e.stopPropagation(),I(e)});var l=U(k,500);(s=a.querySelector("#searchplace")).addEventListener("input",function(e){var t=e.target.value.length;s.parentElement.querySelector("[data-target = 'suggclose']").style.display=t?"block":"none",1'+e.display_name+"")});var a=document.createElement("span");a.className="siqico-location",a.style["font-size"]="25px";var n={anchor:"center",draggable:!c||!c.radius,element:a,offset:[-0,-12]};l=new g.Marker(n).setLngLat({lat:e,lng:t}).addTo(i),M(e,t,function(e){r=new g.Popup({offset:1}).setHTML('
    '+e.display_name+"
    "),l.setPopup(r)})},S=function(e,t,a){return _().zmapstaticurl+"v2/staticimage?lat="+e+"&lon="+t+"&zoom=17&height=250&width=300&marker=true"},M=function(e,t,a){var n=JSON.stringify({lat:e,lon:t}),i="",l={};v?i="address={'lat':'"+e+"','lon':'"+t+"'}&needed_keys=[label,lat,lon,address]&size=10&map_vendor=1&api_key="+y:l={params:n,api_key:_().zmapapikey},$.ajax({url:_().zmapstaticurl+(v?encodeURI(m+i):"v1/query/rgeocode"),type:"GET",data:l,success:function(e){var t={};v&&((t=e.result[0]||{}).display_name=t.label||"",t.address={road:t.street||t.city,state_district:t.district,state:t.state}),a(v?t:e)}})},k=function(o){if(s.value.length<2)E();else{var e=p.document.querySelector("#autocomplete");e.style.display="block",e.innerHTML='';var t=l.getLngLat(),a={q:o,limit:4,autocomplete:"true",priorityLat:t.lat,priorityLon:t.lng},n={needed_keys:["lat","lon","label","address"],address:{text:o},autocomplete:!0,priority:{priority_lat:t.lat,priority_lon:t.lng},api_key:y,map_vendor:1,size:4};a=JSON.stringify(a);var i={};v?n="address={'text':'"+o+"'}&needed_keys=[lat,lon,label,address]&size=4&autocomplete=true&map_vendor=1&priority={'priority_lat':'"+n.priority.priority_lat+"','priority_lon':'"+n.priority.priority_lon+"'}&api_key="+y:(i.params=a,i.api_key=n.api_key),$.ajax({url:_().zmapstaticurl+(v?encodeURI(m+n):"v1/pelias/query/geocode"),type:"GET",data:i,success:function(e){if(s.value===o){var t=[];if(v)for(var a=e.result,n=a?a.length:0,i=0;i
    Suggestions
    '+a+"
    "}else t.innerHTML='
    '+LSResource.getRealValue("widget.location.notfound")+"
    "},A=function(e,t){var a=($Widget.isPreview()?window.parent.IS_RTL_SUPPORTED:($Support.EmbedObj||{}).isRtlLang)?"zsiq-rtl":"";return{overlay:function(){return'
    '+(c.callback?'
    '+(getEncodedText(c.select_label)||LSResource.getRealValue("widget.location.send"))+"
    ":"")+"
    "},suggestion:function(e){var t=e.display_name.split(","),a=P(e);return'
    '+t[0]+'
    '+t[1]+"
    "+(a?'
    '+LSResource.getRealValue("bot.location.outofrange")+"
    ":"")+"
    "}}[e](t)},P=function(e){return j(e.lat,e.lon)>c.radius},R=function(e,t){if(v=!$Widget.isPreview()&&($Support.EmbedObj||{}).is_zmaps_v3_enabled,c=c||{},L(),d&&d.removeEventListener("click",h),u)g&&x(e,t);else{var a=(p.$zohosq||{}).nonce,n=a?"nonce='"+a+"'":"",i="";p.document.head.insertAdjacentHTML("beforeend",i),(u=document.createElement("script")).src=_().zmapapiurl,a&&u.setAttribute("nonce",a),p.document.head.appendChild(u),u.onload=function(){g=_().mapboxgl,x(e,t)}}},x=function(e,t){e&&t?b(e,t):navigator.geolocation.getCurrentPosition(function(e){b(e.coords.latitude,e.coords.longitude)},function(){b(37.686091,-121.893752)})},I=function(e){var t={close:function(){d&&d.addEventListener("click",h),o.remove(),l=null,removeEventListener("click",_event)},sendLocation:function(){var a;a=l.getLngLat(),M(a.lat,a.lng,function(e){if(e.error)c.callback({type:"location",value:{lat:a.lat,lng:a.lng,image:S(a.lat,a.lng)},msg:a.lat+","+a.lng,id:n});else{var t=e.display_name;v&&f.lat==a.lat&&f.lng==a.lng&&(t=f.loc_name),c.callback({type:"location",value:{street:e.address.road||e.address.village||"",city:e.address.state_district||"",state:e.address.state||"",lat:e.lat,lng:e.lon,image:S(e.lat,e.lon)},msg:t,id:n})}}),l=null,o.remove(),removeEventListener("click",_event)},suggestion:function(){C(e),E(),s.value="",s.parentElement.querySelector("[data-target = 'suggclose']").style.display="none"},suggclose:function(){E(),s.value="",e.target.style.display="none"}},a=e.target.getAttribute("data-target");a&&("function"==typeof t[a]&&t[a](),e.target!=s&&l&&E())},C=function(e){var t=e.target.getAttribute("lng"),a=e.target.getAttribute("lat");if(c.radius&&j(a,t)>c.radius)return;v&&(f={lat:a,lng:t,loc_name:e.target.getAttribute("loc_name")}),z(a,t),i.flyTo({center:[t,a],zoom:17})},H=function(e,t){i.addSource("radius_source",{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[t,e]}}]}}),i.addLayer({type:"circle",id:"radius",source:"radius_source",layout:{visibility:"visible"},paint:{"circle-radius":{stops:[[0,0],[20,W(c.radius,e)]],base:2},"circle-color":"rgba(0, 102, 204, 0.2)","circle-opacity":1}}),i.flyTo({center:[t,e],zoom:17}),i.on("click","radius",function(e){z(e.lngLat.lat,e.lngLat.lng)})},j=function(e,t){var a=c.lat,n=c.lng,i=O(a),l=O(e),o=O(e-a),r=O(t-n),s=Math.sin(o/2)*Math.sin(o/2)+Math.cos(i)*Math.cos(l)*Math.sin(r/2)*Math.sin(r/2);return 6371e3*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},W=function(e,t){return e/.075/Math.cos(t*Math.PI/180)},O=function(e){return e*Math.PI/180},U=function(n,i,l){var o;return function(){var e=this,t=arguments,a=l&&!o;clearTimeout(o),o=setTimeout(function(){o=null,l||n.apply(e,t)},i),a&&n.apply(e,t)}};return{init:function(e,t){c=e,n=t,L(),a()},getStaticImage:function(e,t){return S(e,t)},loadMap:function(e,t){R(e,t)},reverseGeoCoding:function(e,t,a){M(e,t,a)},openMapsFromImage:function(e){var t,a,n;a=(t=e).target.getAttribute("lat"),n=t.target.getAttribute("lng"),c={},R(a,n)}}}();var TimeZone=function(){function T(f,T){var e,a='
    !{list}
    ',r="";return[{name:"GMT-12:00 (Etc/GMT+12)",gmt:"GMT-12:00",offset:720},{name:"GMT-11:00 (Etc/GMT+11)",gmt:"GMT-11:00",offset:660},{name:"West Samoa Time (MIT)",gmt:"GMT-11:00",offset:660},{name:"West Samoa Time (Pacific/Apia)",gmt:"GMT+13:00",offset:660},{name:"Samoa Standard Time (Pacific/Midway)",gmt:"GMT-11:00",offset:660},{name:"Niue Time (Pacific/Niue)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (Pacific/Pago_Pago)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (Pacific/Samoa)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (US/Samoa)",gmt:"GMT-11:00",offset:660},{name:"Hawaii-Aleutian Daylight Time (America/Adak)",gmt:"GMT-09:00",offset:600},{name:"Hawaii-Aleutian Daylight Time (America/Atka)",gmt:"GMT-09:00",offset:600},{name:"GMT-10:00 (Etc/GMT+10)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (HST)",gmt:"GMT-10:00",offset:600},{name:"Tokelau Time (Pacific/Fakaofo)",gmt:"GMT+13:00",offset:600},{name:"Hawaii Standard Time (Pacific/Honolulu)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (Pacific/Johnston)",gmt:"GMT-10:00",offset:600},{name:"Cook Is. Time (Pacific/Rarotonga)",gmt:"GMT-10:00",offset:600},{name:"Tahiti Time (Pacific/Tahiti)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (SystemV/HST10)",gmt:"GMT-10:00",offset:600},{name:"Hawaii-Aleutian Daylight Time (US/Aleutian)",gmt:"GMT-09:00",offset:600},{name:"Hawaii Standard Time (US/Hawaii)",gmt:"GMT-10:00",offset:600},{name:"Marquesas Time (Pacific/Marquesas)",gmt:"GMT-09:30",offset:570},{name:"Alaska Daylight Time (AST)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Anchorage)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Juneau)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Nome)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Yakutat)",gmt:"GMT-08:00",offset:540},{name:"GMT-09:00 (Etc/GMT+9)",gmt:"GMT-09:00",offset:540},{name:"Gambier Time (Pacific/Gambier)",gmt:"GMT-09:00",offset:540},{name:"Alaska Standard Time (SystemV/YST9)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (SystemV/YST9YDT)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (US/Alaska)",gmt:"GMT-08:00",offset:540},{name:"Pacific Daylight Time (America/Dawson)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Ensenada)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Los_Angeles)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Tijuana)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Vancouver)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Whitehorse)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (Canada/Pacific)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (Canada/Yukon)",gmt:"GMT-07:00",offset:480},{name:"GMT-08:00 (Etc/GMT+8)",gmt:"GMT-08:00",offset:480},{name:"Pacific Daylight Time (Mexico/BajaNorte)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (PST)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (PST8PDT)",gmt:"GMT-07:00",offset:480},{name:"Pitcairn Standard Time (Pacific/Pitcairn)",gmt:"GMT-08:00",offset:480},{name:"Pacific Standard Time (SystemV/PST8)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (SystemV/PST8PDT)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (US/Pacific)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (US/Pacific-New)",gmt:"GMT-07:00",offset:480},{name:"Mountain Daylight Time (America/Boise)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Cambridge_Bay)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Chihuahua)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Dawson_Creek)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Denver)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Edmonton)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Hermosillo)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Inuvik)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Mazatlan)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Phoenix)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Shiprock)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Yellowknife)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Canada/Mountain)",gmt:"GMT-06:00",offset:420},{name:"GMT-07:00 (Etc/GMT+7)",gmt:"GMT-07:00",offset:420},{name:"Mountain Standard Time (MST)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (MST7MDT)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Mexico/BajaSur)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Navajo)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (PNT)",gmt:"GMT-07:00",offset:420},{name:"Mountain Standard Time (SystemV/MST7)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (SystemV/MST7MDT)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (US/Arizona)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (US/Mountain)",gmt:"GMT-06:00",offset:420},{name:"Central Standard Time (America/Belize)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Cancun)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Chicago)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (America/Costa_Rica)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/El_Salvador)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Guatemala)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Indiana/Knox)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Indiana/Petersburg)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Indiana/Vincennes)",gmt:"GMT-05:00",offset:360},{name:"Eastern Daylight Time (America/Knox_IN)",gmt:"GMT-04:00",offset:360},{name:"Central Standard Time (America/Managua)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Menominee)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Merida)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Mexico_City)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Monterrey)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/North_Dakota/Center)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/North_Dakota/New_Salem)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Rainy_River)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Rankin_Inlet)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (America/Regina)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Swift_Current)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Tegucigalpa)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Winnipeg)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (CST)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (CST6CDT)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (Canada/Central)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (Canada/East-Saskatchewan)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (Canada/Saskatchewan)",gmt:"GMT-06:00",offset:360},{name:"Easter Is. Time (Chile/EasterIsland)",gmt:"GMT-06:00",offset:360},{name:"GMT-06:00 (Etc/GMT+6)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (Mexico/General)",gmt:"GMT-05:00",offset:360},{name:"Easter Is. Time (Pacific/Easter)",gmt:"GMT-06:00",offset:360},{name:"Galapagos Time (Pacific/Galapagos)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (SystemV/CST6)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (SystemV/CST6CDT)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (US/Central)",gmt:"GMT-05:00",offset:360},{name:"Eastern Daylight Time (US/Indiana-Starke)",gmt:"GMT-04:00",offset:360},{name:"Eastern Standard Time (America/Atikokan)",gmt:"GMT-05:00",offset:300},{name:"Colombia Time (America/Bogota)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (America/Cayman)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (America/Coral_Harbour)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Detroit)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (America/Eirunepe)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Fort_Wayne)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Grand_Turk)",gmt:"GMT-04:00",offset:300},{name:"Ecuador Time (America/Guayaquil)",gmt:"GMT-05:00",offset:300},{name:"Central Daylight Time (America/Havana)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Indianapolis)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Marengo)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Vevay)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indianapolis)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Iqaluit)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (America/Jamaica)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Louisville)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Monticello)",gmt:"GMT-04:00",offset:300},{name:"Peru Time (America/Lima)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Louisville)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Montreal)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Nassau)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/New_York)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Nipigon)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (America/Panama)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Pangnirtung)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Port-au-Prince)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (America/Porto_Acre)",gmt:"GMT-05:00",offset:300},{name:"Acre Time (America/Rio_Branco)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Thunder_Bay)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Toronto)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (Brazil/Acre)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (Canada/Eastern)",gmt:"GMT-04:00",offset:300},{name:"Central Daylight Time (Cuba)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (EST)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (EST5EDT)",gmt:"GMT-04:00",offset:300},{name:"GMT-05:00 (Etc/GMT+5)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (IET)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (Jamaica)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (SystemV/EST5)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (SystemV/EST5EDT)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/East-Indiana)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/Eastern)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/Michigan)",gmt:"GMT-04:00",offset:300},{name:"Atlantic Standard Time (America/Anguilla)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Antigua)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Aruba)",gmt:"GMT-04:00",offset:240},{name:"Paraguay Time (America/Asuncion)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Barbados)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Blanc-Sablon)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Boa_Vista)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Campo_Grande)",gmt:"GMT-04:00",offset:240},{name:"Venezuela Time (America/Caracas)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Cuiaba)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Curacao)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Dominica)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Glace_Bay)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Daylight Time (America/Goose_Bay)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Grenada)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Guadeloupe)",gmt:"GMT-04:00",offset:240},{name:"Guyana Time (America/Guyana)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Halifax)",gmt:"GMT-03:00",offset:240},{name:"Bolivia Time (America/La_Paz)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Manaus)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Martinique)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Moncton)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Montserrat)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Port_of_Spain)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Porto_Velho)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Puerto_Rico)",gmt:"GMT-04:00",offset:240},{name:"Chile Time (America/Santiago)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Santo_Domingo)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Kitts)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Lucia)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Thomas)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Vincent)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Thule)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Tortola)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Virgin)",gmt:"GMT-04:00",offset:240},{name:"Chile Time (Antarctica/Palmer)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Daylight Time (Atlantic/Bermuda)",gmt:"GMT-03:00",offset:240},{name:"Falkland Is. Summer Time (Atlantic/Stanley)",gmt:"GMT-03:00",offset:240},{name:"Amazon Time (Brazil/West)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (Canada/Atlantic)",gmt:"GMT-03:00",offset:240},{name:"Chile Time (Chile/Continental)",gmt:"GMT-04:00",offset:240},{name:"GMT-04:00 (Etc/GMT+4)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (PRT)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (SystemV/AST4)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (SystemV/AST4ADT)",gmt:"GMT-03:00",offset:240},{name:"Newfoundland Daylight Time (America/St_Johns)",gmt:"GMT-02:30",offset:210},{name:"Newfoundland Daylight Time (CNT)",gmt:"GMT-02:30",offset:210},{name:"Newfoundland Daylight Time (Canada/Newfoundland)",gmt:"GMT-02:30",offset:210},{name:"Argentine Time (AGT)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Araguaina)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Buenos_Aires)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Catamarca)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/ComodRivadavia)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Cordoba)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Jujuy)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/La_Rioja)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Mendoza)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Rio_Gallegos)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/San_Juan)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Tucuman)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Ushuaia)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Bahia)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Belem)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Buenos_Aires)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Catamarca)",gmt:"GMT-03:00",offset:180},{name:"French Guiana Time (America/Cayenne)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Cordoba)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Fortaleza)",gmt:"GMT-03:00",offset:180},{name:"Western Greenland Summer Time (America/Godthab)",gmt:"GMT-02:00",offset:180},{name:"Argentine Time (America/Jujuy)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Maceio)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Mendoza)",gmt:"GMT-03:00",offset:180},{name:"Pierre & Miquelon Daylight Time (America/Miquelon)",gmt:"GMT-02:00",offset:180},{name:"Uruguay Time (America/Montevideo)",gmt:"GMT-03:00",offset:180},{name:"Suriname Time (America/Paramaribo)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Recife)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Rosario)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Sao_Paulo)",gmt:"GMT-03:00",offset:180},{name:"Rothera Time (Antarctica/Rothera)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (BET)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (Brazil/East)",gmt:"GMT-03:00",offset:180},{name:"GMT-03:00 (Etc/GMT+3)",gmt:"GMT-03:00",offset:180},{name:"Fernando de Noronha Time (America/Noronha)",gmt:"GMT-02:00",offset:120},{name:"South Georgia Standard Time (Atlantic/South_Georgia)",gmt:"GMT-02:00",offset:120},{name:"Fernando de Noronha Time (Brazil/DeNoronha)",gmt:"GMT-02:00",offset:120},{name:"GMT-02:00 (Etc/GMT+2)",gmt:"GMT-02:00",offset:120},{name:"Eastern Greenland Summer Time (America/Scoresbysund)",gmt:"GMT+00:00",offset:60},{name:"Azores Summer Time (Atlantic/Azores)",gmt:"GMT+00:00",offset:60},{name:"Cape Verde Time (Atlantic/Cape_Verde)",gmt:"GMT-01:00",offset:60},{name:"GMT-01:00 (Etc/GMT+1)",gmt:"GMT-01:00",offset:60},{name:"Greenwich Mean Time (Africa/Abidjan)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Accra)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Bamako)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Banjul)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Bissau)",gmt:"GMT+00:00",offset:0},{name:"Western European Time (Africa/Casablanca)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Conakry)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Dakar)",gmt:"GMT+00:00",offset:0},{name:"Western European Time (Africa/El_Aaiun)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Freetown)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Lome)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Monrovia)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Nouakchott)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Ouagadougou)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Sao_Tome)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Timbuktu)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (America/Danmarkshavn)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (Atlantic/Canary)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Atlantic/Faeroe)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Atlantic/Madeira)",gmt:"GMT+01:00",offset:0},{name:"Greenwich Mean Time (Atlantic/Reykjavik)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Atlantic/St_Helena)",gmt:"GMT+00:00",offset:0},{name:"Irish Summer Time (Eire)",gmt:"GMT+01:00",offset:0},{name:"GMT+00",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Etc/Greenwich)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/UCT)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/UTC)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/Universal)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/Zulu)",gmt:"GMT+00:00",offset:0},{name:"British Summer Time (Europe/Belfast)",gmt:"GMT+01:00",offset:0},{name:"Irish Summer Time (Europe/Dublin)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Guernsey)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Isle_of_Man)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Jersey)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Europe/Lisbon)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/London)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (GB)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (GB-Eire)",gmt:"GMT+01:00",offset:0},{name:"Greenwich Mean Time (GMT)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Greenwich)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Iceland)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (Portugal)",gmt:"GMT+01:00",offset:0},{name:"Coordinated Universal Time (UCT)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (UTC)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Universal)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (WET)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Zulu)",gmt:"GMT+00:00",offset:0},{name:"Central European Time (Africa/Algiers)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Bangui)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Brazzaville)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Africa/Ceuta)",gmt:"GMT+02:00",offset:-60},{name:"Western African Time (Africa/Douala)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Kinshasa)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Lagos)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Libreville)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Luanda)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Malabo)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Ndjamena)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Niamey)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Porto-Novo)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Africa/Tunis)",gmt:"GMT+02:00",offset:-60},{name:"Western African Summer Time (Africa/Windhoek)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Arctic/Longyearbyen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Atlantic/Jan_Mayen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (CET)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (ECT)",gmt:"GMT+02:00",offset:-60},{name:"GMT+01",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Europe/Amsterdam)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Andorra)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Belgrade)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Berlin)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Bratislava)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Brussels)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Budapest)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Copenhagen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Gibraltar)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Ljubljana)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Luxembourg)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Madrid)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Malta)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Monaco)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Oslo)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Paris)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Podgorica)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Prague)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Rome)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/San_Marino)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Sarajevo)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Skopje)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Stockholm)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Tirane)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vaduz)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vatican)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vienna)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Warsaw)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Zagreb)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Zurich)",gmt:"GMT+02:00",offset:-60},{name:"Middle Europe Summer Time (MET)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Poland)",gmt:"GMT+02:00",offset:-60},{name:"Eastern European Summer Time (ART)",gmt:"GMT+03:00",offset:-120},{name:"Central African Time (Africa/Blantyre)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Bujumbura)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Africa/Cairo)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Gaborone)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Harare)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Johannesburg)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Kigali)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Lubumbashi)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Lusaka)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Maputo)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Maseru)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Mbabane)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Time (Africa/Tripoli)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Amman)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Beirut)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Damascus)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Gaza)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Istanbul)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Asia/Jerusalem)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Asia/Nicosia)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Asia/Tel_Aviv)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (CAT)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (EET)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Egypt)",gmt:"GMT+03:00",offset:-120},{name:"GMT+02",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Europe/Athens)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Bucharest)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Chisinau)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Helsinki)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Istanbul)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Kaliningrad)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Kiev)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Mariehamn)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Minsk)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Nicosia)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Riga)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Simferopol)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Sofia)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Tallinn)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Tiraspol)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Uzhgorod)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Vilnius)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Zaporozhye)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Israel)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Time (Libya)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Turkey)",gmt:"GMT+03:00",offset:-120},{name:"Eastern African Time (Africa/Addis_Ababa)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Asmera)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Dar_es_Salaam)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Djibouti)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Kampala)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Khartoum)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Mogadishu)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Nairobi)",gmt:"GMT+03:00",offset:-180},{name:"Syowa Time (Antarctica/Syowa)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Aden)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Daylight Time (Asia/Baghdad)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Bahrain)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Kuwait)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Qatar)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Riyadh)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (EAT)",gmt:"GMT+03:00",offset:-180},{name:"GMT+03",gmt:"GMT+03:00",offset:-180},{name:"Moscow Daylight Time (Europe/Moscow)",gmt:"GMT+03:00",offset:-180},{name:"Volgograd Summer Time (Europe/Volgograd)",gmt:"GMT+04:00",offset:-180},{name:"Eastern African Time (Indian/Antananarivo)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Indian/Comoro)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Indian/Mayotte)",gmt:"GMT+03:00",offset:-180},{name:"Moscow Daylight Time (W-SU)",gmt:"GMT+03:00",offset:-180},{name:"( GMT 3:7 ) GMT+03",gmt:"GMT+03:07",offset:-187},{name:"( GMT 3:30 ) Iran Standard Time (Asia/Tehran)",gmt:"GMT+03:30",offset:-210},{name:"( GMT 3:30 ) Iran Standard Time (Iran)",gmt:"GMT+03:30",offset:-210},{name:"Azerbaijan Summer Time (Asia/Baku)",gmt:"GMT+04:00",offset:-240},{name:"Gulf Standard Time (Asia/Dubai)",gmt:"GMT+04:00",offset:-240},{name:"Gulf Standard Time (Asia/Muscat)",gmt:"GMT+04:00",offset:-240},{name:"Georgia Time (Asia/Tbilisi)",gmt:"GMT+04:00",offset:-240},{name:"Armenia Summer Time (Asia/Yerevan)",gmt:"GMT+04:00",offset:-240},{name:"GMT+04",gmt:"GMT+04:00",offset:-240},{name:"Samara Summer Time (Europe/Samara)",gmt:"GMT+04:00",offset:-240},{name:"Seychelles Time (Indian/Mahe)",gmt:"GMT+04:00",offset:-240},{name:"Mauritius Time (Indian/Mauritius)",gmt:"GMT+04:00",offset:-240},{name:"Reunion Time (Indian/Reunion)",gmt:"GMT+04:00",offset:-240},{name:"Armenia Summer Time (NET)",gmt:"GMT+04:00",offset:-240},{name:"( GMT 4:30 ) Afghanistan Time (Asia/Kabul)",gmt:"GMT+04:30",offset:-270},{name:"Aqtau Time (Asia/Aqtau)",gmt:"GMT+05:00",offset:-300},{name:"Aqtobe Time (Asia/Aqtobe)",gmt:"GMT+05:00",offset:-300},{name:"Turkmenistan Time (Asia/Ashgabat)",gmt:"GMT+05:00",offset:-300},{name:"Turkmenistan Time (Asia/Ashkhabad)",gmt:"GMT+05:00",offset:-300},{name:"Tajikistan Time (Asia/Dushanbe)",gmt:"GMT+05:00",offset:-300},{name:"Pakistan Time (Asia/Karachi)",gmt:"GMT+05:00",offset:-300},{name:"Oral Time (Asia/Oral)",gmt:"GMT+05:00",offset:-300},{name:"Uzbekistan Time (Asia/Samarkand)",gmt:"GMT+05:00",offset:-300},{name:"Uzbekistan Time (Asia/Tashkent)",gmt:"GMT+05:00",offset:-300},{name:"Yekaterinburg Summer Time (Asia/Yekaterinburg)",gmt:"GMT+05:00",offset:-300},{name:"GMT+05",gmt:"GMT+05:00",offset:-300},{name:"French Southern & Antarctic Lands Time (Indian/Kerguelen)",gmt:"GMT+05:00",offset:-300},{name:"Maldives Time (Indian/Maldives)",gmt:"GMT+05:00",offset:-300},{name:"Pakistan Time (PLT)",gmt:"GMT+05:00",offset:-300},{name:"India Standard Time (Asia/Calcutta)",gmt:"GMT+05:30",offset:-330},{name:"India Standard Time (Asia/Kolkata)",gmt:"GMT+05:30",offset:-330},{name:"Sri Lanka Time (Asia/Colombo)",gmt:"GMT+05:30",offset:-330},{name:"India Standard Time (IST)",gmt:"GMT+05:30",offset:-330},{name:"Nepal Time (Asia/Katmandu)",gmt:"GMT+05:45",offset:-345},{name:"Mawson Time (Antarctica/Mawson)",gmt:"GMT+05:00",offset:-360},{name:"Vostok Time (Antarctica/Vostok)",gmt:"GMT+06:00",offset:-360},{name:"Alma-Ata Time (Asia/Almaty)",gmt:"GMT+06:00",offset:-360},{name:"Kirgizstan Time (Asia/Bishkek)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (Asia/Dacca)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (Asia/Dhaka)",gmt:"GMT+06:00",offset:-360},{name:"Novosibirsk Summer Time (Asia/Novosibirsk)",gmt:"GMT+07:00",offset:-360},{name:"Omsk Summer Time (Asia/Omsk)",gmt:"GMT+06:00",offset:-360},{name:"Qyzylorda Time (Asia/Qyzylorda)",gmt:"GMT+05:00",offset:-360},{name:"Bhutan Time (Asia/Thimbu)",gmt:"GMT+06:00",offset:-360},{name:"Bhutan Time (Asia/Thimphu)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (BST)",gmt:"GMT+06:00",offset:-360},{name:"GMT+06",gmt:"GMT+06:00",offset:-360},{name:"Indian Ocean Territory Time (Indian/Chagos)",gmt:"GMT+06:00",offset:-360},{name:"Myanmar Time (Asia/Rangoon)",gmt:"GMT+06:30",offset:-390},{name:"Cocos Islands Time (Indian/Cocos)",gmt:"GMT+06:30",offset:-390},{name:"Davis Time (Antarctica/Davis)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Bangkok)",gmt:"GMT+07:00",offset:-420},{name:"Hovd Summer Time (Asia/Hovd)",gmt:"GMT+07:00",offset:-420},{name:"West Indonesia Time (Asia/Jakarta)",gmt:"GMT+07:00",offset:-420},{name:"Krasnoyarsk Summer Time (Asia/Krasnoyarsk)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Phnom_Penh)",gmt:"GMT+07:00",offset:-420},{name:"West Indonesia Time (Asia/Pontianak)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Saigon)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Vientiane)",gmt:"GMT+07:00",offset:-420},{name:"GMT+07",gmt:"GMT+07:00",offset:-420},{name:"Christmas Island Time (Indian/Christmas)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (VST)",gmt:"GMT+07:00",offset:-420},{name:"Western Standard Time (Australia) (Antarctica/Casey)",gmt:"GMT+08:00",offset:-480},{name:"Brunei Time (Asia/Brunei)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Chongqing)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Harbin)",gmt:"GMT+08:00",offset:-480},{name:"Hong Kong Time (Asia/Hong_Kong)",gmt:"GMT+08:00",offset:-480},{name:"Irkutsk Summer Time (Asia/Irkutsk)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Kashgar)",gmt:"GMT+08:00",offset:-480},{name:"Malaysia Time (Asia/Kuala_Lumpur)",gmt:"GMT+08:00",offset:-480},{name:"Malaysia Time (Asia/Kuching)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Macao)",gmt:"GMT+08:00",offset:-480},{name:"Central Indonesia Time (Asia/Makassar)",gmt:"GMT+08:00",offset:-480},{name:"Philippines Time (Asia/Manila)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Shanghai)",gmt:"GMT+08:00",offset:-480},{name:"Singapore Time (Asia/Singapore)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Taipei)",gmt:"GMT+08:00",offset:-480},{name:"Central Indonesia Time (Asia/Ujung_Pandang)",gmt:"GMT+08:00",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulaanbaatar)",gmt:"GMT+08:00",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulan_Bator)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Urumqi)",gmt:"GMT+08:00",offset:-480},{name:"Western Standard Time (Australia) (Australia/Perth)",gmt:"GMT+08:00",offset:-480},{name:"Western Standard Time (Australia) (Australia/West)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (CTT)",gmt:"GMT+08:00",offset:-480},{name:"GMT+08",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (PRC)",gmt:"GMT+08:00",offset:-480},{name:"Singapore Time (Singapore)",gmt:"GMT+08:00",offset:-480},{name:"Choibalsan Summer Time (Asia/Choibalsan)",gmt:"GMT+08:00",offset:-540},{name:"East Timor Time (Asia/Dili)",gmt:"GMT+09:00",offset:-540},{name:"East Indonesia Time (Asia/Jayapura)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (Asia/Pyongyang)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (Asia/Seoul)",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (Asia/Tokyo)",gmt:"GMT+09:00",offset:-540},{name:"Yaktsk Summer Time (Asia/Yakutsk)",gmt:"GMT+09:00",offset:-540},{name:"GMT+09",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (JST)",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (Japan)",gmt:"GMT+09:00",offset:-540},{name:"Palau Time (Pacific/Palau)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (ROK)",gmt:"GMT+09:00",offset:-540},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (ACT)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/Adelaide)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Broken_Hill)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/Darwin)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/North)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/South)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Yancowinna)",gmt:"GMT+09:30",offset:-570},{name:"Eastern Standard Time (New South Wales) (AET)",gmt:"GMT+10:00",offset:-600},{name:"Dumont-d Urville Time (Antarctica/DumontDUrville)",gmt:"GMT+10:00",offset:-600},{name:"Sakhalin Summer Time (Asia/Sakhalin)",gmt:"GMT+11:00",offset:-600},{name:"Vladivostok Summer Time (Asia/Vladivostok)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/ACT)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Brisbane)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Canberra)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Currie)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Hobart)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Lindeman)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Melbourne)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/NSW)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Queensland)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Sydney)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Tasmania)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Victoria)",gmt:"GMT+10:00",offset:-600},{name:"GMT+10",gmt:"GMT+10:00",offset:-600},{name:"Chamorro Standard Time (Pacific/Guam)",gmt:"GMT+10:00",offset:-600},{name:"Papua New Guinea Time (Pacific/Port_Moresby)",gmt:"GMT+10:00",offset:-600},{name:"Chamorro Standard Time (Pacific/Saipan)",gmt:"GMT+10:00",offset:-600},{name:"Truk Time (Pacific/Truk)",gmt:"GMT+10:00",offset:-600},{name:"Yap Time (Pacific/Yap)",gmt:"GMT+10:00",offset:-600},{name:"Load Howe Standard Time (Australia/LHI)",gmt:"GMT+10:30",offset:-630},{name:"Load Howe Standard Time (Australia/Lord_Howe)",gmt:"GMT+10:30",offset:-630},{name:"Magadan Summer Time (Asia/Magadan)",gmt:"GMT+11:00",offset:-660},{name:"GMT+11",gmt:"GMT+11:00",offset:-660},{name:"Vanuatu Time (Pacific/Efate)",gmt:"GMT+11:00",offset:-660},{name:"Solomon Is. Time (Pacific/Guadalcanal)",gmt:"GMT+11:00",offset:-660},{name:"Kosrae Time (Pacific/Kosrae)",gmt:"GMT+11:00",offset:-660},{name:"New Caledonia Time (Pacific/Noumea)",gmt:"GMT+11:00",offset:-660},{name:"Ponape Time (Pacific/Ponape)",gmt:"GMT+11:00",offset:-660},{name:"Solomon Is. Time (SST)",gmt:"GMT+11:00",offset:-660},{name:"Norfolk Time (Pacific/Norfolk)",gmt:"GMT+11:00",offset:-690},{name:"New Zealand Standard Time (Antarctica/McMurdo)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (Antarctica/South_Pole)",gmt:"GMT+12:00",offset:-720},{name:"Anadyr Summer Time (Asia/Anadyr)",gmt:"GMT+12:00",offset:-720},{name:"Petropavlovsk-Kamchatski Summer Time (Asia/Kamchatka)",gmt:"GMT+12:00",offset:-720},{name:"GMT+12",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Kwajalein)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (NST)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (NZ)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Daylight Time (NZDT)",gmt:"GMT+13:00",offset:-780},{name:"New Zealand Standard Time (Pacific/Auckland)",gmt:"GMT+12:00",offset:-720},{name:"Fiji Time (Pacific/Fiji)",gmt:"GMT+12:00",offset:-720},{name:"Tuvalu Time (Pacific/Funafuti)",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Pacific/Kwajalein)",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Pacific/Majuro)",gmt:"GMT+12:00",offset:-720},{name:"Nauru Time (Pacific/Nauru)",gmt:"GMT+12:00",offset:-720},{name:"Gilbert Is. Time (Pacific/Tarawa)",gmt:"GMT+12:00",offset:-720},{name:"Wake Time (Pacific/Wake)",gmt:"GMT+12:00",offset:-720},{name:"Wallis & Futuna Time (Pacific/Wallis)",gmt:"GMT+12:00",offset:-720},{name:"Chatham Standard Time (NZ-CHAT)",gmt:"GMT+12:45",offset:-765},{name:"Chatham Standard Time (Pacific/Chatham)",gmt:"GMT+12:45",offset:-765},{name:"GMT+13",gmt:"GMT+13:00",offset:-780},{name:"Phoenix Is. Time (Pacific/Enderbury)",gmt:"GMT+13:00",offset:-780},{name:"Tonga Time (Pacific/Tongatapu)",gmt:"GMT+13:00",offset:-780},{name:"GMT+14",gmt:"GMT+14:00",offset:-840},{name:"Line Is. Time (Pacific/Kiritimati)",gmt:"GMT+14:00",offset:-840}].forEach(function(e){var a=e.name,m=a.substring(a.lastIndexOf("(")+1,a.lastIndexOf(")")),t=f.toLowerCase(),n=a.toLowerCase(),i=e.gmt.toLowerCase();(!f||n.includes(t)||i.includes(t))&&(r+='
    '+(T?e.gmt:"")+" "+e.name+"
    ")}),a=r?a.replace("!{list}",r):(e=f,'
    '+LSResource.getRealValue("widget.timezone.searchnotfound",e)+"
    ")}function a(e){e=e||(window.Intl&&Intl.DateTimeFormat?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"");var a=(new Date).getTimezoneOffset(),m=[{name:"GMT-12:00 (Etc/GMT+12)",gmt:"GMT-12:00",offset:720},{name:"GMT-11:00 (Etc/GMT+11)",gmt:"GMT-11:00",offset:660},{name:"West Samoa Time (MIT)",gmt:"GMT-11:00",offset:660},{name:"West Samoa Time (Pacific/Apia)",gmt:"GMT+13:00",offset:660},{name:"Samoa Standard Time (Pacific/Midway)",gmt:"GMT-11:00",offset:660},{name:"Niue Time (Pacific/Niue)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (Pacific/Pago_Pago)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (Pacific/Samoa)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (US/Samoa)",gmt:"GMT-11:00",offset:660},{name:"Hawaii-Aleutian Daylight Time (America/Adak)",gmt:"GMT-09:00",offset:600},{name:"Hawaii-Aleutian Daylight Time (America/Atka)",gmt:"GMT-09:00",offset:600},{name:"GMT-10:00 (Etc/GMT+10)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (HST)",gmt:"GMT-10:00",offset:600},{name:"Tokelau Time (Pacific/Fakaofo)",gmt:"GMT+13:00",offset:600},{name:"Hawaii Standard Time (Pacific/Honolulu)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (Pacific/Johnston)",gmt:"GMT-10:00",offset:600},{name:"Cook Is. Time (Pacific/Rarotonga)",gmt:"GMT-10:00",offset:600},{name:"Tahiti Time (Pacific/Tahiti)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (SystemV/HST10)",gmt:"GMT-10:00",offset:600},{name:"Hawaii-Aleutian Daylight Time (US/Aleutian)",gmt:"GMT-09:00",offset:600},{name:"Hawaii Standard Time (US/Hawaii)",gmt:"GMT-10:00",offset:600},{name:"Marquesas Time (Pacific/Marquesas)",gmt:"GMT-09:30",offset:570},{name:"Alaska Daylight Time (AST)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Anchorage)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Juneau)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Nome)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Yakutat)",gmt:"GMT-08:00",offset:540},{name:"GMT-09:00 (Etc/GMT+9)",gmt:"GMT-09:00",offset:540},{name:"Gambier Time (Pacific/Gambier)",gmt:"GMT-09:00",offset:540},{name:"Alaska Standard Time (SystemV/YST9)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (SystemV/YST9YDT)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (US/Alaska)",gmt:"GMT-08:00",offset:540},{name:"Pacific Daylight Time (America/Dawson)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Ensenada)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Los_Angeles)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Tijuana)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Vancouver)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Whitehorse)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (Canada/Pacific)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (Canada/Yukon)",gmt:"GMT-07:00",offset:480},{name:"GMT-08:00 (Etc/GMT+8)",gmt:"GMT-08:00",offset:480},{name:"Pacific Daylight Time (Mexico/BajaNorte)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (PST)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (PST8PDT)",gmt:"GMT-07:00",offset:480},{name:"Pitcairn Standard Time (Pacific/Pitcairn)",gmt:"GMT-08:00",offset:480},{name:"Pacific Standard Time (SystemV/PST8)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (SystemV/PST8PDT)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (US/Pacific)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (US/Pacific-New)",gmt:"GMT-07:00",offset:480},{name:"Mountain Daylight Time (America/Boise)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Cambridge_Bay)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Chihuahua)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Dawson_Creek)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Denver)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Edmonton)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Hermosillo)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Inuvik)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Mazatlan)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Phoenix)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Shiprock)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Yellowknife)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Canada/Mountain)",gmt:"GMT-06:00",offset:420},{name:"GMT-07:00 (Etc/GMT+7)",gmt:"GMT-07:00",offset:420},{name:"Mountain Standard Time (MST)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (MST7MDT)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Mexico/BajaSur)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Navajo)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (PNT)",gmt:"GMT-07:00",offset:420},{name:"Mountain Standard Time (SystemV/MST7)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (SystemV/MST7MDT)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (US/Arizona)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (US/Mountain)",gmt:"GMT-06:00",offset:420},{name:"Central Standard Time (America/Belize)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Cancun)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Chicago)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (America/Costa_Rica)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/El_Salvador)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Guatemala)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Indiana/Knox)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Indiana/Petersburg)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Indiana/Vincennes)",gmt:"GMT-05:00",offset:360},{name:"Eastern Daylight Time (America/Knox_IN)",gmt:"GMT-04:00",offset:360},{name:"Central Standard Time (America/Managua)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Menominee)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Merida)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Mexico_City)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Monterrey)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/North_Dakota/Center)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/North_Dakota/New_Salem)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Rainy_River)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Rankin_Inlet)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (America/Regina)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Swift_Current)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Tegucigalpa)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Winnipeg)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (CST)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (CST6CDT)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (Canada/Central)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (Canada/East-Saskatchewan)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (Canada/Saskatchewan)",gmt:"GMT-06:00",offset:360},{name:"Easter Is. Time (Chile/EasterIsland)",gmt:"GMT-06:00",offset:360},{name:"GMT-06:00 (Etc/GMT+6)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (Mexico/General)",gmt:"GMT-05:00",offset:360},{name:"Easter Is. Time (Pacific/Easter)",gmt:"GMT-06:00",offset:360},{name:"Galapagos Time (Pacific/Galapagos)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (SystemV/CST6)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (SystemV/CST6CDT)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (US/Central)",gmt:"GMT-05:00",offset:360},{name:"Eastern Daylight Time (US/Indiana-Starke)",gmt:"GMT-04:00",offset:360},{name:"Eastern Standard Time (America/Atikokan)",gmt:"GMT-05:00",offset:300},{name:"Colombia Time (America/Bogota)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (America/Cayman)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (America/Coral_Harbour)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Detroit)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (America/Eirunepe)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Fort_Wayne)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Grand_Turk)",gmt:"GMT-04:00",offset:300},{name:"Ecuador Time (America/Guayaquil)",gmt:"GMT-05:00",offset:300},{name:"Central Daylight Time (America/Havana)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Indianapolis)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Marengo)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Vevay)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indianapolis)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Iqaluit)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (America/Jamaica)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Louisville)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Monticello)",gmt:"GMT-04:00",offset:300},{name:"Peru Time (America/Lima)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Louisville)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Montreal)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Nassau)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/New_York)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Nipigon)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (America/Panama)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Pangnirtung)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Port-au-Prince)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (America/Porto_Acre)",gmt:"GMT-05:00",offset:300},{name:"Acre Time (America/Rio_Branco)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Thunder_Bay)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Toronto)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (Brazil/Acre)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (Canada/Eastern)",gmt:"GMT-04:00",offset:300},{name:"Central Daylight Time (Cuba)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (EST)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (EST5EDT)",gmt:"GMT-04:00",offset:300},{name:"GMT-05:00 (Etc/GMT+5)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (IET)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (Jamaica)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (SystemV/EST5)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (SystemV/EST5EDT)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/East-Indiana)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/Eastern)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/Michigan)",gmt:"GMT-04:00",offset:300},{name:"Atlantic Standard Time (America/Anguilla)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Antigua)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Aruba)",gmt:"GMT-04:00",offset:240},{name:"Paraguay Time (America/Asuncion)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Barbados)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Blanc-Sablon)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Boa_Vista)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Campo_Grande)",gmt:"GMT-04:00",offset:240},{name:"Venezuela Time (America/Caracas)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Cuiaba)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Curacao)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Dominica)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Glace_Bay)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Daylight Time (America/Goose_Bay)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Grenada)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Guadeloupe)",gmt:"GMT-04:00",offset:240},{name:"Guyana Time (America/Guyana)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Halifax)",gmt:"GMT-03:00",offset:240},{name:"Bolivia Time (America/La_Paz)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Manaus)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Martinique)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Moncton)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Montserrat)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Port_of_Spain)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Porto_Velho)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Puerto_Rico)",gmt:"GMT-04:00",offset:240},{name:"Chile Time (America/Santiago)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Santo_Domingo)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Kitts)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Lucia)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Thomas)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Vincent)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Thule)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Tortola)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Virgin)",gmt:"GMT-04:00",offset:240},{name:"Chile Time (Antarctica/Palmer)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Daylight Time (Atlantic/Bermuda)",gmt:"GMT-03:00",offset:240},{name:"Falkland Is. Summer Time (Atlantic/Stanley)",gmt:"GMT-03:00",offset:240},{name:"Amazon Time (Brazil/West)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (Canada/Atlantic)",gmt:"GMT-03:00",offset:240},{name:"Chile Time (Chile/Continental)",gmt:"GMT-04:00",offset:240},{name:"GMT-04:00 (Etc/GMT+4)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (PRT)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (SystemV/AST4)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (SystemV/AST4ADT)",gmt:"GMT-03:00",offset:240},{name:"Newfoundland Daylight Time (America/St_Johns)",gmt:"GMT-02:30",offset:210},{name:"Newfoundland Daylight Time (CNT)",gmt:"GMT-02:30",offset:210},{name:"Newfoundland Daylight Time (Canada/Newfoundland)",gmt:"GMT-02:30",offset:210},{name:"Argentine Time (AGT)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Araguaina)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Buenos_Aires)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Catamarca)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/ComodRivadavia)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Cordoba)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Jujuy)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/La_Rioja)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Mendoza)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Rio_Gallegos)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/San_Juan)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Tucuman)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Ushuaia)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Bahia)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Belem)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Buenos_Aires)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Catamarca)",gmt:"GMT-03:00",offset:180},{name:"French Guiana Time (America/Cayenne)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Cordoba)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Fortaleza)",gmt:"GMT-03:00",offset:180},{name:"Western Greenland Summer Time (America/Godthab)",gmt:"GMT-02:00",offset:180},{name:"Argentine Time (America/Jujuy)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Maceio)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Mendoza)",gmt:"GMT-03:00",offset:180},{name:"Pierre & Miquelon Daylight Time (America/Miquelon)",gmt:"GMT-02:00",offset:180},{name:"Uruguay Time (America/Montevideo)",gmt:"GMT-03:00",offset:180},{name:"Suriname Time (America/Paramaribo)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Recife)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Rosario)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Sao_Paulo)",gmt:"GMT-03:00",offset:180},{name:"Rothera Time (Antarctica/Rothera)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (BET)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (Brazil/East)",gmt:"GMT-03:00",offset:180},{name:"GMT-03:00 (Etc/GMT+3)",gmt:"GMT-03:00",offset:180},{name:"Fernando de Noronha Time (America/Noronha)",gmt:"GMT-02:00",offset:120},{name:"South Georgia Standard Time (Atlantic/South_Georgia)",gmt:"GMT-02:00",offset:120},{name:"Fernando de Noronha Time (Brazil/DeNoronha)",gmt:"GMT-02:00",offset:120},{name:"GMT-02:00 (Etc/GMT+2)",gmt:"GMT-02:00",offset:120},{name:"Eastern Greenland Summer Time (America/Scoresbysund)",gmt:"GMT+00:00",offset:60},{name:"Azores Summer Time (Atlantic/Azores)",gmt:"GMT+00:00",offset:60},{name:"Cape Verde Time (Atlantic/Cape_Verde)",gmt:"GMT-01:00",offset:60},{name:"GMT-01:00 (Etc/GMT+1)",gmt:"GMT-01:00",offset:60},{name:"Greenwich Mean Time (Africa/Abidjan)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Accra)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Bamako)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Banjul)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Bissau)",gmt:"GMT+00:00",offset:0},{name:"Western European Time (Africa/Casablanca)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Conakry)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Dakar)",gmt:"GMT+00:00",offset:0},{name:"Western European Time (Africa/El_Aaiun)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Freetown)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Lome)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Monrovia)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Nouakchott)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Ouagadougou)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Sao_Tome)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Timbuktu)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (America/Danmarkshavn)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (Atlantic/Canary)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Atlantic/Faeroe)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Atlantic/Madeira)",gmt:"GMT+01:00",offset:0},{name:"Greenwich Mean Time (Atlantic/Reykjavik)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Atlantic/St_Helena)",gmt:"GMT+00:00",offset:0},{name:"Irish Summer Time (Eire)",gmt:"GMT+01:00",offset:0},{name:"GMT+00",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Etc/Greenwich)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/UCT)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/UTC)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/Universal)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/Zulu)",gmt:"GMT+00:00",offset:0},{name:"British Summer Time (Europe/Belfast)",gmt:"GMT+01:00",offset:0},{name:"Irish Summer Time (Europe/Dublin)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Guernsey)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Isle_of_Man)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Jersey)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Europe/Lisbon)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/London)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (GB)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (GB-Eire)",gmt:"GMT+01:00",offset:0},{name:"Greenwich Mean Time (GMT)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Greenwich)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Iceland)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (Portugal)",gmt:"GMT+01:00",offset:0},{name:"Coordinated Universal Time (UCT)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (UTC)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Universal)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (WET)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Zulu)",gmt:"GMT+00:00",offset:0},{name:"Central European Time (Africa/Algiers)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Bangui)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Brazzaville)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Africa/Ceuta)",gmt:"GMT+02:00",offset:-60},{name:"Western African Time (Africa/Douala)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Kinshasa)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Lagos)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Libreville)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Luanda)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Malabo)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Ndjamena)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Niamey)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Porto-Novo)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Africa/Tunis)",gmt:"GMT+02:00",offset:-60},{name:"Western African Summer Time (Africa/Windhoek)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Arctic/Longyearbyen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Atlantic/Jan_Mayen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (CET)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (ECT)",gmt:"GMT+02:00",offset:-60},{name:"GMT+01",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Europe/Amsterdam)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Andorra)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Belgrade)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Berlin)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Bratislava)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Brussels)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Budapest)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Copenhagen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Gibraltar)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Ljubljana)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Luxembourg)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Madrid)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Malta)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Monaco)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Oslo)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Paris)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Podgorica)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Prague)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Rome)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/San_Marino)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Sarajevo)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Skopje)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Stockholm)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Tirane)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vaduz)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vatican)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vienna)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Warsaw)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Zagreb)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Zurich)",gmt:"GMT+02:00",offset:-60},{name:"Middle Europe Summer Time (MET)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Poland)",gmt:"GMT+02:00",offset:-60},{name:"Eastern European Summer Time (ART)",gmt:"GMT+03:00",offset:-120},{name:"Central African Time (Africa/Blantyre)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Bujumbura)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Africa/Cairo)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Gaborone)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Harare)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Johannesburg)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Kigali)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Lubumbashi)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Lusaka)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Maputo)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Maseru)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Mbabane)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Time (Africa/Tripoli)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Amman)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Beirut)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Damascus)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Gaza)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Istanbul)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Asia/Jerusalem)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Asia/Nicosia)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Asia/Tel_Aviv)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (CAT)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (EET)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Egypt)",gmt:"GMT+03:00",offset:-120},{name:"GMT+02",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Europe/Athens)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Bucharest)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Chisinau)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Helsinki)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Istanbul)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Kaliningrad)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Kiev)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Mariehamn)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Minsk)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Nicosia)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Riga)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Simferopol)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Sofia)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Tallinn)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Tiraspol)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Uzhgorod)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Vilnius)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Zaporozhye)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Israel)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Time (Libya)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Turkey)",gmt:"GMT+03:00",offset:-120},{name:"Eastern African Time (Africa/Addis_Ababa)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Asmera)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Dar_es_Salaam)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Djibouti)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Kampala)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Khartoum)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Mogadishu)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Nairobi)",gmt:"GMT+03:00",offset:-180},{name:"Syowa Time (Antarctica/Syowa)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Aden)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Daylight Time (Asia/Baghdad)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Bahrain)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Kuwait)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Qatar)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Riyadh)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (EAT)",gmt:"GMT+03:00",offset:-180},{name:"GMT+03",gmt:"GMT+03:00",offset:-180},{name:"Moscow Daylight Time (Europe/Moscow)",gmt:"GMT+03:00",offset:-180},{name:"Volgograd Summer Time (Europe/Volgograd)",gmt:"GMT+04:00",offset:-180},{name:"Eastern African Time (Indian/Antananarivo)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Indian/Comoro)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Indian/Mayotte)",gmt:"GMT+03:00",offset:-180},{name:"Moscow Daylight Time (W-SU)",gmt:"GMT+03:00",offset:-180},{name:"( GMT 3:7 ) GMT+03",gmt:"GMT+03:07",offset:-187},{name:"( GMT 3:30 ) Iran Standard Time (Asia/Tehran)",gmt:"GMT+03:30",offset:-210},{name:"( GMT 3:30 ) Iran Standard Time (Iran)",gmt:"GMT+03:30",offset:-210},{name:"Azerbaijan Summer Time (Asia/Baku)",gmt:"GMT+04:00",offset:-240},{name:"Gulf Standard Time (Asia/Dubai)",gmt:"GMT+04:00",offset:-240},{name:"Gulf Standard Time (Asia/Muscat)",gmt:"GMT+04:00",offset:-240},{name:"Georgia Time (Asia/Tbilisi)",gmt:"GMT+04:00",offset:-240},{name:"Armenia Summer Time (Asia/Yerevan)",gmt:"GMT+04:00",offset:-240},{name:"GMT+04",gmt:"GMT+04:00",offset:-240},{name:"Samara Summer Time (Europe/Samara)",gmt:"GMT+04:00",offset:-240},{name:"Seychelles Time (Indian/Mahe)",gmt:"GMT+04:00",offset:-240},{name:"Mauritius Time (Indian/Mauritius)",gmt:"GMT+04:00",offset:-240},{name:"Reunion Time (Indian/Reunion)",gmt:"GMT+04:00",offset:-240},{name:"Armenia Summer Time (NET)",gmt:"GMT+04:00",offset:-240},{name:"( GMT 4:30 ) Afghanistan Time (Asia/Kabul)",gmt:"GMT+04:30",offset:-270},{name:"Aqtau Time (Asia/Aqtau)",gmt:"GMT+05:00",offset:-300},{name:"Aqtobe Time (Asia/Aqtobe)",gmt:"GMT+05:00",offset:-300},{name:"Turkmenistan Time (Asia/Ashgabat)",gmt:"GMT+05:00",offset:-300},{name:"Turkmenistan Time (Asia/Ashkhabad)",gmt:"GMT+05:00",offset:-300},{name:"Tajikistan Time (Asia/Dushanbe)",gmt:"GMT+05:00",offset:-300},{name:"Pakistan Time (Asia/Karachi)",gmt:"GMT+05:00",offset:-300},{name:"Oral Time (Asia/Oral)",gmt:"GMT+05:00",offset:-300},{name:"Uzbekistan Time (Asia/Samarkand)",gmt:"GMT+05:00",offset:-300},{name:"Uzbekistan Time (Asia/Tashkent)",gmt:"GMT+05:00",offset:-300},{name:"Yekaterinburg Summer Time (Asia/Yekaterinburg)",gmt:"GMT+05:00",offset:-300},{name:"GMT+05",gmt:"GMT+05:00",offset:-300},{name:"French Southern & Antarctic Lands Time (Indian/Kerguelen)",gmt:"GMT+05:00",offset:-300},{name:"Maldives Time (Indian/Maldives)",gmt:"GMT+05:00",offset:-300},{name:"Pakistan Time (PLT)",gmt:"GMT+05:00",offset:-300},{name:"India Standard Time (Asia/Calcutta)",gmt:"GMT+05:30",offset:-330},{name:"India Standard Time (Asia/Kolkata)",gmt:"GMT+05:30",offset:-330},{name:"Sri Lanka Time (Asia/Colombo)",gmt:"GMT+05:30",offset:-330},{name:"India Standard Time (IST)",gmt:"GMT+05:30",offset:-330},{name:"Nepal Time (Asia/Katmandu)",gmt:"GMT+05:45",offset:-345},{name:"Mawson Time (Antarctica/Mawson)",gmt:"GMT+05:00",offset:-360},{name:"Vostok Time (Antarctica/Vostok)",gmt:"GMT+06:00",offset:-360},{name:"Alma-Ata Time (Asia/Almaty)",gmt:"GMT+06:00",offset:-360},{name:"Kirgizstan Time (Asia/Bishkek)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (Asia/Dacca)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (Asia/Dhaka)",gmt:"GMT+06:00",offset:-360},{name:"Novosibirsk Summer Time (Asia/Novosibirsk)",gmt:"GMT+07:00",offset:-360},{name:"Omsk Summer Time (Asia/Omsk)",gmt:"GMT+06:00",offset:-360},{name:"Qyzylorda Time (Asia/Qyzylorda)",gmt:"GMT+05:00",offset:-360},{name:"Bhutan Time (Asia/Thimbu)",gmt:"GMT+06:00",offset:-360},{name:"Bhutan Time (Asia/Thimphu)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (BST)",gmt:"GMT+06:00",offset:-360},{name:"GMT+06",gmt:"GMT+06:00",offset:-360},{name:"Indian Ocean Territory Time (Indian/Chagos)",gmt:"GMT+06:00",offset:-360},{name:"Myanmar Time (Asia/Rangoon)",gmt:"GMT+06:30",offset:-390},{name:"Cocos Islands Time (Indian/Cocos)",gmt:"GMT+06:30",offset:-390},{name:"Davis Time (Antarctica/Davis)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Bangkok)",gmt:"GMT+07:00",offset:-420},{name:"Hovd Summer Time (Asia/Hovd)",gmt:"GMT+07:00",offset:-420},{name:"West Indonesia Time (Asia/Jakarta)",gmt:"GMT+07:00",offset:-420},{name:"Krasnoyarsk Summer Time (Asia/Krasnoyarsk)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Phnom_Penh)",gmt:"GMT+07:00",offset:-420},{name:"West Indonesia Time (Asia/Pontianak)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Saigon)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Vientiane)",gmt:"GMT+07:00",offset:-420},{name:"GMT+07",gmt:"GMT+07:00",offset:-420},{name:"Christmas Island Time (Indian/Christmas)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (VST)",gmt:"GMT+07:00",offset:-420},{name:"Western Standard Time (Australia) (Antarctica/Casey)",gmt:"GMT+08:00",offset:-480},{name:"Brunei Time (Asia/Brunei)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Chongqing)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Harbin)",gmt:"GMT+08:00",offset:-480},{name:"Hong Kong Time (Asia/Hong_Kong)",gmt:"GMT+08:00",offset:-480},{name:"Irkutsk Summer Time (Asia/Irkutsk)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Kashgar)",gmt:"GMT+08:00",offset:-480},{name:"Malaysia Time (Asia/Kuala_Lumpur)",gmt:"GMT+08:00",offset:-480},{name:"Malaysia Time (Asia/Kuching)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Macao)",gmt:"GMT+08:00",offset:-480},{name:"Central Indonesia Time (Asia/Makassar)",gmt:"GMT+08:00",offset:-480},{name:"Philippines Time (Asia/Manila)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Shanghai)",gmt:"GMT+08:00",offset:-480},{name:"Singapore Time (Asia/Singapore)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Taipei)",gmt:"GMT+08:00",offset:-480},{name:"Central Indonesia Time (Asia/Ujung_Pandang)",gmt:"GMT+08:00",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulaanbaatar)",gmt:"GMT+08:00",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulan_Bator)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Urumqi)",gmt:"GMT+08:00",offset:-480},{name:"Western Standard Time (Australia) (Australia/Perth)",gmt:"GMT+08:00",offset:-480},{name:"Western Standard Time (Australia) (Australia/West)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (CTT)",gmt:"GMT+08:00",offset:-480},{name:"GMT+08",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (PRC)",gmt:"GMT+08:00",offset:-480},{name:"Singapore Time (Singapore)",gmt:"GMT+08:00",offset:-480},{name:"Choibalsan Summer Time (Asia/Choibalsan)",gmt:"GMT+08:00",offset:-540},{name:"East Timor Time (Asia/Dili)",gmt:"GMT+09:00",offset:-540},{name:"East Indonesia Time (Asia/Jayapura)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (Asia/Pyongyang)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (Asia/Seoul)",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (Asia/Tokyo)",gmt:"GMT+09:00",offset:-540},{name:"Yaktsk Summer Time (Asia/Yakutsk)",gmt:"GMT+09:00",offset:-540},{name:"GMT+09",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (JST)",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (Japan)",gmt:"GMT+09:00",offset:-540},{name:"Palau Time (Pacific/Palau)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (ROK)",gmt:"GMT+09:00",offset:-540},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (ACT)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/Adelaide)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Broken_Hill)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/Darwin)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/North)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/South)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Yancowinna)",gmt:"GMT+09:30",offset:-570},{name:"Eastern Standard Time (New South Wales) (AET)",gmt:"GMT+10:00",offset:-600},{name:"Dumont-d Urville Time (Antarctica/DumontDUrville)",gmt:"GMT+10:00",offset:-600},{name:"Sakhalin Summer Time (Asia/Sakhalin)",gmt:"GMT+11:00",offset:-600},{name:"Vladivostok Summer Time (Asia/Vladivostok)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/ACT)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Brisbane)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Canberra)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Currie)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Hobart)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Lindeman)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Melbourne)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/NSW)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Queensland)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Sydney)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Tasmania)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Victoria)",gmt:"GMT+10:00",offset:-600},{name:"GMT+10",gmt:"GMT+10:00",offset:-600},{name:"Chamorro Standard Time (Pacific/Guam)",gmt:"GMT+10:00",offset:-600},{name:"Papua New Guinea Time (Pacific/Port_Moresby)",gmt:"GMT+10:00",offset:-600},{name:"Chamorro Standard Time (Pacific/Saipan)",gmt:"GMT+10:00",offset:-600},{name:"Truk Time (Pacific/Truk)",gmt:"GMT+10:00",offset:-600},{name:"Yap Time (Pacific/Yap)",gmt:"GMT+10:00",offset:-600},{name:"Load Howe Standard Time (Australia/LHI)",gmt:"GMT+10:30",offset:-630},{name:"Load Howe Standard Time (Australia/Lord_Howe)",gmt:"GMT+10:30",offset:-630},{name:"Magadan Summer Time (Asia/Magadan)",gmt:"GMT+11:00",offset:-660},{name:"GMT+11",gmt:"GMT+11:00",offset:-660},{name:"Vanuatu Time (Pacific/Efate)",gmt:"GMT+11:00",offset:-660},{name:"Solomon Is. Time (Pacific/Guadalcanal)",gmt:"GMT+11:00",offset:-660},{name:"Kosrae Time (Pacific/Kosrae)",gmt:"GMT+11:00",offset:-660},{name:"New Caledonia Time (Pacific/Noumea)",gmt:"GMT+11:00",offset:-660},{name:"Ponape Time (Pacific/Ponape)",gmt:"GMT+11:00",offset:-660},{name:"Solomon Is. Time (SST)",gmt:"GMT+11:00",offset:-660},{name:"Norfolk Time (Pacific/Norfolk)",gmt:"GMT+11:00",offset:-690},{name:"New Zealand Standard Time (Antarctica/McMurdo)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (Antarctica/South_Pole)",gmt:"GMT+12:00",offset:-720},{name:"Anadyr Summer Time (Asia/Anadyr)",gmt:"GMT+12:00",offset:-720},{name:"Petropavlovsk-Kamchatski Summer Time (Asia/Kamchatka)",gmt:"GMT+12:00",offset:-720},{name:"GMT+12",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Kwajalein)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (NST)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (NZ)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Daylight Time (NZDT)",gmt:"GMT+13:00",offset:-780},{name:"New Zealand Standard Time (Pacific/Auckland)",gmt:"GMT+12:00",offset:-720},{name:"Fiji Time (Pacific/Fiji)",gmt:"GMT+12:00",offset:-720},{name:"Tuvalu Time (Pacific/Funafuti)",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Pacific/Kwajalein)",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Pacific/Majuro)",gmt:"GMT+12:00",offset:-720},{name:"Nauru Time (Pacific/Nauru)",gmt:"GMT+12:00",offset:-720},{name:"Gilbert Is. Time (Pacific/Tarawa)",gmt:"GMT+12:00",offset:-720},{name:"Wake Time (Pacific/Wake)",gmt:"GMT+12:00",offset:-720},{name:"Wallis & Futuna Time (Pacific/Wallis)",gmt:"GMT+12:00",offset:-720},{name:"Chatham Standard Time (NZ-CHAT)",gmt:"GMT+12:45",offset:-765},{name:"Chatham Standard Time (Pacific/Chatham)",gmt:"GMT+12:45",offset:-765},{name:"GMT+13",gmt:"GMT+13:00",offset:-780},{name:"Phoenix Is. Time (Pacific/Enderbury)",gmt:"GMT+13:00",offset:-780},{name:"Tonga Time (Pacific/Tongatapu)",gmt:"GMT+13:00",offset:-780},{name:"GMT+14",gmt:"GMT+14:00",offset:-840},{name:"Line Is. Time (Pacific/Kiritimati)",gmt:"GMT+14:00",offset:-840}],t={};for(var n in m){var i=m[n].name,f=m[n].gmt;if(e&&i.includes(e)||!e&&a==m[n].offset){t.gmt=f,t.name=i;break}}return t}return{getTimeZoneHTML:function(e){return a=e,'
    '+T("",a)+"
    ";var a},handleSearch:function(e,a,m){var t,n,i,f;n=m,i=(t=a).value,(f=t.parentElement).nextElementSibling&&f.nextElementSibling.remove(),f.insertAdjacentHTML("afterend",T(i,n))},getTimeZone:function(){return[{name:"GMT-12:00 (Etc/GMT+12)",gmt:"GMT-12:00",offset:720},{name:"GMT-11:00 (Etc/GMT+11)",gmt:"GMT-11:00",offset:660},{name:"West Samoa Time (MIT)",gmt:"GMT-11:00",offset:660},{name:"West Samoa Time (Pacific/Apia)",gmt:"GMT+13:00",offset:660},{name:"Samoa Standard Time (Pacific/Midway)",gmt:"GMT-11:00",offset:660},{name:"Niue Time (Pacific/Niue)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (Pacific/Pago_Pago)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (Pacific/Samoa)",gmt:"GMT-11:00",offset:660},{name:"Samoa Standard Time (US/Samoa)",gmt:"GMT-11:00",offset:660},{name:"Hawaii-Aleutian Daylight Time (America/Adak)",gmt:"GMT-09:00",offset:600},{name:"Hawaii-Aleutian Daylight Time (America/Atka)",gmt:"GMT-09:00",offset:600},{name:"GMT-10:00 (Etc/GMT+10)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (HST)",gmt:"GMT-10:00",offset:600},{name:"Tokelau Time (Pacific/Fakaofo)",gmt:"GMT+13:00",offset:600},{name:"Hawaii Standard Time (Pacific/Honolulu)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (Pacific/Johnston)",gmt:"GMT-10:00",offset:600},{name:"Cook Is. Time (Pacific/Rarotonga)",gmt:"GMT-10:00",offset:600},{name:"Tahiti Time (Pacific/Tahiti)",gmt:"GMT-10:00",offset:600},{name:"Hawaii Standard Time (SystemV/HST10)",gmt:"GMT-10:00",offset:600},{name:"Hawaii-Aleutian Daylight Time (US/Aleutian)",gmt:"GMT-09:00",offset:600},{name:"Hawaii Standard Time (US/Hawaii)",gmt:"GMT-10:00",offset:600},{name:"Marquesas Time (Pacific/Marquesas)",gmt:"GMT-09:30",offset:570},{name:"Alaska Daylight Time (AST)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Anchorage)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Juneau)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Nome)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (America/Yakutat)",gmt:"GMT-08:00",offset:540},{name:"GMT-09:00 (Etc/GMT+9)",gmt:"GMT-09:00",offset:540},{name:"Gambier Time (Pacific/Gambier)",gmt:"GMT-09:00",offset:540},{name:"Alaska Standard Time (SystemV/YST9)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (SystemV/YST9YDT)",gmt:"GMT-08:00",offset:540},{name:"Alaska Daylight Time (US/Alaska)",gmt:"GMT-08:00",offset:540},{name:"Pacific Daylight Time (America/Dawson)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Ensenada)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Los_Angeles)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Tijuana)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Vancouver)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (America/Whitehorse)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (Canada/Pacific)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (Canada/Yukon)",gmt:"GMT-07:00",offset:480},{name:"GMT-08:00 (Etc/GMT+8)",gmt:"GMT-08:00",offset:480},{name:"Pacific Daylight Time (Mexico/BajaNorte)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (PST)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (PST8PDT)",gmt:"GMT-07:00",offset:480},{name:"Pitcairn Standard Time (Pacific/Pitcairn)",gmt:"GMT-08:00",offset:480},{name:"Pacific Standard Time (SystemV/PST8)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (SystemV/PST8PDT)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (US/Pacific)",gmt:"GMT-07:00",offset:480},{name:"Pacific Daylight Time (US/Pacific-New)",gmt:"GMT-07:00",offset:480},{name:"Mountain Daylight Time (America/Boise)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Cambridge_Bay)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Chihuahua)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Dawson_Creek)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Denver)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Edmonton)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Hermosillo)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Inuvik)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Mazatlan)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (America/Phoenix)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (America/Shiprock)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (America/Yellowknife)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Canada/Mountain)",gmt:"GMT-06:00",offset:420},{name:"GMT-07:00 (Etc/GMT+7)",gmt:"GMT-07:00",offset:420},{name:"Mountain Standard Time (MST)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (MST7MDT)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Mexico/BajaSur)",gmt:"GMT-06:00",offset:420},{name:"Mountain Daylight Time (Navajo)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (PNT)",gmt:"GMT-07:00",offset:420},{name:"Mountain Standard Time (SystemV/MST7)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (SystemV/MST7MDT)",gmt:"GMT-06:00",offset:420},{name:"Mountain Standard Time (US/Arizona)",gmt:"GMT-07:00",offset:420},{name:"Mountain Daylight Time (US/Mountain)",gmt:"GMT-06:00",offset:420},{name:"Central Standard Time (America/Belize)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Cancun)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Chicago)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (America/Costa_Rica)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/El_Salvador)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Guatemala)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Indiana/Knox)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Indiana/Petersburg)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Indiana/Vincennes)",gmt:"GMT-05:00",offset:360},{name:"Eastern Daylight Time (America/Knox_IN)",gmt:"GMT-04:00",offset:360},{name:"Central Standard Time (America/Managua)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Menominee)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Merida)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Mexico_City)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Monterrey)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/North_Dakota/Center)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/North_Dakota/New_Salem)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Rainy_River)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (America/Rankin_Inlet)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (America/Regina)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Swift_Current)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (America/Tegucigalpa)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (America/Winnipeg)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (CST)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (CST6CDT)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (Canada/Central)",gmt:"GMT-05:00",offset:360},{name:"Central Standard Time (Canada/East-Saskatchewan)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (Canada/Saskatchewan)",gmt:"GMT-06:00",offset:360},{name:"Easter Is. Time (Chile/EasterIsland)",gmt:"GMT-06:00",offset:360},{name:"GMT-06:00 (Etc/GMT+6)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (Mexico/General)",gmt:"GMT-05:00",offset:360},{name:"Easter Is. Time (Pacific/Easter)",gmt:"GMT-06:00",offset:360},{name:"Galapagos Time (Pacific/Galapagos)",gmt:"GMT-06:00",offset:360},{name:"Central Standard Time (SystemV/CST6)",gmt:"GMT-06:00",offset:360},{name:"Central Daylight Time (SystemV/CST6CDT)",gmt:"GMT-05:00",offset:360},{name:"Central Daylight Time (US/Central)",gmt:"GMT-05:00",offset:360},{name:"Eastern Daylight Time (US/Indiana-Starke)",gmt:"GMT-04:00",offset:360},{name:"Eastern Standard Time (America/Atikokan)",gmt:"GMT-05:00",offset:300},{name:"Colombia Time (America/Bogota)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (America/Cayman)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (America/Coral_Harbour)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Detroit)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (America/Eirunepe)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Fort_Wayne)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Grand_Turk)",gmt:"GMT-04:00",offset:300},{name:"Ecuador Time (America/Guayaquil)",gmt:"GMT-05:00",offset:300},{name:"Central Daylight Time (America/Havana)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Indianapolis)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Marengo)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indiana/Vevay)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Indianapolis)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Iqaluit)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (America/Jamaica)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Louisville)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Monticello)",gmt:"GMT-04:00",offset:300},{name:"Peru Time (America/Lima)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Louisville)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Montreal)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Nassau)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/New_York)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Nipigon)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (America/Panama)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Pangnirtung)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Port-au-Prince)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (America/Porto_Acre)",gmt:"GMT-05:00",offset:300},{name:"Acre Time (America/Rio_Branco)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (America/Thunder_Bay)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (America/Toronto)",gmt:"GMT-04:00",offset:300},{name:"Acre Time (Brazil/Acre)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (Canada/Eastern)",gmt:"GMT-04:00",offset:300},{name:"Central Daylight Time (Cuba)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (EST)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (EST5EDT)",gmt:"GMT-04:00",offset:300},{name:"GMT-05:00 (Etc/GMT+5)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (IET)",gmt:"GMT-04:00",offset:300},{name:"Eastern Standard Time (Jamaica)",gmt:"GMT-05:00",offset:300},{name:"Eastern Standard Time (SystemV/EST5)",gmt:"GMT-05:00",offset:300},{name:"Eastern Daylight Time (SystemV/EST5EDT)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/East-Indiana)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/Eastern)",gmt:"GMT-04:00",offset:300},{name:"Eastern Daylight Time (US/Michigan)",gmt:"GMT-04:00",offset:300},{name:"Atlantic Standard Time (America/Anguilla)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Antigua)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Aruba)",gmt:"GMT-04:00",offset:240},{name:"Paraguay Time (America/Asuncion)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Barbados)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Blanc-Sablon)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Boa_Vista)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Campo_Grande)",gmt:"GMT-04:00",offset:240},{name:"Venezuela Time (America/Caracas)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Cuiaba)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Curacao)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Dominica)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Glace_Bay)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Daylight Time (America/Goose_Bay)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Grenada)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Guadeloupe)",gmt:"GMT-04:00",offset:240},{name:"Guyana Time (America/Guyana)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Halifax)",gmt:"GMT-03:00",offset:240},{name:"Bolivia Time (America/La_Paz)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Manaus)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Martinique)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Moncton)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Montserrat)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Port_of_Spain)",gmt:"GMT-04:00",offset:240},{name:"Amazon Time (America/Porto_Velho)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Puerto_Rico)",gmt:"GMT-04:00",offset:240},{name:"Chile Time (America/Santiago)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Santo_Domingo)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Kitts)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Lucia)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Thomas)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/St_Vincent)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (America/Thule)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Standard Time (America/Tortola)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (America/Virgin)",gmt:"GMT-04:00",offset:240},{name:"Chile Time (Antarctica/Palmer)",gmt:"GMT-03:00",offset:240},{name:"Atlantic Daylight Time (Atlantic/Bermuda)",gmt:"GMT-03:00",offset:240},{name:"Falkland Is. Summer Time (Atlantic/Stanley)",gmt:"GMT-03:00",offset:240},{name:"Amazon Time (Brazil/West)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (Canada/Atlantic)",gmt:"GMT-03:00",offset:240},{name:"Chile Time (Chile/Continental)",gmt:"GMT-04:00",offset:240},{name:"GMT-04:00 (Etc/GMT+4)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (PRT)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Standard Time (SystemV/AST4)",gmt:"GMT-04:00",offset:240},{name:"Atlantic Daylight Time (SystemV/AST4ADT)",gmt:"GMT-03:00",offset:240},{name:"Newfoundland Daylight Time (America/St_Johns)",gmt:"GMT-02:30",offset:210},{name:"Newfoundland Daylight Time (CNT)",gmt:"GMT-02:30",offset:210},{name:"Newfoundland Daylight Time (Canada/Newfoundland)",gmt:"GMT-02:30",offset:210},{name:"Argentine Time (AGT)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Araguaina)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Buenos_Aires)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Catamarca)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/ComodRivadavia)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Cordoba)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Jujuy)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/La_Rioja)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Mendoza)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Rio_Gallegos)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/San_Juan)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Tucuman)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Argentina/Ushuaia)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Bahia)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Belem)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Buenos_Aires)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Catamarca)",gmt:"GMT-03:00",offset:180},{name:"French Guiana Time (America/Cayenne)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Cordoba)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Fortaleza)",gmt:"GMT-03:00",offset:180},{name:"Western Greenland Summer Time (America/Godthab)",gmt:"GMT-02:00",offset:180},{name:"Argentine Time (America/Jujuy)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Maceio)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Mendoza)",gmt:"GMT-03:00",offset:180},{name:"Pierre & Miquelon Daylight Time (America/Miquelon)",gmt:"GMT-02:00",offset:180},{name:"Uruguay Time (America/Montevideo)",gmt:"GMT-03:00",offset:180},{name:"Suriname Time (America/Paramaribo)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Recife)",gmt:"GMT-03:00",offset:180},{name:"Argentine Time (America/Rosario)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (America/Sao_Paulo)",gmt:"GMT-03:00",offset:180},{name:"Rothera Time (Antarctica/Rothera)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (BET)",gmt:"GMT-03:00",offset:180},{name:"Brasilia Time (Brazil/East)",gmt:"GMT-03:00",offset:180},{name:"GMT-03:00 (Etc/GMT+3)",gmt:"GMT-03:00",offset:180},{name:"Fernando de Noronha Time (America/Noronha)",gmt:"GMT-02:00",offset:120},{name:"South Georgia Standard Time (Atlantic/South_Georgia)",gmt:"GMT-02:00",offset:120},{name:"Fernando de Noronha Time (Brazil/DeNoronha)",gmt:"GMT-02:00",offset:120},{name:"GMT-02:00 (Etc/GMT+2)",gmt:"GMT-02:00",offset:120},{name:"Eastern Greenland Summer Time (America/Scoresbysund)",gmt:"GMT+00:00",offset:60},{name:"Azores Summer Time (Atlantic/Azores)",gmt:"GMT+00:00",offset:60},{name:"Cape Verde Time (Atlantic/Cape_Verde)",gmt:"GMT-01:00",offset:60},{name:"GMT-01:00 (Etc/GMT+1)",gmt:"GMT-01:00",offset:60},{name:"Greenwich Mean Time (Africa/Abidjan)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Accra)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Bamako)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Banjul)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Bissau)",gmt:"GMT+00:00",offset:0},{name:"Western European Time (Africa/Casablanca)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Conakry)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Dakar)",gmt:"GMT+00:00",offset:0},{name:"Western European Time (Africa/El_Aaiun)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Freetown)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Lome)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Monrovia)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Nouakchott)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Ouagadougou)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Sao_Tome)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Africa/Timbuktu)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (America/Danmarkshavn)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (Atlantic/Canary)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Atlantic/Faeroe)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Atlantic/Madeira)",gmt:"GMT+01:00",offset:0},{name:"Greenwich Mean Time (Atlantic/Reykjavik)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Atlantic/St_Helena)",gmt:"GMT+00:00",offset:0},{name:"Irish Summer Time (Eire)",gmt:"GMT+01:00",offset:0},{name:"GMT+00",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Etc/Greenwich)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/UCT)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/UTC)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/Universal)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Etc/Zulu)",gmt:"GMT+00:00",offset:0},{name:"British Summer Time (Europe/Belfast)",gmt:"GMT+01:00",offset:0},{name:"Irish Summer Time (Europe/Dublin)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Guernsey)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Isle_of_Man)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/Jersey)",gmt:"GMT+01:00",offset:0},{name:"Western European Summer Time (Europe/Lisbon)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (Europe/London)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (GB)",gmt:"GMT+01:00",offset:0},{name:"British Summer Time (GB-Eire)",gmt:"GMT+01:00",offset:0},{name:"Greenwich Mean Time (GMT)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Greenwich)",gmt:"GMT+00:00",offset:0},{name:"Greenwich Mean Time (Iceland)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (Portugal)",gmt:"GMT+01:00",offset:0},{name:"Coordinated Universal Time (UCT)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (UTC)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Universal)",gmt:"GMT+00:00",offset:0},{name:"Western European Summer Time (WET)",gmt:"GMT+00:00",offset:0},{name:"Coordinated Universal Time (Zulu)",gmt:"GMT+00:00",offset:0},{name:"Central European Time (Africa/Algiers)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Bangui)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Brazzaville)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Africa/Ceuta)",gmt:"GMT+02:00",offset:-60},{name:"Western African Time (Africa/Douala)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Kinshasa)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Lagos)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Libreville)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Luanda)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Malabo)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Ndjamena)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Niamey)",gmt:"GMT+01:00",offset:-60},{name:"Western African Time (Africa/Porto-Novo)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Africa/Tunis)",gmt:"GMT+02:00",offset:-60},{name:"Western African Summer Time (Africa/Windhoek)",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Arctic/Longyearbyen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Atlantic/Jan_Mayen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (CET)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (ECT)",gmt:"GMT+02:00",offset:-60},{name:"GMT+01",gmt:"GMT+01:00",offset:-60},{name:"Central European Summer Time (Europe/Amsterdam)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Andorra)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Belgrade)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Berlin)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Bratislava)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Brussels)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Budapest)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Copenhagen)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Gibraltar)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Ljubljana)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Luxembourg)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Madrid)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Malta)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Monaco)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Oslo)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Paris)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Podgorica)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Prague)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Rome)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/San_Marino)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Sarajevo)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Skopje)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Stockholm)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Tirane)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vaduz)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vatican)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Vienna)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Warsaw)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Zagreb)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Europe/Zurich)",gmt:"GMT+02:00",offset:-60},{name:"Middle Europe Summer Time (MET)",gmt:"GMT+02:00",offset:-60},{name:"Central European Summer Time (Poland)",gmt:"GMT+02:00",offset:-60},{name:"Eastern European Summer Time (ART)",gmt:"GMT+03:00",offset:-120},{name:"Central African Time (Africa/Blantyre)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Bujumbura)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Africa/Cairo)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Gaborone)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Harare)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Johannesburg)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Kigali)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Lubumbashi)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Lusaka)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (Africa/Maputo)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Maseru)",gmt:"GMT+02:00",offset:-120},{name:"South Africa Standard Time (Africa/Mbabane)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Time (Africa/Tripoli)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Amman)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Beirut)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Damascus)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Gaza)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Asia/Istanbul)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Asia/Jerusalem)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Asia/Nicosia)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Asia/Tel_Aviv)",gmt:"GMT+02:00",offset:-120},{name:"Central African Time (CAT)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (EET)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Egypt)",gmt:"GMT+03:00",offset:-120},{name:"GMT+02",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Europe/Athens)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Bucharest)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Chisinau)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Helsinki)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Istanbul)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Kaliningrad)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Kiev)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Mariehamn)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Minsk)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Nicosia)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Riga)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Simferopol)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Sofia)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Tallinn)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Tiraspol)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Uzhgorod)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Vilnius)",gmt:"GMT+03:00",offset:-120},{name:"Eastern European Summer Time (Europe/Zaporozhye)",gmt:"GMT+03:00",offset:-120},{name:"Israel Standard Time (Israel)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Time (Libya)",gmt:"GMT+02:00",offset:-120},{name:"Eastern European Summer Time (Turkey)",gmt:"GMT+03:00",offset:-120},{name:"Eastern African Time (Africa/Addis_Ababa)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Asmera)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Dar_es_Salaam)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Djibouti)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Kampala)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Khartoum)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Mogadishu)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Africa/Nairobi)",gmt:"GMT+03:00",offset:-180},{name:"Syowa Time (Antarctica/Syowa)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Aden)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Daylight Time (Asia/Baghdad)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Bahrain)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Kuwait)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Qatar)",gmt:"GMT+03:00",offset:-180},{name:"Arabia Standard Time (Asia/Riyadh)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (EAT)",gmt:"GMT+03:00",offset:-180},{name:"GMT+03",gmt:"GMT+03:00",offset:-180},{name:"Moscow Daylight Time (Europe/Moscow)",gmt:"GMT+03:00",offset:-180},{name:"Volgograd Summer Time (Europe/Volgograd)",gmt:"GMT+04:00",offset:-180},{name:"Eastern African Time (Indian/Antananarivo)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Indian/Comoro)",gmt:"GMT+03:00",offset:-180},{name:"Eastern African Time (Indian/Mayotte)",gmt:"GMT+03:00",offset:-180},{name:"Moscow Daylight Time (W-SU)",gmt:"GMT+03:00",offset:-180},{name:"( GMT 3:7 ) GMT+03",gmt:"GMT+03:07",offset:-187},{name:"( GMT 3:30 ) Iran Standard Time (Asia/Tehran)",gmt:"GMT+03:30",offset:-210},{name:"( GMT 3:30 ) Iran Standard Time (Iran)",gmt:"GMT+03:30",offset:-210},{name:"Azerbaijan Summer Time (Asia/Baku)",gmt:"GMT+04:00",offset:-240},{name:"Gulf Standard Time (Asia/Dubai)",gmt:"GMT+04:00",offset:-240},{name:"Gulf Standard Time (Asia/Muscat)",gmt:"GMT+04:00",offset:-240},{name:"Georgia Time (Asia/Tbilisi)",gmt:"GMT+04:00",offset:-240},{name:"Armenia Summer Time (Asia/Yerevan)",gmt:"GMT+04:00",offset:-240},{name:"GMT+04",gmt:"GMT+04:00",offset:-240},{name:"Samara Summer Time (Europe/Samara)",gmt:"GMT+04:00",offset:-240},{name:"Seychelles Time (Indian/Mahe)",gmt:"GMT+04:00",offset:-240},{name:"Mauritius Time (Indian/Mauritius)",gmt:"GMT+04:00",offset:-240},{name:"Reunion Time (Indian/Reunion)",gmt:"GMT+04:00",offset:-240},{name:"Armenia Summer Time (NET)",gmt:"GMT+04:00",offset:-240},{name:"( GMT 4:30 ) Afghanistan Time (Asia/Kabul)",gmt:"GMT+04:30",offset:-270},{name:"Aqtau Time (Asia/Aqtau)",gmt:"GMT+05:00",offset:-300},{name:"Aqtobe Time (Asia/Aqtobe)",gmt:"GMT+05:00",offset:-300},{name:"Turkmenistan Time (Asia/Ashgabat)",gmt:"GMT+05:00",offset:-300},{name:"Turkmenistan Time (Asia/Ashkhabad)",gmt:"GMT+05:00",offset:-300},{name:"Tajikistan Time (Asia/Dushanbe)",gmt:"GMT+05:00",offset:-300},{name:"Pakistan Time (Asia/Karachi)",gmt:"GMT+05:00",offset:-300},{name:"Oral Time (Asia/Oral)",gmt:"GMT+05:00",offset:-300},{name:"Uzbekistan Time (Asia/Samarkand)",gmt:"GMT+05:00",offset:-300},{name:"Uzbekistan Time (Asia/Tashkent)",gmt:"GMT+05:00",offset:-300},{name:"Yekaterinburg Summer Time (Asia/Yekaterinburg)",gmt:"GMT+05:00",offset:-300},{name:"GMT+05",gmt:"GMT+05:00",offset:-300},{name:"French Southern & Antarctic Lands Time (Indian/Kerguelen)",gmt:"GMT+05:00",offset:-300},{name:"Maldives Time (Indian/Maldives)",gmt:"GMT+05:00",offset:-300},{name:"Pakistan Time (PLT)",gmt:"GMT+05:00",offset:-300},{name:"India Standard Time (Asia/Calcutta)",gmt:"GMT+05:30",offset:-330},{name:"India Standard Time (Asia/Kolkata)",gmt:"GMT+05:30",offset:-330},{name:"Sri Lanka Time (Asia/Colombo)",gmt:"GMT+05:30",offset:-330},{name:"India Standard Time (IST)",gmt:"GMT+05:30",offset:-330},{name:"Nepal Time (Asia/Katmandu)",gmt:"GMT+05:45",offset:-345},{name:"Mawson Time (Antarctica/Mawson)",gmt:"GMT+05:00",offset:-360},{name:"Vostok Time (Antarctica/Vostok)",gmt:"GMT+06:00",offset:-360},{name:"Alma-Ata Time (Asia/Almaty)",gmt:"GMT+06:00",offset:-360},{name:"Kirgizstan Time (Asia/Bishkek)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (Asia/Dacca)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (Asia/Dhaka)",gmt:"GMT+06:00",offset:-360},{name:"Novosibirsk Summer Time (Asia/Novosibirsk)",gmt:"GMT+07:00",offset:-360},{name:"Omsk Summer Time (Asia/Omsk)",gmt:"GMT+06:00",offset:-360},{name:"Qyzylorda Time (Asia/Qyzylorda)",gmt:"GMT+05:00",offset:-360},{name:"Bhutan Time (Asia/Thimbu)",gmt:"GMT+06:00",offset:-360},{name:"Bhutan Time (Asia/Thimphu)",gmt:"GMT+06:00",offset:-360},{name:"Bangladesh Time (BST)",gmt:"GMT+06:00",offset:-360},{name:"GMT+06",gmt:"GMT+06:00",offset:-360},{name:"Indian Ocean Territory Time (Indian/Chagos)",gmt:"GMT+06:00",offset:-360},{name:"Myanmar Time (Asia/Rangoon)",gmt:"GMT+06:30",offset:-390},{name:"Cocos Islands Time (Indian/Cocos)",gmt:"GMT+06:30",offset:-390},{name:"Davis Time (Antarctica/Davis)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Bangkok)",gmt:"GMT+07:00",offset:-420},{name:"Hovd Summer Time (Asia/Hovd)",gmt:"GMT+07:00",offset:-420},{name:"West Indonesia Time (Asia/Jakarta)",gmt:"GMT+07:00",offset:-420},{name:"Krasnoyarsk Summer Time (Asia/Krasnoyarsk)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Phnom_Penh)",gmt:"GMT+07:00",offset:-420},{name:"West Indonesia Time (Asia/Pontianak)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Saigon)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (Asia/Vientiane)",gmt:"GMT+07:00",offset:-420},{name:"GMT+07",gmt:"GMT+07:00",offset:-420},{name:"Christmas Island Time (Indian/Christmas)",gmt:"GMT+07:00",offset:-420},{name:"Indochina Time (VST)",gmt:"GMT+07:00",offset:-420},{name:"Western Standard Time (Australia) (Antarctica/Casey)",gmt:"GMT+08:00",offset:-480},{name:"Brunei Time (Asia/Brunei)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Chongqing)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Harbin)",gmt:"GMT+08:00",offset:-480},{name:"Hong Kong Time (Asia/Hong_Kong)",gmt:"GMT+08:00",offset:-480},{name:"Irkutsk Summer Time (Asia/Irkutsk)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Kashgar)",gmt:"GMT+08:00",offset:-480},{name:"Malaysia Time (Asia/Kuala_Lumpur)",gmt:"GMT+08:00",offset:-480},{name:"Malaysia Time (Asia/Kuching)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Macao)",gmt:"GMT+08:00",offset:-480},{name:"Central Indonesia Time (Asia/Makassar)",gmt:"GMT+08:00",offset:-480},{name:"Philippines Time (Asia/Manila)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Shanghai)",gmt:"GMT+08:00",offset:-480},{name:"Singapore Time (Asia/Singapore)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Taipei)",gmt:"GMT+08:00",offset:-480},{name:"Central Indonesia Time (Asia/Ujung_Pandang)",gmt:"GMT+08:00",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulaanbaatar)",gmt:"GMT+08:00",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulan_Bator)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (Asia/Urumqi)",gmt:"GMT+08:00",offset:-480},{name:"Western Standard Time (Australia) (Australia/Perth)",gmt:"GMT+08:00",offset:-480},{name:"Western Standard Time (Australia) (Australia/West)",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (CTT)",gmt:"GMT+08:00",offset:-480},{name:"GMT+08",gmt:"GMT+08:00",offset:-480},{name:"China Standard Time (PRC)",gmt:"GMT+08:00",offset:-480},{name:"Singapore Time (Singapore)",gmt:"GMT+08:00",offset:-480},{name:"Choibalsan Summer Time (Asia/Choibalsan)",gmt:"GMT+08:00",offset:-540},{name:"East Timor Time (Asia/Dili)",gmt:"GMT+09:00",offset:-540},{name:"East Indonesia Time (Asia/Jayapura)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (Asia/Pyongyang)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (Asia/Seoul)",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (Asia/Tokyo)",gmt:"GMT+09:00",offset:-540},{name:"Yaktsk Summer Time (Asia/Yakutsk)",gmt:"GMT+09:00",offset:-540},{name:"GMT+09",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (JST)",gmt:"GMT+09:00",offset:-540},{name:"Japan Standard Time (Japan)",gmt:"GMT+09:00",offset:-540},{name:"Palau Time (Pacific/Palau)",gmt:"GMT+09:00",offset:-540},{name:"Korea Standard Time (ROK)",gmt:"GMT+09:00",offset:-540},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (ACT)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/Adelaide)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Broken_Hill)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/Darwin)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/North)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/South)",gmt:"GMT+09:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Yancowinna)",gmt:"GMT+09:30",offset:-570},{name:"Eastern Standard Time (New South Wales) (AET)",gmt:"GMT+10:00",offset:-600},{name:"Dumont-d Urville Time (Antarctica/DumontDUrville)",gmt:"GMT+10:00",offset:-600},{name:"Sakhalin Summer Time (Asia/Sakhalin)",gmt:"GMT+11:00",offset:-600},{name:"Vladivostok Summer Time (Asia/Vladivostok)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/ACT)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Brisbane)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Canberra)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Currie)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Hobart)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Lindeman)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Melbourne)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/NSW)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Queensland)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Sydney)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Tasmania)",gmt:"GMT+10:00",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Victoria)",gmt:"GMT+10:00",offset:-600},{name:"GMT+10",gmt:"GMT+10:00",offset:-600},{name:"Chamorro Standard Time (Pacific/Guam)",gmt:"GMT+10:00",offset:-600},{name:"Papua New Guinea Time (Pacific/Port_Moresby)",gmt:"GMT+10:00",offset:-600},{name:"Chamorro Standard Time (Pacific/Saipan)",gmt:"GMT+10:00",offset:-600},{name:"Truk Time (Pacific/Truk)",gmt:"GMT+10:00",offset:-600},{name:"Yap Time (Pacific/Yap)",gmt:"GMT+10:00",offset:-600},{name:"Load Howe Standard Time (Australia/LHI)",gmt:"GMT+10:30",offset:-630},{name:"Load Howe Standard Time (Australia/Lord_Howe)",gmt:"GMT+10:30",offset:-630},{name:"Magadan Summer Time (Asia/Magadan)",gmt:"GMT+11:00",offset:-660},{name:"GMT+11",gmt:"GMT+11:00",offset:-660},{name:"Vanuatu Time (Pacific/Efate)",gmt:"GMT+11:00",offset:-660},{name:"Solomon Is. Time (Pacific/Guadalcanal)",gmt:"GMT+11:00",offset:-660},{name:"Kosrae Time (Pacific/Kosrae)",gmt:"GMT+11:00",offset:-660},{name:"New Caledonia Time (Pacific/Noumea)",gmt:"GMT+11:00",offset:-660},{name:"Ponape Time (Pacific/Ponape)",gmt:"GMT+11:00",offset:-660},{name:"Solomon Is. Time (SST)",gmt:"GMT+11:00",offset:-660},{name:"Norfolk Time (Pacific/Norfolk)",gmt:"GMT+11:00",offset:-690},{name:"New Zealand Standard Time (Antarctica/McMurdo)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (Antarctica/South_Pole)",gmt:"GMT+12:00",offset:-720},{name:"Anadyr Summer Time (Asia/Anadyr)",gmt:"GMT+12:00",offset:-720},{name:"Petropavlovsk-Kamchatski Summer Time (Asia/Kamchatka)",gmt:"GMT+12:00",offset:-720},{name:"GMT+12",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Kwajalein)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (NST)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Standard Time (NZ)",gmt:"GMT+12:00",offset:-720},{name:"New Zealand Daylight Time (NZDT)",gmt:"GMT+13:00",offset:-780},{name:"New Zealand Standard Time (Pacific/Auckland)",gmt:"GMT+12:00",offset:-720},{name:"Fiji Time (Pacific/Fiji)",gmt:"GMT+12:00",offset:-720},{name:"Tuvalu Time (Pacific/Funafuti)",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Pacific/Kwajalein)",gmt:"GMT+12:00",offset:-720},{name:"Marshall Islands Time (Pacific/Majuro)",gmt:"GMT+12:00",offset:-720},{name:"Nauru Time (Pacific/Nauru)",gmt:"GMT+12:00",offset:-720},{name:"Gilbert Is. Time (Pacific/Tarawa)",gmt:"GMT+12:00",offset:-720},{name:"Wake Time (Pacific/Wake)",gmt:"GMT+12:00",offset:-720},{name:"Wallis & Futuna Time (Pacific/Wallis)",gmt:"GMT+12:00",offset:-720},{name:"Chatham Standard Time (NZ-CHAT)",gmt:"GMT+12:45",offset:-765},{name:"Chatham Standard Time (Pacific/Chatham)",gmt:"GMT+12:45",offset:-765},{name:"GMT+13",gmt:"GMT+13:00",offset:-780},{name:"Phoenix Is. Time (Pacific/Enderbury)",gmt:"GMT+13:00",offset:-780},{name:"Tonga Time (Pacific/Tongatapu)",gmt:"GMT+13:00",offset:-780},{name:"GMT+14",gmt:"GMT+14:00",offset:-840},{name:"Line Is. Time (Pacific/Kiritimati)",gmt:"GMT+14:00",offset:-840}]},getCurrentTimeZone:function(e){return a(e)}}}();var ZSIQInput=function(){var r={tel:"phone",name:"text"},a=function(t,e){this.dataval=t,this.callback=t.callback,this.componentid=e,this.chatid=t.chatid};return a.prototype={init:function(){var t=ZSIQTranscript.getFormatedHTML($Widget.getLayout());t=(t=(t=t.replace(/{BOT_WIDGET}/g,this.getInputHtml())).replace(/{CLASSNAME}/g,"botinput")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(t,!0),this.element=$("#bot_widget"+this.componentid),this.element.parents(".ziq_msg").attr("data-widget","input"),this.bindEvent()},getInputHtml:function(){var t=this.dataval,e="",a="";"tel"==t.type&&(e='
    ',a="tel_wget ");var i="text",n="",s="";return"password"==t.type&&(i="password",n='',s="posrel"),t.error=t.error||LSResource.getRealValue("cw.common.error"),t.error=getEscapedText(t.error),'
    '+e+''+n+'
    '+t.error+'
    '+LSResource.getRealValue("embed.submit")+'
    '},bindEvent:function(){var e=this,i=this.element,t=i.find(".inptwget_sumbt");t.off("click").on("click",function(){e.handleConfirm()}),"password"==this.dataval.type&&i.find('[property="pwdtoggle"]').off("click").on("click",function(){var t=i.find("input"),e="password"===t.attr("type")?"text":"password",a="text"==e?"sqico-disable":"sqico-enable";t.prop("type",e),$(this).removeClass("sqico-disable sqico-enable").addClass(a)});var a=i.find("input");a.off("keyup").on("keyup",function(t){i.find(".inptwget_error").css("display","none"),a.css("border-color",""),13==t.keyCode&&e.handleConfirm()}).off("focus").on("focus",function(){t.removeClass("sel").addClass("sel")}).off("blur").on("blur",function(){t.removeClass("sel")}),"tel"==this.dataval.type&&this.handleDropdown(),i.find("input").focus()},validate:function(){var t=this.element.find('[data-type="input"]'),e=t.val().trim(),a=this.dataval.max_length;if("name"===this.dataval.type){var i=e.length;return i&&i<=80}if("tel"!=this.dataval.type)return"password"==this.dataval.type&&this.dataval.min_length&&a?e.length>=this.dataval.min_length&&e.length<=a:a?t.validateInput()&&e.length<=a:t.validateInput();var n=e.replace(/[()., -]/gi,"").length;return/^[\d\s-]{5,14}$/.test(e)&&5<=n&&n<=(a||14)},handleDropdown:function(){ZSIQDropdown.init({options:$Widget.getPhoneObj(),selected:this.dataval.country_code||"+1",element:this.element.find(".teldrop"),widget:this.element,currentlist_header:"cw.current.country",list_header:"cw.other.country",placeholder:"cw.search.country",callback:function(){this.data.widget.find('[data-type="input"]').focus()},chatid:this.chatid})},handleConfirm:function(){var t=this.element;if(!this.validate()){t.find(".inptwget_error").css("display","block");var e=t.find("input");return e.focus(),void e.css("border-color","#f65b5b")}var a=t.find("#dropdownheader").text()+" "+t.find('[data-type="input"]').val(),i=a=a.trim();"password"==this.dataval.type&&(i=Array(a.length+1).join("*")),t.parents(".ziq_msg").removeAttr("data-widget").removeAttr("data-wtype").removeClass("siq_widget"),this.callback({type:this.dataval.type,msg:i,id:this.componentid,value:a,config:this.dataval,chatid:this.chatid})}},{init:function(t,e){new a(t,e).init()}}}();var ConversationFormInput=function(){var a=function(t,e){this.dataval=t,this.chatid=t.chatid,this.contentdiv=ZSIQConversationManager.getChatWinObjById(this.chatid).contentdiv};return a.prototype={init:function(){this.populateUI()},populateUI:function(){$Widget.attachHTML(""),ZSIQTranscript.scroll(),this.handleTextarea()},handleTextarea:function(){var t=this.dataval,e=t.fieldtype?t.fieldtype.replace("_",""):"";this.contentdiv&&this.contentdiv.find("#msgarea").attr("data-validate","required "+t.validate).attr("purpose",e).attr("data-type",e).attr("placeholder",t.placeholder).attr("dockeyup","validateConversation").attr("fieldtype",t.fieldname).attr("iscustomfield",t.iscustomfield).removeAttr("readonly").attr("aria-label",t.placeholder).removeAttr("disabled").focus(),this.contentdiv&&this.contentdiv.find("#action_icons").show()}},{init:function(t,e){new a(t,e).init()},resetMessageArea:function(t){var e=$Support.EmbedObj.status,a=ZSIQConversationManager.getChatWinObjById(t),i=ZSIQConversationForm.getSelectedDeptstatus(a.department),n=(e=null!=i?e&&i:e)||a.proactive?"sendmessage":"leavemessage",r=ZSIQConversationManager.getChatWinObjById(t).contentdiv||$Support.contentdiv,o=LSResource.getRealValue("ne.message.hitenter");$Support.getJSAPIMessageHint&&(o=$Support.getJSAPIMessageHint()||o),r.find("#msgarea").attr("data-validate","required").attr("purpose","").attr("placeholder",o).attr("dockeyup",n).attr("custom","question").removeAttr("data-type").removeAttr("fieldtype").val("").attr("aria-label",o),r.find("#skipquestion").remove()}}}();var ZSIQContactCard=function(){var i={tel:"phone",name:"text"},a=function(t,e){this.dataval=t,this.callback=t.callback,this.componentid=e,this.chatid=t.chatid};return a.prototype={init:function(){var t=ZSIQTranscript.getFormatedHTML($Widget.getLayout());t=(t=(t=t.replace(/{BOT_WIDGET}/g,this.getInputHtml())).replace(/{CLASSNAME}/g,"botinput")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(t,!0),this.element=$("#bot_widget"+this.componentid),this.bindEvent()},getInputHtml:function(){var t="";for(var e in this.dataval.fields){var a=this.dataval.fields[e];a.error=a.error&&a.error[0]?a.error[0]:LSResource.getRealValue("cw.common.error"),t+='
    '+("tel"==a.type?'
    ':"")+''+(a.label?''+a.label+"":"")+''+a.error+"
    "}return'
    '+t+'
    '+LSResource.getRealValue("embed.submit")+"
    "},bindEvent:function(){var t=this,e=this.element;e.find(".inptwget_sumbt").on("click",function(){t.handleConfirm()}),e.on("keydown","input",function(t){9!=t.keyCode&&$(this).parent().addClass("hide_plhld")}),e.on("keyup","input",function(){var t=$(this),e=t.parent();e.removeClass("hide_plhld").removeClass("error_fld"),t.val()&&e.addClass("hide_plhld")}),this.handleDropdown()},handleDropdown:function(){var t=this.element.find(".teldrop");0==t.length||t.find(".drop_hdr").length||ZSIQDropdown.init({options:$Widget.getPhoneObj(),selected:this.dataval.country_code||"+1",element:t,currentlist_header:"cw.current.country",list_header:"cw.other.country",placeholder:"cw.search.country",callback:function(){this.element.find('[data-type="input"]').focus()}})},handleConfirm:function(){var t=this.element,n={},d="",r=!0;t.find("input[data-validate]").each(function(){var t=$(this),e=t.parent();if(!t.validateInput())return e.addClass("error_fld"),t.focus(),r=!1;var a=(-1!=t.attr("data-validate").indexOf("phone")?e.find("#dropdownheader").text()+" ":"")+t.val(),i=t.attr("data-fieldtype");n[i]=a,d+=(d?", ":"")+i+" : "+a}),r&&(t.parents(".ziq_msg").removeAttr("data-widget").removeAttr("data-wtype").removeClass("siq_widget"),this.callback({type:this.dataval.type,msg:d,id:this.componentid,value:n,config:this.dataval,chatid:this.chatid}))}},{init:function(t,e){new a(t,e).init()}}}();var ZSIQForm=function(){var i=function(e,t){this.chatid=e.chatid,this.chatobj=ZSIQTranscript.getChatWindowOBJ(this.chatid),this.fields=e.msglist,this.callback=e.callback,this.componentid=t,this.userconfig=e||{},this.dname=this.chatobj.attendername||e.dname||ZSIQConversationForm.getOperatorName(),this.title=e.title||ZSIQConversationForm.getFormQuestion(),this.contentdiv=this.chatobj.contentdiv},c=function(e){return e?'*':""},l=function(e){var t=e.input_card||{},i=e.skippable?"optional":"required",s=e.type||e.format||"text",a=t.maxlength||"url"==e.format||"textarea"==e.type?100:30,n=i+" "+s,o=!!e.iscustomfield,r=t.visibility||"both",d=o?"custom":!o&&t.type?t.type.replace("_",""):e.field_name,c=((e.input_card?e.input_card.placeholder:e.field_name)||ZSIQConversationForm.getDefaultPlaceholder(d),getEscapedText(e.field_name)||d);return'index="'+e.index+'" custom="'+c+'" purpose="'+d+'" customid="'+c+'" visibility="'+r+'" id="'+c+'" fieldkey="'+ZSIQConversationForm.getDefaultPostMessage(d)+'"name="'+c+'" data-validate="'+n+'" autocomplete="off" maxlength="'+a+'" info="'+s+'"'},p=function(e){getEscapedText(e.name||e.field_name);return'
    "},u=function(e){var t=e.input_card||{},i=(e.options,getEscapedText(e.field_name)),s=c(!e.skippable),a=e.msg,n=a?''+getEscapedText(a)+s+"":"",o=CommonUtil.parseToJSON(e.required)?'iserrorfield="true"':"",r=e.iscustomfield?"custom":e.key;return n+='
    "};return i.prototype={init:function(){this.populateUI()},populateUI:function(){this.populateFormTitle();var e=!!this.userconfig.isuseredit||"",t=this.userconfig.triggerclbk?'callback = "'+this.userconfig.triggerclbk+'"':"",i='
    "+LSResource.getRealValue("common.done")+"
    "+this.checkAndGetSkipHTML()+"
    ";var l=$Widget.getLayout();l=(l=(l=l.replace(/{BOT_WIDGET}/g,i)).replace(/{CLASSNAME}/g,"botform")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(l),this.handleDropdown(),this.reStoreValues(),this.bindEvents()},populateFormTitle:function(){var e=!(!this.userconfig.isuseredit&&!this.userconfig.triggerclbk),t=this.componentid?MyDate.getHoursandMin(this.componentid,!0,"bclient"):"";this.title&&!e&&$BotImpl.formatAndDisplay({sender:"-1",dname:this.dname,msg:getEncodedText(this.title),time:t},"",!0)},checkAndGetSkipHTML:function(){for(var e=this.userconfig.msglist,t=!1,i=!!this.userconfig.isuseredit,s=0;s'+LSResource.getRealValue("common.skip")+"":""},getHTML:function(s){var e,t,i,a,n,o,r,d=s.format?s.format:s.input_card?s.input_card.type:"text";return/^(number|text|email|phone|url|percentage|decimal|percent|website)$/.exec(d)?(e=s,t=$Support.EmbedObj.errorinfo||{},i=e&&e.input_card&&e.input_card.type?e.input_card.type:"",a=e.iscustomfield?i:"vis"+i.replace("visitor_",""),n=e.iscustomfield?"custom":i.replace("_","")||e.field_name,o=e.input_card?getEscapedText(e.input_card.placeholder)||ZSIQConversationForm.getDefaultPlaceholder(n):"",r=t[a]?t[a]:/^number|email|url|percentage|percent|decimal|name|email|phone$/.exec(a)?LSResource.getRealValue("ne.errorinfo."+a):"",'
    '+o+c(!e.skippable)+'
    '):{checkbox:function(){return function(e){for(var t=e.input_card?e.input_card.options:e.options,i=getEscapedText(e.field_name),s="",a=0;a"}return'
    '+u(e)+'
    '+s+"
    "}(s)},radio:function(){return function(e){for(var t=e.input_card?e.input_card.options:e.options,i=getEscapedText(e.field_name)||"",s="",a=0;a"}return'
    '+u(e)+"
    "+s+"
    "}(s)},selectbox:function(){return p(s)},textarea:function(){return e=s,t=getEscapedText(e.field_name)||"",i=getEscapedText(e.msg)||t,'
    '+i+c(e.required)+"
    ";var e,t,i},label:function(){return(e=s).msg?'
    '+getEscapedText(e.msg)+"
    ":"";var e}}[d]()||""},handleDropdown:function(){var e=this.contentdiv.find("#siqform"),o=this;e.find(".sqico-drpdwn").each(function(){var e=$(this),t=e.attr("index"),i=o.fields[t],s=!i.meta||!i.meta.iscustomfield,a=i.meta?i.meta.suggestions||(i.meta.input_card?i.meta.input_card.options:""):i.options,n=s?LSResource.getRealValue("ne.chosedepartment"):i.msg||(i.meta?i.meta.field_name:"");e.dropdown({options:a,purpose:s?"department":"customdrpdwn",defaultval:n+c("true")})})},reStoreValues:function(){var e=this.contentdiv.find("#siqform"),t=$Support.EmbedObj,i=e.find('[purpose = "visitorname"]'),s=e.find('[purpose = "visitoremail"]'),a=e.find('[purpose = "visitorphone"]');t.visitorname&&!$Support.Util.isInValidVisitorName(t.visitorname)&&0'+(i.subtitles?'':"")+""};return n.prototype={render:function(){var i,t,a;$Widget.attachHTML((i=this.data,t=this.data.id,a=$Widget.getMessageOBJ().msg,'
    '+(i.favicon_link?'':"")+''+l(i)+"
    "+(i.title?'
    '+i.title+"
    ":"")+(i.description?'
    '+i.description+"
    ":"")+"
    "+(i.thumbnail_url?'
    '+("video"==i.type?'':"")+"
    ":"")+(i.thumbnail_url?"":s(i))+'
    '+(a?'
    '+Markdown.apply(a,!0)+"
    ":"")))},setEvents:function(){var t=this.data,i=$("#linkinfo_"+this.data.id),a=i.find("#linfoplay");a.click(function(i){$(this).parent().replaceWith(s(t)),i.stopPropagation()}),i.click(function(){t.url&&window.open(t.url)}),t.autoplay&&t.thumbnail_url&&a.trigger("click")}},{init:function(i,t){var a=new n(i,t);a.render(),a.setEvents()}}}();var ZSIQRelPhrases=function(){var a=function(t,i){this.data=t.msglist,this.id=i,this.callback=t.callback,this.chatid=t.chatid,this.chatdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).chatdiv};return a.prototype={renderMessages:function(){var t=this.getMessageHtml(this.data);$Widget.attachHTML(t,!0),this.bindEvent(),ZSIQTranscript.scroll()},getMessageHtml:function(){for(var t=this.data.list,i='
    '+(this.data.title?'
    '+getEscapedText(this.data.title)+"
    ":"")+"
    ",a=0;a
    '+e+"
    "}return i+="
    "},bindEvent:function(){var t=this;this.chatdiv.find("div[prop=relphrase]").off("click.relphrase").on("click.relphrase",function(){$(this).attr("article-id")?$FAQ.showFAQPreview($(this)):t.chooseField(this)})},chooseField:function(t){var i=(t=$(t)).attr("data-value");this.callback({msg:i,id:this.id,element:t,config:this.userconfig,data_value:i,config:this.userconfig,type:"related_phrases",chatid:this.chatid})}},{init:function(t,i){($BotImpl.enableComposer(),t.msglist)?new a(t,i).renderMessages():t.callback("",i)}}}();var ZSIQCarousal=function(){var e=function(t,i){this.data=t.elements,this.title=t.title,this.sliderlength=this.data.length,this.subtitle=t.subtitle,this.actions=t.actions||{},this.id=i,this.curindex=0,this.chatid=t.chatid,this.chatdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).chatdiv,this.type=t.type,this.faddingtime=0};e.prototype={populateLayout:function(){var t=$Widget.getLayout();t=(t=(t=t.replace(/{BOT_WIDGET}/g,this.getCarouselHtml(this.curindex))).replace(/{CLASSNAME}/g,"single-product")).replace(/{WIDGET_TYPE}/g,"display-card"),this.componentcontainer=$(t),this.componentcontainer.find(".cmpnt-desc").addClass("sugg_titl"),this.componentcontainer.find('[prop ="slidercont"]').css("width",310*this.sliderlength+"px"),"multiple-product"==this.type?this.updateDotsHtml():this.dotscontainer=this.componentcontainer.find('[prop="dotsparent"]'),this.updateSliderIndex(0),this.bindEvent(),t=this.componentcontainer.prop("outerHTML"),$Widget.attachHTML(t,!0,"carousel"),delete this.componentcontainer},getCarouselHtml:function(){var t=this.getTitleObj(this.curindex),i=(this.getLabelAndActionHtml(this.curindex),'
    ');return"multiple-product"==this.type&&(i+='
    '+this.getSliderHtml()+"
    "+this.getArrowHtml()+'

    '+t.title+'

    '+t.subtitle+'
    '+this.getLabelAndActionHtml(this.curindex)+"
    "),"single-product"==this.type&&(i+='
    '+this.getSliderHtml()+"
    "+this.getArrowHtml()+this.getDotsHtml()+'

    '+t.title+'

    '+t.subtitle+'
    "},getArrowHtml:function(){return 1==this.sliderlength?"":''},getDotsHtml:function(){if(1==this.sliderlength)return"";for(var t='
    ',i=0;i';return t+="
    "},updateDotsHtml:function(){var t=this.getDotsHtml(),i=this.getComponentContainer();i.closest(".msgbx");i.append(t),this.dotscontainer=i.find('[prop="dotsparent"]')},getTitleObj:function(t){var i,e;if("single-product"==this.type&&(i=this.title,e=this.subtitle),"multiple-product"==this.type){var s=this.data[t]||{};i=s.title,e=s.subtitle}return{title:Message.trim(i)||"",subtitle:Message.trim(e)||""}},getLabelAndActionHtml:function(t){var i=this.type,e=!0,s="single-product"==i?this.actions:{};"multiple-product"==i&&(s=(this.data[t]||{}).actions||{},e=!1);return this.getCtaHtml(s,e).replace(/{BINDEVENT}/g,"")},getCtaHtml:function(t,i){for(var e=Object.keys(t).length,s=i&&1==e?'class="single-btn "':"",n="",r=0;r
    '+d.label+"
    "),"client_action"==a&&(n+='
    '+d.label+"
    ")}return n},getSliderHtml:function(){for(var t=this.data,i=t.length,e='
    ',s=0;s
    ';return e+='
    '},getNextElemIndex:function(){return this.curindex+1>=this.sliderlength?0:this.curindex+1},getPrevElemIndex:function(){return this.curindex-1<0?this.sliderlength-1:this.curindex-1},updateLabelAndTitle:function(){var e=this.getLabelAndActionHtml(this.curindex),s=this.getTitleObj(this.curindex);this.getComponentContainer().find('[prop="title"],[prop="subtitle"],[prop="actiondiv"]').fadeOut(this.faddingtime,function(){var t=this.getComponentContainer(),i=t.find('[prop="actiondiv"]');t.find('[prop="title"]').html(s.title),t.find('[prop="subtitle"]').html(s.subtitle),i.html(e),t.find('[prop="title"],[prop="subtitle"],[prop="actiondiv"]').fadeIn(this.faddingtime)}.bind(this))},updateSliderIndex:function(t,i){this.curindex=t;var e=this.getComponentContainer();return"multiple-product"==this.type&&this.updateLabelAndTitle(),0!=t||i||e.find('[prop = "slidercont"]').css("left","-310px"),"left"==i&&t==this.sliderlength-1?(e.find('[prop = "slidercont"]').css("left","0px"),this.resetSlider(310*this.sliderlength)):"right"==i&&0==t?(e.find('[prop = "slidercont"]').css("left","-"+310*(this.sliderlength+1)+"px"),this.resetSlider(310)):e.find('[prop = "slidercont"]').css("left","-"+310*(t+1)+"px"),void this.updateDotsIndex(i)},resetSlider:function(t){this.cloningprocess=!0,setTimeout(function(){this.getComponentContainer().find('[prop = "slidercont"]').addClass("notransition").css("left","-"+t+"px"),setTimeout(function(){this.cloningprocess=!1,this.getComponentContainer().find('[prop = "slidercont"]').removeClass("notransition")}.bind(this),50)}.bind(this),600)},updateDotsIndex:function(){this.sliderlength<=5||this.curindex<=3?this.setDotsFronView():4i?"left":"right";i&&this.updateSliderIndex(JSON.parse(i),e)}},handleEvents:function(t){var i=$(t.target),e=i.attr("prop");this.checkAndUpdateWidgetContainer(),"sqicorarrow"==e||"sqicolarrow"==e?this.updateContainer(i):"activedots"==e?this.handleDotsEvent(i):"ctacontainer"!=e&&"callback"!=e||(i="callback"==e?i.closest('[prop="ctacontainer"]'):i,this.handleCustomAction(i))},checkAndUpdateWidgetContainer:function(){this.componentcontainer||(this.componentcontainer=this.chatdiv.find($("#cmpnt"+this.id)),this.dotscontainer=this.componentcontainer.closest(".msgbx").find('[prop="dotsparent"]'),this.faddingtime=350)},getComponentContainer:function(){return this.componentcontainer||this.checkAndUpdateWidgetContainer(),this.componentcontainer},handleCustomAction:function(t){var i=t.attr("data-val"),e=t.attr("name"),s=this.data[this.curindex].id;$Support.handleWidgetCustomAction(i,{name:e,element_id:s})}};var s=function(t,i){this.callback=t.callback,this.data=t.elements,this.title=t.title,this.sliderlength=this.data.length,this.subtitle=t.subtitle,this.actions=t.actions||{},this.id=i,this.curindex=0,this.chatid=t.chatid,this.chatdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).chatdiv,this.type=t.type,this.faddingtime=0};return s.prototype={populateLayout:function(){var t=$Widget.getLayout();t=(t=(t=t.replace(/{BOT_WIDGET}/g,this.getCarouselHtml(this.curindex))).replace(/{CLASSNAME}/g,"multiple-product")).replace(/{WIDGET_TYPE}/g,"display-card"),this.componenthtml=t,this.componentcontainer=$(t),this.componentcontainer.find(".cmpnt-desc").addClass("sugg_titl"),this.updateDotsHtml(),this.updateSliderIndex(0),this.bindEvent(),$Widget.attachHTML(this.componenthtml,!0,"carousel")},getCarouselHtml:function(){return'
    '+this.getSliderHtml()+"
    "+this.getArrowHtml()},getSliderHtml:function(){for(var t=this.data,i=t.length,e="",s=1===i?"single_image":"",n=0;n
    ',e+='

    '+d+'

    '+a+"
    ",e+='
    '+this.getLabelAndActionHtml(n)+"
    "}}return e},getLabelAndActionHtml:function(t){var i=this.data[t]||{};return this.getCtaHtml(i.actions).replace(/{BINDEVENT}/g,"")},getCtaHtml:function(t){for(var i=Object.keys(t).length,e="",s=0;s',a=""),"url"===r){var c="_self"===n.target?"_parent":"_blank",h=n.link,p=h.split("://")[0];e+='
    '+d+''+o+"
    "}else e+='
    '+d+''+o+"
    "}return e},getArrowHtml:function(){return 1===this.sliderlength?"":'
    '},updateDotsHtml:function(){var t=this.getDotsHtml();this.componenthtml+=t,this.componentcontainer=$(this.componenthtml),this.dotscontainer=this.componentcontainer.find('[prop="dotsparent"]')},getDotsHtml:function(){if(1===this.sliderlength)return"";for(var t='
    ',i=0;i'}return t+="
    "},getComponentContainer:function(){return this.componentcontainer||this.checkAndUpdateWidgetContainer(),this.componentcontainer},checkAndUpdateWidgetContainer:function(){this.componentcontainer=this.chatdiv.find($("#cmpnt"+this.id)),this.dotscontainer=this.componentcontainer.closest(".msgbx").find('[prop="dotsparent"]'),this.faddingtime=350},updateSliderIndex:function(t,i){this.curindex=t;var e=this.getComponentContainer(),s=e.find('[prop="carouselcontainer"]')[0].offsetWidth,n=e.find('[prop="imgslider"]')[0],r=n&&n.offsetWidth,d=parseInt(n&&getComputedStyle(n).marginRight),a=$Widget.isRtl(),o=0;if(o=-(r*t+t*d),o=a?-o:o,this.curindex===this.data.length-1){var l=s-r;o+=a?-l:l}e.find('[prop="slidercont"]').css("transform","translateX("+o+"px)"),this.updateDotsIndex()},updateDotsIndex:function(){this.sliderlength<=5||this.curindex<=3?this.setDotsFrontView():4=this.sliderlength?0:this.curindex+1},getPrevElemIndex:function(){return this.curindex-1<0?this.sliderlength-1:this.curindex-1},handleAction:function(t){var i=t.attr("data-val"),e=this.data[this.curindex],s=e.actions[parseInt(t.attr("index"))],n=s.label,r=s.name,d=this.data[this.curindex].id;if("undefined"!=i)$Support.handleWidgetCustomAction(dataval,{name:r,element_id:d});else if("undefined"!=n){var a=e.title;this.callback({msg:a+" - "+n,id:this.id,type:"multiple-product",element:t,config:this.userconfig,value:{action:{label:n,name:r},element:{title:a,id:e.id}}})}}},{init:function(t,i){t.elements?new("single-product"===t.type?e:s)(t,i).populateLayout():t.callback("",i)}}}();var ZSIQDropdown=function(){var t=function(e){this.data=e,this.standalonedropdown=e.standalonedropdown,this.ismultiselect=e.ismultiselect,this.deSelectCallback=e.deSelectCallback,this.maxlimit=e.maxlimit,this.numberofselection=0,this.selectcallback=e.callback||function(){},this.deselectcallback=e.deselectcallback||function(){},this.default_select=e.default_select,this.allowdefaultselect=null==e.allowdefaultselect||e.allowdefaultselect};return t.prototype={render:function(){this.populateList(),!this.standalonedropdown&&this.populateHeader(),this.populateOptionContainer(),this.header=this.data.element.find(".drop_hdr"),this.listdiv=this.data.element.find(".popup_list"),this.searchinput=this.data.element.find("#popupsearch"),this.setEvents(),this.standalonedropdown&&this.default_select&&this.listdiv.find('[data-key="'+this.default_select.key+'"]').trigger("click")},populateHeader:function(e){var t=this.default_select.key;this.data.element.append('')},populateList:function(){var e="";for(var t in this.data.options){var i=this.data.options[t],a=i.key,s=i.desc?"":"dn",l=i.src?'':"";e+='",a!=this.data.selected&&"true"!=i.selected||(this.default_select=i)}this.default_select=this.default_select?this.default_select:this.allowdefaultselect?this.data.options[0]:"";var d=this.default_select,o=!this.standalonedropdown&&d?'":"",n='
    ';this.data.search_allowlimit&&this.data.options.length'+n+'";this.data.element.append(c)},populateOptionContainer:function(){this.data.optioncontainer&&this.data.optioncontainer.append(this.optionholder=$('
    '))},setEvents:function(){var s=this;this.header.on("click",function(e){s.clearSearch(),$(this).parent().find(".popup_list").toggle();var t=s.default_select;s.listdiv.find("#selectedval").attr("data-key",t.key).html(t.val+""+(t.subval||"")+""),$Clickoutside.bindclick(function(){s.listdiv.hide()},"dropdownlist","dropdownheader",!0,e),$("#popupsearch").focus()}),this.listdiv.on("click","[evetype]",function(e){var t=$(this);if(t.hasClass("popup_li")){var i=t.attr("data-key");if(s.ismultiselect)return void s.handleMultiSelect(t);s.standalonedropdown&&s.addTickForSelection(s.listdiv.find("[data-key="+i+"]")),s.setSelectedObj(t.attr("data-key"),t.attr("data-val"));var a=s.default_select.key;s.header.find(".txtelips").attr("data-key",a).text(a).attr("title",a),s.listdiv.hide(),s.triggerCallBack({key:i,val:t.attr("data-val"),desc:t.attr("data-desc")},"select")}}),this.searchinput.on("keyup",function(){s.handleSearch()}),this.optionholder&&this.optionholder.on("click",function(e){var t=$(e.target);"deselect"==t.attr("prop")&&s.handleMultiSelect(t,!0)}),this.listdiv.find('[puprose="closedropdown"]').on("click",function(){s.listdiv.hide()})},handleMultiSelect:function(e,t){var i=e.hasClass("sel")||t?"deselect":"select";if(!(("deselect"!=i&&this.numberofselection+1)>this.maxlimit)){var a=e.attr("data-key"),s={key:a,val:e.attr("data-val")};this.updateSelectionInOptionHolder(s),this.toggleListClass(this.listdiv.find("[data-key="+a+"]")),this.triggerCallBack(s,i)}},toggleListClass:function(e){e.toggleClass("sel"),e.find("em").toggleClass("cmpnt-mul-optn sqico-tick")},triggerCallBack:function(e,t){({select:function(){this.numberofselection++,this.selectcallback(e)}.bind(this),deselect:function(){this.numberofselection--,this.deselectcallback(e)}.bind(this)})[t]()},addTickForSelection:function(e){var t=this.listdiv.find("[data-key="+this.default_select.key+"]");t.removeClass("sel"),t.find("em").removeClass("cmpnt-mul-optn sqico-tick"),e.addClass("sel"),e.find("em").addClass("cmpnt-mul-optn sqico-tick")},updateSelectionInOptionHolder:function(e){if(this.optionholder){var t=this.optionholder.find("[data-key="+e.key+"]");if(0'+a+'')}}},setSelectedObj:function(e,t){for(var i in this.data.options){var a=this.data.options[i];if(a.key==e&&a.val==t){this.default_select=this.data.options[i];break}}},handleSearch:function(){var i=this.searchinput.val().toLowerCase().replace(/ /g,""),e=this.listdiv;if(e.find(".popup_src_emty").remove(),i){e.find(".curnt_val").hide(),e.find(".select_val div").hide();var a=!1;e.find(".select_val").find(".popup_li").each(function(){var e=$(this),t=e.find('[proptype="info"]');-1!=t.find('[proptype="info"]').text().toLowerCase().replace(/ /g,"").indexOf(i)?(e.show(),t.show(),a=!0):(e.hide(),t.hide())}),a?e.find(".select_val").show():this.handleEmpty()}else this.clearSearch()},clearSearch:function(){var e=this.listdiv;e.find(".curnt_val").show(),e.find(".select_val").show(),e.find(".select_val div").show(),e.find(".popup_src_emty").remove(),this.searchinput.val("")},handleEmpty:function(){var e=this.listdiv;e.find(".curnt_val").hide(),e.find(".select_val").hide(),e.find(".popup_src_ul").append('")}},{init:function(e){new t(e).render()}}}();var Dropdowncreator=function(){var i=function(e,t){this.options=e.options,this.callback=e.callback,this.select_label=e.select_label,this.componentid=t,this.userconfig=e,this.chatid=e.chatid,this.contentdiv=ZSIQTranscript.getChatWindowOBJ(this.chatid).contentdiv,this.placeholder=e.placeholder,this.minselection=e.min_selection,this.maxselection=e.max_selection,this.allowmultiselect=e.multiple,this.allowdefaultselect=null==e.allow_default_select||e.allow_default_select,this.selitemarr=[]};return i.prototype={populateDropDown:function(){var e=$Widget.getLayout();e=(e=(e=e.replace(/{BOT_WIDGET}/g,this.getInputHtml())).replace(/{CLASSNAME}/g,"botsselect")).replace(/{WIDGET_TYPE}/g,"input-card"),$Widget.attachHTML(e),this.dropdowncontainer=$("#bot_widget"+this.componentid),this.optioncontainer=this.dropdowncontainer.find('[prop="selvalues"]'),this.bindEvent(),this.handleDropDown()},getInputHtml:function(){return'
    '+LSResource.getRealValue("common.confirm")+"
    "},handleDropDown:function(){var e=$("#bot_widget"+this.componentid);ZSIQDropdown.init({options:function(e){for(var t=e.length,i=[],l=0;l0/'+v.max+")":"",i=v&&v.allowed_formats?v.allowed_formats:[],t=i.length?''+LSResource.getRealValue("common.supportedfiles")+""+i.join(", ")+"":"",a='
    '+LSResource.getRealValue("file.sharewith",getEscapedText(window.ZSIQConversationManager?ZSIQConversationManager.getcurrchatwinobj().attendername:""))+e+'
    '+t+'
    '+LSResource.getRealValue("common.send")+'
    ';$(g).append(a),n()},n=function(){$(g).find('[data-target="zsiqsendfiles"]').on("click",l),$(g).find('[data-target="zsiqattachment"]').on("change",function(e){ZSIQFileUpload.handleFileUpload(this,e)}),$(g).find('[data-target="close"]').on("click",e)},e=function(){$(g).find("#zsiqfileupload_body").remove(),$("#zsiqfileinput").attr("value",""),h=[]},z=function(){var e=$(g),i=e.find("#zsiq-overlaymain"),t=e.find(".zsiq-filemain").length;i.removeClass("zsiq_flexM").removeClass("zsiq_hideclose"),t<=2&&i.addClass("zsiq_flexM"),1==t&&i.addClass("zsiq_hideclose")},q=function(e){if(!v)return!0;var i=e.name,t=(-1!=i.indexOf(".")?i.split(".").pop():"").toLowerCase();return-1!=v.allowed_formats.indexOf(t)},x=function(e,i){$(g).find("#zsiq-overlaymain").append('
    '+e+"
    "),i=i||4e3,setTimeout(function(){$(g).find(".zsiqerrorpopup").remove()},i)},y=function(){$(g).find(".zsiqfcount").text(h.length)},S=function(){$(g).find("#zsiqfileupload_body").remove(),h=[]},d=function(e){var a=new FormData;return $.each(e,function(e,i){if(Array.isArray(i))for(var t=0;tv.max&&(x(LSResource.getRealValue("file.maximum.error",""+v.max)),1)))){var e,i;if($Widget.isPreview()){var t=s();return window.store.dispatch("botmodulestore/invokeBotFileUpload",{params:d({files:t.files_array,comments:JSON.stringify(t.comment_obj)}),callback:o,id:window.store.state.botstore.botDetail.id}),void S()}if(v)return e=$Support.getprefixURL()+"/visitor/v2/"+_SCREENNAME+"/conversations/"+ZSIQConversationManager.getcurrchatwinobj().visitorID+"/messages",i={file:(t=s()).files_array,comments:JSON.stringify(t.comment_obj),session_id:LSMessanger.getSid(),att_type:"chat_attachment"},r(i,i,e),void S();for(var a=0;a
    '+e+'
    ';$(g).find(".zsiq-overlaymain").append(i),this.parent=$(g).find('[data-index="'+this.index+'"]'),this.handleEvents(),this.setPreview()},updateIndex:function(e){this.index=e,this.parent.attr("data-index",e)},handleEvents:function(){var n=this,e=function(e){var i=$(e),t=i.val(),a=i.parent();a.removeClass("zsiq-errorcmt").find(".zsiq-filecmt-cunt").text(t.length+"/150"),150');else{var t=new FileReader;t.onload=function(e){i.append('')},t.readAsDataURL(this.file)}else{i.append('')}i.find(".siqico-close").on("click",function(){var e=$(this).parents(".zsiq-filemain"),i=parseInt(e.attr("data-index"));h.splice(i,1);for(var t=i;tv.max)){for(var r=0;r
    '+$ZSIQBookinghandler.carddetails.card_button_text+"
    "},bindEvent:function(){var e=this.chatobj.contentdiv.find('[data-msgid="'+this.msguid+'"]').find('[proptype="msgbx"]');$Widget.isPreview()&&(e=this.chatobj.contentdiv.find("#cmpnt"+this.compid)),$Widget.isPreview()?e.closest(".msgbx").addClass("widget-msgbx"):e.addClass("widget-msgbx"),e.find("#bookingcard").off("click.booking","[evetype]").on("click.booking","[evetype]",function(e){this.handleBookingCardEvents($(e.currentTarget))}.bind(this))},handleBookingCardEvents:function(e){var t={book:this.proceedBookingFlow.bind(this),cancel:this.cancelBooking.bind(this),reschedule:this.redcheduleBooking.bind(this)};"function"==typeof t[e.attr("evetype")]&&t[e.attr("evetype")]()},proceedBookingFlow:function(e){e||($ZSIQBookinghandler.clearDataHolder(),$ZSIQWindowOverlay.init({title:1==this.serviceIDs.length?getEscapedText(this.card_title):this.card_title,titleicon:this.card_iconcls,tooltip:(this.inviteobj||{}).name,targetelem:$Support.container.find("header"),callback:this.handleOverlayEvents.bind(this),closecallback:$ZSIQBookinghandler.clearDataHolder})),$("#overlaywrapper").append($ZSIQFormField.getFormLayout()),e&&this.formatted_bookingtime&&$("#overlaywrapper").find("#proceedbtn").removeClass("elem_disable").attr("evetype","visitorinfo");var t={service:this.serviceSelectionComplete.bind(this),staff:this.StaffSelectioComplete.bind(this)};$ZSIQBookinghandler.renderFormFields($ZSIQBookinghandler.getFormFieldIntegInfo({serviceIDs:this.serviceIDs,staffIDs:this.staffIDs},this.sel_listval),t)},cancelBooking:function(){(this.chatobj.contentdiv.find('[data-msgid="'+this.msguid+'"]').find('[proptype="msgbx"]')||this.chatobj.contentdiv.find('[msg-id="'+this.msguid+'"]').find('[proptype="msgbx"]')).find("#bookingcard").addClass("elem_disable").find('[evetype="cancel"]').text(LSResource.getRealValue("booking.loading.cancel")),$ZSIQBookinghandler.cancelAppointment({visitorid:this.visitorid,booking_id:this.booking_id&&this.booking_id.replace("#",""),msg_id:this.msguid,callback:this.handlePostCancelAppointment.bind(this)})},proceedReschedule:function(){this.formatted_bookingtime=zDatepicker.getMonthAndDateString(this.selected_date)+", "+zDatepicker.convert24To12HrString(this.selected_slot);var e=$("#overlaywrapper");e.find("#proceedbtn").text(LSResource.getRealValue("booking.loading.book")).addClass("elem_disable"),e.find('[proptype="availdays"]','[proptype="availslots"]').addClass("cur-non"),$ZSIQBookinghandler.rescheduleAppointment({visitorid:this.visitorid,booking_id:this.booking_id&&this.booking_id.replace("#",""),msg_id:this.msguid,from_time:this.selected_date+" "+zDatepicker.convert12To24HrString(this.selected_slot),callback:this.handlePostRecheduleAppointment.bind(this),errorcallback:this.handleBookError.bind(this),timezone:this.timezone})},handlePostRecheduleAppointment:function(){$Support.container.find("#cwoverlay").remove();var e=this.chatobj.contentdiv.find('[data-msgid="'+this.msguid+'"]').find('[proptype="msgbx"]');$Widget.isPreview()&&(e=this.chatobj.contentdiv.find('[msg-id="'+this.msguid+'"]').find('[proptype="msgbx"]')),e.find('[proptype="cardstatus"]').text(LSResource.getRealValue("booking.postrescheule")),e.find('[proptype="booktime"]').text(this.formatted_bookingtime)},handlePostCancelAppointment:function(){var e=this.chatobj.contentdiv.find('[data-msgid="'+this.msguid+'"]').find('[proptype="msgbx"]');$Widget.isPreview()&&(e=this.chatobj.contentdiv.find('[msg-id="'+this.msguid+'"]').find('[proptype="msgbx"]')),e.find("#bookingcard").remove(),e.find('[proptype="cardstatus"]').text(LSResource.getRealValue("av.info.cancelled")).addClass("bg-red"),e.find('[proptype="booktime"]').addClass("c729")},handleCompleteAppointment:function(){var e=this.chatobj.contentdiv.find('[data-msgid="'+this.msguid+'"]').find('[proptype="msgbx"]');e.find("#bookingcard").remove(),e.find('[proptype="cardstatus"]').text(LSResource.getRealValue("booking.complete")),e.find('[proptype="booktime"]')},redcheduleBooking:function(){$ZSIQWindowOverlay.init({title:1==this.serviceIDs.length?getEscapedText(this.card_title):this.card_title,titleicon:this.card_iconcls,tooltip:(this.inviteobj||{}).name,targetelem:$Support.container.find("header"),callback:this.handleOverlayEvents.bind(this),closecallback:$ZSIQBookinghandler.clearDataHolder}),this.renderCalender(),$("#siqoverlay").find('[evetype="preformview"]').remove()},fetchAvailability:function(e){$("#zsiqdatepicker").addClass("siq_showload posrel"),$('[proptype="title"]').text(LSResource.getRealValue("booking.loading.dates")).removeAttr("title"),$ZSIQBookinghandler.availabledates={dates:[],days:[]};var t={dates:e,service_id:this.selected_service.key,visitorid:this.visitorid,timezone:this.timezone,errorcallback:this.handleIntegDisable.bind(this)};this.selected_staff&&(t.staff_id=this.selected_staff.key),$ZSIQBookinghandler.checkAvailableDates(t)},handleIntegDisable:function(e){$ZSIQBookinghandler.integDisabledCard({msgid:this.msguid,chatdiv:this.chatobj.chatdiv}),this.chatobj.showBanner(e.message,!0)},renderCalender:function(){$ZSIQWindowOverlay.changeOverlayTitle({iconcalss:"sqico-bckarrw curp ",text:$ZSIQBookinghandler.getCalendardesc().aboutfield,callbackattr:"preformview"}),$ZSIQBookinghandler.availabledates={dates:[],days:[]},$("#overlaywrapper").html(""),$("#overlaywrapper").append('
    ');var e={tz:!0,type:"calendar",parentdiv:$("#overlaywrapper").find("#cal-parent"),time:!0,custom_schdulebtn:!0,dateonly:!0,availability_checker:this.fetchAvailability.bind(this),ondateclick:this.dateSelComplete.bind(this),ontzsel:function(e){this.timezone=e}.bind(this)};zDatepicker.init(e,"")},dateSelComplete:function(e){var t={date:this.selected_date=e,service_id:this.selected_service.key,visitorid:this.visitorid,timezone:this.timezone,callback:this.slotFetchComplete.bind(this),errorcallback:this.handleIntegDisable.bind(this)};this.selected_staff&&(t.staff_id=this.selected_staff.key),$ZSIQBookinghandler.fetchAvailableSlots(t)},checkEmptySlot:function(e){if(!e.length||"Slots Not Available"==e[0]){$('[data="'+this.selected_date+'"]').removeClass("availslot").addClass("busyslot");var t=$(".zb-slot-section"),i=$("#slotparent");return i.removeClass("siq_showload posrel"),t.length&&t.remove(),i.find('[proptype="availdays"]').find(".sel").addClass("busyslot"),$ZSIQWindowOverlay.handleAlertBanner(LSResource.getRealValue("booking.alreadybooked")),!0}},slotFetchComplete:function(e){this.checkEmptySlot(e)||(this.renderSlotHTML(e),$ZSIQWindowOverlay.changeOverlayTitle({iconcalss:"sqico-bckarrw curp ",text:LSResource.getRealValue("booking.chooseslot"),callbackattr:"rerendercalview"}),$("#slotparent").removeClass("siq_showload posrel"))},sortByNumbers:function(e,t){function i(e){var t=e.match(/\d+/g);return t?parseInt(t[0]):0}return i(e)-i(t)},getNumberFromStr:function(e){var t=e.match(/\d+/g);return t?parseInt(t[0]):0},renderSlotHTML:function(e){var t=$Support.container.find("#overlaywrapper"),i=this.booking_id?"proceedreschedule":"slotsave",s=$ZSIQBookinghandler.availabledates.dates.length<=4?" dn":"";t.html('
    '+zDatepicker.getMonthAndDateString(this.selected_date)+'
    '+LSResource.getRealValue("booking.availdays")+'
    '+LSResource.getRealValue("booking.availslots")+'
    '+LSResource.getRealValue("booking.proceed")+"
    ");var o=[].concat($ZSIQBookinghandler.availabledates.days).sort(this.sortByNumbers),a=o.indexOf(zDatepicker.getDayStrig(this.selected_date,"dd"));$ZSIQButtons.init({options:o,targetelem:t.find('[proptype="availdays"]'),slider:!0,leftarrow:t.find('[proptype="larrow"]'),rightarrow:t.find('[proptype="rarrow"]'),preselindex:a,callback:function(e,t){$("#slotparent").addClass("siq_showload posrel");var i=$ZSIQBookinghandler.availabledates;this.dateSelComplete(i.dates[i.days.indexOf(t)]),e.parent().find(".sel").removeClass("sel"),e.addClass("sel")}.bind(this)}),$ZSIQButtons.init({options:e,targetelem:t.find('[proptype="availslots"]'),iscurvedtype:!0,callback:function(e,t){this.selected_slot=t,$("#slotparent").animate({scrollTop:$("#slotparent").prop("scrollHeight")},1e3),e.parent().find(".sel").removeClass("sel"),e.addClass("sel"),$('[proptype="availslots"]').parent().find("#proceedbtn").removeClass("dn")}.bind(this)})},getCardPreviewHTML:function(){var e=this.sel_staffobj?$ZSIQProfilePic.init({src:this.sel_staffobj.image_url,name:this.sel_staffobj.name,custom_cls:"pre-prof c888",ignorebold:!0}):"",t=$ZSIQBookinghandler.getFormattedPrice(this.sel_serviceobj);return t=t?LSResource.getRealValue("bookings.fee",t):"",'
    '+getEscapedText(this.selected_service.val)+'
    '+t+'
    '+this.formatted_bookingtime+'
    '+(e?'
    '+e+"
    ":"")+"
    "},getBookingStatusCardHTML:function(e){var t=$ZSIQBookinghandler.getFormattedPrice(this.sel_serviceobj);t=t?LSResource.getRealValue("bookings.fee",t):"";var i="scheduled"!=e&&e?"booking.postrescheule":"booking.postschedule";return'
    '+LSResource.getRealValue(i)+'
    '+getEscapedText(this.selected_service.val)+'
    '+t+'
    '+this.formatted_bookingtime+"
    "+(this.sel_staffobj?$ZSIQProfilePic.init({src:this.sel_staffobj.image_url,name:this.sel_staffobj.name,custom_cls:"pre-prof c888",ignorebold:!0}):"")},getBookingStatusCardbtn:function(e){return'
    '+LSResource.getRealValue("common.cancel")+''+LSResource.getRealValue("common.reschedule")+"
    "},handleAppointementPostCard:function(e){this.booking_id=e.id,this.sel_staffobj=this.sel_staffobj||CommonUtil.deepSearchObjByID({arr_val:$ZSIQBookinghandler.getStaffList(),searchval:e.staff.id,searchkey:"id"}),$Support.container.find("#cwoverlay").remove();var t=this.chatobj.chatmaindiv.find("[msg-id="+this.msguid+"]");t.find(".cmpnt-desc").html(this.getBookingStatusCardHTML()),t.find("#bookingcard").html(this.getBookingStatusCardbtn()),ZSIQTranscript.scroll()},handleOverlayEvents:function(e,t){var i={calendar:this.renderCalender.bind(this),slotsave:this.slotSelComplete.bind(this),visitorinfo:this.renderVisitorInfoForm.bind(this),proceedappointment:this.bookAppointment.bind(this),proceedreschedule:this.proceedReschedule.bind(this),preformview:this.reRenderPreFormView.bind(this),rerendercalview:this.renderCalender.bind(this)};"function"==typeof i[t]&&i[t](e)},reRenderPreFormView:function(){$("#overlaywrapper").html("");var e=this.serviceIDs.length?getEscapedText(this.card_title):this.card_title;$ZSIQWindowOverlay.changeOverlayTitle({iconcalss:this.card_iconcls,text:e}),$('[proptype="title"]').attr("title",e),this.proceedBookingFlow(!0)},slotSelComplete:function(e){$ZSIQWindowOverlay.changeOverlayTitle({iconcalss:this.card_iconcls,text:LSResource.getRealValue("booking.bookappointment")});var t=$("#overlaywrapper");this.formatted_bookingtime=zDatepicker.getMonthAndDateString(this.selected_date)+", "+zDatepicker.convert24To12HrString(this.selected_slot),$ZSIQBookinghandler.getCalendardesc().fieldtitle=this.formatted_bookingtime,t.html(""),this.proceedBookingFlow(!0),t.find("#proceedbtn").attr("evetype","visitorinfo").removeClass("elem_disable")},renderVisitorInfoForm:function(){$ZSIQWindowOverlay.changeOverlayTitle({iconcalss:"sqico-bckarrw curp ",text:LSResource.getRealValue("booking.confirmation"),callbackattr:"preformview"});var e=$Support.EmbedObj;if(e){var t=e.visitorname;ZSIQTranscript.isInValidVisitorName(t)||(this.vis_name=getEncodedText(this.vis_name||t)),this.vis_mail=this.vis_mail||e.visitoremail,this.vis_phone=this.vis_phone||e.visitorphone}var i=$("#overlaywrapper");i.prepend(this.getCardPreviewHTML()),$("#formsection").html(""),$ZSIQBookinghandler.renderVisitorInfoForm({targetelem:$("#formsection"),vis_name:this.vis_name,vis_mail:this.vis_mail,vis_phone:this.vis_phone}),i.find("#proceedbtn").attr("evetype","proceedappointment")},bookAppointment:function(){if(this.updateVisitorInfo($("#formsection")))return!1;this.updateVisitorInfo($("#formsection")),$("#overlaywrapper").find("#proceedbtn").text(LSResource.getRealValue("booking.loading.book")).addClass("elem_disable");var e={visitorid:this.visitorid,name:this.vis_name,phn_no:this.vis_phone,email:this.vis_mail,service_id:this.selected_service.key,from_time:this.selected_date+" "+zDatepicker.convert12To24HrString(this.selected_slot),time_zone:this.timezone,initiator_type:"visitor",msg_id:this.msguid,callback:this.handleAppointementPostCard.bind(this),errorcallback:this.handleBookError.bind(this)};this.selected_staff&&(e.staff_id=this.selected_staff.key),$ZSIQBookinghandler.bookAppointment(e)},handleBookError:function(e){var t=(JSON.parse(e.responseText)||{}).error;"7019"!=t.code?$ZSIQWindowOverlay.handleAlertBanner($ZSIQBookinghandler.getBookingErrorMsg(t.code)):this.handleIntegDisable(t)},updateVisitorInfo:function(e){var s=0,o=this,a={vis_mail:"ne.errorinfo.email",vis_phone:"ne.errorinfo.phone",emptyfield:"field.empty"};if(e.find("[fieldtype]").each(function(){var e=$(this),t="errfield";if(e.validateInput())o[e.attr("fieldtype")]=e.val().trim(),e.removeClass(t);else{s++;var i=e.val()?e.attr("fieldtype"):"emptyfield";e.next("span").text(LSResource.getRealValue(a[i])).removeClass("dn"),e.addClass(t)}}),0'+getEscapedText(e.desc)+"":getEscapedText(e.val),i=e.desc?e.val+", "+e.desc:e.val;$("#formsection").find('[proptype="staff"]').find('[proptype="valueholder"]').html(t).attr("title",i)},getStaffServiceList:function(){$ZSIQBookinghandler.getServiceAndStaffList({visitorid:this.visitorid,callback:this.integInfoFetchComplete})}},{init:function(e,t){new i(e,t).getIntegInfo()}}}(),$ZSIQBookingsDisplay=function(){var t=function(e){this.bookingdata=e,this.booking_id=e.msgobj&&e.msgobj.booking_card&&e.msgobj.booking_card.booking_id,this.bookingdetails=e.msgobj.booking_card||{},this.status=this.bookingdetails.status};return t.prototype={getBookingDetails:function(){this.booking_id?$ZSIQBookinghandler.getBookingDetails({booking_id:this.booking_id.replace("#",""),callback:this.handleBookingDetails.bind(this)}):$ZSIQBookinghandler.init(this.bookingdata)},getStatus:function(e){var t=e.status;return"cancel"==t?"canceled":"upcoming"==t?e.start_time==this.bookingdetails.from_time?"booked":"rescheduled":"completed"==t?"completed":"booked"},handleBookingDetails:function(e){var t=e.start_time.split(" "),i=this.bookingdata.msgobj.meta.service_ids?"staff":"service";this.bookingdata.msgobj.preselectedfield={key:e[i].id,val:e[i].name},this.bookingdata.msgobj.status=this.bookingdetails.status=this.getStatus(e),this.bookingdata.msgobj.formatted_time=zDatepicker.getMonthAndDateString(t[0])+" ,"+zDatepicker.convert24To12HrString(t[1]),$ZSIQBookinghandler.init(this.bookingdata)}},{init:function(e){new t(e).getBookingDetails()}}}();var $ZSIQPayment=function(){var a=function(e,t){this.chid=e.chatid,this.chatobj=ZSIQTranscript.getChatWindowOBJ(this.chid),this.visitorid=this.chatobj.visitorID,this.msguid=e.msguid,this.paymenturl=e.url,this.hostedpage_id=e.hostedpage_id,this.status=e.status,this.created_time=e.created_time,this.componenttime=t};a.prototype={renderPaymentCard:function(){var e=$Widget.getLayout();e=(e=(e=e.replace(/{BOT_WIDGET}/g,this.getPaymentcardHTML())).replace(/{CLASSNAME}/g,"botbtn")).replace(/{WIDGET_TYPE}/g,"display-card"),$Widget.attachHTML(e,!0),this.chatobj.contentdiv.find('[msg-id="'+this.msguid+'"]').find('[proptype="msgbx"]').addClass("widget-msgbx"),this.bindEvent()},getPaymentcardHTML:function(){var e=(this.chatobj.intime||this.chatobj.chatintime)>this.componenttime||"pastconv"==this.chatobj.chatstatus?"elem_disable":"";return this.status&&"fresh"!=this.status?i(this.status,this.created_time):'
    '+LSResource.getRealValue("common.cancel")+'
    '+LSResource.getRealValue("zc.paynow")+"
    "},bindEvent:function(){$(this.chatobj.chatdiv).off("click.checkout",'[eveid="decinepay'+this.msguid+'"]').on("click.checkout",'[eveid="decinepay'+this.msguid+'"]',function(e){$(e.target).text(LSResource.getRealValue("booking.loading.cancel")).addClass("elem-disable"),t({hostedpage_id:this.hostedpage_id,msguid:this.msguid,succ_callback:function(){var e={chatobj:this.chatobj,msguid:this.msguid,chid:this.chatobj.chatID,status:"customer_cancelled",time:(new Date).getTime()};$ZSIQPayment.handlePaymentStatusChange(e),$ZSIQPayment.updatePaymentStatusInStorage(e,{status:"customer_cancelled",created_time:(new Date).getTime()})}.bind(this),fail_callback:this.handleDeclinefailed.bind(this),visitorid:this.visitorid})}.bind(this))},handleDeclinefailed:function(e){if(e&&e.responseText){var t=JSON.parse(e.responseText),a=t.error&&t.error.code;if(1745==a)$ZSIQPayment.handlePaymentStatusChange({chatobj:this.chatobj,msguid:this.msguid,status:"customer_cancelled"});else{var i=1749==a?"zc.cancelerr":"bookings.service.disabled";this.chatobj.showBanner(LSResource.getRealValue(i),!0,null,2500),this.chatobj.contentdiv.find('[msg-id="'+this.msguid+'"]').find('[proptype="cancelpayreq"]').addClass("elem_disable").text(LSResource.getRealValue("common.cancel"))}}}};var t=function(e){var t=e.visitorid+"/integrations/zohocheckout/disablehostedpage",a={initiator_type:"visitor",cancelled_by:"customer",hostedpage_id:e.hostedpage_id,msg_id:e.msguid};CommonUtil.handleAjaxReq(t,a,e.succ_callback,e.fail_callback,{method:"PUT"})},i=function(e,t){var a=t?zDatepicker.getMonthAndDateString(MyDate.getConvertedObject(t,"bclient")).split(",")[1]+", "+MyDate.getHoursandMin(t,!0,"bclient"):"",i="sqico-success";return-1!=["agent_cancelled","customer_cancelled","failure"].indexOf(e)&&(i="sqico-error"),'
    '+LSResource.getRealValue({agent_cancelled:"zc.reqcancel",success:"zc.paid",customer_cancelled:"zc.declined",failure:"zc.failed",pending:"zc.processing"}[e]||"")+''+a+"
    "},s=function(e){e.chatobj.contentdiv.find('[msg-id="'+e.msguid+'"]').find('[proptype="paybtnarea"]').replaceWith(i(e.status,e.time))},n=function(e,t){var a=e.chid,i=$Support.formatMsgUid(e.msguid),s=$Support.getTranscriptFromSession(a)||[],n=s.length;if(n){for(var c=0;c'+c+''+i.formatted_amount+"",n="flexJB flex");var d=i.paymentpage_description;if(a.msg='
    '+i.paymentpage_title+'
    '+d+"
    ",t)return a;$BotImpl.formatAndDisplay(a,"","",!0)},getPaymentStatusbtnHTML:i,handlePaymentStatusChange:s,handleLivePaymentStatus:function(e){var t=ZSIQTranscript.getChatWindowOBJ(e.chid),a=(JSON.parse(e.addldata)||{}).payment_card,i={chatobj:t,msguid:e.msguid,status:a.status,time:a.created_time};s(i),n(e,{status:a.status,created_time:a.created_time})},updatePaymentStatusInStorage:n}}();$ClickToAction=function(){var r={},m={call:{href:"tel:",key:"number"},email:{href:"mailto:",key:"email_id"},message:{href:"sms:",key:"number"}},t=function(e,a){for(var r=Object.keys(e).length,t=a&&1==r?' class="single-btn "':"",n="",l=0;l'+c.label+"",o=m[c.type]||{},p={url:'"+i.replace(/{PROPTYPE}/g,'prop="url"')+"",client_action:''+i.replace(/{PROPTYPE}/g,'prop="callback"')+"",media_action:'"+i.replace(/{PROPTYPE}/g,"")+""};n+=p[c.type]||p[$.isEmptyObject(o)?"":"media_action"]}return n};return{init:function(e){r=e,function(){var e=$Widget.isPreview()?{}:$Support.getParent().$ZSIQUtil.getAPIValues()||{};e=e.clientaction||{};var a=$Widget.getLayout();a=(a=(a=(a=ZSIQTranscript.getFormatedHTML(a)).replace(/{BOT_WIDGET}/g,t(r.actions).replace(/{BINDEVENT}/g,'documentclick = "handleCta"'))).replace(/{CLASSNAME}/g,"botbtn")).replace(/{WIDGET_TYPE}/g,"display-card"),$Widget.attachHTML(a,!0)}()},getCtaHtml:t}}();PeerConnection=function(){var i,a=null,o=null,c=null,r=0,s={getScreenShareConstrains:function(){return window.webkitRTCPeerConnection&&navigator.mediaDevices&&void 0===navigator.mediaDevices.getDisplayMedia?{audio:!1,video:{mandatory:{chromeMediaSource:"desktop"}}}:window.webkitRTCPeerConnection?{audio:!1,video:!0}:{audio:!1,video:{mediaSource:"screen"}}},setcredential:function(e,n){return s.initConnection(e,n).connectionId},initConnection:function(e,n){return e=t(e,n)},getUserMedia:function(){return navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||null},checkScreenExtensionNeeded:function(e){if("SCREEN_SHARE"===e&&window.webkitRTCPeerConnection&&void 0===navigator.mediaDevices.getDisplayMedia)return window.addEventListener("message",function(e){s._screenShareExtnSuccsess(e)}),void MediaConnection.sendPostMessageToExtn("zoho_cliq_extn_check")},_screenShareExtnSuccsess:function(e){if(e.data.message&&"ZOHOCLIQ-EXTN-CHECK"===e.data.message.type)!0,s.getExtensionScreenId();else if(e.data.message&&"ZOHOCLIQ-SCEEN-SOURCE-ID"===e.data.message.type){var n=e.data.message.data;d.constraints.SCREEN_SHARE.video.mandatory.chromeMediaSourceId=n,mediaApi=s.getUserMedia(),navigator.mediaDevices.getUserMedia(d.constraints.SCREEN_SHARE).then(function(e){s.addLocalStream(e,"SCREEN_SHARE",i)}).catch(function(e){s.mediafailure(e)})}},getExtensionScreenId:function(){MediaConnection.sendPostMessageToExtn("zoho_cliq_get_screen_sourceId")},checkMediaPermission:function(e,n){var t=e;if(i=n,mediaApi=s.getUserMedia(),window.webkitRTCPeerConnection?window.RTCPeerConnection=webkitRTCPeerConnection:window.mozRTCPeerConnection&&(window.RTCPeerConnection=mozRTCPeerConnection),window.$Temp&&"AUDIO"==e&&(r=setTimeout(function(){$(window.parent.document).find("body").append($Temp.getMediaSetting(avimpl.getCurrentBrowerName())),clearTimeout(r)},1500)),e!=d.screenshare.toUpperCase()||void 0!==navigator.mediaDevices.getDisplayMedia)return mediaApi||e==d.screenshare.toUpperCase()?e==d.screenshare.toUpperCase()&&void 0!==navigator.mediaDevices.getDisplayMedia?(null!=typeof navigator.mediaDevices.getDisplayMedia?navigator.mediaDevices.getDisplayMedia(d.constraints[e]).then(function(e){s.addLocalStream(e,t,n)}).catch(function(e){s.mediafailure(e,!0,t)}):navigator.mediaDevices.getUserMedia(d.constraints[e]).then(function(e){s.addLocalStream(e,t,n)}).catch(function(e){s.mediafailure(e,!0,t)}),!0):void mediaApi.call(navigator,d.constraints[e],function(e){s.addLocalStream(e,t,n)},function(e){s.mediafailure(e,!0,t)}):(navigator.mediaDevices.getUserMedia(d.constraints[e]).then(function(e){s.addLocalStream(e,t,n)}).catch(function(e){mediafailure(e,!0,t)}),!1);s.checkScreenExtensionNeeded(e)},addLocalStream:function(e,n,t){clearTimeout(r),"AUDIO"==n?a=e:"SCREEN_SHARE"==n?(o=e).getVideoTracks()[0].onended=function(){MediaConnection.endConnection("screen_share")}:"VIDEO"==n&&(c=e),window.$Temp&&avimpl.closeViewMediaPermission(),"SCREEN_SHARE"==n&&ZSIQMedia.isAlreadyShared()?s.closeLocalStream("screen_share"):MediaConnection.initiateConnection(n,t)},mediafailure:function(e,n,t){switch(window.$Temp&&"AUDIO"==t&&(clearTimeout(r),avimpl.closeViewMediaPermission()),e.name){case"NotFoundError":case"DevicesNotFoundError":message=LSResource.getRealValue("av.info.microphone.notavailable");break;case"SourceUnavailableError":case"PermissionDeniedError":case"SecurityError":case"NotAllowedError":default:message=LSResource.getRealValue("av.info.microphone.blocked")}"NotAllowedError"==e.name&&window.$Temp&&"AUDIO"==t&&$(window.parent.document).find("body").append($Temp.getAskMediaPermission(avimpl.getCurrentBrowerName())),0==n&&"AUDIO"==t&&(LSDebugger.postDebugInfo("Audio Call reject by - peerconnection chatid "+i,null,null,!0),avimpl.rejectCallInvite(i,null)),window.$Temp&&n&&"AUDIO"==t&&avimpl.clear(),"AUDIO"==t&&avimpl.checkMediaPermission(message,i),"SCREEN_SHARE"==t&&ZSIQMedia.isInvite()&&ZSIQMedia.screenShareReject(),LSDebugger.postDebugInfo("Audio Call - Inside Filure media permission | PeerConnection ",null,null,!0)},closeLocalStream:function(e){"audio"==e?(a&&s.closeTracksInStream(a),o&&s.closeTracksInStream(o)):"screen_share"==e&&o&&s.closeTracksInStream(o)},closeTracksInStream:function(e){var n=e.getTracks();for(var t in n)n[t].stop()}},d={incoming:1,outgoing:2,connected:3,reconnect:4,onhold:5,accepted:6,agent:"agent",visitor:"visitor",screenshare:"screen_share",sdpConstraints:{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!1}},constraints:{AUDIO:{audio:!0,video:!1},VIDEO:{audio:!0,video:!0},SCREEN_SHARE:s.getScreenShareConstrains(),SCREEN_VIEW:{audio:!0,video:!1}}},t=function(e,n){this.chatid=e.chatid;var t=JSON.parse(e.credentials),i=new l(e.chatid,e.id,e.type,n,t.user_name,t.servers,t.token);return"AUDIO"==i._type&&(i._localStream=a),MediaConnection.addNewPeerConnection(i.referenceId,i),i},l=function(e,n,t,i,a,o,c){this.referenceId=e,this._connectionId=Math.floor(1e9*Math.random()),this._mediaId=n,this._type=t.toUpperCase(),this._localSdp=null,this._remoteSdp=null,this._isUpStream=i,this._localStream=null,this._isReconnecting=!1,this._callstatus=null,this._localIceCandidates=null,this._remoteIceCandidates=null,this._credential=c,this._userName=a,this._turnServer=o,this._mediaApi=null,this._browser=null,this._remoteCandidatePushed=!1,this._connection=null,this._reconnectInterval=null};return l.prototype={_getConfiguration:function(){var e=this._turnServer.split(","),n=this._userName,t=this._credential,i=[];return e.forEach(function(e){i.push({urls:e,username:n,credential:t})}),{iceServers:i}},_requestStream:function(e){if(this._isReconnecting)this._setRemoteDescription(e);else{this._mediaApi=s.getUserMedia();var n=this;if(n.mediaObj=e,window.webkitRTCPeerConnection?(this._browser="Chrome",window.RTCPeerConnection=webkitRTCPeerConnection):window.mozRTCPeerConnection&&(avaction.callObj.hostbrowser="Firefox",window.RTCPeerConnection=mozRTCPeerConnection),window.$Temp&&"AUDIO"==this._type&&(r=setTimeout(function(){$(window.parent.document).find("body").append($Temp.getMediaSetting(avimpl.getCurrentBrowerName())),clearTimeout(r)},1500)),!this._mediaApi&&this._type!=d.screenshare.toUpperCase())return navigator.mediaDevices.getUserMedia(d.constraints[this._type]).then(function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n),n._isUpStream||(n.initRTCConn(!1),n._setRemoteDescription(n.mediaObj))}).catch(function(e){s.mediafailure(e,n._isUpStream,n._type)}),!1;this._type!=d.screenshare.toUpperCase()?this._mediaApi.call(navigator,d.constraints[this._type],function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n),n._isUpStream||(n.initRTCConn(!1),n._setRemoteDescription(n.mediaObj))},function(e){s.mediafailure(e,n._isUpStream,n._type)}):n._isUpStream?null!=typeof navigator.mediaDevices.getDisplayMedia?navigator.mediaDevices.getDisplayMedia(d.constraints[this._type]).then(function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n)}).catch(function(e){s.mediafailure(e,n._isUpStream,n._type)}):navigator.mediaDevices.getUserMedia(d.constraints[this._type]).then(function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n)}).catch(function(e){s.mediafailure(e,n._isUpStream,n._type)}):(MediaConnection.addNewPeerConnection(n.referenceId,n),n.initRTCConn(!1),n._setRemoteDescription(n.mediaObj))}},initRTCConn:function(e){window.$Temp&&"AUDIO"==this._type&&(clearTimeout(r),avimpl.closeViewMediaPermission()),this._isUpStream?e||("AUDIO"==this._type?this._localStream=a:"SCREEN_SHARE"==this._type?this._localStream=o:"VIDEO"==this._type&&(this._localStream=c),this._connection=new RTCPeerConnection(this._getConfiguration()),MediaConnection.replacePeerConnection(this.referenceId,this),this._createOffer(!1)):this._connection=new RTCPeerConnection(this._getConfiguration()),"AUDIO"==this._type&&avimpl.addAudioElemts(this._localStream,this._type),this._getRemoteStream(this)},_createOffer:function(e){e&&(d.sdpConstraints.iceRestart=!0);var n=this._connection,t=this;e||(t._streamData=t._localStream.getTracks().forEach(function(e){"function"==typeof t._connection.addTrack?t._connection.addTrack(e,t._localStream):t._connection.addStream(t._localStream)})),n.createOffer(d.sdpConstraints).then(function(e){t._localSdp=e,t._connection.setLocalDescription(e),MediaConnection.replacePeerConnection(t.referenceId,t),MediaConnection.sendOffer(e,t._type),t._createIceCandidate(),t._connection.onicecandidate=function(e){t._localIceCandidates.push(e),MediaConnection.sendCandidate(e,t._type)},t._chekConnectionStatus(t)})},_createIceCandidate:function(){var n=this;n._localIceCandidates=[],n._connection.onicecandidate=function(e){n._localIceCandidates.push(e),MediaConnection.sendCandidate(e,n._type)}},_setRemoteDescription:function(e){var n=e.session;this._remoteSdp=n;var t=this;t._isUpStream||"AUDIO"!=t._type||(t._streamData?t._localStream.getTracks().forEach(function(e){t._streamData.replaceTrack(e)}):t._localStream.getTracks().forEach(function(e){"function"==typeof t._connection.addTrack?t._streamData=t._connection.addTrack(e,t._localStream):t._connection.addStream(t._localStream)})),t._connection.setRemoteDescription(new RTCSessionDescription(JSON.parse(n))),t._reconnectInterval&&(clearTimeout(t._reconnectInterval),t._reconnectInterval=null),t._isUpStream||t._connection.createAnswer(d.sdpConstraints).then(function(e){t._localSdp=e,t._connection.setLocalDescription(new RTCSessionDescription(e)),MediaConnection.replacePeerConnection(t.referenceId,t),MediaConnection.sendAnswer(e,t._type),t._createIceCandidate(),t._chekConnectionStatus(t),t._remoteCandidatePushed||t._pushIceCandidate()}),t._remoteCandidatePushed||t._pushIceCandidate()},_pushIceCandidate:function(){if(this._remoteIceCandidates&&0
    '+r("screenshare.request.desc",s()?$Support.EmbedObj.attendername:avimpl.getVisitorName())+'
    '+r("common.share")+''+r("common.decline")+"
    ",i=d();i.append(n),i.find("#zsiqconfirmss").on("click",function(){I(),y()}),i.find("#zsiqdecliness").on("click",M),i.find(".zsiq_popup").find(".siqico-close").on("click",M)}},y=function(){d().find(".zsiq_popup").remove()},M=function(){MediaConnection.terminateConnection(c,"reject"),v("screen_share"),a=!1},z=function(){MediaConnection.endConnection(c),d().find(".zsiq_video_main").remove(),avimpl.showCallDiv()},I=function(e){if(o)$UI.updateStatus(r("screenshare.requested.errormsg"),5e3,!0);else{var n=s()?$EmbedManger.getChatID():t.audio.chatid;PeerConnection.checkMediaPermission(c.toUpperCase(),n),e&&e.parent().hide()}},w=function(n,i){setTimeout(function(){var e=document.createElement("IMG");e.src=getStaticURL("/salesiq/images/spacer_5Wgj_nuZq1_wS_S4I4YFafauD4gqbOBXrZwzKtiQFPXWh21kmvBkUfQl6-vN8h9z_.gif")+"?nocache="+(new Date).getTime(),e.onload=function(){MediaConnection.initReconnect(n,i)},e.onerror=function(){w(n,i)}},2e3),e||(e=setTimeout(function(){avimpl.stopOngoingCall()},3e4)),avimpl.showReconnect()};return{init:function(e,n){PeerConnection.checkMediaPermission(e.toUpperCase(),n)},handleMediaUI:function(e){var n={credential:function(e){},call_credential:function(e){l(e.type,e.chatid,e.id)},answer:function(e){},call_answer:function(e){},reject:u,call_reject:u,offer:p,call_offer:p,invite:g,call_initiate:S,accept:m,call_accept:m,end:h,call_end:h,cancel:f,call_cancel:f,miss:C,call_miss:C,call_invite:g},i=e.msg.cbtype||e.msg.operation;n[i]&&n[i](e.msg.media)},handleMediaErrorCallBack:function(e){},endCall:function(){t.screen_share&&z()},endScreenShare:z,acceptScreenShare:function(){MediaConnection.acceptCallInvite(c),ZSIQVideo.init()},getCurrentMedia:function(e){return t[e]},requestScreenShare:function(e){e&&e.parent().hide(),o?$UI.updateStatus(r("screenshare.requested.errormsg"),5e3,!0):(MediaConnection.callReqInvite(c),o=!0)},shareMyScreen:I,setCurrentMedia:l,isEmbed:s,getBody:d,checkNetwork:w,clearNetworkTimer:function(){clearTimeout(e),e=0},isScreenShareAllowed:function(){var e=window.navigator.userAgent;if(-1!=e.indexOf("MSIE ")||-1!=e.indexOf("Safari")&&-1==e.indexOf("Chrome"))return!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10|IEMobile|Opera Mini/i.test(e))return!1;try{if(!s()&&/Apple Safari|Microsoft Edge|Microsoft Internet Explorer/i.test(avimpl.details[Visitors.getCUIDFromCHID(ZSIQMedia.getCurrentMedia("audio").chatid)].BROWSER))return!1}catch(e){}return CommonUtil.isScreenSharingAllowed()},handleEndConnection:function(e){v(e),e==c&&avimpl.changeScreenShareIcon()},showVideoIcons:function(){clearTimeout(n);var e=d().find(".zsiq_video_main");e.length&&(e.removeClass("zsiq_showcntl").addClass("zsiq_showcntl"),n=setTimeout(function(){e.removeClass("zsiq_showcntl")},1500))},toggleMute:function(){var e=t[i];MediaConnection.toggleMute(e.chatid,e.connectionid)},clearUI:y,isScreenShareRequested:function(){return o},screenShareReject:M,isAlreadyShared:function(){return t.screen_share&&!a},isInvite:function(){return a},isOnbeforeUnload:function(){return!!t[c]}}}();var ZSIQMedia=function(){var t={},e=0,n=0,i="audio",c="screen_share",o=!1,a=!1,r=function(e,n){return n=n||"",LSResource.getRealValue(e,n)},s=function(){try{if($Support.getChatID())return!0}catch(e){return!1}},d=function(){return s()?$(parent.document.body):$("body")},l=function(e,n,i){t[e]={chatid:n,connectionid:i}},u=function(e){e.type==i&&("function"==typeof avimpl.showRejectedBanner&&avimpl.showRejectedBanner(e),"function"==typeof avimpl.handleUserBusy&&avimpl.handleUserBusy()),o=!1},p=function(e){e.type==c&&avimpl.toggleScreenShareLogo(),s()&&e.type==c&&avimpl.setAvScreenShareId(e.id)},f=function(e){avimpl.clear(e.chatid)},m=function(e){l(e.type,e.chatid,e.id),e.type==c&&avimpl.toggleScreenShareLogo(),a=o=!1,s()&&e.type==c&&avimpl.setAvScreenShareId(e.id)},h=function(e){MediaConnection.closePeerConnection(e.chatid,e.id),MediaConnection.clearPeerConnectionObj(e.chatid,e.id),e.type==c?_():e.type==i&&(avimpl.endCall(),MediaConnection.clearAvMediaObj(),_(),v("screen_share")),v(e.type)},v=function(e){t[e]="",o=!1,y()},_=function(){d().find(".zsiq_video_main").remove(),avimpl.showCallDiv()},C=function(e){avimpl.clear(e.chatid)},S=function(e){e.type==c&&(avimpl.active=!0,e.mediaInvitation?g(e):(l(e.type,e.chatid,e.id),MediaConnection.acceptCallInvite(c))),e.type==i&&(avimpl.active=!0,l(e.type,e.chatid,e.id)),s()&&l(e.type,e.chatid,e.id)},g=function(e){e.type==c&&(l(e.type,e.chatid,e.id),q(e),a=!0)},q=function(e){if(!d().find(".zsiq_popup").length){var n='
    '+r("common.screenshare")+'
    '+r("screenshare.request.desc",s()?$Support.EmbedObj.attendername:avimpl.getVisitorName())+'
    '+r("common.share")+''+r("common.decline")+"
    ",i=d();i.append(n),i.find("#zsiqconfirmss").on("click",function(){I(),y()}),i.find("#zsiqdecliness").on("click",M),i.find(".zsiq_popup").find(".siqico-close").on("click",M)}},y=function(){d().find(".zsiq_popup").remove()},M=function(){MediaConnection.terminateConnection(c,"reject"),v("screen_share"),a=!1},z=function(){MediaConnection.endConnection(c),d().find(".zsiq_video_main").remove(),avimpl.showCallDiv()},I=function(e){if(o)$UI.updateStatus(r("screenshare.requested.errormsg"),5e3,!0);else{var n=s()?$EmbedManger.getChatID():t.audio.chatid;PeerConnection.checkMediaPermission(c.toUpperCase(),n),e&&e.parent().hide()}},w=function(n,i){setTimeout(function(){var e=document.createElement("IMG");e.src=getStaticURL("/salesiq/images/spacer_5Wgj_nuZq1_wS_S4I4YFafauD4gqbOBXrZwzKtiQFPXWh21kmvBkUfQl6-vN8h9z_.gif")+"?nocache="+(new Date).getTime(),e.onload=function(){MediaConnection.initReconnect(n,i)},e.onerror=function(){w(n,i)}},2e3),e||(e=setTimeout(function(){avimpl.stopOngoingCall()},3e4)),avimpl.showReconnect()};return{init:function(e,n){PeerConnection.checkMediaPermission(e.toUpperCase(),n)},handleMediaUI:function(e){var n={credential:function(e){},call_credential:function(e){l(e.type,e.chatid,e.id)},answer:function(e){},call_answer:function(e){},reject:u,call_reject:u,offer:p,call_offer:p,invite:g,call_initiate:S,accept:m,call_accept:m,end:h,call_end:h,cancel:f,call_cancel:f,miss:C,call_miss:C,call_invite:g},i=e.msg.cbtype||e.msg.operation;n[i]&&n[i](e.msg.media)},handleMediaErrorCallBack:function(e){},endCall:function(){t.screen_share&&z()},endScreenShare:z,acceptScreenShare:function(){MediaConnection.acceptCallInvite(c),ZSIQVideo.init()},getCurrentMedia:function(e){return t[e]},requestScreenShare:function(e){e&&e.parent().hide(),o?$UI.updateStatus(r("screenshare.requested.errormsg"),5e3,!0):(MediaConnection.callReqInvite(c),o=!0)},shareMyScreen:I,setCurrentMedia:l,isEmbed:s,getBody:d,checkNetwork:w,clearNetworkTimer:function(){clearTimeout(e),e=0},isScreenShareAllowed:function(){var e=window.navigator.userAgent;if(-1!=e.indexOf("MSIE ")||-1!=e.indexOf("Safari")&&-1==e.indexOf("Chrome"))return!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10|IEMobile|Opera Mini/i.test(e))return!1;try{if(!s()&&/Apple Safari|Microsoft Edge|Microsoft Internet Explorer/i.test(avimpl.details[Visitors.getCUIDFromCHID(ZSIQMedia.getCurrentMedia("audio").chatid)].BROWSER))return!1}catch(e){}return CommonUtil.isScreenSharingAllowed()},handleEndConnection:function(e){v(e),e==c&&avimpl.changeScreenShareIcon()},showVideoIcons:function(){clearTimeout(n);var e=d().find(".zsiq_video_main");e.length&&(e.removeClass("zsiq_showcntl").addClass("zsiq_showcntl"),n=setTimeout(function(){e.removeClass("zsiq_showcntl")},1500))},toggleMute:function(){var e=t[i];MediaConnection.toggleMute(e.chatid,e.connectionid)},clearUI:y,isScreenShareRequested:function(){return o},screenShareReject:M,isAlreadyShared:function(){return t.screen_share&&!a},isInvite:function(){return a},isOnbeforeUnload:function(){return!!t[c]}}}();var ZSIQAudio=function(){var t=function(e,i){this.data=e,this.fileObj=e.file,this.playerDiv="",this.fileName=getEscapedText(e.file.fName||e.file.name),this.fileType=e.msg.content,this.fileSize=getMemSize(e.file.size),this.embedObj=$Support.EmbedObj,this.msgId=e.file.msgid||"",this.fileId=e.msgId||e.file.fileId||Date.now(),this.udDownloadParam=a(e,i),this.fileURL=s(e,i,this.udDownloadParam),this.fileComment=$.trim(e.file.comment)?''+getEscapedText(e.file.comment)+(e.is_edited?' ('+LSResource.getRealValue("common.edited")+")":"")+"":"",this.isFileComment=this.fileComment?" imgcmt":"",this.downLoadURL=n(e,i,this.udDownloadParam)},s=function(e,i,t){if(e.file.purl)return e.file.purl;var s=$Support.getParent().$ZSIQWidget.getEmbedObject().pinfo.soid,a=ZSIQConversationManager.getcurrchatwinobj(i).visitorID,n=$Support.EmbedObj.vwmsid;if($Support.getParent().$ZSIQChat.getWidgetData().commondata.UDServerRevamp&&t)return $Support.getParent().UDHandler.getUDDownLoadLink(t);var o={"x-siq-filetype":e.msg.content,"x-siq-cuid":a,"x-siq-pfname":e.file.fName||e.file.name,"x-siq-url":e.file.url,mode:"view",file_size:e.file.size,"x-siq-soid":s,"x-siq-downloadtype":"conversation","x-siq-userid":n};return $Support.getParent().$ZSIQChat.getWidgetData().commondata.udEventBasedURL?$Support.getParent().UDHandler.getDownLoadLink(Date.now(),"conversation",o):$Support.getParent().$ZSIQChat.getWidgetData().commondata.downloadserver+"/public?x-service=LiveDesk&event-id="+Date.now()+"&x-cli-msg="+encodeURIComponent(JSON.stringify(o))},a=function(e,i){var t=$Support.getParent();return t&&t.$ZSIQChat.getWidgetData().commondata.UDServerRevamp?{"x-siq-soid":$Support.EmbedObj.soid,"x-siq-module":"conversation","x-siq-type":"visitor_chat","x-siq-parentid":ZSIQConversationManager.getcurrchatwinobj(i).visitorID,"x-siq-resourceid":e.file.url,"x-siq-filetype":e.msg.content,"x-siq-filename":e.file.fName||e.file.name,"x-siq-lsid":$Support.EmbedObj.livelsid,"x-siq-wmschatid":i||e.file.chid}:null},n=function(e,i,t){var s=e.convvisitorid,a=e.file,n=getEscapedText(e.file.fName||e.file.name),o=$Support.EmbedObj,r=$Support.getParent().$ZSIQChat.getWidgetData(),d=i||a.chatid;if(r.usedownloadserver&&r.commondata.UDServerRevamp&&t)return t["x-siq-mode"]="download",$Support.getParent().UDHandler.getUDDownLoadLink(t);var l=$Support.getAjaxURL("download",".ls");return l+="?fsize="+a.size+"&url="+escape(a.url)+"&fName="+encodeURIComponent(n),l+=s?"&visitorid="+s+"&chid="+e.convchid+"&isconversation=true":o?"&chid="+d+"&wmsid="+o.vwmsid:"&chid="+d,a.purl?a.purl:l};return t.prototype={getHTML:function(){return function(){return['
    ',''+this.fileName+"",'
    ','','
    ','','','',"",'
    ','00:00','00:00',"
    ","
    ",'','
    ","
    "+Smiley.replace(this.fileComment)].join("")}.call(this)},init:function(){this.assignDOMVariables(),this.setEvents(),this.isPaused=!0},assignDOMVariables:function(){var e=$('[id="'+this.fileId+'"]');this.$elem=e,this.slider=this.$elem.find(".range-path"),this.player=e.find("audio")[0],this.seekCircle=e.find("#player_thumb")},setEvents:function(){this.$elem.find(".siq-voice-control").on("click",this.togglePlayBack.bind(this)),this.slider.on("mousedown",this.seekMouseDown.bind(this));var e=$(this.player);e.on("timeupdate",this.timerUpdate.bind(this)),e.on("durationchange",this.handleDurationChange.bind(this)),e.on("ended",this.pausePlayer.bind(this))},togglePlayBack:function(){window.currentAudioElement&&this.isPaused&&window.currentAudioElement.pause(),window.currentRecorder&&window.currentRecorder.isRecording()&&window.currentRecorder.stopRecorder(),this.player[this.isPaused?"play":"pause"](),this.isPaused=!this.isPaused,!this.isPaused&&(window.currentAudioElement=this),this.toggleClasses()},pausePlayer:function(){this.isPaused=!0,this.toggleClasses()},pause:function(){this.isPaused||(this.isPaused=!0,this.player.pause(),this.toggleClasses())},toggleClasses:function(){var e=this.$elem.find(".siq-voice-control");e.toggleClass("sqico-play").toggleClass("sqico-pause"),e.hasClass("sqico-play")?e.attr("title",LSResource.getRealValue("av.info.play")):e.attr("title",LSResource.getRealValue("av.info.pause"))},getOffsetX:function(e){var i=e.target,t=e.offsetX,s=this.seekCircle[0];if(s&&s.contains(i)&&(t+=i.offsetLeft),$Widget.isRtl()){var a=this.slider[0].clientWidth;t=a<(t=a-(t+=i.offsetLeft))?a:t<0?0:t}return t},seekMouseDown:function(e){e.preventDefault();var i=this.getOffsetX(e);this.setSeekPercentage(i),this.seekMouseMove=this.seekMouseMove.bind(this),this.mouseUp=this.mouseUp.bind(this),this.slider.on("mousemove",this.seekMouseMove),this.$elem&&this.$elem.on("mouseup",this.mouseUp)},mouseUp:function(e){e.preventDefault(),this.slider.off("mousemove",this.seekMouseMove),this.$elem&&this.$elem.off("mouseup",this.mouseUp)},seekMouseMove:function(e){e.preventDefault();var i=this.getOffsetX(e);this.setSeekPercentage(i)},setSeekPercentage:function(e){var i=this.getSliderWidth(e,this.slider[0]);this.paintSeekBarWidth(i);var t=this.player.duration;t&&(this.player.currentTime=t*(i/100),this.timerUpdate())},getSliderWidth:function(e,i){var t=e/i.clientWidth*100;return 100