diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..27b5d14 Binary files /dev/null and b/.DS_Store differ diff --git a/OpenUniversity.png b/OpenUniversity.png new file mode 100644 index 0000000..81b9033 Binary files /dev/null and b/OpenUniversity.png differ diff --git a/ProtonHappy.png b/ProtonHappy.png new file mode 100644 index 0000000..a8fb2d7 Binary files /dev/null and b/ProtonHappy.png differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/0 b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/0 new file mode 100644 index 0000000..e69de29 diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1028314697215281 b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1028314697215281 new file mode 100644 index 0000000..bdfb11b --- /dev/null +++ b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1028314697215281 @@ -0,0 +1,32 @@ +/** +* Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +* +* You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +* copy, modify, and distribute this software in source code or binary form for use +* in connection with the web services and APIs provided by Facebook. +* +* As with any software that integrates with the Facebook platform, your use of +* this software is subject to the Facebook Platform Policy +* [http://developers.facebook.com/policy/]. This copyright notice shall be +* included in all copies or substantial portions of the software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){var c=[],d=!0,e=!1,f=undefined;try{for(var a=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),g;!(d=(g=a.next()).done);d=!0){c.push(g.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&a["return"]&&a["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},i=function(){function a(a,b){for(var c=0;c1&&arguments[1]!==undefined?arguments[1]:{},e=null,f=d.caseInsensitive,g=d.lowercase,h=d.options,i=d.truncate,j=d.uppercase;if(a!=null&&h!=null&&Array.isArray(h)&&h.length)if(typeof a==="string"&&b(a))e=a;else{var k=c(String(a));g&&(k=k.toLowerCase());j&&(k=k.toUpperCase());i&&(k=k.substring(0,i));if(f){var l=k.toLowerCase();for(var m=0;m-1?k:null}return{normalizedValue:e}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPhoneNumberType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=/^0*/,d=/[\-@#<>\'\",; ]|\(|\)|\+|[a-z]/gi,e=/^1\(?\d{3}\)?\d{7}$/,g=/^47\d{8}$/,h=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function i(a){a=a.replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return e.test(a);return a.startsWith("47")?g.test(a):h.test(a)}function j(a){var e=null;if(a!=null)if(b(a))e=a;else{a=String(a);i(a)&&(e=a.replace(d,"").replace(c,""))}return{normalizedValue:e}}k.exports=j})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPostalCodeType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.trim;function d(a){var d=null;if(a!=null&&typeof a==="string")if(b(a))d=a;else{a=c(String(a).toLowerCase().split("-",1)[0]);a.length>=2&&(d=a)}return{normalizedValue:d}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsStringType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.strip;function d(a){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},e=null;if(a!=null)if(b(a)&&typeof a==="string")d.rejectHashed||(e=a);else{var f=String(a);d.strip!=null&&(f=c(f,d.strip));d.lowercase?f=f.toLowerCase():d.uppercase&&(f=f.toUpperCase());d.truncate&&(f=f.substring(0,d.truncate));d.test?e=new RegExp(d.test).test(f)?f:null:e=f}return{normalizedValue:e}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsConfigStore",function(){return function(f,g,h,j){var e={exports:{}};e.exports;(function(){"use strict";var a=Object.assign||function(a){for(var b=1;b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:d,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsValidationUtils",function(){return function(f,g,h,i){var j={exports:{}};j.exports;(function(){"use strict";var a=/^[a-f0-9]{64}$/i,b=/^\s+|\s+$/g,c=/\s+/g,d=/[!\"#\$%&\'\(\)\*\+,\-\.\/:;<=>\?@ \[\\\]\^_`\{\|\}~\s]+/g,e=/\W+/g,f=/^1\(?\d{3}\)?\d{7}$/,g=/^47\d{8}$/,h=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function i(a){return typeof a==="string"?a.replace(b,""):""}function k(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"whitespace_only",f="";if(typeof a==="string")switch(b){case"whitespace_only":f=a.replace(c,"");break;case"whitespace_and_punctuation":f=a.replace(d,"");break;case"all_non_latin_alpha_numeric":f=a.replace(e,"");break}return f}function l(b){return typeof b==="string"&&a.test(b)}function m(a){a=String(a).replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return f.test(a);return a.startsWith("47")?g.test(a):h.test(a)}j.exports={looksLikeHashed:l,strip:k,trim:i,isInternationalPhoneNumber:m}})();return j.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,g,j,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){k(this,e),this._params=[],this._piiTranslator=a}i(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b0)for(var i=0;i=0&&c.item(a)!==this);return a>-1}function F(a){if(!a||a.disabled||a===i.body)return!1;if(a.innerText&&a.innerText.length>q)return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return a!=undefined&&a!=null&&a>r?!1:!0}function G(a){if(!a||a.disabled||a===i.body||!K(a))return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return typeof a!=="number"||as}function H(a,b,c){if(!a||a.disabled||a===i.body)return null;else if(c?!G(a):!F(a))return null;else if(E(a,c?y:w))return D(a,b)?null:a;else return H(a.parentElement,b,c)}function I(a){if(a.nodeName==="BUTTON"){var b=a;b=b.innerText||b.value||""}else b=a.value||a.innerText||"";return b.substr(0,q)}function J(a){var b="";if(a.tagName==="IMG")return a.getAttribute("src")||"";a=a.getElementsByTagName("img");if(a.length!=0){a=a.item(0);a=a.getAttribute("src");b=a||""}return b}function K(a){return!!I(a)||!!J(a)}function L(a,b,c){var d=a.name,e=a.id,f=a.tagName,g=a.value,h=a.innerText;f=f.toLowerCase();var i=a.classList&&a.classList.value?String(a.classList.value):"",j=a.querySelectorAll(c?y:w).length,k=null;a.tagName==="A"&&a.href?k=a.href:b&&b.action&&(k=b.action);typeof k!=="string"&&(k="");b=null;c&&(b=J(a));return{name:d,id:e,tag:f,classList:i,value:g,innerText:h,imageUrl:b,numChildButtons:j,destination:k}}function M(a,b){var c={},d={};c.name=a.name;c.id=a.id;c.tag=a.tagName.toLowerCase();Object.prototype.hasOwnProperty.call(a,"placeholder")&&(c.placeholder=a.placeholder);if(c.tag=="input"){c.inputType=a.getAttribute("type");if(b){b=m(c,a);b!=null&&(d=b)}}Object.prototype.hasOwnProperty.call(a,"value")&&a.value===""&&(c.valueMeaning="empty");return[c,d]}function N(b,c,d){var e=[],f={};if(!c)return[e,f];c=c.querySelectorAll(v);var h={};for(var i=0;iu)continue;if(j==b)continue;k=M(j,d);j=g(k,2);k=j[0];j=j[1];e.push(k);f=a({},f,j)}return[e,f]}function O(a){var b=a.form;if(b&&o(b,HTMLElement))return b;if(E(a,x))return null;b=a;while(b.nodeName!=="FORM"){a=b.parentElement;if(a&&o(a,HTMLElement))b=a;else return null}return b}function P(){var a=i.querySelector("title");a=p(a&&a.text,t);return{title:a}}function Q(a){z.push(a)}function R(a,b,c,d){c=N(a,b,c);c=g(c,2);var e=c[0];c=c[1];var f=P(),h={buttonText:l(I(a)).safe,buttonFeatures:L(a,b,d),formFeatures:e,pageFeatures:f};n(z,function(a){h[a.property]=a.method()});return[h,c]}function S(a){a=b.getInferredEventsConfig(a);a=!!a&&a.buttonSelector==="extended";return a}function T(a){return function(c){var d=c.target;if(d&&o(d,HTMLElement)){var e=H(d,c.timeStamp,!1),f=H(d,c.timeStamp,!0);if(e||f){d=null;c=null;var h=a.getOptedInPixels("InferredEvents"),i=a.getOptedInPixels("AutomaticMatching");n(h,function(h){if(S(h.id)&&f){var j=R(f,O(f),i.indexOf(h)>=0,!0);j=g(j,2);d=j[0];c=j[1]}else if(e){j=R(e,O(e),i.indexOf(h)>=0,!1);j=g(j,2);d=j[0];c=j[1]}else return;j=b.getAutomaticMatchingConfig(h.id);if(Object.keys(c).length>0&&j!=null){j=j.selectedMatchKeys;for(var k in c)j.indexOf(k)>=0&&(h.userData[k]=c[k])}a.trackSingleSystem("automatic",h,"SubscribedButtonClick",d)})}}}}e.exports=new c(function(a,b){a.once("fired",function(){var a=k(T(b));i.addEventListener?i.addEventListener("click",a,{capture:!0,passive:!0,once:!1}):h.attachEvent("onclick",a)})});e.exports.getForm=O;e.exports.getPayload=R;e.exports.addPayloadAnnotator=Q;e.exports.isSaneButton=F;e.exports.BUTTON_SELECTORS=w})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.inferredevents");f.registerPlugin&&f.registerPlugin("fbevents.plugins.inferredevents",e.exports);f.ensureModuleRegistered("fbevents.plugins.inferredevents",function(){return e.exports})})()})(window,document,location,history); +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){for(var c=0;c>>6&31,128|c&63):c<=65535?b+=String.fromCharCode(224|c>>>12&15,128|c>>>6&63,128|c&63):c<=2097151&&(b+=String.fromCharCode(240|c>>>18&7,128|c>>>12&63,128|c>>>6&63,128|c&63));return b};function b(a,b){return b>>>a|b<<32-a}function c(a,b,c){return a&b^~a&c}function d(a,b,c){return a&b^a&c^b&c}function f(a){return b(2,a)^b(13,a)^b(22,a)}function g(a){return b(6,a)^b(11,a)^b(25,a)}function h(a){return b(7,a)^b(18,a)^a>>>3}function i(a){return b(17,a)^b(19,a)^a>>>10}function j(a,b){return a[b&15]+=i(a[b+14&15])+a[b+9&15]+h(a[b+1&15])}var k=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),l=new Array(8),m=new Array(2),n=new Array(64),o=new Array(16),p="0123456789abcdef";function q(a,b){var c=(a&65535)+(b&65535);a=(a>>16)+(b>>16)+(c>>16);return a<<16|c&65535}function r(){m[0]=m[1]=0,l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225}function s(){var a,b,e,h,i,m,p,r,s,t;a=l[0];b=l[1];e=l[2];h=l[3];i=l[4];m=l[5];p=l[6];r=l[7];for(var u=0;u<16;u++)o[u]=n[(u<<2)+3]|n[(u<<2)+2]<<8|n[(u<<2)+1]<<16|n[u<<2]<<24;for(var u=0;u<64;u++)s=r+g(i)+c(i,m,p)+k[u],u<16?s+=o[u]:s+=j(o,u),t=f(a)+d(a,b,e),r=p,p=m,m=i,i=q(h,s),h=e,e=b,b=a,a=q(s,t);l[0]+=a;l[1]+=b;l[2]+=e;l[3]+=h;l[4]+=i;l[5]+=m;l[6]+=p;l[7]+=r}function t(a,b){var c,d,e=0;d=m[0]>>3&63;var f=b&63;(m[0]+=b<<3)>29;for(c=0;c+63>3&63;n[a++]=128;if(a<=56)for(var b=a;b<56;b++)n[b]=0;else{for(var b=a;b<64;b++)n[b]=0;s();for(var b=0;b<56;b++)n[b]=0}n[56]=m[1]>>>24&255;n[57]=m[1]>>>16&255;n[58]=m[1]>>>8&255;n[59]=m[1]&255;n[60]=m[0]>>>24&255;n[61]=m[0]>>>16&255;n[62]=m[0]>>>8&255;n[63]=m[0]&255;s()}function v(){var a=new String();for(var b=0;b<8;b++)for(var c=28;c>=0;c-=4)a+=p.charAt(l[b]>>>c&15);return a}function w(a){var b=0;for(var c=0;c<8;c++)for(var d=28;d>=0;d-=4)a[b++]=p.charCodeAt(l[c]>>>d&15)}function x(b,a){r();t(b,b.length);u();if(a)w(a);else return v()}function y(c,d,b){if(c===null||c===undefined)return null;d=typeof d=="undefined"?!0:d;d&&(c=a(c));return x(c,b)}e.exports=y})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsLogging",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsUtils"),b=a.isInstanceOf,c=a.sendPOST,d=f.getFbeventsModules("SignalsParamList"),h=!1;function i(){h=!0}var j=!0;function k(){j=!1}a="console";var l="warn",m=g[a]&&g[a][l]?g[a][l].bind(g[a]):function(){},n=!1;function o(){n=!0}function p(a){if(n)return;m("[Facebook Pixel] - "+a)}var q="Facebook Pixel Error",r=g.postMessage?g.postMessage.bind(g):function(){},s={};function t(a){switch(a.type){case"FBQ_NO_METHOD_NAME":return"You must provide an argument to fbq().";case"INVALID_FBQ_METHOD":var b=a.method;return"\"fbq('"+b+"', ...);\" is not a valid fbq command.";case"INVALID_PIXEL_ID":b=a.pixelID;return"Invalid PixelID: "+b+".";case"DUPLICATE_PIXEL_ID":b=a.pixelID;return"Duplicate Pixel ID: "+b+".";case"SET_METADATA_ON_UNINITIALIZED_PIXEL_ID":b=a.metadataValue;var c=a.pixelID;return"Trying to set argument "+b+" for uninitialized Pixel ID "+c+".";case"CONFLICTING_VERSIONS":return"Multiple pixels with conflicting versions were detected on this page.";case"MULTIPLE_PIXELS":return"Multiple pixels were detected on this page.";case"UNSUPPORTED_METADATA_ARGUMENT":b=a.metadata;return"Unsupported metadata argument: "+b+".";case"REQUIRED_PARAM_MISSING":c=a.param;b=a.eventName;return"Required parameter '"+c+"' is missing for event '"+b+"'.";case"INVALID_PARAM":c=a.param;b=a.eventName;return"Parameter '"+c+"' is invalid for event '"+b+"'.";case"NO_EVENT_NAME":return'Missing event name. Track events must be logged with an event name fbq("track", eventName)';case"NONSTANDARD_EVENT":c=a.eventName;return"You are sending a non-standard event '"+c+"'. The preferred way to send these events is using trackCustom. See 'https://developers.facebook.com/docs/ads-for-websites/pixel-events/#events' for more information.";case"NEGATIVE_EVENT_PARAM":b=a.param;c=a.eventName;return"Parameter '"+b+"' is negative for event '"+c+"'.";case"PII_INVALID_TYPE":b=a.key_type;c=a.key_val;return"An invalid "+b+" was specified for '"+c+"'. This data will not be sent with any events for this Pixel.";case"PII_UNHASHED_PII":b=a.key;return"The value for the '"+b+"' key appeared to be PII. This data will not be sent with any events for this Pixel.";case"INVALID_CONSENT_ACTION":c=a.action;return"\"fbq('"+c+"', ...);\" is not a valid fbq('consent', ...) action. Valid actions are 'await' and 'grant'.";case"INVALID_JSON_LD":b=a.jsonLd;return"Unable to parse JSON-LD tag. Malformed JSON found: '"+b+"'.";default:w(new Error("INVALID_USER_ERROR - "+a.type+" - "+JSON.stringify(a)));return"Invalid User Error."}}function u(a,e){try{var f=Math.random(),h=g.fbq&&g.fbq._releaseSegment?g.fbq._releaseSegment:"unknown";if(j&&f<.01||h==="canary"){f=new d(null);f.append("p","pixel");f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("e",a.toString());b(a,Error)&&(f.append("f",a.fileName),f.append("s",a.stackTrace||a.stack));f.append("ue",e?"1":"0");f.append("rs",h);c(f,"https://connect.facebook.net/log/error")}}catch(a){}}function v(a){var b=JSON.stringify(a);if(!Object.prototype.hasOwnProperty.call(s,b))s[b]=!0;else return;b=t(a);p(b);r({action:"FB_LOG",logType:q,logMessage:b},"*");u(new Error(b),!0)}function w(a){u(a,!1),h&&p(a.toString())}l={logError:w,logUserError:v,enableVerboseDebugLogging:i,disableAllLogging:o,disableSampling:k};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";function a(a){this.plugin=a;this.__fbEventsPlugin=1;return this}e.exports=a})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,j=!("addEventListener"in b);function k(a,b){return typeof b==="function"&&a instanceof b}function l(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function m(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var n=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function o(a,b,c){var d=j?"on"+b:b;b=j?a.attachEvent:a.addEventListener;var e=j?a.detachEvent:a.removeEventListener,f=function b(){e&&e.call(a,d,b,!1),c()};b&&b.call(a,d,f,!1)}var p=Object.prototype.hasOwnProperty,q=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length;function t(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":h(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)p.call(a,c)&&b.push(c);if(q)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}g(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}g(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b=0;d--){var e=a[d],f=e.getAttribute("itemtype");if(typeof f!=="string"||f==="")continue;var g={},i=e.querySelectorAll("[itemprop]");for(var j=0;j=0;g--)if(m[g].scope.contains(i)){m[g].schema.subscopes.push(f);break}else m.pop();m.length===0&&n.push(f);m.push({scope:i,schema:f})}return n}function u(){var a=[],c=h.querySelectorAll('script[type="application/ld+json"]');for(var d=0;d2&&arguments[2]!==undefined?arguments[2]:!1,e=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1,f=v(),h=x(),i=t(),k=d?u():[],l=c.getExperiments().get("logDataLayer"),m=l&&l.isInExperimentGroup,o=m?g.dataLayer||[]:[];if(i.length===0&&k.length===0&&j(f).length===0&&e>0){setTimeout(function(){return y(b,c,d,e-1)},n);return}else if(i.length>0||k.length>0||j(f).length>0||j(h).length>0||o.length&&o.length>0){var p={"Schema.org":i,OpenGraph:f,Meta:h,DataLayer:o};d&&(p=a({},p,{"JSON-LD":k}));c.trackSingleSystem("automatic",b,"Microdata",p)}}e.exports=new c(function(a,b){var c={};a.on("fired",function(a,d){var e=d.get("id");if(Object.prototype.hasOwnProperty.call(c,e))return;a=i(b.getOptedInPixels("Microdata"),function(a){return a.id===e});if(a){var f=i(b.getOptedInPixels("MicrodataJsonLd"),function(a){return a.id===e});c[e]=!0;setTimeout(function(){y(e,b,f)},500)}})})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.microdata");f.registerPlugin&&f.registerPlugin("fbevents.plugins.microdata",e.exports);f.ensureModuleRegistered("fbevents.plugins.microdata",function(){return e.exports})})()})(window,document,location,history); +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},h=function(){function a(a,b){for(var c=0;c1?c-1:0),e=1;e1?e-1:0),g=1;g1&&arguments[1]!==undefined?arguments[1]:0,e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(!e&&!j)return;try{var f=new d(null);f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("rs",i);f.append("e",event);f.append("p",b);c(f,"https://connect.facebook.net/log/fbevents_telemetry/")}catch(b){a.logError(b)}}function l(){k("COALESCE_INIT")}function m(a){k("COALESCE_COMPLETE",a)}function n(a){k("FBMQ_FORWARDED",a,!0)}e.exports={logStartBatch:l,logEndBatch:m,logMobileNativeForwarding:n}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,j=!("addEventListener"in b);function k(a,b){return typeof b==="function"&&a instanceof b}function l(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function m(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var n=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function o(a,b,c){var d=j?"on"+b:b;b=j?a.attachEvent:a.addEventListener;var e=j?a.detachEvent:a.removeEventListener,f=function b(){e&&e.call(a,d,b,!1),c()};b&&b.call(a,d,f,!1)}var p=Object.prototype.hasOwnProperty,q=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length;function t(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":g(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)p.call(a,c)&&b.push(c);if(q)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":g(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}h(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b-1;b=b.userAgent.match("CriOS");return!b&&a!==null&&a!==undefined&&c==="Google Inc."&&d===!1&&e===!1}function v(a,b,c,e,f){if(g.navigator&&g.navigator.sendBeacon){f=new l(f);q(f,a,b,c);e&&f.addRange(e);d(f,n.ENDPOINT)}}e.exports={CONFIG:n,sendEvent:t,sendBeaconPII:v,setUseBeacon:c}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEvents.plugins.iwlbootstrapper",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsPlugin"),b=f.getFbeventsModules("SignalsPixelEndpoint"),c=function(a,b,c){return"https://"+["www",c,"facebook","com"].filter(function(a){return a.length!==0}).join(".")+"/signals/iwl.js?pixel_id="+a+(b?"&js_debug=1":"")},d=/^https:\/\/.*\.facebook\.com$/i,i=/^https:\/\/www\.([A-Za-z0-9\.]+)\.facebook\.com\/tr$/,j=b.CONFIG.ENDPOINT!=="https://www.facebook.com/tr"&&i.test(b.CONFIG.ENDPOINT),k=j?i.exec(b.CONFIG.ENDPOINT)[1]:"",l="FB_IWL_BOOTSTRAPPER_STORAGE",m=g.sessionStorage?g.sessionStorage:{getItem:function(a){return null},setItem:function(a,b){},removeItem:function(a){}},n=!1;function o(){var a=m.getItem(l);if(!a)return;a=JSON.parse(a);var b=a.pixelID,d=a.graphToken,e=a.debug,f=a.permissionLevel,i=a.showFlow,o=a.gks;if(n||!b)return;n=!0;a=h.createElement("script");a.async=!0;a.onload=function(){g.FacebookIWL&&g.FacebookIWL.init&&(g.FacebookIWLSessionEnd=function(){m.removeItem(l),g.location.reload()},j&&g.FacebookIWL.set&&g.FacebookIWL.set("tier",k),g.FacebookIWL.init(b,d,f,i,o))};a.src=c(b,e,k);h.body&&h.body.appendChild(a)}function p(event){if(m.getItem(l)||!d.test(event.origin)||!(event.data&&event.data.msg_type==="FACEBOOK_IWL_BOOTSTRAP"))return;event.source.postMessage("FACEBOOK_IWL_BOOTSTRAP_ACK",event.origin);var a=event.data,b=a.pixelID,c=a.graphToken,e=a.debug,f=a.permissionLevel,g=a.showFlow;a=a.gks;m.setItem(l,JSON.stringify({pixelID:b,graphToken:c,debug:e,permissionLevel:f,showFlow:g,gks:a}));o()}e.exports=new a(function(a,b){if(m.getItem(l)){o();return}g.opener&&g.addEventListener("message",p)})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.iwlbootstrapper");f.registerPlugin&&f.registerPlugin("fbevents.plugins.iwlbootstrapper",e.exports);f.ensureModuleRegistered("fbevents.plugins.iwlbootstrapper",function(){return e.exports})})()})(window,document,location,history); +fbq.registerPlugin("1028314697215281", {__fbEventsPlugin: 1, plugin: function(fbq, instance, config) { fbq.loadPlugin("inferredevents"); +fbq.loadPlugin("identity"); +instance.optIn("1028314697215281", "InferredEvents", true); +fbq.loadPlugin("microdata"); +fbq.loadPlugin("identity"); +instance.optIn("1028314697215281", "Microdata", true); +fbq.loadPlugin("iwlbootstrapper"); +instance.optIn("1028314697215281", "IWLBootstrapper", true);instance.configLoaded("1028314697215281"); }}); \ No newline at end of file diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(1).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(1).jpg new file mode 100644 index 0000000..038569e Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(1).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(10).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(10).jpg new file mode 100644 index 0000000..3a023f0 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(10).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(11).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(11).jpg new file mode 100644 index 0000000..1500bb1 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(11).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(12).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(12).jpg new file mode 100644 index 0000000..b295d0c Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(12).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(13).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(13).jpg new file mode 100644 index 0000000..5f419dc Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(13).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(14).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(14).jpg new file mode 100644 index 0000000..c67cf08 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(14).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(15).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(15).jpg new file mode 100644 index 0000000..c4755ba Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(15).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(16).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(16).jpg new file mode 100644 index 0000000..d77486f Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(16).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(17).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(17).jpg new file mode 100644 index 0000000..8014a98 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(17).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(18).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(18).jpg new file mode 100644 index 0000000..aaa35a3 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(18).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(19).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(19).jpg new file mode 100644 index 0000000..28be1e2 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(19).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(2).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(2).jpg new file mode 100644 index 0000000..f5e3c7a Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(2).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(3).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(3).jpg new file mode 100644 index 0000000..2a4ffb1 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(3).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(4).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(4).jpg new file mode 100644 index 0000000..d614a0c Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(4).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(5).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(5).jpg new file mode 100644 index 0000000..9e992a7 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(5).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(6).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(6).jpg new file mode 100644 index 0000000..1004610 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(6).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(7).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(7).jpg new file mode 100644 index 0000000..09eb244 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(7).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(8).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(8).jpg new file mode 100644 index 0000000..df73934 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(8).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(9).jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(9).jpg new file mode 100644 index 0000000..6692baf Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1(9).jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1.jpg b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1.jpg new file mode 100644 index 0000000..840c459 Binary files /dev/null and b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/1980878_1.jpg differ diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/34KT2OXNXJBWZLO2KVUHZP b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/34KT2OXNXJBWZLO2KVUHZP new file mode 100644 index 0000000..b0681d9 --- /dev/null +++ b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/34KT2OXNXJBWZLO2KVUHZP @@ -0,0 +1,467 @@ +(function () { + var scheme = (("https:" == document.location.protocol) ? "https" : "http"); + var adnxs_domain = 'secure.adnxs.com'; + var aol_domain = 'secure.leadback.advertising.com'; + var rule = ["*", "*"]; + if (scheme=='http') { adnxs_domain = 'ib.adnxs.com'; aol_domain = 'leadback.advertising.com';} + var el = document.createElement("div"); + el.style["width"] = "1px"; + el.style["height"] = "1px"; + el.style["display"] = "inline"; + el.style["position"] = "absolute"; + var content = unescape('%3cimg%20height%3d%221%22%20width%3d%221%22%20style%3d%22border-style%3anone%3b%22%20alt%3d%22%22%20src%3d%22https%3a//d.adroll.com/cm/r/out%3fadvertisable%3dNKG6CLOO2FC75ED6R2CQCV%22/%3e%0a%3cimg%20height%3d%221%22%20width%3d%221%22%20style%3d%22border-style%3anone%3b%22%20alt%3d%22%22%20src%3d%22https%3a//d.adroll.com/cm/b/out%3fadvertisable%3dNKG6CLOO2FC75ED6R2CQCV%22/%3e%0a%3cimg%20height%3d%221%22%20width%3d%221%22%20style%3d%22border-style%3anone%3b%22%20alt%3d%22%22%20src%3d%22https%3a//d.adroll.com/cm/x/out%3fadvertisable%3dNKG6CLOO2FC75ED6R2CQCV%22/%3e%0a%3cimg%20height%3d%221%22%20width%3d%221%22%20style%3d%22border-style%3anone%3b%22%20alt%3d%22%22%20src%3d%22https%3a//d.adroll.com/cm/l/out%3fadvertisable%3dNKG6CLOO2FC75ED6R2CQCV%22/%3e%0a%3cimg%20height%3d%221%22%20width%3d%221%22%20style%3d%22border-style%3anone%3b%22%20alt%3d%22%22%20src%3d%22https%3a//d.adroll.com/cm/o/out%3fadvertisable%3dNKG6CLOO2FC75ED6R2CQCV%22/%3e%0a%3cimg%20height%3d%221%22%20width%3d%221%22%20style%3d%22border-style%3anone%3b%22%20alt%3d%22%22%20src%3d%22https%3a//d.adroll.com/cm/g/out%3fadvertisable%3dNKG6CLOO2FC75ED6R2CQCV%26google_nid%3dadroll2%22/%3e%0a'); + + var rollcrawl_opts = { + "regexp": null, + "blacklist_regexp": "", + "regexp_group": null, + "product_group_regexp": null, + "product_group_group": null + }; + + if (__adroll.consent_allowed(__adroll.consent_networks.facebook)) { + !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? + n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; + n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; + t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, + document,'script','//connect.facebook.net/en_US/fbevents.js'); + } + + try { + try { + +(function(){ + var scr = document.createElement("script"); + scr.type = "text/javascript"; + scr.src = "//s.adroll.com/j/sendrolling.js"; + ((document.getElementsByTagName("head") || [null])[0] || document.getElementsByTagName("script")[0].parentNode).appendChild(scr); +}()); + + } catch(e) {} + try { + +(function () { + var queue = []; + var start = new Date().getTime(); + var lastMouseSnap = 0; + var mousemoveDelay = 100; + var mousePath = ""; + var mlength = 255; + + var focused = document.hasFocus(); + var focusTimeOnPage = 0; + var outfocusTimeOnPage = 0; + + var focusedFlushInterval = 10000; + var unfocusedFlushInterval = 60000; + var flushInterval = focused === true ? focusedFlushInterval : unfocusedFlushInterval; + var flushTimeout; + + var scrollTimeout; + var ieVers = 0, maxUrl = 3900; + var ve = navigator.appVersion; + if (ve) { + (ve.indexOf("MSIE 6.") > -1 ? + (ieVers = 6, maxUrl = 1700) : + ve.indexOf("MSIE 7.") > -1 ? + (ieVers = 7, maxUrl = 1900) : + ve.indexOf("MSIE 8.") > -1 && (ieVer = 8)); + } + var adservers = "https://d.adroll.com"; + var onp_path = "/onp/" + adroll_adv_id + "/" + adroll_pix_id; + + function trunc(s, at) { + return isString(s) ? s.slice(0, at) : s + } + + function isObject(o) { + return o && "object" == typeof o || false + } + + function isString(s) { + return "string" == typeof s || isObject(s) && Object.prototype.toString(s) == "[object String]" || false + } + + + function getTarget(evt) { + return evt.target || evt.srcElement; + } + function getClassName(t) { + var e = function(t) { + return 1 === t.nodeType && "http://www.w3.org/2000/svg" === t.namespaceURI + }; + if (void 0 === t) return void 0 + return (e(t) ? t.className ? t.className.baseVal : t.getAttribute("class") : t.className) || "" + } + function getAttr(t, e) { + return "form" === t.tagName.toLowerCase() ? t.getAttribute(e) || "" : t[e] + } + function getPath(t) { + var e, r, o, u; + for (r = ""; t && t.tagName && "BODY" !== t.tagName && "HTML" !== t.tagName && (e = "@" + t.tagName.toLowerCase() + ";", u = getAttr(t, "id"), u && (e += "#" + u.replace(/\s/g, "") + ";"), o = getClassName(t), o && (e += "." + o.split(/\s+/).sort().join(";.") + ";"), e += "|", !(r.length + e.length > 1024));) r = e + r, t = t.parentElement; + return r + } + + function cleanAndTrim(t) { + if (t == undefined) return t; + return t = t.toString(), t.length > 255 && (t = t.slice(0, 255).split(" ").slice(0, -1).join(" ")), t.replace(/[\(\)\!\@\#\$\%\^\&\*]/g, "") + } + + + function queueEvent(evt) { + var evt = evt || window.event, + target = getTarget(evt), + evtName = trunc("mouseup" === evt.type ? "click" : evt.type, 255), + className = getClassName(target), + // This is cool but invasive + // tagValue = trunc(content(target).replace(/^\s+|\s+$/g, ""), 64), + tagPath = evt.type === "scroll" ? "" : getPath(target); + + var ev = {} + + if (target != undefined && (evtName == "click" || evtName == "change" || evtName == "submit")) { + ev['i'] = trunc(getAttr(target, "id"), 255); + ev['c'] = cleanAndTrim(className); + ev['n'] = trunc(target.tagName.toLowerCase(), 255); + } + switch (evtName) { + case "click": + ev['t'] = 'cli'; + ev['p'] = tagPath; + ev['h'] = trunc(findAHRef(target), 1024); + break; + case "change": + ev['t'] = 'cha'; + ev['p'] = tagPath; + break; + case "scroll": + ev['t'] = 'scr'; + ev['x'] = evt.x; + ev['y'] = evt.y; + break; + case "mousemove": + if (queue.length && queue[queue.length-1].t == 'mmv') { + ev = undefined; + queue[queue.length-1].m += "x"+Math.floor(evt.clientX/5).toString(16)+"y"+Math.floor(evt.clientY/5).toString(16)+"."; + } + else { + ev['t'] = 'mmv'; + ev['m'] = "x"+Math.floor(evt.clientX/5).toString(16)+"y"+Math.floor(evt.clientY/5).toString(16)+"."; + } + break; + case "submit": + ev['t'] = 'sub'; + ev['p'] = tagPath; + break; + case "top": + ev['t'] = 'top'; + ev['f'] = evt.time; + break; + case "focus": case "focusin": case "pageshow": + ev['t'] = 'foc' + break; + case "blur": case "focusout": case "pagehide": + ev['t'] = 'blu' + break; + case "error": + ev['t'] = 'err' + break; + default: + return; + } + if (ev != undefined) { + var toQueue = "ev=" + encodeURIComponent(objToString(ev)); + if ((queue.join("&").length + toQueue.length) > maxUrl) { + flush(); + } + queue.push(toQueue); + if (evtName == 'click') { + flush(); + } + } + } + + function clearQueue() { + queue = []; + } + + function onClick(evt) { + var target, btn; + if (evt = evt || window.event, + button = evt.which || evt.button, + target = getTarget(evt), + (!ieVers || target === evt.currentTarget) && target && target.tagName) { + if ("click" === evt.type) { + queueEvent(evt) + } + } + } + + function onSubmit(evt) { + evt = evt || window.event, + queueEvent(evt) + } + + function findAHRef(t) { + for (var e = null; t && "BODY" !== t.tagName && "HTML" !== t.tagName;) { + if (e = t.getAttribute("href")) return e; + t = t.parentElement + } + return e + } + + function onScroll(evt) { + if (scrollTimeout) { + clearTimeout(scrollTimeout); + } + scrollTimeout = setTimeout(saveScrollPos, 500) + } + + function saveScrollPos() { + queueEvent({"type": "scroll", "x": window.pageXOffset, "y": window.pageYOffset}); + } + + function onMousemove(evt) { + evt = evt || window.event; + var now = new Date().getTime(); + if (now - lastMouseSnap > mousemoveDelay) { + queueEvent(evt); + lastMouseSnap = now; + } + } + + function onFocusIn(evt) { + if (getTarget(evt) != window) { return; } + focused = true; + start = new Date().getTime(); + queueEvent(evt); + flushInterval = focusedFlushInterval; + clearTimeout(flushTimeout); + flush(); + } + + function onFocusOut(evt) { + if (getTarget(evt) != window) { return; } + queueEvent(evt); + focused = false; + flush(); + // Take this out and it will continue to sync even out of focus, but that's not useful. + clearTimeout(flushTimeout); + flushInterval = unfocusedFlushInterval; + } + + function listen(tag, evt, handler, args) { + document.addEventListener ? tag.addEventListener(evt, handler, args) : document.attachEvent ? tag.attachEvent("on" + evt, function() { + var e = window.event; + e.currentTarget = tag; + e.target = e.srcElement; + handler.call(tag, e) + }) : tag["on" + evt] = handler + } + + function unlisten(tag, evt, handler, args) { + return tag.removeEventListener ? (tag.removeEventListener(evt, handler, args), !0) : t.detachEvent ? t.detachEvent("on" + evt, handler) : void(tag["on" + evt] == handler && delete tag["on" + evt]) + } + + function listenAll() { + + function wrapException(func) { + return function wrapper(evt) { + try { + return func(evt); + } catch(e) {} + } + } + try { + document.addEventListener("change", wrapException(queueEvent), true); + document.addEventListener("click", wrapException(onClick), true); + document.addEventListener("submit", wrapException(onSubmit), true); + document.addEventListener("scroll", wrapException(onScroll), true); + document.addEventListener("mousemove", wrapException(onMousemove), true); + window.addEventListener("beforeunload", wrapException(flush), true); + window.addEventListener("focus", wrapException(onFocusIn), true); + window.addEventListener("blur", wrapException(onFocusOut), true); + } catch(e) {} + + + var oldonerror = window.onerror; + window.onerror = function() { + queueEvent({"type": "error", + "msg": arguments[0], + "url": arguments[1], + "lineno": arguments[2], + "colno": arguments[3], + "error": arguments[4]}); + if (oldonerror) oldonerror.apply(this, arguments); + return false; + }; + + }; + + function objToString(obj, i) { + var str = ""; + for (var key in obj) { + if (!obj.hasOwnProperty(key)) continue + if (!obj[key]) continue + if (str != "") { + str += "&"; + } + str += key + "=" + encodeURIComponent(obj[key]); + } + return str; + } + + + function flush() { + try { + if (focused) { + var now = new Date().getTime(); + focusTimeOnPage = focusTimeOnPage + parseInt((now - start)/1000); + start = now; + queue.splice(0, 0, "ev=" + encodeURIComponent("t=top&f="+focusTimeOnPage)); + } + send(queue); + clearQueue(); + clearTimeout(flushTimeout); + flushTimeout = setTimeout(flush, flushInterval); + } catch(e) {} + } + + function send(paramsList) { + var toSend = paramsList.join("&"); + if (toSend.length>0) { + var fullPath = adservers + onp_path + "?" + "pv=" + __adroll.pv + "&" + paramsList.join("&"); + var img = new window.Image(); + img.src = fullPath; + } + } + + + listenAll(); + flush(); + +})(); + + } catch(e) {} + try { + +(function() { +var rtb = document.createElement("div"); +rtb.style["width"] = "1px"; +rtb.style["height"] = "1px"; +rtb.style["display"] = "inline"; +rtb.style["position"] = "absolute"; +rtb.innerHTML = "\"\"src=\"https://d.adroll.com/cm/aol/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/\"\"src=\"https://d.adroll.com/cm/index/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/\"\"src=\"https://d.adroll.com/cm/n/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/\"\"src=\"https://d.adroll.com/cm/outbrain/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/\"\"src=\"https://d.adroll.com/cm/pubmatic/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/\"\"src=\"https://d.adroll.com/cm/taboola/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/\"\"src=\"https://d.adroll.com/cm/triplelift/out?advertisable=NKG6CLOO2FC75ED6R2CQCV\"/"; +__adroll._head().appendChild(rtb); +})(); + + } catch(e) {} + try { + +(function() { + var ua = window.navigator.userAgent.toLowerCase(); + if (window === window.top && ua.indexOf('safari') !== -1 && ua.indexOf('chrome') === -1 && ua.indexOf('crios') === -1) { + + var b = window.document.createElement('script'); + b.language = 'javascript'; + b.src = '//d.adroll.com/bounce/pre/NKG6CLOO2FC75ED6R2CQCV/34KT2OXNXJBWZLO2KVUHZP/?d=' + encodeURIComponent('//s.adroll.com/j/bounce.js'); + window.__adroll._head().appendChild(b); + } +})(); + + } catch(e) {} + try { + __adroll.extract_pid(rollcrawl_opts, "facebook", function(pid){ + if (__adroll.consent_allowed(__adroll.consent_networks.facebook)) { + if(pid) { + if(!pid.product_action) { + pid.product_action = "ViewContent"; + } else if(pid.product_action == "Purchase"){ + pid.product_action = "CustomPurchase"; + } + var product_id_param = ""; + if(pid.product_id instanceof Array) { + product_id_param = "["; + for (var i = 0; i < pid.product_id.length; i++) { + var x = __adroll.normalize_var(pid.product_id[i].replace("\"", "\\\"")).toLowerCase() + "_"; + if (pid.product_group) { + x += __adroll.normalize_var(pid.product_group + '').toLowerCase(); + } + product_id_param += "\"" + x + "\""; + if (i < pid.product_id.length - 1) { + product_id_param += ","; + } + } + product_id_param = encodeURIComponent(product_id_param + "]"); + } else { + product_id_param = encodeURIComponent(__adroll.normalize_var(pid.product_id + '').toLowerCase()) + "_"; + if (pid.product_group) { + product_id_param += encodeURIComponent(__adroll.normalize_var(pid.product_group + '').toLowerCase()); + } + } + + + var url = __adroll._srv("/fb/tr/?id=543415035793209" + + "&ev=" + encodeURIComponent(pid.product_action) + + "&cd[content_type]=product" + + "&cd[content_ids]=" + product_id_param + + "&cd[application_id]=321379434608647" + + "&cd[product_catalog_id]=755167014628975"); + var img = document.createElement("img"); + img.src = url; + img.height = img.width = 1; + img.border = 0; + __adroll._head().appendChild(img); + } + } +}); + + } catch(e) {} + try { + if (__adroll.consent_allowed(__adroll.consent_networks.facebook)) { + if(typeof __adroll.fb === 'undefined'){ + fbq('init', '543415035793209'); + fbq('set', 'autoConfig', 'false', '543415035793209'); + __adroll.fb=true; + + var __fbcd = {segment_eid: "OJTIYTJ2GJAV3MNY5NHAET,EQS3U3X2IVDMBOKT2SOC3W,PFEY3EACDBGHPPNT27GRZ6"}; + for (var prop in __adroll.get_external_data()){ + __fbcd['ar_' + prop] = __adroll.get_external_data()[prop]; + } + + fbq('track', "PageView", __fbcd); + + + } else { + var __fbcd = {event: "EventSegment", segment_eid: "OJTIYTJ2GJAV3MNY5NHAET,EQS3U3X2IVDMBOKT2SOC3W,PFEY3EACDBGHPPNT27GRZ6"}; + for (var prop in __adroll.get_external_data()){ + __fbcd['ar_' + prop] = __adroll.get_external_data()[prop]; + } + + fbq('track', "CustomEvent", __fbcd); + + } +} + + } catch(e) {} + } catch(e) {} + + __adroll.get_pid(rollcrawl_opts); + + var r = Math.random()*10000000000000000; + content = content.replace(/\[ord\]/gi, r); + content = content.replace(/\[protocol\]/gi, scheme); + content = content.replace(/\[adnxs_domain\]/gi, adnxs_domain); + content = content.replace(/\[aol_domain\]/gi, aol_domain); + var adroll_tpc = __adroll._global('adroll_tpc'); + if (adroll_tpc) { + var srv_parts = __adroll._srv().split('?'); + var srv_host = srv_parts[0].substr(srv_parts[0].indexOf(':') + 1); + var srv_re = new RegExp(srv_host + '([^\?\"\'\>\#\S]+)\\?*', 'gi'); + content = content.replace(srv_re, srv_host + '$1?' + srv_parts[1] + '&'); + } + content = __adroll.replace_external_data(content); + el.innerHTML = content; + __adroll._head().appendChild(el); + if (typeof __adroll.set_pixel_cookie != 'undefined') {__adroll.set_pixel_cookie(adroll_adv_id, adroll_pix_id, "PFEY3EACDBGHPPNT27GRZ6");} +}()); diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/543415035793209 b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/543415035793209 new file mode 100644 index 0000000..905a934 --- /dev/null +++ b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/543415035793209 @@ -0,0 +1,32 @@ +/** +* Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +* +* You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +* copy, modify, and distribute this software in source code or binary form for use +* in connection with the web services and APIs provided by Facebook. +* +* As with any software that integrates with the Facebook platform, your use of +* this software is subject to the Facebook Platform Policy +* [http://developers.facebook.com/policy/]. This copyright notice shall be +* included in all copies or substantial portions of the software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){var c=[],d=!0,e=!1,f=undefined;try{for(var a=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),g;!(d=(g=a.next()).done);d=!0){c.push(g.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&a["return"]&&a["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},i=function(){function a(a,b){for(var c=0;c1&&arguments[1]!==undefined?arguments[1]:{},e=null,f=d.caseInsensitive,g=d.lowercase,h=d.options,i=d.truncate,j=d.uppercase;if(a!=null&&h!=null&&Array.isArray(h)&&h.length)if(typeof a==="string"&&b(a))e=a;else{var k=c(String(a));g&&(k=k.toLowerCase());j&&(k=k.toUpperCase());i&&(k=k.substring(0,i));if(f){var l=k.toLowerCase();for(var m=0;m-1?k:null}return{normalizedValue:e}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPhoneNumberType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=/^0*/,d=/[\-@#<>\'\",; ]|\(|\)|\+|[a-z]/gi,e=/^1\(?\d{3}\)?\d{7}$/,g=/^47\d{8}$/,h=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function i(a){a=a.replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return e.test(a);return a.startsWith("47")?g.test(a):h.test(a)}function j(a){var e=null;if(a!=null)if(b(a))e=a;else{a=String(a);i(a)&&(e=a.replace(d,"").replace(c,""))}return{normalizedValue:e}}k.exports=j})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPostalCodeType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.trim;function d(a){var d=null;if(a!=null&&typeof a==="string")if(b(a))d=a;else{a=c(String(a).toLowerCase().split("-",1)[0]);a.length>=2&&(d=a)}return{normalizedValue:d}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsStringType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.strip;function d(a){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},e=null;if(a!=null)if(b(a)&&typeof a==="string")d.rejectHashed||(e=a);else{var f=String(a);d.strip!=null&&(f=c(f,d.strip));d.lowercase?f=f.toLowerCase():d.uppercase&&(f=f.toUpperCase());d.truncate&&(f=f.substring(0,d.truncate));d.test?e=new RegExp(d.test).test(f)?f:null:e=f}return{normalizedValue:e}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsConfigStore",function(){return function(f,g,h,j){var e={exports:{}};e.exports;(function(){"use strict";var a=Object.assign||function(a){for(var b=1;b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:d,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsValidationUtils",function(){return function(f,g,h,i){var j={exports:{}};j.exports;(function(){"use strict";var a=/^[a-f0-9]{64}$/i,b=/^\s+|\s+$/g,c=/\s+/g,d=/[!\"#\$%&\'\(\)\*\+,\-\.\/:;<=>\?@ \[\\\]\^_`\{\|\}~\s]+/g,e=/\W+/g,f=/^1\(?\d{3}\)?\d{7}$/,g=/^47\d{8}$/,h=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function i(a){return typeof a==="string"?a.replace(b,""):""}function k(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"whitespace_only",f="";if(typeof a==="string")switch(b){case"whitespace_only":f=a.replace(c,"");break;case"whitespace_and_punctuation":f=a.replace(d,"");break;case"all_non_latin_alpha_numeric":f=a.replace(e,"");break}return f}function l(b){return typeof b==="string"&&a.test(b)}function m(a){a=String(a).replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return f.test(a);return a.startsWith("47")?g.test(a):h.test(a)}j.exports={looksLikeHashed:l,strip:k,trim:i,isInternationalPhoneNumber:m}})();return j.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,g,j,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){k(this,e),this._params=[],this._piiTranslator=a}i(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b0)for(var i=0;i=0&&c.item(a)!==this);return a>-1}function F(a){if(!a||a.disabled||a===i.body)return!1;if(a.innerText&&a.innerText.length>q)return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return a!=undefined&&a!=null&&a>r?!1:!0}function G(a){if(!a||a.disabled||a===i.body||!K(a))return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return typeof a!=="number"||as}function H(a,b,c){if(!a||a.disabled||a===i.body)return null;else if(c?!G(a):!F(a))return null;else if(E(a,c?y:w))return D(a,b)?null:a;else return H(a.parentElement,b,c)}function I(a){if(a.nodeName==="BUTTON"){var b=a;b=b.innerText||b.value||""}else b=a.value||a.innerText||"";return b.substr(0,q)}function J(a){var b="";if(a.tagName==="IMG")return a.getAttribute("src")||"";a=a.getElementsByTagName("img");if(a.length!=0){a=a.item(0);a=a.getAttribute("src");b=a||""}return b}function K(a){return!!I(a)||!!J(a)}function L(a,b,c){var d=a.name,e=a.id,f=a.tagName,g=a.value,h=a.innerText;f=f.toLowerCase();var i=a.classList&&a.classList.value?String(a.classList.value):"",j=a.querySelectorAll(c?y:w).length,k=null;a.tagName==="A"&&a.href?k=a.href:b&&b.action&&(k=b.action);typeof k!=="string"&&(k="");b=null;c&&(b=J(a));return{name:d,id:e,tag:f,classList:i,value:g,innerText:h,imageUrl:b,numChildButtons:j,destination:k}}function M(a,b){var c={},d={};c.name=a.name;c.id=a.id;c.tag=a.tagName.toLowerCase();Object.prototype.hasOwnProperty.call(a,"placeholder")&&(c.placeholder=a.placeholder);if(c.tag=="input"){c.inputType=a.getAttribute("type");if(b){b=m(c,a);b!=null&&(d=b)}}Object.prototype.hasOwnProperty.call(a,"value")&&a.value===""&&(c.valueMeaning="empty");return[c,d]}function N(b,c,d){var e=[],f={};if(!c)return[e,f];c=c.querySelectorAll(v);var h={};for(var i=0;iu)continue;if(j==b)continue;k=M(j,d);j=g(k,2);k=j[0];j=j[1];e.push(k);f=a({},f,j)}return[e,f]}function O(a){var b=a.form;if(b&&o(b,HTMLElement))return b;if(E(a,x))return null;b=a;while(b.nodeName!=="FORM"){a=b.parentElement;if(a&&o(a,HTMLElement))b=a;else return null}return b}function P(){var a=i.querySelector("title");a=p(a&&a.text,t);return{title:a}}function Q(a){z.push(a)}function R(a,b,c,d){c=N(a,b,c);c=g(c,2);var e=c[0];c=c[1];var f=P(),h={buttonText:l(I(a)).safe,buttonFeatures:L(a,b,d),formFeatures:e,pageFeatures:f};n(z,function(a){h[a.property]=a.method()});return[h,c]}function S(a){a=b.getInferredEventsConfig(a);a=!!a&&a.buttonSelector==="extended";return a}function T(a){return function(c){var d=c.target;if(d&&o(d,HTMLElement)){var e=H(d,c.timeStamp,!1),f=H(d,c.timeStamp,!0);if(e||f){d=null;c=null;var h=a.getOptedInPixels("InferredEvents"),i=a.getOptedInPixels("AutomaticMatching");n(h,function(h){if(S(h.id)&&f){var j=R(f,O(f),i.indexOf(h)>=0,!0);j=g(j,2);d=j[0];c=j[1]}else if(e){j=R(e,O(e),i.indexOf(h)>=0,!1);j=g(j,2);d=j[0];c=j[1]}else return;j=b.getAutomaticMatchingConfig(h.id);if(Object.keys(c).length>0&&j!=null){j=j.selectedMatchKeys;for(var k in c)j.indexOf(k)>=0&&(h.userData[k]=c[k])}a.trackSingleSystem("automatic",h,"SubscribedButtonClick",d)})}}}}e.exports=new c(function(a,b){a.once("fired",function(){var a=k(T(b));i.addEventListener?i.addEventListener("click",a,{capture:!0,passive:!0,once:!1}):h.attachEvent("onclick",a)})});e.exports.getForm=O;e.exports.getPayload=R;e.exports.addPayloadAnnotator=Q;e.exports.isSaneButton=F;e.exports.BUTTON_SELECTORS=w})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.inferredevents");f.registerPlugin&&f.registerPlugin("fbevents.plugins.inferredevents",e.exports);f.ensureModuleRegistered("fbevents.plugins.inferredevents",function(){return e.exports})})()})(window,document,location,history); +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){for(var c=0;c>>6&31,128|c&63):c<=65535?b+=String.fromCharCode(224|c>>>12&15,128|c>>>6&63,128|c&63):c<=2097151&&(b+=String.fromCharCode(240|c>>>18&7,128|c>>>12&63,128|c>>>6&63,128|c&63));return b};function b(a,b){return b>>>a|b<<32-a}function c(a,b,c){return a&b^~a&c}function d(a,b,c){return a&b^a&c^b&c}function f(a){return b(2,a)^b(13,a)^b(22,a)}function g(a){return b(6,a)^b(11,a)^b(25,a)}function h(a){return b(7,a)^b(18,a)^a>>>3}function i(a){return b(17,a)^b(19,a)^a>>>10}function j(a,b){return a[b&15]+=i(a[b+14&15])+a[b+9&15]+h(a[b+1&15])}var k=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),l=new Array(8),m=new Array(2),n=new Array(64),o=new Array(16),p="0123456789abcdef";function q(a,b){var c=(a&65535)+(b&65535);a=(a>>16)+(b>>16)+(c>>16);return a<<16|c&65535}function r(){m[0]=m[1]=0,l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225}function s(){var a,b,e,h,i,m,p,r,s,t;a=l[0];b=l[1];e=l[2];h=l[3];i=l[4];m=l[5];p=l[6];r=l[7];for(var u=0;u<16;u++)o[u]=n[(u<<2)+3]|n[(u<<2)+2]<<8|n[(u<<2)+1]<<16|n[u<<2]<<24;for(var u=0;u<64;u++)s=r+g(i)+c(i,m,p)+k[u],u<16?s+=o[u]:s+=j(o,u),t=f(a)+d(a,b,e),r=p,p=m,m=i,i=q(h,s),h=e,e=b,b=a,a=q(s,t);l[0]+=a;l[1]+=b;l[2]+=e;l[3]+=h;l[4]+=i;l[5]+=m;l[6]+=p;l[7]+=r}function t(a,b){var c,d,e=0;d=m[0]>>3&63;var f=b&63;(m[0]+=b<<3)>29;for(c=0;c+63>3&63;n[a++]=128;if(a<=56)for(var b=a;b<56;b++)n[b]=0;else{for(var b=a;b<64;b++)n[b]=0;s();for(var b=0;b<56;b++)n[b]=0}n[56]=m[1]>>>24&255;n[57]=m[1]>>>16&255;n[58]=m[1]>>>8&255;n[59]=m[1]&255;n[60]=m[0]>>>24&255;n[61]=m[0]>>>16&255;n[62]=m[0]>>>8&255;n[63]=m[0]&255;s()}function v(){var a=new String();for(var b=0;b<8;b++)for(var c=28;c>=0;c-=4)a+=p.charAt(l[b]>>>c&15);return a}function w(a){var b=0;for(var c=0;c<8;c++)for(var d=28;d>=0;d-=4)a[b++]=p.charCodeAt(l[c]>>>d&15)}function x(b,a){r();t(b,b.length);u();if(a)w(a);else return v()}function y(c,d,b){if(c===null||c===undefined)return null;d=typeof d=="undefined"?!0:d;d&&(c=a(c));return x(c,b)}e.exports=y})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsLogging",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsUtils"),b=a.isInstanceOf,c=a.sendPOST,d=f.getFbeventsModules("SignalsParamList"),h=!1;function i(){h=!0}var j=!0;function k(){j=!1}a="console";var l="warn",m=g[a]&&g[a][l]?g[a][l].bind(g[a]):function(){},n=!1;function o(){n=!0}function p(a){if(n)return;m("[Facebook Pixel] - "+a)}var q="Facebook Pixel Error",r=g.postMessage?g.postMessage.bind(g):function(){},s={};function t(a){switch(a.type){case"FBQ_NO_METHOD_NAME":return"You must provide an argument to fbq().";case"INVALID_FBQ_METHOD":var b=a.method;return"\"fbq('"+b+"', ...);\" is not a valid fbq command.";case"INVALID_PIXEL_ID":b=a.pixelID;return"Invalid PixelID: "+b+".";case"DUPLICATE_PIXEL_ID":b=a.pixelID;return"Duplicate Pixel ID: "+b+".";case"SET_METADATA_ON_UNINITIALIZED_PIXEL_ID":b=a.metadataValue;var c=a.pixelID;return"Trying to set argument "+b+" for uninitialized Pixel ID "+c+".";case"CONFLICTING_VERSIONS":return"Multiple pixels with conflicting versions were detected on this page.";case"MULTIPLE_PIXELS":return"Multiple pixels were detected on this page.";case"UNSUPPORTED_METADATA_ARGUMENT":b=a.metadata;return"Unsupported metadata argument: "+b+".";case"REQUIRED_PARAM_MISSING":c=a.param;b=a.eventName;return"Required parameter '"+c+"' is missing for event '"+b+"'.";case"INVALID_PARAM":c=a.param;b=a.eventName;return"Parameter '"+c+"' is invalid for event '"+b+"'.";case"NO_EVENT_NAME":return'Missing event name. Track events must be logged with an event name fbq("track", eventName)';case"NONSTANDARD_EVENT":c=a.eventName;return"You are sending a non-standard event '"+c+"'. The preferred way to send these events is using trackCustom. See 'https://developers.facebook.com/docs/ads-for-websites/pixel-events/#events' for more information.";case"NEGATIVE_EVENT_PARAM":b=a.param;c=a.eventName;return"Parameter '"+b+"' is negative for event '"+c+"'.";case"PII_INVALID_TYPE":b=a.key_type;c=a.key_val;return"An invalid "+b+" was specified for '"+c+"'. This data will not be sent with any events for this Pixel.";case"PII_UNHASHED_PII":b=a.key;return"The value for the '"+b+"' key appeared to be PII. This data will not be sent with any events for this Pixel.";case"INVALID_CONSENT_ACTION":c=a.action;return"\"fbq('"+c+"', ...);\" is not a valid fbq('consent', ...) action. Valid actions are 'await' and 'grant'.";case"INVALID_JSON_LD":b=a.jsonLd;return"Unable to parse JSON-LD tag. Malformed JSON found: '"+b+"'.";default:w(new Error("INVALID_USER_ERROR - "+a.type+" - "+JSON.stringify(a)));return"Invalid User Error."}}function u(a,e){try{var f=Math.random(),h=g.fbq&&g.fbq._releaseSegment?g.fbq._releaseSegment:"unknown";if(j&&f<.01||h==="canary"){f=new d(null);f.append("p","pixel");f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("e",a.toString());b(a,Error)&&(f.append("f",a.fileName),f.append("s",a.stackTrace||a.stack));f.append("ue",e?"1":"0");f.append("rs",h);c(f,"https://connect.facebook.net/log/error")}}catch(a){}}function v(a){var b=JSON.stringify(a);if(!Object.prototype.hasOwnProperty.call(s,b))s[b]=!0;else return;b=t(a);p(b);r({action:"FB_LOG",logType:q,logMessage:b},"*");u(new Error(b),!0)}function w(a){u(a,!1),h&&p(a.toString())}l={logError:w,logUserError:v,enableVerboseDebugLogging:i,disableAllLogging:o,disableSampling:k};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";function a(a){this.plugin=a;this.__fbEventsPlugin=1;return this}e.exports=a})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,j=!("addEventListener"in b);function k(a,b){return typeof b==="function"&&a instanceof b}function l(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function m(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var n=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function o(a,b,c){var d=j?"on"+b:b;b=j?a.attachEvent:a.addEventListener;var e=j?a.detachEvent:a.removeEventListener,f=function b(){e&&e.call(a,d,b,!1),c()};b&&b.call(a,d,f,!1)}var p=Object.prototype.hasOwnProperty,q=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length;function t(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":h(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)p.call(a,c)&&b.push(c);if(q)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}g(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}g(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b=0;d--){var e=a[d],f=e.getAttribute("itemtype");if(typeof f!=="string"||f==="")continue;var g={},i=e.querySelectorAll("[itemprop]");for(var j=0;j=0;g--)if(m[g].scope.contains(i)){m[g].schema.subscopes.push(f);break}else m.pop();m.length===0&&n.push(f);m.push({scope:i,schema:f})}return n}function u(){var a=[],c=h.querySelectorAll('script[type="application/ld+json"]');for(var d=0;d2&&arguments[2]!==undefined?arguments[2]:!1,e=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1,f=v(),h=x(),i=t(),k=d?u():[],l=c.getExperiments().get("logDataLayer"),m=l&&l.isInExperimentGroup,o=m?g.dataLayer||[]:[];if(i.length===0&&k.length===0&&j(f).length===0&&e>0){setTimeout(function(){return y(b,c,d,e-1)},n);return}else if(i.length>0||k.length>0||j(f).length>0||j(h).length>0||o.length&&o.length>0){var p={"Schema.org":i,OpenGraph:f,Meta:h,DataLayer:o};d&&(p=a({},p,{"JSON-LD":k}));c.trackSingleSystem("automatic",b,"Microdata",p)}}e.exports=new c(function(a,b){var c={};a.on("fired",function(a,d){var e=d.get("id");if(Object.prototype.hasOwnProperty.call(c,e))return;a=i(b.getOptedInPixels("Microdata"),function(a){return a.id===e});if(a){var f=i(b.getOptedInPixels("MicrodataJsonLd"),function(a){return a.id===e});c[e]=!0;setTimeout(function(){y(e,b,f)},500)}})})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.microdata");f.registerPlugin&&f.registerPlugin("fbevents.plugins.microdata",e.exports);f.ensureModuleRegistered("fbevents.plugins.microdata",function(){return e.exports})})()})(window,document,location,history); +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},h=function(){function a(a,b){for(var c=0;c1?c-1:0),e=1;e1?e-1:0),g=1;g1&&arguments[1]!==undefined?arguments[1]:0,e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(!e&&!j)return;try{var f=new d(null);f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("rs",i);f.append("e",event);f.append("p",b);c(f,"https://connect.facebook.net/log/fbevents_telemetry/")}catch(b){a.logError(b)}}function l(){k("COALESCE_INIT")}function m(a){k("COALESCE_COMPLETE",a)}function n(a){k("FBMQ_FORWARDED",a,!0)}e.exports={logStartBatch:l,logEndBatch:m,logMobileNativeForwarding:n}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,j=!("addEventListener"in b);function k(a,b){return typeof b==="function"&&a instanceof b}function l(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function m(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var n=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function o(a,b,c){var d=j?"on"+b:b;b=j?a.attachEvent:a.addEventListener;var e=j?a.detachEvent:a.removeEventListener,f=function b(){e&&e.call(a,d,b,!1),c()};b&&b.call(a,d,f,!1)}var p=Object.prototype.hasOwnProperty,q=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length;function t(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":g(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)p.call(a,c)&&b.push(c);if(q)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":g(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}h(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b-1;b=b.userAgent.match("CriOS");return!b&&a!==null&&a!==undefined&&c==="Google Inc."&&d===!1&&e===!1}function v(a,b,c,e,f){if(g.navigator&&g.navigator.sendBeacon){f=new l(f);q(f,a,b,c);e&&f.addRange(e);d(f,n.ENDPOINT)}}e.exports={CONFIG:n,sendEvent:t,sendBeaconPII:v,setUseBeacon:c}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEvents.plugins.iwlbootstrapper",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsPlugin"),b=f.getFbeventsModules("SignalsPixelEndpoint"),c=function(a,b,c){return"https://"+["www",c,"facebook","com"].filter(function(a){return a.length!==0}).join(".")+"/signals/iwl.js?pixel_id="+a+(b?"&js_debug=1":"")},d=/^https:\/\/.*\.facebook\.com$/i,i=/^https:\/\/www\.([A-Za-z0-9\.]+)\.facebook\.com\/tr$/,j=b.CONFIG.ENDPOINT!=="https://www.facebook.com/tr"&&i.test(b.CONFIG.ENDPOINT),k=j?i.exec(b.CONFIG.ENDPOINT)[1]:"",l="FB_IWL_BOOTSTRAPPER_STORAGE",m=g.sessionStorage?g.sessionStorage:{getItem:function(a){return null},setItem:function(a,b){},removeItem:function(a){}},n=!1;function o(){var a=m.getItem(l);if(!a)return;a=JSON.parse(a);var b=a.pixelID,d=a.graphToken,e=a.debug,f=a.permissionLevel,i=a.showFlow,o=a.gks;if(n||!b)return;n=!0;a=h.createElement("script");a.async=!0;a.onload=function(){g.FacebookIWL&&g.FacebookIWL.init&&(g.FacebookIWLSessionEnd=function(){m.removeItem(l),g.location.reload()},j&&g.FacebookIWL.set&&g.FacebookIWL.set("tier",k),g.FacebookIWL.init(b,d,f,i,o))};a.src=c(b,e,k);h.body&&h.body.appendChild(a)}function p(event){if(m.getItem(l)||!d.test(event.origin)||!(event.data&&event.data.msg_type==="FACEBOOK_IWL_BOOTSTRAP"))return;event.source.postMessage("FACEBOOK_IWL_BOOTSTRAP_ACK",event.origin);var a=event.data,b=a.pixelID,c=a.graphToken,e=a.debug,f=a.permissionLevel,g=a.showFlow;a=a.gks;m.setItem(l,JSON.stringify({pixelID:b,graphToken:c,debug:e,permissionLevel:f,showFlow:g,gks:a}));o()}e.exports=new a(function(a,b){if(m.getItem(l)){o();return}g.opener&&g.addEventListener("message",p)})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.iwlbootstrapper");f.registerPlugin&&f.registerPlugin("fbevents.plugins.iwlbootstrapper",e.exports);f.ensureModuleRegistered("fbevents.plugins.iwlbootstrapper",function(){return e.exports})})()})(window,document,location,history); +fbq.registerPlugin("543415035793209", {__fbEventsPlugin: 1, plugin: function(fbq, instance, config) { fbq.loadPlugin("inferredevents"); +fbq.loadPlugin("identity"); +instance.optIn("543415035793209", "InferredEvents", true); +fbq.loadPlugin("microdata"); +fbq.loadPlugin("identity"); +instance.optIn("543415035793209", "Microdata", true); +fbq.loadPlugin("iwlbootstrapper"); +instance.optIn("543415035793209", "IWLBootstrapper", true);instance.configLoaded("543415035793209"); }}); \ No newline at end of file diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/748798701854552 b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/748798701854552 new file mode 100644 index 0000000..594ce8e --- /dev/null +++ b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/748798701854552 @@ -0,0 +1,32 @@ +/** +* Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +* +* You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +* copy, modify, and distribute this software in source code or binary form for use +* in connection with the web services and APIs provided by Facebook. +* +* As with any software that integrates with the Facebook platform, your use of +* this software is subject to the Facebook Platform Policy +* [http://developers.facebook.com/policy/]. This copyright notice shall be +* included in all copies or substantial portions of the software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){var c=[],d=!0,e=!1,f=undefined;try{for(var a=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),g;!(d=(g=a.next()).done);d=!0){c.push(g.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&a["return"]&&a["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},i=function(){function a(a,b){for(var c=0;c1&&arguments[1]!==undefined?arguments[1]:{},e=null,f=d.caseInsensitive,g=d.lowercase,h=d.options,i=d.truncate,j=d.uppercase;if(a!=null&&h!=null&&Array.isArray(h)&&h.length)if(typeof a==="string"&&b(a))e=a;else{var k=c(String(a));g&&(k=k.toLowerCase());j&&(k=k.toUpperCase());i&&(k=k.substring(0,i));if(f){var l=k.toLowerCase();for(var m=0;m-1?k:null}return{normalizedValue:e}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPhoneNumberType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=/^0*/,d=/[\-@#<>\'\",; ]|\(|\)|\+|[a-z]/gi,e=/^1\(?\d{3}\)?\d{7}$/,g=/^47\d{8}$/,h=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function i(a){a=a.replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return e.test(a);return a.startsWith("47")?g.test(a):h.test(a)}function j(a){var e=null;if(a!=null)if(b(a))e=a;else{a=String(a);i(a)&&(e=a.replace(d,"").replace(c,""))}return{normalizedValue:e}}k.exports=j})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPostalCodeType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.trim;function d(a){var d=null;if(a!=null&&typeof a==="string")if(b(a))d=a;else{a=c(String(a).toLowerCase().split("-",1)[0]);a.length>=2&&(d=a)}return{normalizedValue:d}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsStringType",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.strip;function d(a){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},e=null;if(a!=null)if(b(a)&&typeof a==="string")d.rejectHashed||(e=a);else{var f=String(a);d.strip!=null&&(f=c(f,d.strip));d.lowercase?f=f.toLowerCase():d.uppercase&&(f=f.toUpperCase());d.truncate&&(f=f.substring(0,d.truncate));d.test?e=new RegExp(d.test).test(f)?f:null:e=f}return{normalizedValue:e}}k.exports=d})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsConfigStore",function(){return function(f,g,h,j){var e={exports:{}};e.exports;(function(){"use strict";var a=Object.assign||function(a){for(var b=1;b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:d,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsValidationUtils",function(){return function(f,g,h,i){var j={exports:{}};j.exports;(function(){"use strict";var a=/^[a-f0-9]{64}$/i,b=/^\s+|\s+$/g,c=/\s+/g,d=/[!\"#\$%&\'\(\)\*\+,\-\.\/:;<=>\?@ \[\\\]\^_`\{\|\}~\s]+/g,e=/\W+/g,f=/^1\(?\d{3}\)?\d{7}$/,g=/^47\d{8}$/,h=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function i(a){return typeof a==="string"?a.replace(b,""):""}function k(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"whitespace_only",f="";if(typeof a==="string")switch(b){case"whitespace_only":f=a.replace(c,"");break;case"whitespace_and_punctuation":f=a.replace(d,"");break;case"all_non_latin_alpha_numeric":f=a.replace(e,"");break}return f}function l(b){return typeof b==="string"&&a.test(b)}function m(a){a=String(a).replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return f.test(a);return a.startsWith("47")?g.test(a):h.test(a)}j.exports={looksLikeHashed:l,strip:k,trim:i,isInternationalPhoneNumber:m}})();return j.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,g,j,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){k(this,e),this._params=[],this._piiTranslator=a}i(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b0)for(var i=0;i=0&&c.item(a)!==this);return a>-1}function F(a){if(!a||a.disabled||a===i.body)return!1;if(a.innerText&&a.innerText.length>q)return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return a!=undefined&&a!=null&&a>r?!1:!0}function G(a){if(!a||a.disabled||a===i.body||!K(a))return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return typeof a!=="number"||as}function H(a,b,c){if(!a||a.disabled||a===i.body)return null;else if(c?!G(a):!F(a))return null;else if(E(a,c?y:w))return D(a,b)?null:a;else return H(a.parentElement,b,c)}function I(a){if(a.nodeName==="BUTTON"){var b=a;b=b.innerText||b.value||""}else b=a.value||a.innerText||"";return b.substr(0,q)}function J(a){var b="";if(a.tagName==="IMG")return a.getAttribute("src")||"";a=a.getElementsByTagName("img");if(a.length!=0){a=a.item(0);a=a.getAttribute("src");b=a||""}return b}function K(a){return!!I(a)||!!J(a)}function L(a,b,c){var d=a.name,e=a.id,f=a.tagName,g=a.value,h=a.innerText;f=f.toLowerCase();var i=a.classList&&a.classList.value?String(a.classList.value):"",j=a.querySelectorAll(c?y:w).length,k=null;a.tagName==="A"&&a.href?k=a.href:b&&b.action&&(k=b.action);typeof k!=="string"&&(k="");b=null;c&&(b=J(a));return{name:d,id:e,tag:f,classList:i,value:g,innerText:h,imageUrl:b,numChildButtons:j,destination:k}}function M(a,b){var c={},d={};c.name=a.name;c.id=a.id;c.tag=a.tagName.toLowerCase();Object.prototype.hasOwnProperty.call(a,"placeholder")&&(c.placeholder=a.placeholder);if(c.tag=="input"){c.inputType=a.getAttribute("type");if(b){b=m(c,a);b!=null&&(d=b)}}Object.prototype.hasOwnProperty.call(a,"value")&&a.value===""&&(c.valueMeaning="empty");return[c,d]}function N(b,c,d){var e=[],f={};if(!c)return[e,f];c=c.querySelectorAll(v);var h={};for(var i=0;iu)continue;if(j==b)continue;k=M(j,d);j=g(k,2);k=j[0];j=j[1];e.push(k);f=a({},f,j)}return[e,f]}function O(a){var b=a.form;if(b&&o(b,HTMLElement))return b;if(E(a,x))return null;b=a;while(b.nodeName!=="FORM"){a=b.parentElement;if(a&&o(a,HTMLElement))b=a;else return null}return b}function P(){var a=i.querySelector("title");a=p(a&&a.text,t);return{title:a}}function Q(a){z.push(a)}function R(a,b,c,d){c=N(a,b,c);c=g(c,2);var e=c[0];c=c[1];var f=P(),h={buttonText:l(I(a)).safe,buttonFeatures:L(a,b,d),formFeatures:e,pageFeatures:f};n(z,function(a){h[a.property]=a.method()});return[h,c]}function S(a){a=b.getInferredEventsConfig(a);a=!!a&&a.buttonSelector==="extended";return a}function T(a){return function(c){var d=c.target;if(d&&o(d,HTMLElement)){var e=H(d,c.timeStamp,!1),f=H(d,c.timeStamp,!0);if(e||f){d=null;c=null;var h=a.getOptedInPixels("InferredEvents"),i=a.getOptedInPixels("AutomaticMatching");n(h,function(h){if(S(h.id)&&f){var j=R(f,O(f),i.indexOf(h)>=0,!0);j=g(j,2);d=j[0];c=j[1]}else if(e){j=R(e,O(e),i.indexOf(h)>=0,!1);j=g(j,2);d=j[0];c=j[1]}else return;j=b.getAutomaticMatchingConfig(h.id);if(Object.keys(c).length>0&&j!=null){j=j.selectedMatchKeys;for(var k in c)j.indexOf(k)>=0&&(h.userData[k]=c[k])}a.trackSingleSystem("automatic",h,"SubscribedButtonClick",d)})}}}}e.exports=new c(function(a,b){a.once("fired",function(){var a=k(T(b));i.addEventListener?i.addEventListener("click",a,{capture:!0,passive:!0,once:!1}):h.attachEvent("onclick",a)})});e.exports.getForm=O;e.exports.getPayload=R;e.exports.addPayloadAnnotator=Q;e.exports.isSaneButton=F;e.exports.BUTTON_SELECTORS=w})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.inferredevents");f.registerPlugin&&f.registerPlugin("fbevents.plugins.inferredevents",e.exports);f.ensureModuleRegistered("fbevents.plugins.inferredevents",function(){return e.exports})})()})(window,document,location,history); +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){for(var c=0;c>>6&31,128|c&63):c<=65535?b+=String.fromCharCode(224|c>>>12&15,128|c>>>6&63,128|c&63):c<=2097151&&(b+=String.fromCharCode(240|c>>>18&7,128|c>>>12&63,128|c>>>6&63,128|c&63));return b};function b(a,b){return b>>>a|b<<32-a}function c(a,b,c){return a&b^~a&c}function d(a,b,c){return a&b^a&c^b&c}function f(a){return b(2,a)^b(13,a)^b(22,a)}function g(a){return b(6,a)^b(11,a)^b(25,a)}function h(a){return b(7,a)^b(18,a)^a>>>3}function i(a){return b(17,a)^b(19,a)^a>>>10}function j(a,b){return a[b&15]+=i(a[b+14&15])+a[b+9&15]+h(a[b+1&15])}var k=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),l=new Array(8),m=new Array(2),n=new Array(64),o=new Array(16),p="0123456789abcdef";function q(a,b){var c=(a&65535)+(b&65535);a=(a>>16)+(b>>16)+(c>>16);return a<<16|c&65535}function r(){m[0]=m[1]=0,l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225}function s(){var a,b,e,h,i,m,p,r,s,t;a=l[0];b=l[1];e=l[2];h=l[3];i=l[4];m=l[5];p=l[6];r=l[7];for(var u=0;u<16;u++)o[u]=n[(u<<2)+3]|n[(u<<2)+2]<<8|n[(u<<2)+1]<<16|n[u<<2]<<24;for(var u=0;u<64;u++)s=r+g(i)+c(i,m,p)+k[u],u<16?s+=o[u]:s+=j(o,u),t=f(a)+d(a,b,e),r=p,p=m,m=i,i=q(h,s),h=e,e=b,b=a,a=q(s,t);l[0]+=a;l[1]+=b;l[2]+=e;l[3]+=h;l[4]+=i;l[5]+=m;l[6]+=p;l[7]+=r}function t(a,b){var c,d,e=0;d=m[0]>>3&63;var f=b&63;(m[0]+=b<<3)>29;for(c=0;c+63>3&63;n[a++]=128;if(a<=56)for(var b=a;b<56;b++)n[b]=0;else{for(var b=a;b<64;b++)n[b]=0;s();for(var b=0;b<56;b++)n[b]=0}n[56]=m[1]>>>24&255;n[57]=m[1]>>>16&255;n[58]=m[1]>>>8&255;n[59]=m[1]&255;n[60]=m[0]>>>24&255;n[61]=m[0]>>>16&255;n[62]=m[0]>>>8&255;n[63]=m[0]&255;s()}function v(){var a=new String();for(var b=0;b<8;b++)for(var c=28;c>=0;c-=4)a+=p.charAt(l[b]>>>c&15);return a}function w(a){var b=0;for(var c=0;c<8;c++)for(var d=28;d>=0;d-=4)a[b++]=p.charCodeAt(l[c]>>>d&15)}function x(b,a){r();t(b,b.length);u();if(a)w(a);else return v()}function y(c,d,b){if(c===null||c===undefined)return null;d=typeof d=="undefined"?!0:d;d&&(c=a(c));return x(c,b)}e.exports=y})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsLogging",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsUtils"),b=a.isInstanceOf,c=a.sendPOST,d=f.getFbeventsModules("SignalsParamList"),h=!1;function i(){h=!0}var j=!0;function k(){j=!1}a="console";var l="warn",m=g[a]&&g[a][l]?g[a][l].bind(g[a]):function(){},n=!1;function o(){n=!0}function p(a){if(n)return;m("[Facebook Pixel] - "+a)}var q="Facebook Pixel Error",r=g.postMessage?g.postMessage.bind(g):function(){},s={};function t(a){switch(a.type){case"FBQ_NO_METHOD_NAME":return"You must provide an argument to fbq().";case"INVALID_FBQ_METHOD":var b=a.method;return"\"fbq('"+b+"', ...);\" is not a valid fbq command.";case"INVALID_PIXEL_ID":b=a.pixelID;return"Invalid PixelID: "+b+".";case"DUPLICATE_PIXEL_ID":b=a.pixelID;return"Duplicate Pixel ID: "+b+".";case"SET_METADATA_ON_UNINITIALIZED_PIXEL_ID":b=a.metadataValue;var c=a.pixelID;return"Trying to set argument "+b+" for uninitialized Pixel ID "+c+".";case"CONFLICTING_VERSIONS":return"Multiple pixels with conflicting versions were detected on this page.";case"MULTIPLE_PIXELS":return"Multiple pixels were detected on this page.";case"UNSUPPORTED_METADATA_ARGUMENT":b=a.metadata;return"Unsupported metadata argument: "+b+".";case"REQUIRED_PARAM_MISSING":c=a.param;b=a.eventName;return"Required parameter '"+c+"' is missing for event '"+b+"'.";case"INVALID_PARAM":c=a.param;b=a.eventName;return"Parameter '"+c+"' is invalid for event '"+b+"'.";case"NO_EVENT_NAME":return'Missing event name. Track events must be logged with an event name fbq("track", eventName)';case"NONSTANDARD_EVENT":c=a.eventName;return"You are sending a non-standard event '"+c+"'. The preferred way to send these events is using trackCustom. See 'https://developers.facebook.com/docs/ads-for-websites/pixel-events/#events' for more information.";case"NEGATIVE_EVENT_PARAM":b=a.param;c=a.eventName;return"Parameter '"+b+"' is negative for event '"+c+"'.";case"PII_INVALID_TYPE":b=a.key_type;c=a.key_val;return"An invalid "+b+" was specified for '"+c+"'. This data will not be sent with any events for this Pixel.";case"PII_UNHASHED_PII":b=a.key;return"The value for the '"+b+"' key appeared to be PII. This data will not be sent with any events for this Pixel.";case"INVALID_CONSENT_ACTION":c=a.action;return"\"fbq('"+c+"', ...);\" is not a valid fbq('consent', ...) action. Valid actions are 'await' and 'grant'.";case"INVALID_JSON_LD":b=a.jsonLd;return"Unable to parse JSON-LD tag. Malformed JSON found: '"+b+"'.";default:w(new Error("INVALID_USER_ERROR - "+a.type+" - "+JSON.stringify(a)));return"Invalid User Error."}}function u(a,e){try{var f=Math.random(),h=g.fbq&&g.fbq._releaseSegment?g.fbq._releaseSegment:"unknown";if(j&&f<.01||h==="canary"){f=new d(null);f.append("p","pixel");f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("e",a.toString());b(a,Error)&&(f.append("f",a.fileName),f.append("s",a.stackTrace||a.stack));f.append("ue",e?"1":"0");f.append("rs",h);c(f,"https://connect.facebook.net/log/error")}}catch(a){}}function v(a){var b=JSON.stringify(a);if(!Object.prototype.hasOwnProperty.call(s,b))s[b]=!0;else return;b=t(a);p(b);r({action:"FB_LOG",logType:q,logMessage:b},"*");u(new Error(b),!0)}function w(a){u(a,!1),h&&p(a.toString())}l={logError:w,logUserError:v,enableVerboseDebugLogging:i,disableAllLogging:o,disableSampling:k};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";function a(a){this.plugin=a;this.__fbEventsPlugin=1;return this}e.exports=a})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,j=!("addEventListener"in b);function k(a,b){return typeof b==="function"&&a instanceof b}function l(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function m(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var n=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function o(a,b,c){var d=j?"on"+b:b;b=j?a.attachEvent:a.addEventListener;var e=j?a.detachEvent:a.removeEventListener,f=function b(){e&&e.call(a,d,b,!1),c()};b&&b.call(a,d,f,!1)}var p=Object.prototype.hasOwnProperty,q=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length;function t(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":h(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)p.call(a,c)&&b.push(c);if(q)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}g(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}g(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b=0;d--){var e=a[d],f=e.getAttribute("itemtype");if(typeof f!=="string"||f==="")continue;var g={},i=e.querySelectorAll("[itemprop]");for(var j=0;j=0;g--)if(m[g].scope.contains(i)){m[g].schema.subscopes.push(f);break}else m.pop();m.length===0&&n.push(f);m.push({scope:i,schema:f})}return n}function u(){var a=[],c=h.querySelectorAll('script[type="application/ld+json"]');for(var d=0;d2&&arguments[2]!==undefined?arguments[2]:!1,e=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1,f=v(),h=x(),i=t(),k=d?u():[],l=c.getExperiments().get("logDataLayer"),m=l&&l.isInExperimentGroup,o=m?g.dataLayer||[]:[];if(i.length===0&&k.length===0&&j(f).length===0&&e>0){setTimeout(function(){return y(b,c,d,e-1)},n);return}else if(i.length>0||k.length>0||j(f).length>0||j(h).length>0||o.length&&o.length>0){var p={"Schema.org":i,OpenGraph:f,Meta:h,DataLayer:o};d&&(p=a({},p,{"JSON-LD":k}));c.trackSingleSystem("automatic",b,"Microdata",p)}}e.exports=new c(function(a,b){var c={};a.on("fired",function(a,d){var e=d.get("id");if(Object.prototype.hasOwnProperty.call(c,e))return;a=i(b.getOptedInPixels("Microdata"),function(a){return a.id===e});if(a){var f=i(b.getOptedInPixels("MicrodataJsonLd"),function(a){return a.id===e});c[e]=!0;setTimeout(function(){y(e,b,f)},500)}})})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.microdata");f.registerPlugin&&f.registerPlugin("fbevents.plugins.microdata",e.exports);f.ensureModuleRegistered("fbevents.plugins.microdata",function(){return e.exports})})()})(window,document,location,history); +(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},h=function(){function a(a,b){for(var c=0;c1?c-1:0),e=1;e1?e-1:0),g=1;g1&&arguments[1]!==undefined?arguments[1]:0,e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(!e&&!j)return;try{var f=new d(null);f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("rs",i);f.append("e",event);f.append("p",b);c(f,"https://connect.facebook.net/log/fbevents_telemetry/")}catch(b){a.logError(b)}}function l(){k("COALESCE_INIT")}function m(a){k("COALESCE_COMPLETE",a)}function n(a){k("FBMQ_FORWARDED",a,!0)}e.exports={logStartBatch:l,logEndBatch:m,logMobileNativeForwarding:n}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,j=!("addEventListener"in b);function k(a,b){return typeof b==="function"&&a instanceof b}function l(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function m(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var n=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function o(a,b,c){var d=j?"on"+b:b;b=j?a.attachEvent:a.addEventListener;var e=j?a.detachEvent:a.removeEventListener,f=function b(){e&&e.call(a,d,b,!1),c()};b&&b.call(a,d,f,!1)}var p=Object.prototype.hasOwnProperty,q=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length;function t(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":g(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)p.call(a,c)&&b.push(c);if(q)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;fb?a.substr(0,b):a}l={isArray:l,isEmptyObject:w,isNumber:m,isInteger:n,isInstanceOf:k,keys:t,listenOnce:o,map:u,truncate:E,sendGET:A,sendPOST:B,sendBeacon:C,FBSet:y,each:function(a,b){u.call(this,a,b)},some:function(a,b){return v.call(a,b)},filter:function(a,b){return x.call(a,b)},castTo:D};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(JSON===undefined||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":g(a);return a==="number"||a==="boolean"||a==="string"}var f=function(){function e(a){i(this,e),this._params=[],this._piiTranslator=a}h(e,[{key:"containsKey",value:function(a){for(var b=0;b2&&arguments[2]!==undefined?arguments[2]:!1;this._append(encodeURIComponent(b),c,a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append(encodeURIComponent(d),b[d],a,c);return this}},{key:"_append",value:function(b,e,f,g){d(e)?this._appendPrimitive(b,e,g):f===a?this._appendObject(b,e,g):this._appendPrimitive(b,c(e),g)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append(g,c[f],b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b-1;b=b.userAgent.match("CriOS");return!b&&a!==null&&a!==undefined&&c==="Google Inc."&&d===!1&&e===!1}function v(a,b,c,e,f){if(g.navigator&&g.navigator.sendBeacon){f=new l(f);q(f,a,b,c);e&&f.addRange(e);d(f,n.ENDPOINT)}}e.exports={CONFIG:n,sendEvent:t,sendBeaconPII:v,setUseBeacon:c}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEvents.plugins.iwlbootstrapper",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsPlugin"),b=f.getFbeventsModules("SignalsPixelEndpoint"),c=function(a,b,c){return"https://"+["www",c,"facebook","com"].filter(function(a){return a.length!==0}).join(".")+"/signals/iwl.js?pixel_id="+a+(b?"&js_debug=1":"")},d=/^https:\/\/.*\.facebook\.com$/i,i=/^https:\/\/www\.([A-Za-z0-9\.]+)\.facebook\.com\/tr$/,j=b.CONFIG.ENDPOINT!=="https://www.facebook.com/tr"&&i.test(b.CONFIG.ENDPOINT),k=j?i.exec(b.CONFIG.ENDPOINT)[1]:"",l="FB_IWL_BOOTSTRAPPER_STORAGE",m=g.sessionStorage?g.sessionStorage:{getItem:function(a){return null},setItem:function(a,b){},removeItem:function(a){}},n=!1;function o(){var a=m.getItem(l);if(!a)return;a=JSON.parse(a);var b=a.pixelID,d=a.graphToken,e=a.debug,f=a.permissionLevel,i=a.showFlow,o=a.gks;if(n||!b)return;n=!0;a=h.createElement("script");a.async=!0;a.onload=function(){g.FacebookIWL&&g.FacebookIWL.init&&(g.FacebookIWLSessionEnd=function(){m.removeItem(l),g.location.reload()},j&&g.FacebookIWL.set&&g.FacebookIWL.set("tier",k),g.FacebookIWL.init(b,d,f,i,o))};a.src=c(b,e,k);h.body&&h.body.appendChild(a)}function p(event){if(m.getItem(l)||!d.test(event.origin)||!(event.data&&event.data.msg_type==="FACEBOOK_IWL_BOOTSTRAP"))return;event.source.postMessage("FACEBOOK_IWL_BOOTSTRAP_ACK",event.origin);var a=event.data,b=a.pixelID,c=a.graphToken,e=a.debug,f=a.permissionLevel,g=a.showFlow;a=a.gks;m.setItem(l,JSON.stringify({pixelID:b,graphToken:c,debug:e,permissionLevel:f,showFlow:g,gks:a}));o()}e.exports=new a(function(a,b){if(m.getItem(l)){o();return}g.opener&&g.addEventListener("message",p)})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.iwlbootstrapper");f.registerPlugin&&f.registerPlugin("fbevents.plugins.iwlbootstrapper",e.exports);f.ensureModuleRegistered("fbevents.plugins.iwlbootstrapper",function(){return e.exports})})()})(window,document,location,history); +fbq.registerPlugin("748798701854552", {__fbEventsPlugin: 1, plugin: function(fbq, instance, config) { fbq.loadPlugin("inferredevents"); +fbq.loadPlugin("identity"); +instance.optIn("748798701854552", "InferredEvents", true); +fbq.loadPlugin("microdata"); +fbq.loadPlugin("identity"); +instance.optIn("748798701854552", "Microdata", true); +fbq.loadPlugin("iwlbootstrapper"); +instance.optIn("748798701854552", "IWLBootstrapper", true);instance.configLoaded("748798701854552"); }}); \ No newline at end of file diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/LKHsVtzBQth.js b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/LKHsVtzBQth.js new file mode 100644 index 0000000..10717b8 --- /dev/null +++ b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/LKHsVtzBQth.js @@ -0,0 +1,478 @@ +if (self.CavalryLogger) { CavalryLogger.start_js(["Z3urS"]); } + +self.__DEV__=self.__DEV__||0; +"use strict"; + + + + + +(function(){"use strict";var a=Array.prototype.indexOf;Array.prototype.includes||(Array.prototype.includes=function(d){"use strict";if(d!==undefined&&Array.isArray(this)&&!Number.isNaN(d))return a.apply(this,arguments)!==-1;var e=Object(this),f=e.length?b(e.length):0;if(f===0)return!1;var g=arguments.length>1?c(arguments[1]):0,h=g<0?Math.max(f+g,0):g,i=Number.isNaN(d);while(h=0?1:-1}})(); +var __p; +(function(){var a={},b=function(a,b){if(!a&&!b)return null;var c={};typeof a!=="undefined"&&(c.type=a);typeof b!=="undefined"&&(c.signature=b);return c},c=function(a,c){return b(a&&/^[A-Z]/.test(a)?a:undefined,c&&(c.params&&c.params.length||c.returns)?"function("+(c.params?c.params.map(function(a){return/\?/.test(a)?"?"+a.replace("?",""):a}).join(","):"")+")"+(c.returns?":"+c.returns:""):undefined)},d=function(a,b,c){return a},e=function(a,b,d){"sourcemeta"in __transform_includes&&(a.__SMmeta=b);if("typechecks"in __transform_includes){b=c(b?b.name:undefined,d);b&&__w(a,b)}return a},f=function(a,b,c){return c.apply(a,b)},g=function(a,b,c,d){d&&d.params&&__t.apply(a,d.params);c=c.apply(a,b);d&&d.returns&&__t([c,d.returns]);return c},h=function(b,c,d,e,f){if(f){f.callId||(f.callId=f.module+":"+(f.line||0)+":"+(f.column||0));e=f.callId;a[e]=(a[e]||0)+1}return d.apply(b,c)};typeof __transform_includes==="undefined"?(__annotator=d,__bodyWrapper=f):(__annotator=e,"codeusage"in __transform_includes?(__annotator=d,__bodyWrapper=h,__bodyWrapper.getCodeUsage=function(){return a},__bodyWrapper.clearCodeUsage=function(){a={}}):"typechecks"in __transform_includes?__bodyWrapper=g:__bodyWrapper=f)})(); +__t=function(a){return a[0]},__w=function(a){return a}; + + + +(function(a,b){var c="keys",d="values",e="entries",f=function(){var a=h(Array),f;a||(f=function(){function a(a,b){"use strict";this.$1=a,this.$2=b,this.$3=0}a.prototype.next=function(){"use strict";if(this.$1==null)return{value:b,done:!0};var a=this.$1,f=this.$1.length,g=this.$3,h=this.$2;if(g>=f){this.$1=b;return{value:b,done:!0}}this.$3=g+1;if(h===c)return{value:g,done:!1};else if(h===d)return{value:a[g],done:!1};else if(h===e)return{value:[g,a[g]],done:!1}};a.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){"use strict";return this};return a}());return{keys:a?function(a){return a.keys()}:function(a){return new f(a,c)},values:a?function(a){return a.values()}:function(a){return new f(a,d)},entries:a?function(a){return a.entries()}:function(a){return new f(a,e)}}}(),g=function(){var a=h(String),c;a||(c=function(){function a(a){"use strict";this.$1=a,this.$2=0}a.prototype.next=function(){"use strict";if(this.$1==null)return{value:b,done:!0};var a=this.$2,c=this.$1,d=c.length;if(a>=d){this.$1=b;return{value:b,done:!0}}var e=c.charCodeAt(a);if(e<55296||e>56319||a+1===d)e=c[a];else{d=c.charCodeAt(a+1);d<56320||d>57343?e=c[a]:e=c[a]+c[a+1]}this.$2=a+e.length;return{value:e,done:!1}};a.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){"use strict";return this};return a}());return{keys:function(){throw TypeError("Strings default iterator doesn't implement keys.")},values:a?function(a){return a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]()}:function(a){return new c(a)},entries:function(){throw TypeError("Strings default iterator doesn't implement entries.")}}}();function h(a){return typeof a.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]==="function"&&typeof a.prototype.values==="function"&&typeof a.prototype.keys==="function"&&typeof a.prototype.entries==="function"}function i(a,b){"use strict";this.$1=a,this.$2=b,this.$3=Object.keys(a),this.$4=0}i.prototype.next=function(){"use strict";var a=this.$3.length,f=this.$4,g=this.$2,h=this.$3[f];if(f>=a){this.$1=b;return{value:b,done:!0}}this.$4=f+1;if(g===c)return{value:h,done:!1};else if(g===d)return{value:this.$1[h],done:!1};else if(g===e)return{value:[h,this.$1[h]],done:!1}};i.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){"use strict";return this};var j={keys:function(a){return new i(a,c)},values:function(a){return new i(a,d)},entries:function(a){return new i(a,e)}};function k(a,b){if(typeof a==="string")return g[b||d](a);else if(Array.isArray(a))return f[b||d](a);else if(a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"])return a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();else return j[b||e](a)}Object.assign(k,{KIND_KEYS:c,KIND_VALUES:d,KIND_ENTRIES:e,keys:function(a){return k(a,c)},values:function(a){return k(a,d)},entries:function(a){return k(a,e)},generic:j.entries});a.FB_enumerate=k})(typeof global==="undefined"?this:global); + + + + + +typeof window!=="undefined"&&window.JSON&&JSON.stringify(["\u2028\u2029"])==='["\u2028\u2029"]'&&(JSON.stringify=function(a){var b=/\u2028/g,c=/\u2029/g;return function(d,e,f){d=a.call(this,d,e,f);d&&(-1>0;b=String(b||" ");if(this.length>a)return String(this);else{a=a-this.length;a>b.length&&(b+=b.repeat(a/b.length));return b.slice(0,a)+String(this)}}),String.prototype.padEnd||(String.prototype.padEnd=function(a,b){a=a>>0;b=String(b||" ");if(this.length>a)return String(this);else{a=a-this.length;a>b.length&&(b+=b.repeat(a/b.length));return String(this)+b.slice(0,a)}}); +String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/,"")}); + + +(function(a){a=a.babelHelpers={};var b=Object.prototype.hasOwnProperty;a.inherits=function(a,b){Object.assign(a,b);a.prototype=Object.create(b&&b.prototype);a.prototype.constructor=a;a.__superConstructor__=b;return b};a._extends=Object.assign;a["extends"]=a._extends;a.construct=function(a,b){return new(Function.prototype.bind.apply(a,[null].concat(b)))()};a.objectWithoutProperties=function(a,c){var d={};for(var e in a){if(!b.call(a,e)||c.indexOf(e)>=0)continue;d[e]=a[e]}return d};a.taggedTemplateLiteralLoose=function(a,b){b||(b=a.slice(0));a.raw=b;return a};a.bind=Function.prototype.bind})(typeof global==="undefined"?self:global); +(function(a){if(a.require)return;var b=(a.Env||{}).gk_require_dic,c=null,d=[],e=b?Object.create(null):{},f=b?Object.create(null):{},g=0,h=0,i=0,j=1,k=2,l=4,m=8,n={},o=Object.prototype.hasOwnProperty,p=Object.prototype.toString;function q(a){a=Array.prototype.slice.call(a);var b={},c,d,f,g;while(a.length){d=a.shift();if(b[d])continue;b[d]=!0;f=e[d];if(!f||Q(f))continue;if(f.dependencies)for(c=0;c0){b=d;d=[];while(b.length>0)y.call(null,b.pop().id)}return k}function I(a){var b=e[a];if(b)return b;b=new J(a,0);e[a]=b;return b}function J(a,b,c,d,e,f,g){this.id=a,this.refcount=b,this.exports=c||null,this.factory=d,this.factoryLength=-1,this.factoryFinished=!1,this.dependencies=e,this.depPosition=0,this.context=f,this.special=g||0,this.hasError=!1,this.error=null,this.ranRecursiveSideEffects=!1,this.sideEffectDependencyException=null,this.nextDepWaitingHead=null,this.nextDepWaitingNext=null,this.tarjanGeneration=-1,this.tarjanLow=0,this.tarjanIndex=0,this.tarjanOnStack=!1}function K(a){if(!e[a])return;var b=e[a];e[a]=void 0;if(b.dependencies)for(var a=0;a0?a.join(",")+"__":"")+g++,a,$()(b,"requireLazy",{propagationType:0}),j,c,1)}function M(a){return"__mod__"+(a?a+"__":"")+g++}function N(a,b,c){c.tarjanGeneration!=h&&(c.tarjanGeneration=h,c.tarjanLow=c.tarjanIndex=i++,c.tarjanOnStack=!0,b.push(c));if(c.dependencies!=null)for(var d=c.depPosition;d=a.dependencies.length}function R(a){a.depPosition++,U(a)}function S(a){var b=a.nextDepWaitingHead;a.nextDepWaitingHead=null;while(b!==null){a=b;b=a.nextDepWaitingNext;a.nextDepWaitingNext=null;var c=!e[a.id];c||R(a)}}function T(a){return a.special&j}function U(a){while(a.depPosition1?b-1:0),d=1;d1?b-1:0),d=1;d1?b-1:0),d=1;d2?e-2:0),h=2;h',""];d=[1,"","
"];f=[3,"","
"];var j=[1,'',""],k={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:c,option:c,caption:d,colgroup:d,tbody:d,tfoot:d,thead:d,td:f,th:f};b=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];b.forEach(function(a){k[a]=j,i[a]=!0});function a(a){a=a;!h&&g(0,undefined);Object.prototype.hasOwnProperty.call(k,a)||(a="*");Object.prototype.hasOwnProperty.call(i,a)||(a==="*"?h.innerHTML="":h.innerHTML="<"+a+">",i[a]=!h.firstChild);return i[a]?k[a]:null}e.exports=a}),null); +__d("createNodesFromMarkup",["invariant","ExecutionEnvironment","getMarkupWrap"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("ExecutionEnvironment").canUseDOM?document.createElement("div"):null,i=/^\s*<(\w+)/;function j(a){a=a.match(i);return a&&a[1].toLowerCase()}function a(a,c){__p&&__p();var d=h;!h&&g(0,undefined);var e=j(a);e=e&&b("getMarkupWrap")(e);if(e){d.innerHTML=e[1]+a+e[2];e=e[0];while(e--)d=d.lastChild}else d.innerHTML=a;e=d.getElementsByTagName("script");e.length&&(c||g(0,undefined),Array.from(e).forEach(c));a=Array.from(d.childNodes);while(d.lastChild)d.removeChild(d.lastChild);return a}e.exports=a}),null); +__d("emptyFunction",[],(function(a,b,c,d,e,f){__p&&__p();function a(a){return function(){return a}}b=function(){};b.thatReturns=a;b.thatReturnsFalse=a(!1);b.thatReturnsTrue=a(!0);b.thatReturnsNull=a(null);b.thatReturnsThis=function(){return this};b.thatReturnsArgument=function(a){return a};e.exports=b}),null); +__d("evalGlobal",[],(function(a,b,c,d,e,f){__p&&__p();function a(a){__p&&__p();if(typeof a!=="string")throw new TypeError("JS sent to evalGlobal is not a string. Only strings are permitted.");if(!a)return;var b=document.createElement("script");try{b.appendChild(document.createTextNode(a))}catch(c){b.text=a}a=document.getElementsByTagName("head")[0]||document.documentElement;a.appendChild(b);a.removeChild(b)}e.exports=a}),null); +__d("HTML",["invariant","Bootloader","createNodesFromMarkup","emptyFunction","evalGlobal"],(function(a,b,c,d,e,f,g){__p&&__p();var h=/(<(\w+)[^>]*?)\/>/g,i={abbr:!0,area:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0};function j(a){"use strict";__p&&__p();a&&typeof a.__html==="string"&&(!1,a=a.__html);if(!(this instanceof j))return a instanceof j?a:new j(a);if(a){var c=typeof a;c==="string"||g(0,undefined,c)}this._markup=a||"";this._defer=!1;this._nodes=null;this._inlineJS=b("emptyFunction");this._rootNode=null}j.prototype.toString=function(){"use strict";return this._markup};j.prototype.getContent=function(){"use strict";return this._markup};j.prototype.getNodes=function(){"use strict";this._fillCache();return this._nodes};j.prototype.getRootNode=function(){"use strict";__p&&__p();this._rootNode&&g(0,undefined);var a=this.getNodes();if(a.length===1)this._rootNode=a[0];else{var b=document.createDocumentFragment();for(var c=0;c"}),c=null;a=b("createNodesFromMarkup")(a,function(a){c=c||[],c.push(a.src?b("Bootloader").requestJSResource_UNSAFE_NEEDS_REVIEW_BY_SECURITY_AND_XFN.bind(b("Bootloader"),a.src):b("evalGlobal").bind(null,a.innerHTML)),a.parentNode.removeChild(a)});c&&(this._inlineJS=function(){for(var a=0;a=d)return["erx slice failure: %s",a];c=a.substring(0,c);f=a.substring(f);a=a.substring(e,d);try{e=JSON.parse(a);e[0]=c+e[0]+f;return e}catch(b){return["erx parse failure: %s because %s",a,b.message]}}e.exports=a}),null); +__d("removeFromArray",[],(function(a,b,c,d,e,f){function a(a,b){b=a.indexOf(b);b!==-1&&a.splice(b,1)}e.exports=a}),null); +__d("ErrorUtils",["Env","LogviewForcedKeyError","eprintf","erx","removeFromArray","sprintf"],(function(a,b,c,d,e,f){__p&&__p();var g="",h="",i=typeof window==="undefined"?"":"",j="",k=/^https?:\/\//i,l=/^Type Mismatch for/,m=/(.*)[@\s][^\s]+$/,n=/^at .*eval eval (at .*\:\d+\:\d+), .*$/,o=[],p,q=[],r=50,s=[],t=!1,u=!1,v=!1,w=/\bnocatch\b/.test(location.search),x=["Unknown script code","Function code","eval code"];b("Env").stack_trace_limit&&Error.stackTraceLimit!=null&&(Error.stackTraceLimit=b("Env").stack_trace_limit);function y(a){a=a.columnNumber||a.column;return a!=null?String(a):""}function z(a){return a[0]&&a[0].column||""}function A(a){for(var b=0;b:]+:\s/,"");a=a!=null&&c.startsWith(a)?c.substr(a.length+1):c!==b?c.replace(/^.*?\n/,""):b;return a.split(/\n\n/)[0].replace(/[\(\)]|\[.*?\]/g,"").split("\n").map(function(a){__p&&__p();a=a.trim();var b=a.match(n);b&&(a=b[1]);var c,d;b=a.match(/:(\d+)(?::(\d+))?$/);b&&(c=b[1],d=b[2],a=a.slice(0,-b[0].length));var e;b=A(a)||a.match(m);if(b){a=a.substring(b[1].length+1);b=b[1].match(/(?:at)?\s*(.*)(?:[^\s]+|$)/);e=b?b[1]:""}a.includes("charset=utf-8;base64,")&&(a="");b={column:d,identifier:e,line:c,script:a};p&&p(b);a=" at"+(b.identifier?" "+b.identifier+" (":" ")+b.script+(b.line?":"+b.line:"")+(b.column?":"+b.column:"")+(b.identifier?")":"");return babelHelpers["extends"]({},b,{text:a})})}function H(a){s.unshift(a),t=!0}function I(){s.shift(),t=s.length!==0}var J={ANONYMOUS_GUARD_TAG:g,GENERATED_GUARD_TAG:h,GLOBAL_ERROR_HANDLER_TAG:i,history:q,addListener:function(a,b){b===void 0&&(b=!1),o.push(a),b||q.forEach(function(b){return a(b.error,b.loggingType)})},removeListener:function(a){b("removeFromArray")(o,a)},setSourceResolver:function(a){p=a},applyWithGuard:function(c,d,e,f,h,i){__p&&__p();H(h||g);b("Env").nocatch&&(w=!0);if(w){try{h=c.apply(d,e||[])}finally{I()}return h}try{return c.apply(d,e||[])}catch(g){h=g;if(h==null)try{var j=d,k=function(a){__p&&__p();if(a==null)return"";else if(typeof a==="object"&&a.toString)return a.toString();else if(typeof a==="boolean"&&a.toString)return a.toString();else if(typeof a==="number"&&a.toString)return a.toString();else if(typeof a==="string")return a;else if(typeof a==="symbol"&&a.toString)return a.toString();else if(typeof a==="function"&&a.toString)return a.toString();return""};if(d!=null)if(d==window)j="[The window object]";else if(d==a)j="[The global object]";else{var l=d,m={};Object.keys(l).map(function(a,b){b=l[a];m[a]=k(b)});j=m}d=(e||[]).map(k);var n="applyWithGuard threw null or undefined:\nFunc: %s\nContext: %s\nArgs: %s",o=c.toString&&c.toString().substr(0,1024);j=JSON.stringify(j).substr(0,1024);d=JSON.stringify(d).substr(0,1024);var p=b("sprintf")(n,o?o:"this function does not support toString",j,d);h=new Error(p);h.messageWithParams=[n,o?o:"this function does not support toString",j,d]}catch(a){p="applyWithGuard threw null or undefined with unserializable data:\nFunc: %s\nMetaEx: %s";n=c.toString&&c.toString().substr(0,1024);o=b("sprintf")(p,n?n:"this function does not support toString",a.message);h=new Error(o);h.messageWithParams=[o,n?n:"this function does not support toString",a.message]}i&&i.deferredSource&&(h.deferredSource=i.deferredSource);j=J.normalizeError(h);f&&f(j);j.extra||(j.extra={});if(c)try{j.extra[c.toString().substring(0,100)]="function"}catch(a){}e&&(j.extra[Array.from(e).toString().substring(0,100)]="args");j.guard=s[0];j.guardList=s.slice();J.reportError(j,!1,"GUARDED")}finally{I()}},guard:function(a,b,c){b=b||a.name||h;function d(){return J.applyWithGuard(a,c||this,[].concat(Array.prototype.slice.call(arguments)),null,b)}a.__SMmeta&&(d.__SMmeta=a.__SMmeta);return d},inGuard:function(){return t},normalizeError:function(a){__p&&__p();var c=a;a=a!=null?a:{};if(Object.prototype.hasOwnProperty.call(a,"_originalError"))return a;var d=G(a),e=!1;if(a.framesToPop){var f=a.framesToPop,g;while(f>0&&d.length>0)g=d.shift(),f--,e=!0;l.test(a.message)&&a.framesToPop===2&&g&&(k.test(g.script)&&(a.message+=" at "+g.script+(g.line?":"+g.line:"")+(g.column?":"+g.column:"")))}f=F(a.reactComponentStackForLogging);var h=a instanceof b("LogviewForcedKeyError")?a.getForcedCategoryKey():null;c={_originalError:c,column:e?z(d):y(a)||z(d),deferredSource:a.deferredSource,extra:a.extra,fbloggerMetadata:a.fbloggerMetadata,forcedLogviewKey:h,guard:a.guard,guardList:a.guardList,line:e?C(d):B(a)||C(d),message:a.message,messageWithParams:a.messageWithParams,name:a.name,reactComponentStack:f,script:e?E(d):D(a)||E(d),serverHash:a.serverHash,snapshot:a.snapshot,stack:d.map(function(a){return a.text}).join("\n"),stackFrames:d,type:a.type};typeof c.message==="string"?c.messageWithParams=c.messageWithParams||b("erx")(c.message):(c.messageObject=c.message,c.message=String(c.message)+" ("+typeof c.message+")");c.messageWithParams&&(c.message=b("eprintf").apply(undefined,c.messageWithParams));typeof window!=="undefined"&&window&&window.location&&(c.windowLocationURL=window.location.href);p&&p(c);for(var i in c)c[i]==null&&delete c[i];return c},onerror:function(a,b,c,d,e){e=e||{},e.message=e.message||a,e.script=e.script||b,e.line=e.line||c,e.column=e.column||d,e.guard=i,e.guardList=[i],J.reportError(e,!0,"FATAL")},reportError:function(b,c,d){__p&&__p();c===void 0&&(c=!1);d===void 0&&(d="DEPRECATED");if(u){!1;return!1}b.reactComponentStack&&H(j);s.length>0&&(b.guard=b.guard||s[0],b.guardList=s.slice());b.reactComponentStack&&I();b=J.normalizeError(b);if(!c){c=a.console;var e=b._originalError;e=e!=null?""+e.message:"";if((!c[b.type]||b.type==="error")&&!v){e=e.length>80?e.slice(0,77)+"...":e;c.error('ErrorUtils caught an error: "'+e+"\". Subsequent errors won't be logged; see https://fburl.com/debugjs.");v=!0}}q.length>r&&q.splice(r/2,1);q.push({error:b,loggingType:d});u=!0;for(var c=0;c=b.length)break;d=b[f++]}else{f=b.next();if(f.done)break;d=f.value}d=d;if(this.$4.get(d))continue;c++;var g=this.$1.get(d);g===undefined&&(g=new Map(),this.$1.set(d,g));g.set(a,(g.get(a)||0)+1)}return c};a.prototype.$6=function(a){"use strict";__p&&__p();a=this.$1.get(a);if(!a)return;for(var c=a.entries(),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1]-1;a.set(g,f);f<=0&&a["delete"](g);f=this.$2.get(g);if(f!==undefined){f.$7--;if(f.$7<=0){f=f.$8;this.$2["delete"](g);b("ErrorUtils").applyWithGuard(f)}}}};a.prototype.addDependenciesToExistingCallback=function(a,b){"use strict";var c=this.$2.get(a);if(!c)return null;b=this.$5(a,b);c.$7+=b;return a};a.prototype.isPersistentDependencySatisfied=function(a){"use strict";return!!this.$4.get(a)};a.prototype.satisfyPersistentDependency=function(a){"use strict";this.$4.set(a,1),this.$6(a)};a.prototype.satisfyNonPersistentDependency=function(a){"use strict";var b=this.$4.get(a)===1;b||this.$4.set(a,1);this.$6(a);b||this.$4["delete"](a)};a.prototype.registerCallback=function(a,c){"use strict";__p&&__p();var d=this.$3;this.$3++;c=this.$5(d,c);if(c===0){b("ErrorUtils").applyWithGuard(a);return null}this.$2.set(d,{$8:a,$7:c});return d};a.prototype.unsatisfyPersistentDependency=function(a){"use strict";this.$4["delete"](a)};e.exports=a}),null); +__d("EventSubscription",[],(function(a,b,c,d,e,f){"use strict";function a(a){this.subscriber=a}a.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)};e.exports=a}),null); +__d("EmitterSubscription",["EventSubscription"],(function(a,b,c,d,e,f){"use strict";var g;c=babelHelpers.inherits(a,b("EventSubscription"));g=c&&c.prototype;function a(a,b,c){g.constructor.call(this,a),this.listener=b,this.context=c}e.exports=a}),null); +__d("EventSubscriptionVendor",["invariant"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function a(){this.$1={}}a.prototype.addSubscription=function(a,b){b.subscriber===this||g(0,undefined);this.$1[a]||(this.$1[a]=[]);var c=this.$1[a].length;this.$1[a].push(b);b.eventType=a;b.key=c;return b};a.prototype.removeAllSubscriptions=function(a){a===undefined?this.$1={}:delete this.$1[a]};a.prototype.removeSubscription=function(a){var b=a.eventType;a=a.key;b=this.$1[b];b&&delete b[a]};a.prototype.getSubscriptionsForType=function(a){return this.$1[a]};e.exports=a}),null); +__d("BaseEventEmitter",["invariant","EmitterSubscription","ErrorUtils","EventSubscriptionVendor","emptyFunction"],(function(a,b,c,d,e,f,g){__p&&__p();function a(){"use strict";this.$2=new(b("EventSubscriptionVendor"))(),this.$1=null}a.prototype.addListener=function(a,c,d){"use strict";return this.$2.addSubscription(a,new(b("EmitterSubscription"))(this.$2,c,d))};a.prototype.once=function(a,b,c){"use strict";var d=this;return this.addListener(a,function(){d.removeCurrentListener(),b.apply(c,arguments)})};a.prototype.removeAllListeners=function(a){"use strict";this.$2.removeAllSubscriptions(a)};a.prototype.removeCurrentListener=function(){"use strict";!this.$1&&g(0,undefined),this.$2.removeSubscription(this.$1)};a.prototype.listeners=function(a){"use strict";a=this.$2.getSubscriptionsForType(a);return a?a.filter(b("emptyFunction").thatReturnsTrue).map(function(a){return a.listener}):[]};a.prototype.emit=function(a){"use strict";__p&&__p();var b=this.$2.getSubscriptionsForType(a);if(b){var c=Object.keys(b),d;for(var e=0;e2?d-2:0),f=2;f0||g(0,undefined),this.$1=a,this.$2=0,this.$3=[],this.$4=[]}a.prototype.write=function(a){"use strict";this.$3.lengththis.$1){var b=this.read();this.$2=0;this.$3=b;this.$1=a}return this};a.prototype.dropFirst=function(a){"use strict";if(a<=this.$1){var b=this.read();this.$2=0;b.splice(0,a);this.$3=b}return this};a.prototype.clear=function(){"use strict";this.$2=0;this.$3=[];return this};a.prototype.currentSize=function(){"use strict";return this.$3.length};e.exports=a}),null); +__d("ResourceTypes",[],(function(a,b,c,d,e,f){"use strict";a={JS:"js",CSS:"css",XHR:"xhr"};e.exports=a}),null); +__d("TimingAnnotations",[],(function(a,b,c,d,e,f){__p&&__p();a.prototype.addStringAnnotation=function(a,b){"use strict";return this};a.prototype.addSetAnnotation=function(a,b){"use strict";return this};a.prototype.addSetElement=function(a,b){"use strict";return this};a.prototype.registerOnBeforeSend=function(a){"use strict";return this};a.prototype.addVectorAnnotation=function(a,b){"use strict";return this};a.prototype.addVectorElement=function(a,b){"use strict";return this};function a(){"use strict"}function b(){"use strict";this.$1=null,this.$2=null,this.$3=null,this.$4=[]}b.prototype.addStringAnnotation=function(a,b){"use strict";this.$2=this.$2||new Map();this.$2.set(a,b);return this};b.prototype.addSetAnnotation=function(a,b){"use strict";var c=this.$1||new Map(),d=c.get(a)||new Set();b.forEach(function(a){return d.add(a)});c.set(a,d);this.$1=c;return this};b.prototype.addSetElement=function(a,b){"use strict";var c=this.$1||new Map(),d=c.get(a)||new Set();d.add(b);c.set(a,d);this.$1=c;return this};b.prototype.addVectorAnnotation=function(a,b){"use strict";this.$3=this.$3||new Map();this.$3.set(a,b);return this};b.prototype.addVectorElement=function(a,b){"use strict";var c=this.$3=this.$3||new Map(),d=this.$3.get(a)||[];d.push(b);c.set(a,d);return this};b.prototype.registerOnBeforeSend=function(a){"use strict";this.$4.push(a);return this};b.prototype.prepareToSend=function(){"use strict";__p&&__p();this.$4.forEach(function(a){return a(this)}.bind(this));this.$4=[];var a={};if(this.$1!=null)for(var b=this.$1,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;var f=e[0];e=e[1];a[f]=Array.from(e.values())}f={};if(this.$2!=null)for(var e=this.$2,d=Array.isArray(e),c=0,e=d?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(d){if(c>=e.length)break;b=e[c++]}else{c=e.next();if(c.done)break;b=c.value}b=b;var g=b[0];b=b[1];f[g]=b}g={};if(this.$3!=null)for(var b=this.$3,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;var h=e[0];e=e[1];g[h]=e}return{setProps:a,stringProps:f,vectorProps:g}};b.combine=function(a,b){"use strict";var c;a!=null&&b!=null?(a.stringProps=babelHelpers["extends"]({},b.stringProps,a.stringProps),a.setProps=babelHelpers["extends"]({},b.setProps,a.setProps),c=a):a!=null?c=a:b!=null&&(c=b);return c};b.EmptyTimingAnnotations=a;b.EmptyTraceTimingAnnotations=a;b.TraceTimingAnnotations=b;e.exports=b}),null); +__d("flattenPHPQueryData",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();function a(a){return h(a,"",{})}function h(a,b,c){if(a===null||a===undefined)c[b]=undefined;else if(typeof a==="object"){typeof a.appendChild!=="function"||g(0,undefined);for(var d in a)d!=="$$typeof"&&Object.prototype.hasOwnProperty.call(a,d)&&a[d]!==undefined&&h(a[d],b?b+"["+d+"]":d,c)}else c[b]=a;return c}e.exports=a}),null); +__d("PHPQuerySerializer",["invariant","flattenPHPQueryData"],(function(a,b,c,d,e,f,g){__p&&__p();function a(a){var c=[];a=b("flattenPHPQueryData")(a);for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var e=h(d);a[d]===undefined?c.push(e):c.push(e+"="+h(String(a[d])))}return c.join("&")}function h(a){return encodeURIComponent(a).replace(/%5D/g,"]").replace(/%5B/g,"[")}var i=/^([-_\w]+)((?:\[[-_\w]*\])+)=?(.*)/;function j(a){return a==="hasOwnProperty"||a==="__proto__"?"\ud83d\udf56":a}function c(a){__p&&__p();if(!a)return{};var b={};a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");a=a.split("&");var c=Object.prototype.hasOwnProperty;for(var d=0,e=a.length;d-1});if(c.length>0){a.push(b);return!1}return!0});return{invalidMetadata:a,validMetadata:b}};a.addGlobalMetadata=function(a,b,c){g.push([a,b,c])};e.exports=a}),null); +__d("FBLogMessage",["ErrorUtils","FBLoggerMetadata","TAAL","TAALOpcodes","erx","ex","sprintf"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={mustfix:"error",warn:"warn",info:"log"},h=b("ex"),i=function a(b){return function(c){b>0&&(c(),a(b-1)(c))}};function j(a){this.project=a,this.metadata=new(b("FBLoggerMetadata"))(),this.taalOpcodes=[]}j.prototype.$1=function(a,c){__p&&__p();var d=2;if(c===undefined){var e=new j("fblogger");i(d)(function(){return e.blameToPreviousFrame()});e.mustfix("You provided an undefined format string to FBLogger, dropping log line");return}var f;for(var k=arguments.length,l=new Array(k>2?k-2:0),m=2;m %s",a,this.project,q);f=b("ErrorUtils").normalizeError(f);if(!this.metadata.isEmpty()){var r=this.metadata.getAll(),s=r.invalidMetadata,t=r.validMetadata;if(s.length>0){var u=new j("fblogger");i(d)(function(){return u.blameToPreviousFrame()});u.warn("Metadata cannot contain colon %s",s.map(function(a){return a.join(":")}).join(" "))}f.fbloggerMetadata=t.map(function(a){return a.join(":")})}var v=g[a];f.type=v;if(this.error&&(this.taalOpcodes&&this.taalOpcodes.length)){var w=new j("fblogger");i(d)(function(){return w.blameToPreviousFrame()});w.warn("Blame helpers do not work with catching")}b("ErrorUtils").reportError(f,!1,"FBLOGGER")};j.prototype.mustfix=function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d1?b-1:0),d=1;d=0;d--)c[a[d]]=b[d];else for(var d=a.length-1;d>=0;d--)c[a[d]]=b;return c}e.exports=g}),null); +__d("URISchemes",["createObjectFrom"],(function(a,b,c,d,e,f){var g=b("createObjectFrom")(["blob","cmms","fb","fba","fbatwork","fb-ama","fb-workchat","fb-workchat-secure","fb-messenger","fb-messenger-public","fb-messenger-group-thread","fb-page-messages","fb-pma","fbcf","fbconnect","fbinternal","fbmobilehome","fbrpc","file","ftp","http","https","mailto","ms-app","intent","itms","itms-apps","itms-services","market","svn+ssh","fbstaging","tel","sms","pebblejs","sftp","whatsapp","moments","flash","fblite","chrome-extension","webcal","fb124024574287414","fb124024574287414rc","fb124024574287414master","fb1576585912599779","fb929757330408142","designpack","fbpixelcloud","fbapi20130214","fb1196383223757595","tbauth","oculus","oculus.store","skype","callto","workchat","fb236786383180508","fb1775440806014337","data"]);a={isAllowed:function(a){return!a?!0:Object.prototype.hasOwnProperty.call(g,a.toLowerCase())}};e.exports=a}),null); +__d("setHostSubdomain",[],(function(a,b,c,d,e,f){function a(a,b){a=a.split(".");a.length<3?a.unshift(b):a[0]=b;return a.join(".")}e.exports=a}),null); +__d("URIBase",["invariant","FBLogger","URIRFC3986","URISchemes","ex","setHostSubdomain"],(function(a,b,c,d,e,f,g){__p&&__p();var h=new RegExp("[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]"),i=new RegExp("^(?:[^/]*:|[\\x00-\\x1f]*/[\\x00-\\x1f]*/)");function j(a,c,d,e){__p&&__p();if(!c)return!0;if(c instanceof l){a.setProtocol(c.getProtocol());a.setDomain(c.getDomain());a.setPort(c.getPort());a.setPath(c.getPath());a.setQueryData(e.deserialize(e.serialize(c.getQueryData())));a.setFragment(c.getFragment());a.setIsGeneric(c.getIsGeneric());a.setForceFragmentSeparator(c.getForceFragmentSeparator());return!0}c=c.toString().trim();var f=b("URIRFC3986").parse(c)||{fragment:null,scheme:null};if(!d&&!b("URISchemes").isAllowed(f.scheme))return!1;a.setProtocol(f.scheme||"");if(!d&&h.test(f.host||""))return!1;a.setDomain(f.host||"");a.setPort(f.port||"");a.setPath(f.path||"");if(d)a.setQueryData(e.deserialize(f.query||"")||{});else try{a.setQueryData(e.deserialize(f.query||"")||{})}catch(a){return!1}a.setFragment(f.fragment||"");f.fragment===""&&a.setForceFragmentSeparator(!0);a.setIsGeneric(f.isGenericURI||!1);if(f.userinfo!==null)if(d)throw new Error(b("ex")("URI.parse: invalid URI (userinfo is not allowed in a URI): %s",a.toString()));else return!1;if(!a.getDomain()&&a.getPath().indexOf("\\")!==-1)if(d)throw new Error(b("ex")("URI.parse: invalid URI (no domain but multiple back-slashes): %s",a.toString()));else return!1;if(!a.getProtocol()&&i.test(c))if(d)throw new Error(b("ex")("URI.parse: invalid URI (unsafe protocol-relative URLs): %s",a.toString()));else return!1;if(a.getDomain()&&a.getPath()&&!a.getPath().startsWith("/"))if(d)throw new Error(b("ex")("URI.parse: invalid URI (domain and path where path lacks leading slash): %s",a.toString()));else return!1;return!0}var k=[];l.tryParse=function(a,b){"use strict";var c=new l(null,b);return j(c,a,!1,b)?c:null};l.isValid=function(a,b){"use strict";return!!l.tryParse(a,b)};function l(a,b){"use strict";b||g(0,undefined),this.$9=b,this.$7="",this.$1="",this.$6="",this.$5="",this.$3="",this.$4=!1,this.$8={},this.$2=!1,j(this,a,!0,b)}l.prototype.setProtocol=function(a){"use strict";b("URISchemes").isAllowed(a)||(b("FBLogger")("uri").mustfix("You attempted to set the protocol of a URI to `%s`. That protocol does not pass the `URISchemes.isAllowed` test.",a),g(0,undefined,a));this.$7=a;return this};l.prototype.getProtocol=function(){"use strict";return(this.$7||"").toLowerCase()};l.prototype.setSecure=function(a){"use strict";return this.setProtocol(a?"https":"http")};l.prototype.isSecure=function(){"use strict";return this.getProtocol()==="https"};l.prototype.setDomain=function(a){"use strict";if(h.test(a))throw new Error(b("ex")("URI.setDomain: unsafe domain specified: %s for url %s",a,this.toString()));this.$1=a;return this};l.prototype.getDomain=function(){"use strict";return this.$1};l.prototype.setPort=function(a){"use strict";this.$6=a;return this};l.prototype.getPort=function(){"use strict";return this.$6};l.prototype.setPath=function(a){"use strict";this.$5=a;return this};l.prototype.getPath=function(){"use strict";return this.$5};l.prototype.addQueryData=function(a,b){"use strict";Object.prototype.toString.call(a)==="[object Object]"?Object.assign(this.$8,a):this.$8[a]=b;return this};l.prototype.setQueryData=function(a){"use strict";this.$8=a;return this};l.prototype.getQueryData=function(){"use strict";return this.$8};l.prototype.removeQueryData=function(a){"use strict";Array.isArray(a)||(a=[a]);for(var b=0,c=a.length;b0||this.getFragment())};l.prototype.toString=function(){"use strict";var a=this;for(var b=0;b0},getOverflowSize:function(){return c!=null?c:Math.max(this.$6-d,0)}.bind(this),close:function(){if(b)return[];else{b=!0;c=this.$6-d;return this.$7(a)}}.bind(this)};this.$2.push(e);return e};a.prototype.pushElement=function(a){this.$2.length>0&&(this.$1.write(a),this.$5++);return this};a.prototype.isActive=function(){return this.$2.length>0};a.prototype.$8=function(a){return Math.max(a-this.$6,0)};a.prototype.$7=function(a){__p&&__p();var c,d,e,f;for(var g=0;g0&&(this.$1.dropFirst(g),this.$6+=g);return i};e.exports=a}),null); +__d("WorkerUtils",[],(function(a,b,c,d,e,f){"use strict";function b(){try{return"WorkerGlobalScope"in a&&a instanceof a.WorkerGlobalScope}catch(a){return!1}}e.exports={isWorkerContext:b}}),null); +__d("getReusableTimeSliceContinuation",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,b,c){__p&&__p();var d=!1,e=a.getGuardedContinuation(c),f=function(b){e(function(){d||(e=a.getGuardedContinuation(c)),b()})};f.last=function(a){var b=e;g();b(a)};f[b]={cancel:function(){d||(a.cancel(e),g(),d=!0)},tokens:[],invoked:!1};function g(){d=!0,e=function(a){a()}}return f}e.exports=a}),null); +__d("nullthrows",[],(function(a,b,c,d,e,f){a=function(a,b){b===void 0&&(b="Got unexpected null or undefined");if(a!=null)return a;a=new Error(b);a.framesToPop=1;throw a};e.exports=a}),null); +__d("wrapFunction",[],(function(a,b,c,d,e,f){__p&&__p();var g={};a=function(a,b,c){return function(){var d=b in g?g[b](a,c):a;for(var e=arguments.length,f=new Array(e),h=0;h0?a[a.length-1]:null}function B(a,c){var d={};b("ErrorUtils").applyWithGuard(F,null,[a,c,d]);b("ErrorUtils").applyWithGuard(G,null,[a,c,d]);w.push(a);x.push(c);y.push(d)}function C(a,b,c){h.forEach(function(d){var e=d.onNewContextCreated(z(),b,c);a[d.getBeforeID()]=e})}function D(a,b){h.forEach(function(c){c.onContextCanceled(a,b[c.getBeforeID()])})}function E(a,b,c){i.forEach(function(d){d.onAfterContextEnded(a,b[d.getBeforeID()],c[d.getBeforeID()],a.meta)})}function F(a,b,c){h.forEach(function(d){var e=d.onBeforeContextStarted(a,b[d.getBeforeID()],a.meta);c[d.getBeforeID()]=e})}function G(a,b,c){h.forEach(function(d){var e=d.onAfterContextStarted(a,b[d.getBeforeID()],c[d.getBeforeID()],a.meta);c[d.getBeforeID()]=e})}function H(){__p&&__p();var a=z(),c=A(x),d=A(y);if(a==null||c==null||d==null){b("FBLogger")("TimeSlice").mustfix("popped too many times off the timeslice stack");l=!1;return}b("ErrorUtils").applyWithGuard(E,null,[a,c,d]);l=!a.isRoot;w.pop();x.pop();y.pop()}var I={PropagationType:{CONTINUATION:0,EXECUTION:1,ORPHAN:2},guard:function(a,c,d){__p&&__p();typeof a==="function"||g(0,undefined);typeof c==="string"||g(0,undefined);var e=J(d);if(a[j])return a;e.root||I.checkCoverage();var f;l&&(f=z());var h={},i=0,m=undefined,n=b("Env").deferred_stack_trace_rate||0;n!==0&&Math.random()*n<=1&&b("Env").timeslice_heartbeat_config&&b("Env").timeslice_heartbeat_config.isArtilleryOn&&d&&d.registerCallStack&&(m=b("ErrorUtils").normalizeError(new Error("deferred execution source")));var o={cancel:function(){o.invoked||b("ErrorUtils").applyWithGuard(D,null,[c,h])},tokens:[],invoked:!1};n=function(){__p&&__p();var d=b("performanceAbsoluteNow")(),g,j=k++,n={contextID:j,name:c,isRoot:!l,executionNumber:i++,meta:e,absBeginTimeMs:d};o.invoked||(o.invoked=!0,o.tokens.length&&(o.tokens.forEach(function(a){delete p[a]}),o.tokens=[]));B(n,h);if(f!=null){var q=!!e.isContinuation;f.isRoot?(n.indirectParentID=f.contextID,n.isEdgeContinuation=q):(n.indirectParentID=f.indirectParentID,n.isEdgeContinuation=!!(q&&f.isEdgeContinuation))}var r=b("WorkerUtils").isWorkerContext();l=!0;try{if(!n.isRoot||r)return a.apply(this,arguments);else{var s="TimeSlice"+(c?": "+c:"");g=b("ErrorUtils").applyWithGuard(a,this,[].concat(Array.prototype.slice.call(arguments)),null,s,{deferredSource:m});return g}}finally{var v=z();if(v==null)b("FBLogger")("TimeSlice").mustfix("timeslice stack misaligned, not logging the block"),l=!1;else{var w=v.isRoot,x=v.contextID,y=v.indirectParentID,A=v.isEdgeContinuation,C=b("performanceAbsoluteNow")();v.absEndTimeMs=C;if(w&&d!=null){t+=C-d;var D=babelHelpers["extends"]({begin:d,end:C,id:x,indirectParentID:y,representsExecution:!0,isEdgeContinuation:f&&A,guard:c},e,a.__SMmeta);u.pushElement(D)}H()}}};n=n;n[j]=o;b("ErrorUtils").applyWithGuard(C,null,[h,c,e]);return n},copyGuardForWrapper:function(a,b){a&&a[j]&&(b[j]=a[j]);return b},cancel:function(a){a=a?a[j]:null;a&&!a.invoked&&(a.cancel(),a.tokens.forEach(function(a){delete p[a]}),a.invoked=!0)},cancelWithToken:function(a){p[a]&&I.cancel(p[a])},registerForCancelling:function(a,b){a&&(b[j]&&(p[a]||(b[j].invoked||(p[a]=b,b[j].tokens.push(a)))))},inGuard:function(){return l},checkCoverage:function(){var a;if(q!==o&&!l){v&&(a=Error.stackTraceLimit,Error.stackTraceLimit=50);var c=new Error("Missing TimeSlice coverage");v&&(Error.stackTraceLimit=a);q===n&&Math.random()1?b-1:0),d=1;da.getBeforeID()){h.splice(c,0,a);b=!0;break}b||h.push(a);for(var c=0;ca.getAfterID()){i.splice(c,0,a);return}i.push(a)},catchUpOnDemandExecutionContextObservers:function(a){for(var b=0;b2?f-2:0),i=2;i=m){for(a in n)d.push(n[a].signal),c.push(n[a].error);n={}}else for(a in n){var e=n[a].signal,f=window.getComputedStyle?getComputedStyle(e):e.currentStyle;f&&parseInt(f.height,10)>1&&(c.push(n[a].load),d.push(e),delete n[a])}for(var f=0;f-1},matchesSelector:function(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||function(b){return h(a,b)};return c.call(a,b)}};e.exports=i}),null); +__d("CSS",["CSSCore","$"],(function(a,b,c,d,e,f){__p&&__p();var g="hidden_elem",h={setClass:function(a,c){b("$").fromIDOrElement(a).className=c||"";return a},hasClass:function(a,c){return a instanceof Document||a instanceof Text?!1:b("CSSCore").hasClass(b("$").fromIDOrElement(a),c)},matchesSelector:function(a,c){return a instanceof Document||a instanceof Text?!1:b("CSSCore").matchesSelector(b("$").fromIDOrElement(a),c)},addClass:function(a,c){return b("CSSCore").addClass(b("$").fromIDOrElement(a),c)},removeClass:function(a,c){return b("CSSCore").removeClass(b("$").fromIDOrElement(a),c)},conditionClass:function(a,c,d){return b("CSSCore").conditionClass(b("$").fromIDOrElement(a),c,!!d)},toggleClass:function(a,b){return h.conditionClass(a,b,!h.hasClass(a,b))},shown:function(a){return!h.hasClass(a,g)},hide:function(a){return h.addClass(a,g)},show:function(a){return h.removeClass(a,g)},toggle:function(a){return h.toggleClass(a,g)},conditionShow:function(a,b){return h.conditionClass(a,g,!b)}};e.exports=h}),null); +__d("Parent",["CSS"],(function(a,b,c,d,e,f){__p&&__p();var g={byTag:function(a,b){b=b.toUpperCase();a=g.find(a,function(a){return a.nodeName===b});return a instanceof Element?a:null},byClass:function(a,c){a=g.find(a,function(a){return a instanceof Element&&b("CSS").hasClass(a,c)});return a instanceof Element?a:null},bySelector:function(a,b){__p&&__p();a=a;if(typeof a.matches==="function"){while(a&&a!==document&&!a.matches(b))a=a.parentNode;return a instanceof Element?a:null}else if(typeof a.msMatchesSelector==="function"){while(a&&a!==document&&!a.msMatchesSelector(b))a=a.parentNode;return a instanceof Element?a:null}else return g.bySelector_SLOW(a,b)},bySelector_SLOW:function(a,b){__p&&__p();a=a;var c=a;while(c.parentNode)c=c.parentNode;if(!(c instanceof Element)&&!(c instanceof Document))return null;c=c.querySelectorAll(b);while(a){if(Array.prototype.indexOf.call(c,a)!==-1)return a instanceof Element?a:null;a=a.parentNode}return a instanceof Element?a:null},byAttribute:function(a,b){a=g.find(a,function(a){return a instanceof Element&&!!a.getAttribute(b)});return a instanceof Element?a:null},find:function(a,b){a=a;while(a){if(b(a))return a;a=a.parentNode}return null}};e.exports=g}),null); +__d("ContextualComponent",["Parent"],(function(a,b,c,d,e,f){__p&&__p();g.forNode=function(a){"use strict";return g.$1.get(a)||null};g.closestToNode=function(a){"use strict";a=b("Parent").find(a,function(a){return!!g.forNode(a)});return a?g.forNode(a):null};g.register=function(a){"use strict";return new g(a)};function g(a){var b=a.element,c=a.isRoot;a=a.parent;this.$2=c;this.$3=b;this.$4=a;this.$5=new Set();this.$6=[];this.$7=[];this.$8()}g.prototype.onCleanup=function(a){"use strict";this.$6.push(a)};g.prototype.onUnmount=function(a){"use strict";this.$7.push(a)};g.prototype.cleanup=function(){"use strict";this.$5.forEach(function(a){return a.cleanup()}),this.$6.forEach(function(a){return a()}),this.$6=[]};g.prototype.unmount=function(){"use strict";this.cleanup();this.$5.forEach(function(a){return a.unmount()});this.$7.forEach(function(a){return a()});this.$7=[];var a=this.$4;a&&(g.$1["delete"](this.$3),a.$9(this))};g.prototype.reinitialize=function(){"use strict";var a=this.$4;a&&(a.$9(this),this.$4=undefined);g.$1["delete"](this.$3);this.$8()};g.prototype.$8=function(){"use strict";if(!this.$2&&!this.$4){var a=g.closestToNode(this.$3);a&&(this.$4=a)}this.$4&&this.$4.$10(this);g.$1.set(this.$3,this)};g.prototype.$10=function(a){"use strict";this.$5.add(a)};g.prototype.$9=function(a){"use strict";this.$5["delete"](a)};g.$1=new Map();e.exports=g}),null); +__d("PageEvents",[],(function(a,b,c,d,e,f){a=Object.freeze({NATIVE_ONLOAD:"onload/onload",BIGPIPE_ONLOAD:"onload/onload_callback",AJAXPIPE_ONLOAD:"ajaxpipe/onload_callback",NATIVE_DOMREADY:"onload/dom_content_ready",BIGPIPE_DOMREADY:"onload/domcontent_callback",AJAXPIPE_DOMREADY:"ajaxpipe/domcontent_callback",NATIVE_ONBEFOREUNLOAD:"onload/beforeunload",NATIVE_ONUNLOAD:"onload/unload",AJAXPIPE_ONUNLOAD:"onload/exit",AJAXPIPE_SEND:"ajaxpipe/send",AJAXPIPE_FIRST_RESPONSE:"ajaxpipe/first_response",AJAXPIPE_ONBEFORECLEARCANVAS:"ajaxpipe/onbeforeclearcanvas"});e.exports=a}),null); +__d("createCancelableFunction",["emptyFunction"],(function(a,b,c,d,e,f){__p&&__p();function a(a){var c=a;a=function(){for(var a=arguments.length,b=new Array(a),d=0;d")}var f=c.onload;c.onload=b("TimeSlice").guard(function(){i("t_layout"),f&&f(),b("Arbiter").inform(b("PageEvents").NATIVE_ONLOAD,!0,"state")},"window.onload");c.onbeforeunload=b("TimeSlice").guard(function(a){var c={};b("Arbiter").inform(b("PageEvents").NATIVE_ONBEFOREUNLOAD,c,"state");c.warn||b("Arbiter").inform(b("PageEvents").AJAXPIPE_ONUNLOAD,{transition_type:"normal"});if(c.warn!==undefined){a.returnValue=c.warn;return c.warn}else return},"window.onbeforeunload")}function t(){var a=b("performanceAbsoluteNow")();window.console&&console.timeStamp&&console.timeStamp('perf_trace {"name": "e2e", "parent": "PageEvents.BIGPIPE_ONLOAD"}');i("t_onload",a);b("Arbiter").inform(b("PageEvents").BIGPIPE_ONLOAD,{ts:a},"state")}var u=b("Arbiter").registerCallback(function(){b("BigPipeInstance").getCurrentInstance()?b("Arbiter").subscribeOnce(b("BigPipeInstance").Events.displayed,t):t()},[b("PageEvents").NATIVE_ONLOAD]),v=b("Arbiter").registerCallback(function(){i("t_domcontent");var a={timeTriggered:Date.now()};b("Arbiter").inform(b("PageEvents").BIGPIPE_DOMREADY,a,"state")},[b("PageEvents").NATIVE_DOMREADY]);b("ExecutionEnvironment").canUseDOM&&s();s={onLoad:c,onAfterLoad:d,onLeave:n,onBeforeUnload:f,onUnload:l,onAfterUnload:m,onCleanupOrLeave:o,__domContentCallback:v,__onloadCallback:u,__removeHook:q};e.exports=s}),null); +__d("EventEmitterWithValidation",["BaseEventEmitter"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g;c=babelHelpers.inherits(a,b("BaseEventEmitter"));g=c&&c.prototype;function a(a){g.constructor.call(this),this.$EventEmitterWithValidation1=Object.keys(a)}a.prototype.emit=function(a){h(a,this.$EventEmitterWithValidation1);return g.emit.apply(this,arguments)};function h(a,b){if(b.indexOf(a)===-1)throw new TypeError(i(a,b))}function i(a,b){a='Unknown event type "'+a+'". ';a+="Known event types: "+b.join(", ")+".";return a}e.exports=a}),null); +__d("mixInEventEmitter",["invariant","EventEmitterWithHolding","EventEmitterWithValidation","EventHolder"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function a(a,b){b||g(0,undefined);var c=a.prototype||a;c.__eventEmitter&&g(0,undefined);a=a.constructor;a&&(a===Object||a===Function||g(0,undefined));c.__types=babelHelpers["extends"]({},c.__types,b);Object.assign(c,h)}var h={emit:function(a,b,c,d,e,f,g){return this.__getEventEmitter().emit(a,b,c,d,e,f,g)},emitAndHold:function(a,b,c,d,e,f,g){return this.__getEventEmitter().emitAndHold(a,b,c,d,e,f,g)},addListener:function(a,b,c){return this.__getEventEmitter().addListener(a,b,c)},once:function(a,b,c){return this.__getEventEmitter().once(a,b,c)},addRetroactiveListener:function(a,b,c){return this.__getEventEmitter().addRetroactiveListener(a,b,c)},listeners:function(a){return this.__getEventEmitter().listeners(a)},removeAllListeners:function(){this.__getEventEmitter().removeAllListeners()},removeCurrentListener:function(){this.__getEventEmitter().removeCurrentListener()},releaseHeldEventType:function(a){this.__getEventEmitter().releaseHeldEventType(a)},__getEventEmitter:function(){if(!this.__eventEmitter){var a=new(b("EventEmitterWithValidation"))(this.__types),c=new(b("EventHolder"))();this.__eventEmitter=new(b("EventEmitterWithHolding"))(a,c)}return this.__eventEmitter}};e.exports=a}),null); +__d("Visibility",["TimeSlice","mixInEventEmitter"],(function(a,b,c,d,e,f){__p&&__p();var g,h;document.hidden!==undefined?(g="hidden",h="visibilitychange"):document.mozHidden!==undefined?(g="mozHidden",h="mozvisibilitychange"):document.msHidden!==undefined?(g="msHidden",h="msvisibilitychange"):document.webkitHidden!==undefined&&(g="webkitHidden",h="webkitvisibilitychange");function i(){return g?document[g]:!1}function a(){return document.addEventListener&&h!==undefined}var j={HIDDEN:"hidden",VISIBLE:"visible",isHidden:i,isSupported:a};b("mixInEventEmitter")(j,{visible:!0,hidden:!0});a()&&document.addEventListener(h,b("TimeSlice").guard(function(a){j.emit(i()?j.HIDDEN:j.VISIBLE,{changeTime:a.timeStamp})},"visibility change"));e.exports=j}),null); +__d("bx",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();var h={};function a(a){var b=h[a];!b&&g(0,undefined,a);return b}a.add=function(a){var b=!1;for(var c in a)c in h||(h[c]=a[c])};a.getURL=function(a){return a.uri};e.exports=a}),null); +__d("performanceNow",["performance"],(function(a,b,c,d,e,f){b("performance").now?a=function(){return b("performance").now()}:a=function(){return Date.now()};e.exports=a}),null); +__d("nativeRequestAnimationFrame",[],(function(a,b,c,d,e,f){b=a.__fbNativeRequestAnimationFrame||a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame;e.exports=b}),null); +__d("requestAnimationFramePolyfill",["nativeRequestAnimationFrame"],(function(a,b,c,d,e,f){var g=0;c=b("nativeRequestAnimationFrame")||function(b){var c=Date.now(),d=Math.max(0,16-(c-g));g=c+d;return a.setTimeout(function(){b(Date.now())},d)};e.exports=c}),null); +__d("IdleCallbackImplementation",["performanceNow","requestAnimationFramePolyfill"],(function(a,b,c,d,e,f){__p&&__p();var g=[],h=0,i=0,j=-1,k=!1,l=1e3/60,m=2;function n(a){return a}function o(a){return a}function c(b,c){var d=i++;g[d]=b;q();if(c!=null&&c.timeout>0){var e=n(d);a.setTimeout(function(){return w(e)},c.timeout)}return n(d)}function p(a){a=o(a);g[a]=null}function q(){k||(k=!0,b("requestAnimationFramePolyfill")(function(a){k=!1,s(b("performanceNow")()-a)}))}function r(a){var b=l-m;if(ab||aj){a=r(a);if(a>0){c=c+a;v(c);j=c}}t()&&q()}function t(){return h=0&&h.set(e),define(a,c,function(){b("replaceTransportMarkers")({relativeTo:f},d);if(e===-42)throw new Error(a+": "+d.__throw8367__);return d},g)},handleDefines:function(a,b){a.forEach(function(a){b&&a.push(b),i.handleDefine.apply(null,a)})}};e.exports=i}),null); +__d("StaticSiteData",[],(function(a,b,c,d,e,f){e.exports={pkg_cohort_key:"__pc",be_key:"__be",spin_rev_key:"__spin_r",spin_time_key:"__spin_t",spin_branch_key:"__spin_b",spin_mhenv_key:"__spin_dev_mhenv"}}),null); +__d("asyncParams",[],(function(a,b,c,d,e,f){var g={};a={add:function(a,b){g[a]=b},get:function(){return g}};e.exports=a}),null); +__d("isSocialPlugin",["CSSCore"],(function(a,b,c,d,e,f){"use strict";function a(){return!!document.body&&b("CSSCore").hasClass(document.body,"plugin")}e.exports=a}),null); +__d("getAsyncParams",["CurrentCommunity","CurrentUserInitialData","DTSG","DTSG_ASYNC","DTSGUtils","ISB","LSD","ServerJSDefine","SiteData","SprinkleConfig","StaticSiteData","asyncParams","isSocialPlugin"],(function(a,b,c,d,e,f){__p&&__p();var g=1;function a(a){__p&&__p();var c,d=babelHelpers["extends"]({},b("asyncParams").get(),(c={__user:b("CurrentUserInitialData").USER_ID,__a:1,__dyn:b("ServerJSDefine").getLoadedModuleHash(),__req:(g++).toString(36)},c[b("StaticSiteData").be_key]=b("SiteData").be_mode,c[b("StaticSiteData").pkg_cohort_key]=b("SiteData").pkg_cohort,c.__rev=b("SiteData").client_revision,c));window.location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b=a[0];a=a[1];(b==="locale"||b==="cxobfus"||b==="js_debug"||b==="binast"||b.substr(0,4)==="tfc_"||b.substr(0,4)==="tfi_"||b.substr(0,3)==="mh_")&&(d[b]=a)});if(a=="POST"){c=b("DTSG").getCachedToken?b("DTSG").getCachedToken():b("DTSG").getToken();c&&(d.fb_dtsg=c,b("SprinkleConfig").param_name&&(d[b("SprinkleConfig").param_name]=b("DTSGUtils").getNumericValue(c)));b("LSD").token&&(d.lsd=b("LSD").token)}if(a=="GET"){c=b("DTSG_ASYNC").getCachedToken?b("DTSG_ASYNC").getCachedToken():b("DTSG_ASYNC").getToken();c&&(d.fb_dtsg_ag=c)}b("ISB").token&&(d.fb_isb=b("ISB").token);b("CurrentCommunity").getID()!=="0"&&(d.__cid=b("CurrentCommunity").getID());b("isSocialPlugin")()&&(d.__sp=1);b("SiteData").spin&&(d[b("StaticSiteData").spin_rev_key]=b("SiteData")[b("StaticSiteData").spin_rev_key],d[b("StaticSiteData").spin_branch_key]=b("SiteData")[b("StaticSiteData").spin_branch_key],d[b("StaticSiteData").spin_time_key]=b("SiteData")[b("StaticSiteData").spin_time_key],b("SiteData")[b("StaticSiteData").spin_mhenv_key]&&(d[b("StaticSiteData").spin_mhenv_key]=b("SiteData")[b("StaticSiteData").spin_mhenv_key]));return d}e.exports=a}),null); +__d("getSameOriginTransport",["ex"],(function(a,b,c,d,e,f){function c(){try{return a.XMLHttpRequest?new a.XMLHttpRequest():new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(a){throw new Error(b("ex")("getSameOriginTransport: %s",a.message))}}e.exports=c}),null); +__d("ix",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();var h={};function a(a){var b=h[a];!b&&g(0,undefined,a);return b}a.add=function(a){var b=!1;for(var c in a)c in h||(h[c]=a[c])};e.exports=a}),null); +__d("qex",["invariant","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={},i={};function a(a,b){throw new Error("qex should NEVER be called at runtime directly")}a._=function(a){var c=h[a];c!=null||g(0,undefined,a);var d=c.r,e=c.l;e!=null&&!i[a]&&(i[a]=!0,b("requireWeak")("Banzai",function(a){a.post("qex",{l:e},{signal:!0})}));return d};a.add=function(a){for(var b in a)b in h||(h[b]=a[b])};e.exports=a}),null); +__d("requestIdleCallbackAcrossTransitions",["IdleCallbackImplementation","TimerStorage","TimeSlice"],(function(a,b,c,d,e,f){var g=a.requestIdleCallback||b("IdleCallbackImplementation").requestIdleCallback,h=b("TimerStorage").IDLE_CALLBACK;e.exports=function(c,d){c=b("TimeSlice").guard(c,"requestIdleCallback",{propagationType:b("TimeSlice").PropagationType.CONTINUATION,registerCallStack:!0});d=g.call(a,c,d);var e=h+String(d);b("TimeSlice").registerForCancelling(e,c);return d}}),null); +__d("requestIdleCallback",["TimerStorage","TimeSlice","requestIdleCallbackAcrossTransitions"],(function(a,b,c,d,e,f){e.exports=function(c,d){var e;function f(a){b("TimerStorage").unset(b("TimerStorage").IDLE_CALLBACK,e),c(a)}b("TimeSlice").copyGuardForWrapper(c,f);e=b("requestIdleCallbackAcrossTransitions").call(a,f,d);b("TimerStorage").set(b("TimerStorage").IDLE_CALLBACK,e);return e}}),null); +__d("setTimeoutAcrossTransitions",["TimerStorage","TimeSlice"],(function(a,b,c,d,e,f){var g=a.__fbNativeSetTimeout||a.setTimeout,h=b("TimerStorage").TIMEOUT;function c(c,d){var e=b("TimeSlice").guard(c,"setTimeout",{propagationType:b("TimeSlice").PropagationType.CONTINUATION,registerCallStack:!0});for(var f=arguments.length,i=new Array(f>2?f-2:0),j=2;j0,Q=Object.freeze({BOOTLOAD:"bootloader/bootload"});b("ErrorUtils").addListener(function(a){a.loadingUrls=Object.keys(s)},!0);function R(a){var c=o[a];if(c)return c;throw new Error(b("ex")("Bootloader: %s is not in the component map",a))}function S(){q||(q=document.head||document.getElementsByTagName("head")[0]||document.body);return q}function T(){if(!P)return!1;var a=w.length;if(a4?f-4:0),h=4;ha.priority)c=d-1;else{I.splice(d,0,a);return}}I.splice(b,0,a)},enqueuePreloadJob:function(a,b){b===void 0&&(b=1),!(a in m)&&!(a in l)&&!(a in J)&&(J[a]=!0,Z._insertSorted({hash:a,priority:b}),Z.runPreloadQueue())},runPreloadQueue:function(){__p&&__p();if(b("BootloaderConfig").preloader_preload_after_dd&&!M||!L)return;var a=S(),c=function(){var b=I.pop(),c=r[b.hash];if(!c)return"continue";!l[b.hash]&&!m[b.hash]&&(F[b.hash]=!0,U(c.src,c.type,b.hash,a,function(){L&&(delete F[b.hash],Z.runPreloadQueue(),Z._enqueueScriptLoadingJob(b.hash,r[b.hash].type))}))};while(Z._isNetworkIdle()&&I.length>0&&Object.keys(F).length0&&Object.keys(G).length0&&Object.keys(G).length=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;f=R(f);for(var f=f.resources,g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;var k=r[i];if(!k){b("FBLogger")("bootloader").mustfix("Unable to resolve resource %s.",i);continue}if(m[i]||l[i])continue;U(k.src,k.type,i,c)}}S().appendChild(c)},loadModules:function(a,c,e){__p&&__p();c===void 0&&(c=i);e===void 0&&(e="loadModules: unknown caller");var f=function(){return c.apply(undefined,arguments)},g={remove:function(){c=i}};if(!C){var h="Deferred: Bootloader.loadModules";h=b("TimeSlice").getGuardedContinuation(h);k.push([a,f,e,h]);return g}var j=b("performanceAbsoluteNow")();h=JSON.stringify([e,a]);var l=!1;h in z||(l=!0,z[h]=j);var m=[],n=[],o=[];h=!1;var q=0;a.forEach(function(a){var c=R(a);c.needsAsync&&(q++,a in p?n.push(p[a]):b("ifRequired").call(null,a,null,function(){o.push(a)}));a in y||(h=!0,y[a]=j);c.rds&&m.push.apply(m,c.rds);n.push.apply(n,c.resources)});if(o.length>0){var s=b("BootloaderConfig").payloadEndpointURI,t="async:"+aa++,u=encodeURIComponent(o.join(",")),v=s.indexOf("?")>-1?"&":"?";r[t]={src:""+s+v+"modules="+u,type:"async"};n.push(t);o.forEach(function(a){p[a]=t})}b("ifRequired")("TimeSliceInteraction",function(b){b.informGlobally("Bootloader.loadResources").addSetAnnotation("requested_hashes",n).addStringAnnotation("bootloader_reference",e).addSetAnnotation("requested_components",a)});s=null;l&&(s={ref:e,components:a,has_new_component:h,first_identical_request:l,async_resources_count:q,async_resources_downloaded:o.length});Y(n,d.bind(null,a,function(){f.apply(undefined,arguments),m.length&&d.call(null,m,i)}),null,s);return g},loadResources:function(a,b,c,d){__p&&__p();la();if(c){var e={};a.forEach(function(a){e[a]=!0});for(var f in l)f in n||f in e||f in A||ja(f);A={}}Y(a,b,d)},requestJSResource_UNSAFE_NEEDS_REVIEW_BY_SECURITY_AND_XFN:function(a){ga("js",a,null,S())},done:function(a,c){c!=null&&(t[c]=b("performanceAbsoluteNow")()-s[c],delete s[c],Z.runPreloadQueue()),window.CavalryLogger&&window.CavalryLogger.done_js(a),a.forEach(function(a){a!=null&&(l[a]=!0,D.satisfyPersistentDependency(a),r[a]&&r[a].type==="css"&&!x[a]&&(x[a]=define(b("CSSLoader").moduleName(a),[],"x",2,null,1)))})},enableBootload:function(a){__p&&__p();for(var b in a)if(!o[b]){o[b]=a[b];if(L&&a[b].priority&&a[b].priority>0)for(var c=a[b].resources,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;Z.enqueuePreloadJob(f,1)}}C||(la(),C=!0,k.forEach(function(a){var b=a[0],c=a[1],d=a[2];a=a[3];a(function(){$.loadModules.apply($,[b,c,d])})}),j.forEach(function(a){var b=a[0];a=a[1];a(function(){$.preloadModules.apply($,[b])})}),j=[],k=[])},setResourceMap:function(a){for(var b in a)r[b]||(r[b]=a[b])},getURLToHashMap:function(){var a={};for(var b in r)a[r[b].src]=b;return a},loadPredictedResources:function(a,b){a.forEach(function(a){A[a]=!0}),Y(a,b)},loadPredictedResourceMap:function(a,b){$.setResourceMap(a),$.loadPredictedResources(Object.keys(a),b)},getLoadingUrls:function(){var a={},c=b("performanceAbsoluteNow")();for(var d in s)a[d]=c-s[d];return a},getBootloadedComponents:function(){return y},getLoadedUrlTimes:function(){return t},getErrorUrls:function(){return Object.keys(u)},notifyDisplayDone:function(){M||(M=!0,Z.runPreloadQueue())},__debug:{callbackManager:D,componentMap:o,requested:l,resources:r,retries:v,errors:u,loading:s,predictedResources:A,bootloaded:y,preloader:Z},Events:Q};e.exports=$}),null); +__d("__debug",[],(function(a,b,c,d,e,f){e.exports={}}),null); +__d("ServerJS",["ContextualComponent","ErrorUtils","LogviewForcedKeyError","ServerJSDefine","TimeSlice","ex","ge","replaceTransportMarkers","__debug"],(function(a,b,c,d,e,f){__p&&__p();var g=1,h=2,i=0;function a(){"use strict";this.$1={},this.$2=null,this.$3={},this.$4=undefined}a.prototype.handle=function(a,b){"use strict";__p&&__p();this.$4=b;if(a.__guard)throw new Error("ServerJS.handle called on data that has already been handled");a.__guard=!0;k(a.define||[],this.$5,this);k(a.markup||[],this.$6,this);k(a.elements||[],this.$7,this);this.$8(a.contexts||[]);k(a.instances||[],this.$9,this);var c=k(a.pre_display_requires||[],this.$10,this);c=c.concat(k(a.require||[],this.$10,this));return{cancel:function(){for(var a=0;a>>0;d-=a;d*=a;a=d>>>0;d-=a;a+=d*4294967296}return(a>>>0)*23283064365386963e-26};b.version="Mash 0.9";return b}function a(){__p&&__p();return function(a){__p&&__p();var b=0,c=0,d=0,e=1;a.length===0&&(a=[new Date()]);var f=new g();b=f(" ");c=f(" ");d=f(" ");for(var h=0;hf)c-=f;else if(c==1){m.clear(a,d);return}document.cookie=a+"="+encodeURIComponent(b)+"; "+(c?"expires="+new Date(f+c).toUTCString()+"; ":"")+"path="+d+"; domain="+window.location.hostname.replace(g,"$1")+(e?"; secure":"");u()},setIfFirstPartyContext:function(a,b){if(!l(a))return;m.set(a,b)},setWithoutChecksIfFirstPartyContext:function(a,b,c,d,e){if(!l(a))return;m.setWithoutChecks(a,b,c,d,e)},clear:function(a,b){b===void 0&&(b="/"),b=b||"/",document.cookie=a+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+b+"; domain="+window.location.hostname.replace(g,"$1"),u()},get:function(a){if(!p(a))return null;a=t().match("(?:^|;\\s*)"+a+"=(.*?)(?:;|$)");return a?decodeURIComponent(a[1]):a}};function n(a){return{insecure:a.i||!1,path:a.p||"/",ttlSeconds:a.t||0}}function o(a){if(b("CookieCoreConfig")[a]!==undefined)return n(b("CookieCoreConfig")[a]);a=a.match(h);return a&&a.length>1?o(a[1]):null}function p(a){return o(a)!==null}function q(a){a=o(a);return a==null?!0:!a.insecure}function r(a){a=o(a);return a==null?null:a.ttlSeconds*1e3}function s(a){a=o(a);return a==null?"/":a.path}function t(){if(b("gkx")("AT5tMpZqIKh0vdvJexCKKhPqDfMAWQPHLQnR8CgtajZUMLAZP8rj8YnSD9bEFc4BrmsaxTBmOCxn2mR6tM_ew1hH")){j+k0){var a=b("performanceNow")(),c=document.cookie;a=b("performanceNow")()-a;var d=a>b("CookieCoreLoggingConfig").maximumIgnorableStallMs&&b("Random").coinflip(1/b("CookieCoreLoggingConfig").sampleRate);d&&b("FBLogger")("cookie_infra").addMetadata("COOKIE_INFRA","WALL_TIME",String(a)).warn("Cookie read exceeded %s milliseconds.",b("CookieCoreLoggingConfig").maximumIgnorableStallMs);return c}else return document.cookie}e.exports=m}),null); +__d("Cookie",["Bootloader","CookieCore","Env"],(function(a,b,c,d,e,f){__p&&__p();function g(a){if(b("Env").no_cookies)return!1;if(b("Env").defer_cookies){b("Bootloader").loadModules(["BanzaiODS"],function(b){b.bumpEntityKey("defer_cookies","set."+a)},"Cookie");return!1}return!0}function a(a,c){if(!g(a))return;b("CookieCore").set(a,c)}function c(a,c,d,e,f){if(!g(a))return;b("CookieCore").setWithoutChecks(a,c,d,e,f)}e.exports=babelHelpers["extends"]({},b("CookieCore"),{set:a,setWithoutChecks:c})}),null); +__d("DOMEvent",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();function h(a){"use strict";this.event=a||window.event,typeof this.event.srcElement!=="unknown"||g(0,undefined),this.target=this.event.target||this.event.srcElement}h.prototype.preventDefault=function(){"use strict";var a=this.event;a.preventDefault?(a.preventDefault(),"defaultPrevented"in a||(a.defaultPrevented=!0)):a.returnValue=!1;return this};h.prototype.isDefaultPrevented=function(){"use strict";var a=this.event;return"defaultPrevented"in a?a.defaultPrevented:a.returnValue===!1};h.prototype.stopPropagation=function(){"use strict";var a=this.event;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;return this};h.prototype.kill=function(){"use strict";this.stopPropagation().preventDefault();return this};h.killThenCall=function(a){"use strict";return function(b){new h(b).kill();return a()}};e.exports=h}),null); +__d("dedupString",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b;return Object.keys((b={},b[a]=0,b))[0]}e.exports=a}),null); +__d("DOMEventListener",["invariant","dedupString","emptyFunction","wrapFunction"],(function(a,b,c,d,e,f,g){__p&&__p();var h=!1;try{a=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,a)}catch(a){}var i,j;window.addEventListener?(i=function(a,c,d,e){e===void 0&&(e=!1),d.wrapper=b("wrapFunction")(d,"entry",b("dedupString")("DOMEventListener.add "+c)),a.addEventListener(c,d.wrapper,h?e:!1)},j=function(a,b,c,d){d===void 0&&(d=!1),a.removeEventListener(b,c.wrapper,h?d:!1)}):window.attachEvent?(i=function(a,c,d){d.wrapper=b("wrapFunction")(d,"entry","DOMEventListener.add "+c),a.attachEvent||g(0,undefined),a.attachEvent("on"+c,d.wrapper)},j=function(a,b,c){a.detachEvent||g(0,undefined),a.detachEvent("on"+b,c.wrapper)}):j=i=b("emptyFunction");c={add:function(a,b,c,d){d===void 0&&(d=!1);i(a,b,c,d);return{remove:function(){j(a,b,c,d)}}},remove:j};e.exports=c}),null); +__d("isNode",[],(function(a,b,c,d,e,f){function a(a){var b=a?a.ownerDocument||a:document;b=b.defaultView||window;return!!(a&&(typeof b.Node==="function"?a instanceof b.Node:typeof a==="object"&&typeof a.nodeType==="number"&&typeof a.nodeName==="string"))}e.exports=a}),null); +__d("isTextNode",["isNode"],(function(a,b,c,d,e,f){function a(a){return b("isNode")(a)&&a.nodeType==3}e.exports=a}),null); +__d("containsNode",["isTextNode"],(function(a,b,c,d,e,f){__p&&__p();function g(a,c){__p&&__p();if(!a||!c)return!1;else if(a===c)return!0;else if(b("isTextNode")(a))return!1;else if(b("isTextNode")(c))return g(a,c.parentNode);else if("contains"in a)return a.contains(c);else if(a.compareDocumentPosition)return!!(a.compareDocumentPosition(c)&16);else return!1}e.exports=g}),null); +__d("createArrayFromMixed",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();function h(a){__p&&__p();var b=a.length;!Array.isArray(a)&&(typeof a==="object"||typeof a==="function")||g(0,undefined);typeof b==="number"||g(0,undefined);b===0||b-1 in a||g(0,undefined);typeof a.callee!=="function"||g(0,undefined);if(a.hasOwnProperty)try{return Array.prototype.slice.call(a)}catch(a){}var c=Array(b);for(var d=0;d), ge()) instead");return b("containsNode")(b("ge")(a),b("ge")(c))},getRootElement:function(){var a=b("ifRequired")("Quickling",function(a){return a.isActive()?b("ge")("content"):null});return a||document.body},isNodeOfType:function(a,c){c=b("createArrayFromMixed")(c).join("|").toUpperCase().split("|");c=b("createObjectFrom")(c);return b("isNode")(a)&&a.nodeName in c},isInputNode:function(a){return i.isNodeOfType(a,["input","textarea"])||a.contentEditable==="true"}};e.exports=i}),null); +__d("DataStore",["DataStoreConfig","isEmpty"],(function(a,b,c,d,e,f){__p&&__p();var g=b("DataStoreConfig").useExpando,h={},i=1;function j(a){if(typeof a==="string")return"str_"+a;else return"elem_"+(a.__FB_TOKEN||(a.__FB_TOKEN=[i++]))[0]}function k(a){if(g&&typeof a==="object")return a.__FB_STORE||(a.__FB_STORE={});a=j(a);return h[a]||(h[a]={})}var l={set:function(a,b,c){if(!a)throw new TypeError("DataStore.set: namespace is required, got "+typeof a);var d=k(a);d[b]=c;return a},get:function(a,b,c){__p&&__p();if(!a)throw new TypeError("DataStore.get: namespace is required, got "+typeof a);var d=k(a),e=d[b];if(typeof e==="undefined"&&a.getAttribute)if(a.hasAttribute&&!a.hasAttribute("data-"+b))e=undefined;else{a=a.getAttribute("data-"+b);e=null===a?undefined:a}c!==undefined&&e===undefined&&(e=d[b]=c);return e},remove:function(a,c){if(!a)throw new TypeError("DataStore.remove: namespace is required, got "+typeof a);var d=k(a),e=d[c];delete d[c];b("isEmpty")(d)&&l.purge(a);return e},purge:function(a){g&&typeof a==="object"?delete a.__FB_STORE:delete h[j(a)]},_storage:h};e.exports=l}),null); +__d("MutationObserver",[],(function(a,b,c,d,e,f){__p&&__p();function b(a){"use strict"}b.prototype.observe=function(a,b){"use strict"};b.prototype.disconnect=function(){"use strict"};b.prototype.takeRecords=function(){"use strict";return null};c=a.MutationObserver||a.WebKitMutationObserver||b;e.exports=c}),null); +__d("PageDOMMutationObserver",["ExecutionEnvironment","MutationObserver"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new(b("MutationObserver"))(function(){}),h=!1,i={tryStart:function(){__p&&__p();var a=typeof g.takeRecords==="function";if(!b("ExecutionEnvironment").canUseDOM||!a){i.tryStart=function(){};i.consumePendingDOMMutations=function(){return 0};return}if(!window.Env||!document.body)return;i.tryStart=function(){};if(!window.Env.dom_mutation_flag)return;h=!0;g.observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},consumePendingDOMMutations:function(){var a=g.takeRecords();return a!=null?a.length:0},isSupported:function(){return h}};e.exports=i}),null); +__d("OnDemandExecutionContextObserver",["TimeSlice"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(){this.$5=!1,this.$4=!1,this.$1=0,this.$2={},this.$3=0}a.prototype.onNewContextCreatedWhileEnabled=function(a,b,c){throw Error("unimplemented abstract method")};a.prototype.onNewContextCreatedWhileDisabled=function(a,b,c){};a.prototype.onContextCanceled=function(a,b){};a.prototype.onBeforeContextStartedWhileEnabled=function(a,b,c){throw Error("unimplemented abstract method")};a.prototype.onBeforeContextStartedWhileDisabled=function(a,b,c){};a.prototype.onAfterContextStartedWhileEnabled=function(a,b,c,d){throw Error("unimplemented abstract method")};a.prototype.onAfterContextStartedWhileDisabled=function(a,b,c,d){};a.prototype.onAfterContextEndedWhileEnabled=function(a,b,c,d){throw Error("unimplemented abstract method")};a.prototype.onAfterContextEndedWhileDisabled=function(a,b,c,d){};a.prototype.onNewContextCreated=function(a,b,c){if(this.isEnabled())return this.onNewContextCreatedWhileEnabled(a,b,c);else{this.onNewContextCreatedWhileDisabled(a,b,c);return null}};a.prototype.onBeforeContextStarted=function(a,b,c){if(this.isEnabled())return this.onBeforeContextStartedWhileEnabled(a,b,c);else{this.onBeforeContextStartedWhileDisabled(a,b,c);return null}};a.prototype.onAfterContextStarted=function(a,b,c,d){c=c;if(this.isEnabled())return this.onAfterContextStartedWhileEnabled(a,b,c,d);else{this.onAfterContextStartedWhileDisabled(a,b,c,d);return null}};a.prototype.onAfterContextEnded=function(a,b,c,d){if(this.isEnabled()){var e=c;this.onAfterContextEndedWhileEnabled(a,b,e,d)}else this.onAfterContextEndedWhileDisabled(a,b,c,d);this.$4&&!this.$5&&a.isRoot&&(this.onDisable(),this.$4=!1)};a.prototype.onDisable=function(){};a.prototype.onEnable=function(){};a.prototype.getBeforeID=function(){throw Error("unimplemented abstract method")};a.prototype.getAfterID=function(){throw Error("unimplemented abstract method")};a.prototype.isEnabled=function(){return this.$4};a.prototype.__getExpiryCallback=function(){var a=++this.$1;this.$2[a]=!0;this.$3++;return function(){this.$2[a]&&(delete this.$2[a],this.$3--,this.$3===0&&(this.$5=!1))}.bind(this)};a.prototype.expressInterest=function(){var a=this.__getExpiryCallback();this.isEnabled()||(this.onEnable(),b("TimeSlice").catchUpOnDemandExecutionContextObservers(this));this.$4=!0;this.$5=!0;return a};e.exports=a}),null); +__d("ProfilingCountersStore",["IntervalTrackingBoundedBuffer"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new(b("IntervalTrackingBoundedBuffer"))(),h={getInstance:function(){return g},toMap:function(a){var b={};a.forEach(function(a){return b[a.getTimeSliceContextID()]=a});return b},getNestedTotals:function(a){return h._accumulateOverNestedActiveCounters(a,function(a,b){h._addOnto(b,a.getActiveCounters().getTotals());return b},{})},_accumulateOverNestedActiveCounters:function(a,b,c){__p&&__p();c=c;a.hasActiveCounters()&&(c=b(a,c));if(a.processedNestedContexts!=null)for(var a=a.processedNestedContexts,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;c=h._accumulateOverNestedActiveCounters(f,b,c)}return c},_getMaximumAttribution:function(a,b){__p&&__p();if(a.length===0)return null;for(var c=a,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;if(b.propagatedAttributions&&b.propagatedAttributions[f]!=null)return f}f=null;e=null;for(var d=a,c=Array.isArray(d),a=0,d=c?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(c){if(a>=d.length)break;g=d[a++]}else{a=d.next();if(a.done)break;g=a.value}g=g;if(b.newAttributions&&b.newAttributions[g]!=null){var h=b.newAttributions[g].newCounterIdx;(e==null||h0&&b){var f=Object.entries(b);for(var g=0;g=i||(this.processedNestedContexts=this.processedNestedContexts||[],this.processedNestedContexts.push(a))};l.prototype.getTimeSliceContextID=function(){"use strict";return this.$1};l.resetState=function(){"use strict";j=[new l(!0,null,0)]};l.getHandle=function(){"use strict";return n};l.AttributionPropagation=h;function m(){"use strict";this.$1=null,this.$2=null,this.$3=null,this.$4=null}m.prototype.startTiming=function(a){"use strict";__p&&__p();var c=m.$5++;a={value:0,counter:a,id:c,lastStartTime:0};var d=this.$1||[];this.$2=this.$2||{};this.$2[c]=d.length;d.push(a);var e=b("performanceAbsoluteNow")();a.lastStartTime=e;if(d.length>1){a=d[d.length-2];a.value+=e-a.lastStartTime}this.$1=d;return c};m.prototype.stopTiming=function(a){"use strict";__p&&__p();var c=b("performanceAbsoluteNow")(),d=this.$2,e=this.$1;if(d==null||e==null){b("ErrorUtils").reportError(new Error("token does not match the counter context"));return 0}var f=d[a];delete d[a];if(f==null||e[f]==null)return 0;a=null;var g=0;while(e.length-1>f){var h=e.pop();g+=h.value;delete d[h.id];a==null&&h.lastStartTime!=null&&(a=h.lastStartTime)}h=e.pop();h.value+=c-(a||h.lastStartTime);h.value+=g;f=this.$4||{};f[h.counter]=f[h.counter]||0;f[h.counter]+=h.value;e.length>0&&(e[e.length-1].lastStartTime=c);this.$1=e;this.$4=f;this.$2=d;return h.value};m.prototype.incrementCounter=function(a,b){"use strict";var c=this.$3||{};c[a]=c[a]||0;c[a]+=b;this.$3=c};m.prototype.getTotals=function(){"use strict";return babelHelpers["extends"]({},this.$4||{},this.$3||{})};m.prototype.openCounterCount=function(){"use strict";return this.$1!=null?this.$1.length:0};m.$5=1;j.push(new l(!0,null,0));b("TimeSlice").registerExecutionContextObserver(l.getObserver());var n=l.getObserver().expressInterest();a.ProfilingCounters=l;e.exports=l}),3); +__d("ArtilleryJSPointTypes",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ASYNC_REQUEST_SENT:1,ASYNC_RESPONSE_RECEIVED:2,TRACE_STARTED:3,TRACE_ENDED:4})}),null); +__d("ArtilleryTraceIDUtils",["Alea","FBLogger","ServerNonce"],(function(a,b,c,d,e,f){__p&&__p();var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=b("Alea")(b("ServerNonce").ServerNonce),i=function(){var a=0,b=0,c="";for(var d=10;d>=0;d--)a<6&&(b=Math.floor(2147483648*h()),a=32),d===0&&(b&=7),c=g.charAt(b&63)+c,b>>=6,a-=6;return c};a={newTraceId:function(){var a;for(var c=3;c>0;c--){a=i();if(a!=this.getDummyId())return a}b("FBLogger")("FIXME").mustfix("failed to generate valid Fbtrace id");return this.getDummyId()},newObjectId:function(){return this.newTraceId()},getDummyId:function(){return"AAAAAAAAAAA"},traceIdToBucket:function(a){a=a.charAt(a.length-1);return g.indexOf(a)%32}};e.exports=a}),null); +__d("LogBuffer",["CircularBuffer"],(function(a,b,c,d,e,f){__p&&__p();var g=a.__fbNativeSetTimeout||a.setTimeout,h=5e3,i={},j={};c={write:function(a,c){var d=i[a]=i[a]||new(b("CircularBuffer"))(h);d.write(c);j[a]&&j[a].forEach(function(a){try{a(c)}catch(a){}})},read:function(a){if(!i[a])return[];else return i[a].read()},tail:function(a,b){__p&&__p();if(typeof b!=="function")return;j[a]=j[a]||[];j[a].push(b);if(i[a]){a=i[a];a.read().forEach(function(a){try{b(a)}catch(a){}})}},expand:function(a,c){var d=i[a];d?d.expand(c):i[a]=new(b("CircularBuffer"))(c)},clear:function(a){i[a]&&g(function(){i[a].clear()},0)}};e.exports=c}),null); +__d("Heartbeat",["Env","ExecutionContextObservers","FBLogger","LogBuffer","OnDemandExecutionContextObserver","TimeSlice","performanceAbsoluteNow"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g;d=babelHelpers.inherits(c,b("OnDemandExecutionContextObserver"));g=d&&d.prototype;function c(){var a,b;for(var c=arguments.length,d=new Array(c),e=0;ec;if(this.$HeartbeatObserver4.type==="exec")a.type==="exec"?this.$HeartbeatObserver15(d,e,c?"likely_btwn_exec":"btwn_exec"):this.$HeartbeatObserver14(a)&&this.$HeartbeatObserver15(d,e,c?"likely_post_exec":"post_exec");else if(this.$HeartbeatObserver14(this.$HeartbeatObserver4))if(a.type==="exec")this.$HeartbeatObserver15(d,e,c?"likely_pre_exec":"pre_exec");else if(this.$HeartbeatObserver14(a)&&c){c=a.type==="beat"?"delayed_beat":"delayed_beat_btwn_ignored";this.$HeartbeatObserver15(d,e,c)}}this.$HeartbeatObserver4=a};c.prototype.$HeartbeatObserver15=function(a,c,d){a0){var c=this.$HeartbeatObserver8[0],d=c[0];c=c[1];if(a-d>i.MAX_SINGLE_INTEREST_TIME_MS)c(),this.$HeartbeatObserver8.shift();else break}d=this.$HeartbeatObserver10;a-d>i.MAX_ENABLE_TO_DISABLE_TIME_MS&&this.$HeartbeatObserver16()};c.prototype.$HeartbeatObserver16=function(){__p&&__p();for(var a=this.$HeartbeatObserver8,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;d[0];d=d[1];d()}this.$HeartbeatObserver8=[]};var h=new c();b("TimeSlice").registerExecutionContextObserver(h);var i={MAX_SINGLE_INTEREST_TIME_MS:6e4,MAX_ENABLE_TO_DISABLE_TIME_MS:4*6e4,get:function(){return h},enableHeartbeat:function(){},disablePageHeartbeat:function(){}};e.exports=i}),3); +__d("ArtilleryAsyncRequestTracingAnnotator",["FBLogger","IntervalTrackingBoundedBuffer","ResourceTimingsStore","ResourceTypes"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[1e3],h=new(b("IntervalTrackingBoundedBuffer"))(),i="FB-ART-INFO",j=new Map();function k(a,b){return b!=null&&b.artillery_join_data!=null?{uid:a,ids_for_timings:b.artillery_join_data}:null}a={startTracingWindow:function(a,b,c){c===void 0&&(c=null);var d=h.open();c=c||g;j.set(a,{trace_id:a,interaction_name:b,tracing_levels:c});return{finishTracingWindow:function(){j["delete"](a);return d.close()}}},registerAsyncRequest:function(a,c){if(j.size===0)return function(){};else{var d=JSON.stringify(Array.from(j.values()));a.setRequestHeader(i,d);return function(a){a=k(c,a);a!=null?h.pushElement(a):(b("FBLogger")("ArtilleryAsyncRequestTracingAnnotator").debug("expected a payload back in the response from the server containing trace information, but nothing arrived."),b("ResourceTimingsStore").annotate(b("ResourceTypes").XHR,c).addStringAnnotation("join_error","join_data_expected_but_not_found"))}}},__active:function(){throw new Error("__active should only be available in __DEV__")}};e.exports=a}),null); +__d("TimeSliceInteractionExtraSaver",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({EXAMPLE_COMPONENT_SAVER:"example_component_saver",ADS_WAIT_TIME_SAVER:"ads_wait_time_saver",ADS_FLUX_PROFILER_SAVER:"ads_flux_profiler_saver",TIMESLICE_EXECUTION_SAVER:"timeslice_execution_saver",INTERACTION_ASYNC_REQUEST_JOIN_DATA:"interaction_async_request_join_data",RESOURCES_SAVER:"resources_saver",USER_TIMING_SAVER:"user_timing_saver"})}),null); +__d("InteractionAsyncRequestJoinDataSource",["ArtilleryAsyncRequestTracingAnnotator","FBLogger","TimeSliceInteractionExtraSaver"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={registerInteraction:function(a){__p&&__p();a.countDown();var c=a.traceID,d=a.name;if(c==null){b("FBLogger")("InteractionAsyncRequestJoinDataSource").mustfix("got a null trace_id for interaction "+d+". Typically this indicates that only lite tracing was on, which this hook does not support");return}var e=b("ArtilleryAsyncRequestTracingAnnotator").startTracingWindow(c,d);a.registerOnBeforeFinish(function(a){var c=e.finishTracingWindow();a.recordWithExtraSaver(b("TimeSliceInteractionExtraSaver").INTERACTION_ASYNC_REQUEST_JOIN_DATA,"entries",c)});a.registerOnCleanup(function(){e.finishTracingWindow()})}};e.exports=a}),null); +__d("TimeSliceExecutionLogger",["ExecutionContextObservers","IntervalTrackingBoundedBuffer","OnDemandExecutionContextObserver","TimeSlice","TimingAnnotations","performanceAbsoluteNow"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g,h=1e4,i={BEGIN:"b",END:"e"},j=new(b("TimingAnnotations"))(),k;c=babelHelpers.inherits(a,b("OnDemandExecutionContextObserver"));g=c&&c.prototype;function a(){var a,c;for(var d=arguments.length,e=new Array(d),f=0;f=g.length)break;c=g[d++]}else{d=g.next();if(d.done)break;c=d.value}f=c;b("TimeSliceInteractionReliability").bumpLifecycleCounter("starting",a,f)}}z.prototype.recordWithExtraSaver=function(a,b,c){"use strict";if(this.isEnabled()){var d=this.$27.get(a)||{};b!=null&&c!=null&&(d[b]=c);this.$27.set(a,d)}return this};z.prototype.countDown=function(){"use strict";this.$24--,this.$24===0?this.$20&&this.$20():this.$24<0&&b("FBLogger")("FIXME").mustfix("some hook counted down twice")};z.prototype.countUp=function(){"use strict";this.$24>0?++this.$24:b("FBLogger")("FIXME").mustfix("Attempting to countUp on finished interaction")};z.prototype.inform=function(a,c){"use strict";var d=c!=null&&c.isPointOfInterest;if(!this.isEnabledForMode("full")&&!(this.isEnabledForMode("lite")&&d))return p;d=c&&c.ts||b("performanceAbsoluteNow")();var e=new(b("TimingAnnotations"))(),f=this.isEnabledForMode("full")?b("TimeSlice").getGuardNameStack():[];this.$12.push(babelHelpers["extends"]({ts:d,name:a,annotations:e,rawStackTrace:c&&c.rawStackTrace||null,guardStack:f},j,c));return e};z.prototype.informPointWithOverride=function(a,c){"use strict";__p&&__p();var d=b("performanceAbsoluteNow")(),e=c!=null&&c.isPointOfInterest;if(!this.isEnabledForMode("full")&&!(this.isEnabledForMode("lite")&&e)||!this.$29)return p;e=this.isEnabledForMode("full")?b("TimeSlice").getGuardNameStack():[];var f=this.$29[a];c&&(c.rawStackTrace=c.rawStackTrace||null);if(f)f.ts=d,f.guardStack=e,Object.assign(f,c||{});else{f=new(b("TimingAnnotations"))();this.$29[a]=babelHelpers["extends"]({ts:d,name:a,annotations:f,rawStackTrace:c&&c.rawStackTrace||null,guardStack:e},j,c)}return this.$29[a].annotations};z.prototype.invokeWithProfiling=function(c,d){"use strict";if(!this.isEnabledForMode("full"))return d();var e=this.inform("start_"+c);this.$6.push(e);e=b("ErrorUtils").applyWithGuard(d,a,null,null,c);this.inform("finished_"+c);this.$6.pop();return e};z.prototype.getCurrentInvocation=function(){"use strict";if(!this.isEnabledForMode("full"))return p;else if(this.$6.length<1)return p;else return this.$6[this.$6.length-1]};z.prototype.finish=function(a){"use strict";__p&&__p();if(!this.$4)return;if(a&&this.$20){this.$20();return}if(this.$7)b("FBLogger")("FIXME").mustfix("Trace was already marked as ended");else{t(this);this.$15.forEach(function(a){return a(this)}.bind(this));for(var c=this.$18,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;b("TimeSliceInteractionReliability").bumpLifecycleCounter("finishing",this.$1,f)}this.inform("trace_ended",{type:b("ArtilleryJSPointTypes").TRACE_ENDED,pointGroup:"e2e",isPointOfInterest:!0});var i=this.isEnabledForMode("lite"),j=this.isEnabledForMode("full");j&&this.trace().addStringAnnotation("weight",""+1/(this.$21*this.$22));i&&this.trace().addStringAnnotation("lite_weight",""+1/(this.$21*this.$23));navigator&&navigator.connection&&(typeof navigator.connection.downlink==="number"&&this.trace().addStringAnnotation("browser_downlink_megabits",navigator.connection.downlink.toString()),typeof navigator.connection.rtt==="number"&&this.trace().addStringAnnotation("browser_rtt_ms",navigator.connection.rtt.toString()),typeof navigator.connection.effectiveType==="string"&&this.trace().addStringAnnotation("browser_effective_connection_type",navigator.connection.effectiveType));var k=b("performanceAbsoluteNow")(),l=m.get(this);m["delete"](this);this.$5&&this.$5();var n=this.$25!=null?this.$25.close():[],p=this.$26!=null?this.$26.close():[],q=this.$26!=null?this.$26.hasOverflown():!1,r=this.$26!=null?this.$26.getOverflowSize():0,s=this.$10!=null?this.$10.close():null;if(i||j){var u=function(a){i&&this.$30(l),j&&(s!=null&&this.recordWithExtraSaver(b("TimeSliceInteractionExtraSaver").USER_TIMING_SAVER,"data",s),this.$31(k,l,a,n,p,q,r)),o&&o===this.$3&&(b("Arbiter").inform("time_slice_trace_posted",{traceId:this.$3}),o=null),this.$32()}.bind(this),v=u;if(this.$9!==undefined){h||g(0,undefined);var w=h.stopRecording(this.$9);v=function(){w["catch"](function(a){setTimeout(function(){throw a},0)}).then(u)}}a?v():this.$20=function(){return b("requestIdleCallbackAcrossTransitions")(function(){return v()})}}this.countDown();this.$7=!0}};z.prototype.registerOnBeforeSend=function(a){"use strict";this.$4&&this.$13.push(a);return this};z.prototype.registerOnBeforeFinish=function(a){"use strict";this.$4&&this.$15.push(a);return this};z.prototype.registerOnCleanUp=function(a){"use strict";this.$4&&this.$14.push(a);return this};z.prototype.trace=function(){"use strict";return!this.$4?q:this.$16};z.prototype.getTraceID=function(){"use strict";return this.$4?this.$3:null};z.prototype.setExtraSampleRate=function(a){"use strict";this.$21=a;return this};z.prototype.isEnabled=function(){"use strict";return this.$4};z.prototype.disable=function(a){__p&&__p();a===void 0&&(a=!1);m["delete"](this);this.$5&&this.$5();this.$9!==undefined&&(h||g(0,undefined),h.stopRecording(this.$9));if(!a&&this.$4)for(var a=this.$18,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b("TimeSliceInteractionReliability").bumpLifecycleCounter("disabled",this.$1,e)}this.$4=!1;this.$32()};z.prototype.disableBanzaiStream=function(){"use strict";this.$28=!1};z.getPageLoadPoints=function(a,b){"use strict";var c=[],d=k.read();for(var e=d.length-1;e>=0;e--){var f=d[e];if(f.ts=0;e--){var f=d[e],g=f.interaction;f=f.ts;g=g.getTraceID();if(f0?f[0].begin:null;n=n.getMetrics(s!=null&&s0&&(l.push.apply(l,a),b("requestIdleCallbackAcrossTransitions")(b("TimeSlice").guard(n,"invoking onAllChildrenFinished callbacks",{propagationType:b("TimeSlice").PropagationType.ORPHAN})))}function n(){while(l.length)l.pop().finish()}function o(a,b){"use strict";this.$2=o.$1++,this.$3=a,this.$4=[],this.$5=!1,this.$6=b,this.openReferenceCount=1,this.timeslices=[a]}o.prototype.isProfiling=function(){"use strict";return this.$6};o.prototype.addCallback=function(a){"use strict";!this.$5?this.$4.push(a):a();return this};o.prototype.finish=function(){"use strict";this.$5||(this.$5=!0,this.$4.forEach(function(a){return a()}),delete this.$4)};o.prototype.getContinuationExecutionCounterID=function(){"use strict";return this.$2};o.prototype.isInsideContinuationExecution=function(){"use strict";return i.indexOf(this)!==-1};o.prototype.getTimeSliceContextsThisCounted=function(){"use strict";return this.timeslices};o.prototype.getRootContextID=function(){"use strict";return this.$3};o.$1=1;function p(a,b){a.forEach(function(a){var c=a.getContinuationExecutionCounterID(),d=b.find(function(a){return a.getContinuationExecutionCounterID()===c});d||b.push(a)})}g=babelHelpers.inherits(a,b("OnDemandExecutionContextObserver"));g&&g.prototype;a.prototype.onNewContextCreatedWhileEnabled=function(a,b,c){"use strict";var d;c.isContinuation&&(d=i,d.forEach(function(a){return a.openReferenceCount++}));a={hasBeenInvoked:!1,hasExecutionBeenCounted:!1,parentReferenceCounters:d,creationID:k++};return a};a.prototype.onContextCanceled=function(a,b){"use strict";a=b||{};a.hasBeenInvoked||(m(a.parentReferenceCounters),a.hasBeenInvoked=!0)};a.prototype.onBeforeContextStartedWhileEnabled=function(a,c,d){"use strict";__p&&__p();var e={callerProfilingCounterID:j,callerReferenceCounters:h,callerExecutionCounters:i.slice()};c=c||{hasBeenInvoked:!1,creationID:-1};c.hasBeenInvoked=!0;a.executionNumber>0?h=[]:h=c.parentReferenceCounters||[];d.extendsExecution?p(h,i):i=[];i.forEach(function(b){return b.timeslices.push(a.contextID)});h.filter(function(a){return a.isProfiling()}).length>0&&a.executionNumber===0?j=b("ProfilingCounters").startTimingInContext("REF_COUNTED_TIMESLICE_TIME",a.contextID):j=null;return e};a.prototype.onDisable=function(){"use strict";j=null,h=[],i=[]};a.prototype.onAfterContextStartedWhileEnabled=function(a,b,c,d){"use strict";return c};a.prototype.onAfterContextEndedWhileEnabled=function(a,c,d,e){"use strict";c=a.contextID;j!=null&&(b("ProfilingCounters").stopTimingInContext(j,c),j=null);m(h);h=d.callerReferenceCounters;i=d.callerExecutionCounters;j=d.callerProfilingCounterID};a.prototype.getBeforeID=function(){"use strict";return b("ExecutionContextObservers").beforeIDs.REFERENCE_COUNTING};a.prototype.getAfterID=function(){"use strict";return b("ExecutionContextObservers").afterIDs.REFERENCE_COUNTING};function a(){"use strict";g.apply(this,arguments)}var q={onAllChildrenFinished:function(a,b){b===void 0&&(b=!1);var c=q.getObserver().expressInterest();return q.onAllChildrenFinishedWithoutAutoTurningObserverOn(a,c,b)},onAllChildrenFinishedWithoutAutoTurningObserverOn:function(a,d,e){__p&&__p();var f=b("TimeSlice").getContext();if(f==null){d();return null}f=f.contextID;c=new o(f,e);c.addCallback(d);a&&c.addCallback(a);h=h.slice();h.push(c);i=i.slice();i.push(c);j==null&&c.isProfiling()&&(j=b("ProfilingCounters").startTimingInContext("REF_COUNTED_TIMESLICE_TIME",f));return c},getObserver:function(){return r}},r=new a();b("TimeSlice").registerExecutionContextObserver(r);e.exports=q}),null); +__d("clearTimeout",["TimerStorage","TimeSlice"],(function(a,b,c,d,e,f){var g=a.__fbNativeClearTimeout||a.clearTimeout,h=b("TimerStorage").TIMEOUT;function c(a){if(a!=null){b("TimerStorage").unset(h,a);var c=h+String(a);b("TimeSlice").cancelWithToken(c)}g(a)}e.exports=c}),null); +__d("TimeSliceAutoclosedInteraction",["ErrorUtils","ProfilingCounters","TimeSlice","TimeSliceInteraction","TimeSliceInteractionExtraSaver","TimeSliceInteractionSV","TimeSliceReferenceCounting","clearTimeout","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g,h=70*1e3;c=babelHelpers.inherits(a,b("TimeSliceInteraction"));g=c&&c.prototype;function a(a,c){__p&&__p();c===void 0&&(c=[]);g.constructor.call(this,a,c);this.$TimeSliceAutoclosedInteraction1=new Map();this.$TimeSliceAutoclosedInteraction2=0;this.$TimeSliceAutoclosedInteraction3=!0;this.$TimeSliceAutoclosedInteraction4=[];this.$TimeSliceAutoclosedInteraction5=new Set();if(this.isEnabled()){this.trace().addStringAnnotation("initiatorType","autoclosed");var d=b("setTimeoutAcrossTransitions")(b("TimeSlice").guard(function(){this.isDone()||(this.trace().addStringAnnotation("terminated_by_timeout_ms",h.toString()),this.finish())}.bind(this),"timeout for action "+a,{propagationType:b("TimeSlice").PropagationType.EXECUTION}),h);this.registerOnBeforeSend(function(){this.trace().addStringAnnotation("ref_counting_trees",""+this.$TimeSliceAutoclosedInteraction2).addStringAnnotation("ref_counters_pending_count",""+this.$TimeSliceAutoclosedInteraction1.size),b("clearTimeout")(d)}.bind(this));c=b("TimeSliceReferenceCounting").onAllChildrenFinished(null,!0);if(c==null)this.disable(),b("ErrorUtils").reportError(new Error("starting autoclosed interaction outside of a timeslice."));else{this.waitForReferenceCounter(c);this.trace().addStringAnnotation("on_demand_reference_counting",b("TimeSliceInteractionSV").on_demand_reference_counting?"1":"0");a="timeslice_interaction_"+this.getTraceID();this.isEnabledForMode("full")&&(b("ProfilingCounters").currentContext().addAttribution(a,b("ProfilingCounters").AttributionPropagation.ONLY_ON_CONTINUATIONS_AND_FIRST_EXEC),this.addProfilingCounterAttribution(a))}}}a.getInteractionsActiveRightNow=function(){return Array.from(b("TimeSliceInteraction").getAllActiveInteractions()).filter(function(a){return a.$TimeSliceAutoclosedInteraction3&&a.hasActiveReferenceCountingHandle()})};a.prototype.waitForReferenceCounter=function(a){__p&&__p();if(!this.isEnabled())return this;var c=a.getContinuationExecutionCounterID();this.$TimeSliceAutoclosedInteraction1.set(c,a);this.$TimeSliceAutoclosedInteraction2++;a.addCallback(function(){b("TimeSliceInteractionSV").also_record_new_timeslice_format&&this.$TimeSliceAutoclosedInteraction1.has(c)&&a.getTimeSliceContextsThisCounted().forEach(function(a){return this.$TimeSliceAutoclosedInteraction5.add(a)}.bind(this)),this.$TimeSliceAutoclosedInteraction1["delete"](c)&&this.$TimeSliceAutoclosedInteraction1.size===0&&(this.$TimeSliceAutoclosedInteraction4.forEach(function(a){return a()}),this.$TimeSliceAutoclosedInteraction4=[],this.isEnabled()&&!this.isDone()&&(b("TimeSliceInteractionSV").also_record_new_timeslice_format&&this.recordWithExtraSaver(b("TimeSliceInteractionExtraSaver").TIMESLICE_EXECUTION_SAVER,"reference_counted_contexts",Array.from(this.$TimeSliceAutoclosedInteraction5.values())),this.finish()))}.bind(this));return this};a.prototype.onReferenceCountedExecutionFinished=function(a){this.$TimeSliceAutoclosedInteraction4.push(a)};a.prototype.hasActiveReferenceCountingHandle=function(){__p&&__p();for(var a=this.$TimeSliceAutoclosedInteraction1.values(),b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;if(d.isInsideContinuationExecution())return!0}return!1};e.exports=a}),null); +__d("Keys",[],(function(a,b,c,d,e,f){"use strict";e.exports=Object.freeze({BACKSPACE:8,TAB:9,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE_BREAK:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,LEFT_WINDOW_KEY:91,RIGHT_WINDOW_KEY:92,SELECT_KEY:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,MULTIPLY:106,ADD:107,SUBTRACT:109,DECIMAL_POINT:110,DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUM_LOCK:144,SCROLL_LOCK:145,SEMI_COLON:186,EQUAL_SIGN:187,COMMA:188,DASH:189,PERIOD:190,FORWARD_SLASH:191,GRAVE_ACCENT:192,OPEN_BRACKET:219,BACK_SLASH:220,CLOSE_BRAKET:221,SINGLE_QUOTE:222})}),null); +/** + * License: https://www.facebook.com/legal/license/ZtTipMAcpq9/ + */ +__d("ImmediateImplementation",["ImmediateImplementationExperiments"],(function(a,b,c,d,e,f){__p&&__p();(function(c,d){"use strict";__p&&__p();var e=1,g={},h={},i=h,j=!1,k=c.document,l;function m(a){var b=a[0];a=Array.prototype.slice.call(a,1);g[e]=function(){b.apply(d,a)};i=i.next={handle:e++};return i.handle}function n(){__p&&__p();var a,b;while(!j&&(a=h.next)){h=a;if(b=g[a.handle]){j=!0;try{b(),j=!1}finally{o(a.handle),j&&(j=!1,h.next&&l(n))}}}}function o(a){delete g[a]}function p(){__p&&__p();if(c.postMessage&&!c.importScripts){var a=!0,b=function b(){a=!1,c.removeEventListener?c.removeEventListener("message",b,!1):c.detachEvent("onmessage",b)};if(c.addEventListener)c.addEventListener("message",b,!1);else if(c.attachEvent)c.attachEvent("onmessage",b);else return!1;c.postMessage("","*");return a}}function q(){var a="setImmediate$"+Math.random()+"$",b=function(event){event.source===c&&typeof event.data==="string"&&event.data.indexOf(a)===0&&n()};c.addEventListener?c.addEventListener("message",b,!1):c.attachEvent("onmessage",b);l=function(){var b=m(arguments);c.originalPostMessage?c.originalPostMessage(a+b,"*"):c.postMessage(a+b,"*");return b}}function r(){var a=new MessageChannel();a.port1.onmessage=n;l=function(){var b=m(arguments);a.port2.postMessage(b);return b}}function s(){var a=k.documentElement;l=function(){var b=m(arguments),c=k.createElement("script");c.onreadystatechange=function(){c.onreadystatechange=null,a.removeChild(c),c=null,n()};a.appendChild(c);return b}}function t(){l=function(){setTimeout(n,0);return m(arguments)}}p()?c.MessageChannel&&b("ImmediateImplementationExperiments").prefer_message_channel?r():q():c.MessageChannel?r():k&&k.createElement&&"onreadystatechange"in k.createElement("script")?s():t();f.setImmediate=l;f.clearImmediate=o})(Function("return this")())}),null); +__d("clearImmediatePolyfill",["ImmediateImplementation"],(function(a,b,c,d,e,f){e.exports=a.clearImmediate||b("ImmediateImplementation").clearImmediate}),null); +__d("clearImmediate",["TimerStorage","TimeSlice","clearImmediatePolyfill"],(function(a,b,c,d,e,f){var g=b("TimerStorage").IMMEDIATE;function a(a){if(a!=null){b("TimerStorage").unset(b("TimerStorage").IMMEDIATE,a);var c=g+String(a);b("TimeSlice").cancelWithToken(c)}b("clearImmediatePolyfill")(a)}e.exports=a}),null); +__d("setImmediatePolyfill",["invariant","PromiseUsePolyfillSetImmediateGK","ImmediateImplementation"],(function(a,b,c,d,e,f,g){__p&&__p();var h=a.setImmediate;if(b("PromiseUsePolyfillSetImmediateGK").www_always_use_polyfill_setimmediate||!h){d=b("ImmediateImplementation");h=d.setImmediate}function c(a){typeof a==="function"||g(0,undefined);for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d1?d-1:0),f=1;fm.DEFAULT&&(j=b("setTimeoutAcrossTransitions")(b("TimeSlice").guard(function(){j=null,n(b("performanceNow")())},"requestAnimationFrame priorityRAFCallback setTimeout",{propagationType:b("TimeSlice").PropagationType.ORPHAN}),h));a=b("TimeSlice").guard(a,"requestAnimationFrame",{propagationType:b("TimeSlice").PropagationType.CONTINUATION,registerCallStack:!0});a.priority=c;a.deleted&&b("ErrorUtils").applyWithGuard(function(){throw new Error("Scheduling a deleted callback")});c=b("requestAnimationFramePolyfill")(function(){});k[c]=a;return c}function p(a){a=b("TimeSlice").guard(a,"requestAnimationFrame",{propagationType:b("TimeSlice").PropagationType.CONTINUATION});var c=b("requestAnimationFramePolyfill")(a);b("TimeSlice").registerForCancelling(g+c,a);return c}e.exports=function(a,c){if(b("Env").gk_raf_flush)return o(a,c);else return p(a)};e.exports.Priorities=m;e.exports.cancelVirtualRAF=function(a){if(b("Env").gk_raf_flush){b("TimeSlice").cancel(k[a]);delete k[a];if(l){a=l[a];a&&(a.deleted=!0)}}}}),null); +__d("requestAnimationFrame",["TimerStorage","TimeSlice","requestAnimationFrameAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();function a(a,c){var d;function e(c){b("TimerStorage").unset(b("TimerStorage").ANIMATION_FRAME,d),a(c)}b("TimeSlice").copyGuardForWrapper(a,e);e.__originalCallback=a;d=b("requestAnimationFrameAcrossTransitions")(e,c);b("TimerStorage").set(b("TimerStorage").ANIMATION_FRAME,d);return d}e.exports=a}),null); +__d("setTimeout",["TimerStorage","TimeSlice","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();function a(a,c){__p&&__p();var d,e=function(){b("TimerStorage").unset(b("TimerStorage").TIMEOUT,d);for(var c=arguments.length,e=new Array(c),f=0;f2?f-2:0),h=2;h0;function j(a,c){b("UserTimingUtils").measureStart(a+" "+c)}function k(a,c,d){b("UserTimingUtils").measureEnd("\u26cf "+a+" ["+c+"][phase "+d+"]",a+" "+c)}function l(a,c){if(a)for(var d=0;d=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;var e=this._phases[d];if(e.begun)if(e.complete)continue;else return;else{this._currentPhase=d;this._beginPhase(d);return}}};n.prototype._displayPageletHandler=function(a){"use strict";this.displayCallback?this.displayCallback(this._displayPagelet.bind(this,a)):this._displayPagelet(a)};n.prototype._displayPagelet=function(a){"use strict";__p&&__p();j(a.id,"display");a.displayStarted=!0;this._informPageletEvent(b("PageletEventConstsJS").DISPLAY_START,a);var c=this._getPagelet(a),d=[],e={};for(var f in a.content){var g=a.content[f];a.append&&(f=this._getPageletRootID(a));var h=b("ge")(f);if(!h){var i="Root element %s is missing for pagelet %s";!1;continue}f===c.id&&c.setRoot(h);if(g){if(a.append)q(h,g,d);else if(g.nodeType)h.innerHTML="",q(h,g,d);else{i=o(g);h.innerHTML=i;e[f]=i;d.push(h)}b("BigPipeExperiments").enable_bigpipe_plugins&&b("BigPipePlugins").runPluginOnPagelet(h)}g=h.getAttribute("data-referrer");g||h.setAttribute("data-referrer",f)}i=null;if(a.static_templates){g=b("ge")("static_templates");!g?!1:(i=o(a.static_templates),q(g,i,d))}this._informPageletDisplayDetails(a.id,a.jsmods,e,i);a.displayed=!0;if(a.jsmods){h=this._serverJS.handlePartial(a.jsmods,{pagelet:a.id,bigPipeContext:{onDisplayDone:this._onDisplayDone}});c.addDestructor(h.cancel.bind(h))}var l=[];d.forEach(function(a){if(typeof a.getElementsByTagName==="function"){a=a.getElementsByTagName("img");for(var b=0;b0&&this._informEventExternal("images_displayed",{pagelet:a.id,timeslice:b("TimeSlice").getContext()?b("TimeSlice").getContext().contextID:null,images:l});b("gkx")("AT5t2BrnO1vWmejrnnr508P2PeyF-IDhRvIGXsBTyEuiPclX38RSwCTPJH6AwY3ViplyCGmx2pzmKgoPw1yYVDBX")&&(d.length&&this._informEventExternal("elements_displayed",d));this._informPageletEvent(b("PageletEventConstsJS").DISPLAY_END,a);k(a.id,"display",a.phase);this.arbiter.inform(a.id+"_displayed",!0,"state")};n.prototype._onPhaseDisplayEnd=function(a){"use strict";__p&&__p();var c=this._getOrCreatePhase(a);c.complete=!0;if(a===this._ttiPhase){c=b("Bootloader").__debug.predictedResources;var d=b("Bootloader").__debug.requested,e=0;for(var f in d)e+=!(f in c);d={pre_tti_non_ef_resources:e};c=b("captureUsageSnapshot")();this.isAjax||(d.cjs_factory_count_tti=b("__getTotalFactories")(),d.cjs_compile_time_tti=b("__getCompileTime")(),d.cjs_factory_time_tti=b("__getFactoryTime")());this._informEventExternal(n.Events.tti,{phase:this._ttiPhase,rid:this.rid,ajax:this.isAjax,metrics:d,usageSnapshot:c});this.arbiter.inform("tti_pagelet_displayed",!0,"state")}e=b("gkx")("AT4kYIk7PhRqUACJJM8qs58t-WNCoM2ZYe35b1xv03xf3OtmC7RfXVIT9hWB6yTOgfA");var g=!1;this._isRelevant()&&(a===this._lastPhaseBeforeLastResponse&&(g=e,this._fireDisplayDone(function(){g&&this._nextPhase()}.bind(this))),a===this._lastPhaseOfLastResponse&&(this._displayDoneFired||(g=e,this._fireDisplayDone(function(){})),this.arbiter.inform("pagelet_displayed_all",!0,"state")));!g&&a!==this._lastPhaseOfLastResponse&&this._nextPhase()};n.prototype._nextPhase=function(){"use strict";this.config.flush_pagelets_asap?h<=8?b("setTimeout")(this._tryRenderingNextPhase.bind(this),20):this._tryRenderingNextPhase():(this._currentPhase++,h<=8?b("setTimeout")(this._beginPhase.bind(this,this._currentPhase),20):this._beginPhase(this._currentPhase))};n.prototype._fireDisplayDone=function(a){"use strict";this._displayDoneFired=!0,b("Env").gk_raf_flush?b("requestAnimationFrame")(function(){this.arbiter.inform("display_done",!0),this._displayDone=!0,a()}.bind(this),{priority:b("requestAnimationFrameAcrossTransitions").Priorities.DISPLAY_DONE_LOGGING}):(this.arbiter.inform("display_done",!0),this._displayDone=!0,a()),this.lid&&k("display_done",this.lid,"all")};n.prototype._downloadJsForPagelet=function(a){"use strict";__p&&__p();this._informPageletEvent(b("PageletEventConstsJS").JS_START,a),b("Bootloader").loadResources(a.allResources||[],function(){this._informPageletEvent(b("PageletEventConstsJS").JS_END,a);a.requires=a.requires||[];(!this.isAjax||a.phase>=1)&&a.requires.push("uipage_onload");var c=function(){this._informPageletEvent(b("PageletEventConstsJS").ONLOAD_START,a),this._isRelevantPagelet(a)&&l(a.onload),this._informPageletEvent(b("PageletEventConstsJS").ONLOAD_END,a),this.arbiter.inform("pagelet_onload",!0),a.provides&&this.arbiter.inform(a.provides,!0,"state")}.bind(this),d=function(){this._isRelevantPagelet(a)&&l(a.onafterload)}.bind(this);this.arbiter.registerCallback(c,a.requires);this.arbiter.registerCallback(d,[this.onloadEvt])}.bind(this),!1,a.id)};n.prototype._getPagelet=function(a){"use strict";a=this._getPageletRootID(a);return b("PageletSet").getPagelet(a)};n.prototype._getPageletRootID=function(a){"use strict";return a.append||Object.keys(a.content)[0]||null};n.prototype._isRelevant=function(){"use strict";var a=b("BigPipeInstance").getCurrentInstance();return this==a||this.automatic&&this._relevant_instance==a||this.jsNonBlock||this.forceFinish||a&&a.allowIrrelevantRequests};n.prototype._isRelevantPagelet=function(a){"use strict";if(!this._isRelevant())return!1;a=this._getPageletRootID(a);return!!this._livePagelets[a]};n.prototype._informEventExternal=function(a,c,d){"use strict";c=c||{},d=d||this.arbiter,c.ts=b("performanceAbsoluteNow")(),i&&(console.timeStamp&&console.timeStamp(a+" "+(Object.prototype.hasOwnProperty.call(c,"arbiter")?JSON.stringify(babelHelpers["extends"]({},c,{arbiter:null})):JSON.stringify(c)))),this.lid===null?this._awaitingLIDEventQueue.push([d,a,c]):(c.lid=this.lid,d.inform(a,c,"persistent"))};n.prototype._informPageletEvent=function(a,b){"use strict";a={event:a,id:b.id};b.phase&&(a.phase=b.phase);b.categories&&(a.categories=b.categories);b.allResources&&(a.allResources=b.allResources);b.displayResources&&(a.displayResources=b.displayResources);this._informEventExternal("pagelet_event",a)};n.prototype._informPageletDisplayDetails=function(a,c,d,e){"use strict";if(this.config.dispatch_pagelet_replayable_actions)try{this._informEventExternal("pagelet_performing_replayable_actions",{id:a,jsmods:b("fastDeepCopy")(c),contentMap:d,staticTemplates:e})}catch(a){b("FBLogger")("bigpipe_pagelet_replay").catching(a).warn("failed at _informPageletDisplayDetails"),this._informEventExternal("pagelet_performing_replayable_actions_failed",{})}};n.getCurrentInstance=function(){"use strict";return b("BigPipeInstance").getCurrentInstance()};Object.assign(n.prototype,{beforePageletArrive:function(a){b("TimeSlice").guard(function(){return this._informPageletEvent(b("PageletEventConstsJS").ARRIVE_START,{id:a})}.bind(this),"beforePageletArrive "+a,{root:!0})()},setPageID:function(a){this.lid=a,this._awaitingLIDEventQueue.forEach(function(b){var c=b[0],d=b[1];b=b[2];b.lid=a;c.inform(d,b,"persistent")}),this._awaitingLIDEventQueue=[],this.lid&&j("display_done",this.lid)},onPageletArrive:b("ErrorUtils").guard(function(a){__p&&__p();this._informPageletEvent(b("PageletEventConstsJS").ARRIVE_END,a);b("bx").add(a.bxData);b("gkx").add(a.gkxData);g.add(a.ixData);b("qex").add(a.qexData);b("Bootloader").setResourceMap(a.resource_map||{});a.bootloadable&&b("Bootloader").enableBootload(a.bootloadable);a.content=a.content||{};var c=a.phase;if(a.all_phases)for(var d=a.all_phases,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(e){if(f>=d.length)break;h=d[f++]}else{f=d.next();if(f.done)break;h=f.value}h=h;this._getOrCreatePhase(h)}h=this._getOrCreatePhase(c);h.pagelets.push(a.id);this._maxPhase=Math.max(c,this._maxPhase);a.last_in_phase&&this.arbiter.registerCallback(function(){return this._onPhaseDisplayEnd(c)}.bind(this),h.pagelets.map(function(a){return a+"_displayed"}).concat(["phase_begin_"+c]));f=this._getPageletRootID(a);var i=b("PageletSet").getOrCreatePagelet(f);a.last_pagelet&&(this._lastPhaseBeforeLastResponse=this._maxPhase);a.the_end&&(this._lastPhaseOfLastResponse=c);a.tti_phase!==undefined&&(this._ttiPhase=a.tti_phase);this._livePagelets[i.id]=!0;i.addDestructor(function(){delete this._livePagelets[i.id]}.bind(this));if(a.jscc_map){e=b("JSCC").parse(a.jscc_map);d=b("JSCC").init(e);i.addDestructor(d)}var j,k=[];h=!a.the_end||this._displayDone||!b("gkx")("AT42vHZv2FMRQFxjYy8soPYLMZQ4FvEb3npoHjDNtK5L_ed7xyu66vqbi4snBVFxLSGN0ZKY0U-z6rBE6MS3Ht3lEToi6aqMBaQBAYDf8hAjMw");if(a.jsmods&&h){f=a.jsmods.define;e=a.jsmods.instances;d=a.jsmods.markup;var l=a.jsmods.pre_display_requires;delete a.jsmods.define;delete a.jsmods.instances;delete a.jsmods.markup;delete a.jsmods.pre_display_requires;var n=19e3;n=function(){if(a.displayStarted){b("FBLogger")("BigPipe").warn("registerToBlockDisplayUntilDone_DONOTUSE called after pagelet %s was displayed. This is a no-op.",a.id);return function(){}}var c,d,e=m+"_preDisplayEvent";m++;j?this.arbiter.registerCallback(j,[e]):k.push(e);return b("TimeSlice").guard(function(){d=!0,b("clearTimeout")(c),this.arbiter.inform(e,!0,"state")}.bind(this),"BigPipeDisplayBlockingEvent "+e,{propagationType:b("TimeSlice").PropagationType.EXECUTION})}.bind(this);this._informPageletDisplayDetails(a.id,{define:f,instances:e,markup:d,pre_display_requires:l},{});this._serverJS.handlePartial({define:f,instances:e,markup:d,pre_display_requires:l},{pagelet:a.id,bigPipeContext:{onDisplayDone:this._onDisplayDone,registerToBlockDisplayUntilDone_DONOTUSE:n}})}this._informPageletEvent(b("PageletEventConstsJS").SETUP,a);if(a.display_out_of_phase==="asap")k=k.concat(["first_response_displayed",a.id+"_css_end"]);else if(a.display_out_of_phase==="after_tti"){var o=a.id+"_greedy_render";k=k.concat(["first_response_displayed",a.id+"_css_end",o]);var p=!1;f=function(){if(p)return;this.arbiter.inform(o,!0,"state")}.bind(this);this.arbiter.registerCallback(f,["tti_pagelet_displayed"]);this.arbiter.registerCallback(f,["phase_begin_"+c])}else k=k.concat(["phase_begin_"+a.phase,a.id+"_css_end"]);(a.display_dependency||[]).forEach(function(a){return k.push(a+"_displayed")});if(a.display_group){e=document.body.getElementsByClassName("pagelet-group");for(var d=0;d=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;if(!this.$BrowserEventBasedInteraction2.includes(d))return!1}return!0};i.prototype.addEagerExecution=function(a,b,c){this.waitForReferenceCounter(a),this.addProfilingCounterAttribution(b),[].push.apply(this.$BrowserEventBasedInteraction2,c)};i.prototype.setManualStartAndEnd=function(a,b,c,d){this.$BrowserEventBasedInteraction7++,this.$BrowserEventBasedInteraction8++,this.$BrowserEventBasedInteraction3=a,this.$BrowserEventBasedInteraction4=b,this.$BrowserEventBasedInteraction5=c,this.$BrowserEventBasedInteraction6=d,this.isEnabled()?this.addManualInstrumentationData():d||this.logManualInstrumentationData()};i.prototype.markManualStart=function(a,c){this.$BrowserEventBasedInteraction7++,this.$BrowserEventBasedInteraction4||(this.$BrowserEventBasedInteraction4=c||b("performanceAbsoluteNow")(),this.$BrowserEventBasedInteraction3=a,this.isEnabled()&&(this.countUp(),this.registerOnBeforeFinish(function(){this.addManualInstrumentationData()}.bind(this))))};i.prototype.markManualEnd=function(a){if(!this.$BrowserEventBasedInteraction4){b("FBLogger")("event_profiler").warn("Attempting to mark end for interaction which never had start marked");return}this.$BrowserEventBasedInteraction8++;this.$BrowserEventBasedInteraction5=a||b("performanceAbsoluteNow")();this.$BrowserEventBasedInteraction6=this.hasActiveReferenceCountingHandle();!this.isEnabled()&&!this.$BrowserEventBasedInteraction6?this.logManualInstrumentationData():this.isEnabled()&&this.$BrowserEventBasedInteraction8===1&&this.countDown()};i.prototype.getManualInstrumentationData=function(){var a={};this.$BrowserEventBasedInteraction4&&this.$BrowserEventBasedInteraction3&&(a.manual_instrumentation_start=""+this.$BrowserEventBasedInteraction4,a.manual_instrumentation_marked_start_count=""+this.$BrowserEventBasedInteraction7,a.manual_instrumentation_start_reference_counted="1");this.$BrowserEventBasedInteraction5&&(a.manual_instrumentation_end=""+this.$BrowserEventBasedInteraction5,a.manual_instrumentation_marked_end_count=""+this.$BrowserEventBasedInteraction8,a.manual_instrumentation_end_reference_counted=this.$BrowserEventBasedInteraction6?"1":"0");this.$BrowserEventBasedInteraction4&&this.$BrowserEventBasedInteraction5&&(a.manual_instrumentation_duration=""+(this.$BrowserEventBasedInteraction5-this.$BrowserEventBasedInteraction4));return a};i.prototype.addManualInstrumentationData=function(){var a=this.getManualInstrumentationData();Object.keys(a).forEach(function(b){this.trace().addStringAnnotation(b,a[b])}.bind(this));this.trace().addVectorAnnotation("manual_instrumentation_interaction_ids",this.$BrowserEventBasedInteraction3||[]);a.manual_instrumentation_start&&this.inform("manual_instrumentation_start",{ts:parseFloat(a.manual_instrumentation_start)}).addStringAnnotation("visual_role","global_signpost");a.manual_instrumentation_end&&this.inform("manual_instrumentation_end",{ts:parseFloat(a.manual_instrumentation_end)}).addStringAnnotation("visual_role","global_signpost")};i.prototype.logManualInstrumentationData=function(){var a=this.$BrowserEventBasedInteraction3||[],c=this.getManualInstrumentationData();c.lite_weight="1";b("Bootloader").loadModules(["TimeSliceInteractionsLiteTypedLogger","PerfXSharedFields"],function(b,d){new b().setActionName("Event").setTraceAnnotations({stringProps:c,setProps:{},vectorProps:{manual_instrumentation_interaction_ids:a,interaction_ids:this.$BrowserEventBasedInteraction2}}).updateData(d.getCommonData()).logVital()}.bind(this),"BrowserEventBasedInteraction")};i.prototype.getActiveBrowserEventBasedInteractions=function(){return b("TimeSliceAutoclosedInteraction").getInteractionsActiveRightNow().filter(function(a){return a instanceof i})};e.exports=i}),null); +__d("EventProfilerAdsSessionProvider",["AdsInterfacesSessionConfig"],(function(a,b,c,d,e,f){"use strict";e.exports={sessionID:b("AdsInterfacesSessionConfig").sessionID}}),null); +__d("EventProfilerEagerExecution",["EventConfig","FBLogger","ProfilingCounters","TimeSliceReferenceCounting"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=0,h={},i=0,j={};function k(a,c,d){__p&&__p();this.interaction=null;this.$2=[];this.$3=[];this.$4=[];this.$5=[];this.id=i++;this.$6=a;for(var d=0;d=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;if(!this.$6.includes(d))return!1}return!0};k.prototype.__registerInteractionWePotentiallyEagerlyExecutedFor=function(a){this.$2.push(a)};k.prototype.attributeToCurrentlyActiveInteraction=function(){__p&&__p();var a=this,b=this.handle;if(!b)return;var c=function(){__p&&__p();if(e){if(f>=d.length)return"break";g=d[f++]}else{f=d.next();if(f.done)return"break";g=f.value}var c=g;if(c.hasActiveReferenceCountingHandle()){c.addEagerExecution(b,a.$1,a.$3.slice());a.interaction=c;a.$4.forEach(function(a){return a(c)});a.$4=[];return"break"}};for(var d=this.$2,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g,h=c();if(h==="break")break}};k.prototype.tagAsInteractionID=function(a){this.$3.push(a)};k.prototype.withInteraction=function(a){!this.interaction?this.$4.push(a):a(this.interaction)};k.prototype.isActive=function(){return!!(this.handle&&this.handle.isInsideContinuationExecution())};k.prototype.onFinish=function(a){this.$5.push(a)};k.prototype.finish=function(){delete h[this.id],this.$5.forEach(function(a){return a()}),this.$5=[]};a={declareEagerExecution:function(a,b,c){a=new k(a,c,b);var d=a.id;return function(){h[d]&&h[d].attributeToCurrentlyActiveInteraction()}},getEagerExecution:function(a,b){var c=a.map(function(a){return j[a]}).filter(function(b){return b&&b.hasInteractionIDs(a)});b=c.filter(function(a,b){return b===c.indexOf(a)});return b.length==1?b[0]:null},getActiveExecutions:function(){return Object.values(h).filter(function(a){return a.handle&&a.handle.isInsideContinuationExecution()})}};e.exports=a}),null); +__d("EventProfilerInteractionTracker",["Bootloader","BrowserEventBasedInteraction","EventProfilerEagerExecution","EventConfig","performanceAbsoluteNow"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[],h=b("EventConfig").profile_eager_execution&&b("EventConfig").manual_instrumentation;a={createNewInteraction:function(a,c,d,e){__p&&__p();if(!a.length)return null;var f=e&&e.sampleWeight||0,i;(h||d||f)&&(i=new(b("BrowserEventBasedInteraction"))(a,c,1/(f||d)));if(i&&e){var j=e;j.__registerInteractionWePotentiallyEagerlyExecutedFor(i);i.registerOnBeforeSend(function(){i&&i!==j.interaction&&(d?i.setExtraSampleRate(1/d):i.disable())})}if(i){var k=i;g.push(i);i.onReferenceCountedExecutionFinished(function(){var a=g.indexOf(k);a!==-1&&g.splice(a,1)})}f===0&&d===0&&i&&i.disable();return d===0?null:i},markManualStart:function(a,c,d){__p&&__p();if(!h)return{markManualEnd:function(){}};var e=g.filter(function(b){return b.hasInteractionIDs(a)&&b.getEventType()===c}),f=b("EventProfilerEagerExecution").getActiveExecutions();if(e.length===1)return i(e[0],a,d);else if(f.length===1)return l(f[0],a,d);else{e.forEach(function(a){a.trace().addStringAnnotation("has_manual_instrumentation_conflict","1")});return j(a,e.length+f.length,d)}}};function i(a,b,c){a.markManualStart(b,c);return{markManualEnd:function(b){a.markManualEnd(b)}}}function j(a,c,d){var e=d||b("performanceAbsoluteNow")();return{markManualEnd:function(d){d=d||b("performanceAbsoluteNow")();k(e,d,a,c)}}}function k(a,c,d,e){var f={manual_instrumentation_start:""+a,manual_instrumentation_end:""+c,manual_instrumentation_duration:""+(c-a),manual_instrumentation_start_reference_counted:"0",manual_instrumentation_end_reference_counted:"0",lite_weight:"1"};e&&(f.manual_instrumentation_conflicts=""+e);b("Bootloader").loadModules(["TimeSliceInteractionsLiteTypedLogger","PerfXSharedFields"],function(a,b){new a().setActionName("Event").setTraceAnnotations({stringProps:f,setProps:{},vectorProps:{manual_instrumentation_interaction_ids:d}}).updateData(b.getCommonData()).logVital()},"EventProfilerInteractionTracker")}function l(a,c,d){__p&&__p();var e=d||b("performanceAbsoluteNow")(),f,g,h,i=!1;function j(){f&&g!==undefined&&!i&&h!==undefined&&(i=!0,g?g.setManualStartAndEnd(c,e,f,h):k(e,f,c))}var l;a.withInteraction(function(a){l=a,a.onReferenceCountedExecutionFinished(function(){a.hasInteractionIDs(c)?g=a:g=null,j()})});a.onFinish(function(){l||(g=!1,j())});return{markManualEnd:function(c){if(f)return;h=a.isActive()||l&&l.hasActiveReferenceCountingHandle()||!1;f=c||b("performanceAbsoluteNow")();j()}}}e.exports=a}),null); +__d("EventProfilerSampler",["EventConfig"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("EventConfig").interaction_boost,h=b("EventConfig").event_types,i=b("EventConfig").sampling||{},j=b("EventConfig").page_sampling_boost||1,k=[];Object.keys(b("EventConfig").interaction_regexes).forEach(function(a){k.push({id:a,regex:new RegExp(b("EventConfig").interaction_regexes[a])})});a="click";c="mouseup";var l=[a,c],m=a;d={canSample:function(a){return!!i[a]},getEventSampleWeights:function(event,a){event.__samplingWeights==undefined&&(event.__samplingWeights={interaction:n(this.getInteractionWeight(event,a)),event:n(this.getEventWeight(event))});return event.__samplingWeights},getInteractionWeight:function(event,a){__p&&__p();var b=event.type in i?i[event.type]:1;if(!b||!a||!a.length)return 0;var c=1;for(var a=a,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;if(g[f]){c=g[f];break}}return b*i.__interactionDefault/c},getEventWeight:function(event){var a=event.type in i?i[event.type]:1;a/=j;return a*i.__eventDefault},getEventInteractionIDs:function(a,b){__p&&__p();if(l.indexOf(a)===-1)return[];var c=[];for(var b=b,d=Array.isArray(b),e=0,b=d?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;for(var g=0;g0?(m[e-1]=a,n(b("TimeSpentPageTransitionCause").REPLACE_OVERLAY_VIEW,c)):(m.push(a),n(b("TimeSpentPageTransitionCause").OPEN_OVERLAY_VIEW,c)))},closeOverlayView:function(a,c){a=m.lastIndexOf(a);if(a===-1)return;i=Object.assign({},j);j&&(a>0?j.topViewEndpoint=m[a-1]:j.topViewEndpoint=null);m=m.slice(0,a);n(b("TimeSpentPageTransitionCause").CLOSE_OVERLAY_VIEW,c)},setClickPointInfo:function(a){l=a,p()},getClickPointInfo:function(){return l},getScriptPath:o,getCategoryToken:function(){return j?j.categoryToken:undefined},getEarlyFlushPage:function(){var a;return(a=j)==null?void 0:(a=a.extraData)==null?void 0:a.ef_page},getTopViewEndpoint:function(){var a=m.length;return a>0?m[a-1]:o()},getPageInfo:function(){return j},getSourcePageInfo:function(){return i},subscribe:function(a){return k.add(b("TimeSlice").guard(a,"ScriptPath.subscribe"))},shutdown:function(){p()}};e.exports=c}),null); +__d("VersionRange",["invariant"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=/\./,i=/\|\|/,j=/\s+\-\s+/,k=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function m(a,b){var c=a.split(i);if(c.length>1)return c.some(function(a){return D.contains(a,b)});else{a=c[0].trim();return n(a,b)}}function n(a,b){a=a.split(j);a.length>0&&a.length<=2||g(0,undefined);if(a.length===1)return o(a[0],b);else{var c=a[0];a=a[1];x(c)&&x(a)||g(0,undefined);return o(">="+c,b)&&o("<="+a,b)}}function o(a,b){__p&&__p();a=a.trim();if(a==="")return!0;b=b.split(h);a=v(a);var c=a.modifier;a=a.rangeComponents;switch(c){case"<":return p(b,a);case"<=":return q(b,a);case">=":return s(b,a);case">":return t(b,a);case"~":case"~>":return u(b,a);default:return r(b,a)}}function p(a,b){return C(a,b)===-1}function q(a,b){a=C(a,b);return a===-1||a===0}function r(a,b){return C(a,b)===0}function s(a,b){a=C(a,b);return a===1||a===0}function t(a,b){return C(a,b)===1}function u(a,b){var c=b.slice();b=b.slice();b.length>1&&b.pop();var d=b.length-1,e=parseInt(b[d],10);w(e)&&(b[d]=e+1+"");return s(a,c)&&p(a,b)}function v(a){a=a.split(h);var b=a[0].match(k);b||g(0,undefined);return{modifier:b[1],rangeComponents:[b[2]].concat(a.slice(1))}}function w(a){return!isNaN(a)&&isFinite(a)}function x(a){return!v(a).modifier}function y(a,b){for(var c=a.length;cb)return 1;else if(a",request_animation_frame_wait_ms:0,set_timeout_wait_ms:0};g[p]={event_target_raw:v,weight:e.event,cancelable:z,deliberate_sync:A,ad_account_id:m,event_end_ms:0};r=b("EventProfilerAdsSessionProvider").sessionID;r&&(g[p].ads_session_id=r);o!=null&&o(g[p]);k.has(c)&&(g[p].is_first_in_frame=j,j=!1,n(c,event.target));if(l){x=l.trace();x.addVectorAnnotation("event_target_stack",v).addVectorAnnotation("pagelets",y)}var B=l;b("requestAnimationFrameAcrossTransitions")(function(){__p&&__p();l=null;var a=b("performanceAbsoluteNow")();h[p].request_animation_frame_wait_ms=Math.round(a-g[p].event_end_ms);delete g[p].event_end_ms;b("setTimeoutAcrossTransitions")(function(){__p&&__p();b("setTimeoutAcrossTransitions")(function(){j=!0},50);var c=b("performanceAbsoluteNow")();h[p].set_timeout_wait_ms=Math.round(c-a);s(p,f,c);c=i[p];c&&(b("TimeSlice").cancel(c),delete i[p]);B&&B.inform("TTI",{isPointOfInterest:!0});delete h[p];delete g[p]},0)})}h[p].event_handlers_runtime_ms+=d-f;g[p].event_end_ms=d;b("CurrentEventMeta").__setCurrentEventID(null);l&&l.informPointWithOverride("tti_ts",{isPointOfInterest:!0});return w}},tagCurrentActiveInteractionsAs:function(a){r.getActiveInteractions().forEach(function(b){b.tagAsInteractionID(a)}),b("EventProfilerEagerExecution").getActiveExecutions().forEach(function(b){return b.tagAsInteractionID(a)})},informManualInteractionTimestamp:function(a,b,c){},markManualStart:function(a,c,d){return b("EventProfilerInteractionTracker").markManualStart(a,c,d)},getActiveInteractions:function(){return b("TimeSliceAutoclosedInteraction").getInteractionsActiveRightNow().filter(function(a){return a instanceof b("BrowserEventBasedInteraction")&&a.isEnabled()})},informPointOnActiveInteractions:function(a,b,c){r.getActiveInteractions().map(function(d){d=d.inform(a,b);c&&d.addStringAnnotation("is_goal_point","1")})},notifyRunningEagerInteraction:function(a,c){var d=b("EventProfilerSampler").getEventSampleWeights({type:c},a);return b("EventProfilerEagerExecution").declareEagerExecution(a,c,d.interaction)},setCurrentAdAccountId:function(a){m=a},setAdsEventListener:function(a){n=a},setApplyAdsLoggingFields:function(a){o=a},setAdsLogInteraction:function(a){p=a}};function s(a,c,d){c=h[a];c.event_handlers_runtime_ms=Math.round(c.event_handlers_runtime_ms);var e=Object.assign({},h[a],g[a]);p!=null&&p(e);e.weight&&b("Bootloader").loadModules(["WebSpeedInteractionsTypedLogger","PerfXSharedFields"],function(a,b){b.addCommonValues(e),new a().updateData(e).log()},"EventProfiler");b("CurrentEventMeta").__informEventDataReady(a,h[a])}var t=function(){function b(event){return null}if(!a.performance||!a.performance.now||!a.performance.timing||!a.performance.timing.navigationStart)return b;var c=a.performance.timing.navigationStart,d=a.CustomEvent&&(typeof a.CustomEvent==="function"||a.CustomEvent.toString().indexOf("CustomEventConstructor")>-1);d=d?new a.CustomEvent("test").timeStamp:a.document.createEvent("KeyboardEvent").timeStamp;return d&&d<=a.performance.now()?function(event){return event.timeStamp+c}:b}();function u(a,c){var d=[];while(a&&a instanceof HTMLElement){var e=a.getAttribute(c);e&&d.push(e);a=b("Parent").byAttribute(a.parentNode,c)}return d.reverse()}e.exports=r}),null); +__d("Scroll",[],(function(a,b,c,d,e,f){__p&&__p();function g(a,b){return!!b&&(a===b.documentElement||a===b.body)}a={getTop:function(a){var b=a.ownerDocument;return g(a,b)?b.body.scrollTop||b.documentElement.scrollTop:a.scrollTop},setTop:function(a,b){var c=a.ownerDocument;g(a,c)?c.body.scrollTop=c.documentElement.scrollTop=b:a.scrollTop=b},getLeft:function(a){var b=a.ownerDocument;return g(a,b)?b.body.scrollLeft||b.documentElement.scrollLeft:a.scrollLeft},setLeft:function(a,b){var c=a.ownerDocument;g(a,c)?c.body.scrollLeft=c.documentElement.scrollLeft=b:a.scrollLeft=b}};e.exports=a}),null); +__d("UserAgent_DEPRECATED",[],(function(a,b,c,d,e,f){__p&&__p();var g=!1,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;function w(){__p&&__p();if(g)return;g=!0;var a=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(a),c=/(Mac OS X)|(Windows)|(Linux)/.exec(a);s=/\b(iPhone|iP[ao]d)/.exec(a);t=/\b(iP[ao]d)/.exec(a);q=/Android/i.exec(a);u=/FBAN\/\w+;/i.exec(a);v=/Mobile/i.exec(a);r=!!/Win64/.exec(a);if(b){h=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN;h&&document&&document.documentMode&&(h=document.documentMode);var d=/(?:Trident\/(\d+.\d+))/.exec(a);m=d?parseFloat(d[1])+4:h;i=b[2]?parseFloat(b[2]):NaN;j=b[3]?parseFloat(b[3]):NaN;k=b[4]?parseFloat(b[4]):NaN;k?(b=/(?:Chrome\/(\d+\.\d+))/.exec(a),l=b&&b[1]?parseFloat(b[1]):NaN):l=NaN}else h=i=j=l=k=NaN;if(c){if(c[1]){d=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(a);n=d?parseFloat(d[1].replace("_",".")):!0}else n=!1;o=!!c[2];p=!!c[3]}else n=o=p=!1}var x={ie:function(){return w()||h},ieCompatibilityMode:function(){return w()||m>h},ie64:function(){return x.ie()&&r},firefox:function(){return w()||i},opera:function(){return w()||j},webkit:function(){return w()||k},safari:function(){return x.webkit()},chrome:function(){return w()||l},windows:function(){return w()||o},osx:function(){return w()||n},linux:function(){return w()||p},iphone:function(){return w()||s},mobile:function(){return w()||s||t||q||v},nativeApp:function(){return w()||u},android:function(){return w()||q},ipad:function(){return w()||t}};e.exports=x}),null); +__d("clickRefAction",["Arbiter"],(function(a,b,c,d,e,f){__p&&__p();function g(b,a,c,d,e){var f=b+"/"+a;this.ue=f;this._ue_ts=b;this._ue_count=a;this._context=c;this._ns=null;this._node=d;this._type=e}g.prototype.set_namespace=function(a){this._ns=a;return this};g.prototype.coalesce_namespace=function(a){this._ns===null&&(this._ns=a);return this};g.prototype.add_event=function(){return this};var h=0,i=[],j=Date.now()+6e4;function c(a,c,event,d,e){__p&&__p();var f=Date.now(),k=event&&event.type;e=e||{};!c&&event&&(c=event.getTarget());var l=50;if(c&&d!="FORCE")for(var m=i.length-1;m>=0&&f-i[m]._ue_ts10)i.shift();k=f-1;function a(a){a=a||document;return a.scrollingElement?a.scrollingElement:!g&&a.compatMode==="CSS1Compat"?a.documentElement:a.body}e.exports=a}),null); +__d("getObjectValues",[],(function(a,b,c,d,e,f){function a(a){var b=[];for(var c in a)b.push(a[c]);return b}e.exports=a}),null); +__d("Event",["invariant","event-form-bubbling","Arbiter","DataStore","DOMEvent","DOMEventListener","DOMQuery","ErrorUtils","EventProfiler","ExecutionEnvironment","FBLogger","Parent","Scroll","TAAL","TimeSlice","UserAgent","UserAgent_DEPRECATED","$","clickRefAction","dedupString","getDocumentScrollElement","getObjectValues"],(function(a,b,c,d,e,f,g){__p&&__p();b("event-form-bubbling");var h=a.Event,i="Event.listeners";h.prototype||(h.prototype={});function j(a){(a.type==="click"||a.type==="mouseover"||a.type==="keydown")&&b("Arbiter").inform("Event/stop",{event:a})}function k(a,b,c){this.target=a,this.type=b,this.data=c}Object.assign(k.prototype,{getData:function(){this.data=this.data||{};return this.data},stop:function(){return h.stop(this)},prevent:function(){return h.prevent(this)},isDefaultPrevented:function(){return h.isDefaultPrevented(this)},kill:function(){return h.kill(this)},getTarget:function(){return new(b("DOMEvent"))(this).target||null}});function l(a){if(a instanceof k)return a;a||(!window.addEventListener&&document.createEventObject?a=window.event?document.createEventObject(window.event):{}:a={});if(!a._inherits_from_prototype)for(var b in h.prototype)try{a[b]=h.prototype[b]}catch(a){}return a}Object.assign(h.prototype,{_inherits_from_prototype:!0,getRelatedTarget:function(){var a=this.relatedTarget||(this.fromElement===this.srcElement?this.toElement:this.fromElement);return a&&a.nodeType?a:null},getModifiers:function(){var a={control:!!this.ctrlKey,shift:!!this.shiftKey,alt:!!this.altKey,meta:!!this.metaKey};a.access=b("UserAgent_DEPRECATED").osx()?a.control:a.alt;a.any=a.control||a.shift||a.alt||a.meta;return a},isRightClick:function(){return this.which?this.which===3:this.button&&this.button===2},isMiddleClick:function(){return this.which?this.which===2:this.button&&this.button===4},isDefaultRequested:function(){return this.getModifiers().any||this.isMiddleClick()||this.isRightClick()}},k.prototype);Object.assign(h,{listen:function(a,c,d,e,f){__p&&__p();typeof d==="function"&&(d=b("TimeSlice").guard(d,b("dedupString")("Event.js "+c+" handler")));!f||typeof f==="boolean"?f={passive:!1}:f={passive:f.passive||!1};if(!b("ExecutionEnvironment").canUseDOM)return new t(a,d,k,c,e,l,f);typeof a==="string"&&(a=b("$")(a));typeof e==="undefined"&&(e=h.Priority.NORMAL);if(typeof c==="object"){var g={};for(var j in c)g[j]=h.listen(a,j,c[j],e,f);return g}if(c.match(/^on/i))throw new TypeError("Bad event name `"+c+"': use `click', not `onclick'.");if(!a){g=new Error(b("TAAL").blameToPreviousFrame("Cannot listen to an undefined element."));b("FBLogger")("event").catching(g).mustfix("Tried to listen to element of type %s",c);throw g}if(a.nodeName=="LABEL"&&c=="click"){g=a.getElementsByTagName("input");a=g.length==1?g[0]:a}else if(a===window&&c==="scroll"){g=b("getDocumentScrollElement")();g!==document.documentElement&&g!==document.body&&(a=g)}var k=b("DataStore").get(a,i,{});g=n[c];g&&(c=g.base,g.wrap&&(d=g.wrap(d)));p(a,k,c,f);g=k[c];e in g||(g[e]=[]);var l=g[e].length;d=new t(a,d,k,c,e,l,f);g[e][l]=d;g.numHandlers++;f.passive||(g.numNonPassiveHandlers++,o(a,k[c],c));return d},stop:function(a){var c=new(b("DOMEvent"))(a).stopPropagation();j(c.event);return a},prevent:function(a){new(b("DOMEvent"))(a).preventDefault();return a},isDefaultPrevented:function(a){return new(b("DOMEvent"))(a).isDefaultPrevented(a)},kill:function(a){a=new(b("DOMEvent"))(a).kill();j(a.event);return!1},getKeyCode:function(event){__p&&__p();event=new(b("DOMEvent"))(event).event;if(!event)return!1;switch(event.keyCode){case 63232:return 38;case 63233:return 40;case 63234:return 37;case 63235:return 39;case 63272:case 63273:case 63275:return null;case 63276:return 33;case 63277:return 34}if(event.shiftKey)switch(event.keyCode){case 33:case 34:case 37:case 38:case 39:case 40:return null}return event.keyCode},getPriorities:function(){if(!m){var a=b("getObjectValues")(h.Priority);a.sort(function(a,b){return a-b});m=a}return m},fire:function(a,b,c){c=new k(a,b,c);var d;do{var e=h.__getHandler(a,b);e&&(d=e(c));a=a.parentNode}while(a&&d!==!1&&!c.cancelBubble);return d!==!1},__fire:function(a,b,event){a=h.__getHandler(a,b);if(a)return a(l(event))},__getHandler:function(a,c){var d=b("DataStore").get(a,i);return d&&d[c]?d[c].domHandler:a["on"+c]},getPosition:function(a){a=new(b("DOMEvent"))(a).event;var c=b("getDocumentScrollElement")(),d=a.clientX+b("Scroll").getLeft(c);a=a.clientY+b("Scroll").getTop(c);return{x:d,y:a}}});var m=null;c=function(a){return function(c){if(!b("DOMQuery").contains(this,c.getRelatedTarget()))return a.call(this,c)}};var n;!window.navigator.msPointerEnabled?n={mouseenter:{base:"mouseover",wrap:c},mouseleave:{base:"mouseout",wrap:c}}:n={mousedown:{base:"MSPointerDown"},mousemove:{base:"MSPointerMove"},mouseup:{base:"MSPointerUp"},mouseover:{base:"MSPointerOver"},mouseout:{base:"MSPointerOut"},mouseenter:{base:"MSPointerOver",wrap:c},mouseleave:{base:"MSPointerOut",wrap:c}};if(b("UserAgent_DEPRECATED").firefox()){d=function(a,event){event=l(event);var b=event.getTarget();while(b)h.__fire(b,a,event),b=b.parentNode};document.documentElement.addEventListener("focus",d.bind(null,"focusin"),!0);document.documentElement.addEventListener("blur",d.bind(null,"focusout"),!0)}var o=function(a,c,d){var e=c.numNonPassiveHandlers==0;e!=c.options.passive&&(c.domHandlerRemover.remove(),c.options.passive=e,c.domHandlerRemover=b("DOMEventListener").add(a,d,c.domHandler,{passive:e}))},p=function(a,c,d,e){__p&&__p();if(d in c)return;var f=b("TimeSlice").guard(s.bind(a,d),b("dedupString")("Event listenHandler "+d));c[d]={numHandlers:0,numNonPassiveHandlers:0,domHandlerRemover:b("DOMEventListener").add(a,d,f,e),domHandler:f,options:e};c="on"+d;if(a[c]){f=a===document.documentElement?h.Priority._BUBBLE:h.Priority.TRADITIONAL;var g=a[c];a[c]=null;h.listen(a,d,g,f,e)}a.nodeName==="FORM"&&d==="submit"&&b("UserAgent").isBrowser("IE < 9")&&h.listen(a,d,h.__bubbleSubmit.bind(null,a),h.Priority._BUBBLE,e)};function q(a){return!a.href.endsWith("#")?!1:a.href===document.location.href||a.href===document.location.href+"#"}function r(a,b){return a.nodeName==="INPUT"&&a.type===b}var s=b("EventProfiler").__wrapEventListenHandler(function(a,event){__p&&__p();event=l(event);if(!b("DataStore").get(this,i))throw new Error("Bad listenHandler context.");var c=b("DataStore").get(this,i)[a];if(!c)throw new Error("No registered handlers for `"+a+"'.");if(a=="click"||a=="contextmenu"||a=="mousedown"&&event.which==2){var d=event.getTarget(),e=b("Parent").byTag(d,"a");e instanceof HTMLAnchorElement&&e.href&&q(e)&&!r(d,"file")&&!r(d,"submit")&&event.prevent();a=="click"&&b("clickRefAction")("click",e,event);a=="contextmenu"&&b("clickRefAction")("contextmenu",e,event);a=="mousedown"&&event.which==2&&b("clickRefAction")("middleclick",e,event)}d=h.getPriorities();for(var a=0;a7&&!b("DOMQuery").isNodeOfType(c,["table","tbody","thead","tfoot","tr","select","fieldset"])){var f=e?' ':"";c.innerHTML=f+a;e&&c.removeChild(c.firstChild);return Array.from(c.childNodes)}}else if(b("isTextNode")(c)){c.data=a;return[a]}f=document.createDocumentFragment();var g;e=[];c=[];a=b("createArrayFromMixed")(a);a.length===1&&a[0]instanceof b("FbtResultBase")&&(a=a[0].getContents());for(var h=0;h0?a.setAttribute("maxlength",b):a.removeAttribute("maxlength")}};e.exports=g}),null); +__d("camelize",[],(function(a,b,c,d,e,f){var g=/-(.)/g;function a(a){return a.replace(g,function(a,b){return b.toUpperCase()})}e.exports=a}),null); +__d("getOpacityStyleName",[],(function(a,b,c,d,e,f){__p&&__p();var g=!1,h=null;function a(){__p&&__p();if(!g){if(document.body&&"opacity"in document.body.style)h="opacity";else{var a=document.createElement("div");a.style.filter="alpha(opacity=100)";a.style.filter&&(h="filter")}g=!0}return h}e.exports=a}),null); +__d("hyphenate",[],(function(a,b,c,d,e,f){var g=/([A-Z])/g;function a(a){return a.replace(g,"-$1").toLowerCase()}e.exports=a}),null); +__d("getStyleProperty",["camelize","hyphenate"],(function(a,b,c,d,e,f){__p&&__p();function g(a){return a==null?a:String(a)}function a(a,c){__p&&__p();var d;if(window.getComputedStyle){d=window.getComputedStyle(a,null);if(d)return g(d.getPropertyValue(b("hyphenate")(c)))}if(document.defaultView&&document.defaultView.getComputedStyle){d=document.defaultView.getComputedStyle(a,null);if(d)return g(d.getPropertyValue(b("hyphenate")(c)));if(c==="display")return"none"}return a.currentStyle?c==="float"?g(a.currentStyle.cssFloat||a.currentStyle.styleFloat):g(a.currentStyle[b("camelize")(c)]):g(a.style&&a.style[b("camelize")(c)])}e.exports=a}),null); +__d("StyleCore",["invariant","camelize","containsNode","ex","getOpacityStyleName","getStyleProperty","hyphenate"],(function(a,b,c,d,e,f,g){__p&&__p();function h(a,b){a=n.get(a,b);return a==="auto"||a==="scroll"}var i=new RegExp("\\s*([^\\s:]+)\\s*:\\s*([^;('\"]*(?:(?:\\([^)]*\\)|\"[^\"]*\"|'[^']*')[^;(?:'\"]*)*)(?:;|$)","g");function j(a){var b={};a.replace(i,function(a,c,d){b[c]=d;return d});return b}function k(a){var b="";for(var c in a)a[c]&&(b+=c+":"+a[c]+";");return b}function l(a){return a!==""?"alpha(opacity="+a*100+")":""}function m(a,c,d){switch(b("hyphenate")(c)){case"font-weight":case"line-height":case"opacity":case"z-index":case"animation-iteration-count":case"-webkit-animation-iteration-count":break;case"width":case"height":var e=parseInt(d,10)<0;e&&g(0,undefined,a,c,d);default:isNaN(d)||!d||d==="0"||g(0,undefined,a,c,d,d+"px");break}}var n={set:function(a,c,d){__p&&__p();m("Style.set",c,d);a=a.style;switch(c){case"opacity":b("getOpacityStyleName")()==="filter"?a.filter=l(d):a.opacity=d;break;case"float":a.cssFloat=a.styleFloat=d||"";break;default:try{a[b("camelize")(c)]=d}catch(a){throw new Error(b("ex")('Style.set: "%s" argument is invalid: %s',c,d))}}},apply:function(a,c){__p&&__p();var d;for(d in c)m("Style.apply",d,c[d]);"opacity"in c&&b("getOpacityStyleName")()==="filter"&&(c.filter=l(c.opacity),delete c.opacity);var e=j(a.style.cssText);for(d in c){var f=c[d];delete c[d];var g=b("hyphenate")(d);for(var h in e)(h===g||h.indexOf(g+"-")===0)&&delete e[h];c[g]=f}Object.assign(e,c);a.style.cssText=k(e)},get:b("getStyleProperty"),getFloat:function(a,b){return parseFloat(n.get(a,b),10)},getOpacity:function(a){if(b("getOpacityStyleName")()==="filter"){var c=n.get(a,"filter");if(c){c=/(\d+(?:\.\d+)?)/.exec(c);if(c)return parseFloat(c.pop())/100}}return n.getFloat(a,"opacity")||1},isFixed:function(a){while(b("containsNode")(document.body,a)){if(n.get(a,"position")==="fixed")return!0;a=a.parentNode}return!1},getScrollParent:function(a){if(!a)return null;while(a&&a!==document.body){if(h(a,"overflow")||h(a,"overflowY")||h(a,"overflowX"))return a;a=a.parentNode}return window}};e.exports=n}),null); +__d("Style",["StyleCore","$"],(function(a,b,c,d,e,f){a=babelHelpers["extends"]({},b("StyleCore"),{get:function(a,c){typeof a==="string"&&(!1,a=b("$")(a));return b("StyleCore").get(a,c)},getFloat:function(a,c){typeof a==="string"&&(!1,a=b("$")(a));return b("StyleCore").getFloat(a,c)}});e.exports=a}),null); +__d("FlipDirection",["DOM","Input","Style"],(function(a,b,c,d,e,f){__p&&__p();a={setDirection:function(a,c,d){__p&&__p();c===void 0&&(c=5);d===void 0&&(d=!1);var e=b("DOM").isNodeOfType(a,"input")&&a.type=="text",f=b("DOM").isNodeOfType(a,"textarea");if(!(e||f)||a.getAttribute("data-prevent-auto-flip"))return;e=b("Input").getValue(a);f=a.style&&a.style.direction;if(!f||d){f=0;d=!0;for(var g=0;g=48){d&&(d=!1,f++);if(h>=1470&&h<=1920){b("Style").set(a,"direction","rtl");a.setAttribute("dir","rtl");return}if(f==c){b("Style").set(a,"direction","ltr");a.setAttribute("dir","ltr");return}}else d=!0}}else e.length===0&&(b("Style").set(a,"direction",""),a.removeAttribute("dir"))}};e.exports=a}),null); +__d("FlipDirectionOnKeypress",["Event","FlipDirection"],(function(a,b,c,d,e,f){a=function(event){var a=event.getTarget();b("FlipDirection").setDirection(a)};b("Event").listen(document.documentElement,{keyup:a,input:a})}),null); +__d("getActiveElement",[],(function(a,b,c,d,e,f){function a(a){a===void 0&&(a=document);if(typeof a==="undefined")return null;try{return a.activeElement||a.body}catch(b){return a.body}}e.exports=a}),null); +__d("FocusListener",["Arbiter","CSS","Parent","getActiveElement"],(function(a,b,c,d,e,f){__p&&__p();var g={expandInput:function(a){b("CSS").addClass(a,"child_is_active"),b("CSS").addClass(a,"child_is_focused"),b("CSS").addClass(a,"child_was_focused"),b("Arbiter").inform("reflow")}};function h(a,c){if(c.getAttribute("data-silentfocuslistener"))return;var d=b("Parent").byClass(c,"focus_target");d&&("focus"==a||"focusin"==a?g.expandInput(d):(c.value===""&&b("CSS").removeClass(d,"child_is_active"),b("CSS").removeClass(d,"child_is_focused")))}c=b("getActiveElement")();c&&h("focus",c);function a(event){event=event||window.event,h(event.type,event.target||event.srcElement)}d=document.documentElement;d.addEventListener?(d.addEventListener("focus",a,!0),d.addEventListener("blur",a,!0)):(d.attachEvent("onfocusin",a),d.attachEvent("onfocusout",a));e.exports=g}),null); +__d("guid",[],(function(a,b,c,d,e,f){function a(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")}e.exports=a}),null); +__d("ArbiterMixin",["Arbiter","guid"],(function(a,b,c,d,e,f){__p&&__p();var g="arbiter$"+b("guid")(),h=Object.prototype.hasOwnProperty;a={_getArbiterInstance:function(){return h.call(this,g)?this[g]:this[g]=new(b("Arbiter"))()},inform:function(a,b,c){return this._getArbiterInstance().inform(a,b,c)},subscribe:function(a,b,c){return this._getArbiterInstance().subscribe(a,b,c)},subscribeOnce:function(a,b,c){return this._getArbiterInstance().subscribeOnce(a,b,c)},unsubscribe:function(a){this._getArbiterInstance().unsubscribe(a)},unsubscribeCurrentSubscription:function(){this._getArbiterInstance().unsubscribeCurrentSubscription()},releaseCurrentPersistentEvent:function(){this._getArbiterInstance().releaseCurrentPersistentEvent()},registerCallback:function(a,b){return this._getArbiterInstance().registerCallback(a,b)},query:function(a){return this._getArbiterInstance().query(a)}};e.exports=a}),null); +__d("mixin",[],(function(a,b,c,d,e,f){__p&&__p();function a(a,b,c,d,e,f,g,h,i,j,k){__p&&__p();k=function(){};a=[a,b,c,d,e,f,g,h,i,j];b=0;while(a[b]){c=a[b];for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(k.prototype[l]=c[l]);b+=1}return k}e.exports=a}),null); +__d("JSONPTransport",["ArbiterMixin","DOM","HTML","TimeSlice","URI","mixin"],(function(a,b,c,d,e,f){__p&&__p();var g,h={},i=2,j="jsonp",k="iframe";function l(a){delete h[a]}d=babelHelpers.inherits(c,b("mixin")(b("ArbiterMixin")));g=d&&d.prototype;function c(a,b){"use strict";g.constructor.call(this),this._type=a,this._uri=b,this._hasResponse=!1,h[this.getID()]=this}c.prototype.getID=function(){"use strict";return this._id||(this._id=i++)};c.prototype.hasFinished=function(){"use strict";return!(this.getID()in h)};c.prototype.getRequestURI=function(){"use strict";return new(b("URI"))(this._uri).addQueryData({__a:1,__adt:this.getID(),__req:"jsonp_"+this.getID()})};c.prototype.getTransportFrame=function(){"use strict";if(this._iframe)return this._iframe;var a="transport_frame_"+this.getID();a=b("HTML")('
'+ +N(T5({id:w.Xu,name:w.fK,display:!0}))+"
")};var cX=new u(302,422),gN=function(w,F){Eu.call(this,w,F)};xj(gN,Eu);gN.prototype.render=function(w,F,X,c){F=H8(FW,{Xu:F,fK:"g-recaptcha-response"});c=jU[c];Ck(F,c);this.KK.appendChild(F);Ac(this,ah(F),w,X,c)};gN.prototype.Aa=function(w,F){PH(this);this.nK="fallback";var X=H8(XW,{PR:w,height:cX.height+"px",width:cX.width+"px",Xu:F,fK:"g-recaptcha-response"});this.KK.appendChild(X)}; +gN.prototype.K=function(w){var F=Math.max(KO().width-IE(this).x,IE(this).x);w?Eu.prototype.K.call(this,w):F>1.5*jU.normal.width?Eu.prototype.K.call(this,"bubble"):Eu.prototype.K.call(this)};gN.prototype.vd=D("A");var Yi=function(w){var F=w.Xu,X=w.fK;return J('
'+N(T5({id:F,name:X,display:!1}))+"
")},yP=function(w){var F="";F=w.LZ?F+"
reCAPTCHA was unable to load. Please check your internet connection and reload to get a reCAPTCHA challenge.
":F+'
Please upgrade to a supported browser to get a reCAPTCHA challenge.


Why is this happening to me?'; +return J(F)};var aK={},DR=(aK.bottomright={transition:"right 0.3s ease",position:"fixed",bottom:"14px",right:"-186px","box-shadow":"0px 0px 5px gray"},aK.bottomleft={transition:"left 0.3s ease",position:"fixed",bottom:"14px",left:"-186px","box-shadow":"0px 0px 5px gray"},aK.inline={"box-shadow":"0px 0px 5px gray"},aK.none={display:"none"},aK),pT=["bottomleft","bottomright"],TM=new Tz(DS,".grecaptcha-badge:hover { right: 4px !important }"),zM=new Tz(DS,".grecaptcha-badge:hover { left: 4px !important }"),dN=function(w, +F,X){Eu.call(this,w,F);this.LI=null;this.Gn=X};xj(dN,Eu);dN.prototype.render=function(w,F,X,c){var g=DR.hasOwnProperty(this.Gn)?this.Gn:"bottomright";yz(pT,g)&&jW()&&(g="none");this.LI=H8(Yi,{Xu:F,fK:"g-recaptcha-response",style:g});DM&&EG(this,g);F=jU[c];Ck(this.LI,F);this.KK.appendChild(this.LI);Ac(this,ah(this.LI),w,X,F);"bottomright"==g?oA(OW(TM)):"bottomleft"==g&&oA(OW(zM));Qq(this.LI,DR[g])};dN.prototype.Aa=function(w,F,X){PH(this);this.nK="fallback";w=H8(yP,{LZ:X});this.KK.appendChild(w)}; +dN.prototype.vd=D("KK");var EG=function(w,F){var X=null;if("bottomright"==F)X="right";else if("bottomleft"==F)X="left";else return;w.U(w.LI,"mouseenter",function(){Qq(this.LI,X,"4px")},w);w.U(w.LI,"mouseleave",function(){Qq(this.LI,X,"-186px")},w)};function jW(){return 0Y;Y++)W[Y]=String.fromCharCode(Y);(Z(c,((Z(c,190,(((Z(c,(((Z(c,132,(Z(c,(Z(c,(Z(c,(((Z(c,169,((Z((Z(((Z(c,(((Z(c,((Z(c,((Z((Z(c,91,[160,0,(((c.o=(Z((Z(c,(Z((Z(c,(Z((Z((Z((Z(c,((c.L=[],Z)(c,48,0),Z(c,22,0),75),function(c,K,F,W){W=(K=c.l(),F=c.l(),c).l(),c.c(K)[c.c(F)]=c.c(W)}),c),233,function(c){c.M(4)}),c),253,0),c),162,function(c,K){X(c,(K=c.c(c.l()),K))}),18),function(c,K,F){(F=(K=c.l(),c).l(),Z)(c,F,c.c(F)+c.c(K))}),Z(c,129,function(c,K,F,W){if(K=c.Y.pop()){for(F=c.l();0>F)}),Z(c,38,function(c){g(c,4)}),0)]),c),245,function(c,K,F){Z(c,(K=(K=c.l(),F=c.l(),c.L)[K]&&c.c(K),F),K)}),Z)(c,158,function(c,K,F,W){Z((K=(F=(F=(K=c.l(),c.l()),W=c.l(),c.c(F)),c).c(K),c),W,K[F])}),56),m(4)),c.Y=[],Z(c,160,{}),c.U8=function(c,K){(K.push(c[0]<<24|c[1]<<16|c[2]<<8|c[3]),K).push(c[4]<<24|c[5]<<16|c[6]<<8|c[7]),K.push(c[8]<<24|c[9]<<16|c[10]<<8|c[11])},Z)(c,211,0),113),function(c,K,F){(F=(K=c.l(),c.l()),Z)(c,F,""+c.c(K))}),Z)(c,39,function(c,K){(c=(K=c.l(),c).c(K),c[0]).removeEventListener(c[1],c[2],false)}),Z)(c,15,function(c,K,F,W,Y){(W=(F=(K=(F=(K=c.l(),c.l()),W=c.l(),c.c(K)),Y=c.c(c.l()),c.c(F)),c).c(W),0!==K)&&(W=B(c,W,Y,1,K,F),K.addEventListener(F,W,e),Z(c,76,[K,F,W]))}),107),c),Z(c,248,function(c,K,F,W,Y,M){if(!D(c,1,255)){if((c=(W=(F=(Y=(F=(K=c.l(),c.l()),W=c.l(),c.l()),K=c.c(K),c).c(F),c.c(W)),c.c(Y)),"object")==N(K)){for(M in Y=[],K)Y.push(M);K=Y}for(Y=0,M=K.length;Y>=(W-=K,Y=F&(1<=K.length;)K.push(c.l());Y=K[Y]}F.push(Y)}c.W=(c.i=c.N(f.slice(),c.l),c.N(F,c.l))})}),Z)(c,178,function(c){w(c,1)}),45),function(c,K,F,W){Z(c,(K=(W=(F=(K=c.l(),c.l()),c).l(),c.c(K))==c.c(F),W),+K)}),165),function(c,K,F,W,Y){(F=(Y=(W=(F=(K=c.l(),c.l()),c.c(c.l())),c.c(c.l())),c).c(F),Z)(c,K,B(c,F,W,Y))}),c.F=false,240),function(c,K,F){(F=(K=c.l(),c).l(),0!=c.c(K))&&Z(c,48,c.c(F))}),function(c,K,F,W){F=(K=c.l(),c).l(),W=c.l(),Z(c,W,c.c(K)||c.c(F))})),Z)(c,72,function(c){w(c,4)}),c).nK=((window.performance||{}).timing||{}).navigationStart||0,90),2048),Z)(c,125,function(c){w(c,2)}),Z)(c,149,function(){}),0)),Z)(c,224,[]),Z(c,236,function(c,K,F){D(c,1,5)||(K=c.l(),F=c.l(),Z(c,F,function(c){return eval(c)}(c.c(K))))}),140),function(c,K,F,W,Y){for(W=(Y=(F=(K=c.l(),L)(c),0),[]);Y>8*W&255;return F},O=this,n=function(c,K,F,W,Y,u){for(W=(c=((Y=c.c(K),56==K?(K=function(c,K,F,W){if((K=Y.length,F=K-4>>3,Y.b)!=F){W=[0,0,0,u],F=(Y.b=F,(F<<3)-4);try{Y.R=l(h(Y,F),h(Y,F+4),W)}catch(M){throw M;}}Y.push(Y.R[K&7]^c)},u=c.c(190)):K=function(c){Y.push(c)},W)&&K(W&255),F).length,0);W=c.h--||c.s.push(254>=F?F:254)),u},A=function(c,K,F,W,Y){for(K=[],W=F=0;WY?K[F++]=Y:(2048>Y?K[F++]=Y>>6|192:(55296==(Y&64512)&&W+1>18|240,K[F++]=Y>>12&63|128):K[F++]=Y>>12|224,K[F++]=Y>>6&63|128),K[F++]=Y&63|128);return K},I=function(c,K){try{x(this,c,K)}catch(F){d(this,F)}},B=function(c,K,F,W,Y,u){return function(){var T=W&1,S=[6,K,F,void 0,Y,u,arguments];if(W&2)var U=q(c,true,!(E(c,S),1),false);else T&&c.o.length?E(c,S):T?(E(c,S),q(c,true,false,false)):U=v(c,S);return U}},w=((I.prototype.M=function(c,K,F,W){n(((F=(c&=(K=c&4,3),this).l(),W=this.l(),F=this.c(F),K&&(F=A((""+F).replace(/\\r\\n/g,"\\n"))),c)&&n(this,W,P(F.length,2)),this),W,F)},I).prototype.l=(I.prototype.xx=function(c,K,F){return((K=(K^=K<<13,K^=K>>17,K^K<<5)&F)||(K=1),c)^K},function(c,K){if(this.i)return c=c?this.i().shift():this.W().shift(),this.i().length||this.W().length||(this.W=this.i=void 0,this.V--),c;if(!(c=this.c(48),c in this.U))throw y(this,31),this.G;return(Z(this,48,((void 0==this.m&&(this.m=h(this.U,c-4),this.a=void 0),this.a!=c>>3)&&(this.a=c>>3,K=[0,0,0,this.c(253)],this.j=l(this.m,this.a,K)),c)+1),this.U[c])^this.j[c%8]}),I.prototype.X=35,function(c,K,F,W){for(W=(F=c.l(),0);0F;F++)K[F]+=c[F];for(c=[13,8,13,12,(F=0,16),5,3,10,15];9>F;F++)K[3](K,F%3,c[F])}},function(c,K,F,W,Y,u,T){c.V++;try{for(Y=(u=(W=(F=c.U.length,5001),0),void 0);(--W||c.D)&&(c.i||(u=c.c(48))>W&255);return F},I.prototype.LK=function(c,K,F,W){try{W=c[(K+2)%3],c[K]=c[K]-c[(K+1)%3]-W^(1==K?W<>>F)}catch(Y){throw Y;}},function(c,K){c.o.splice(0,0,K)}),v=function(c,K,F,W,Y){if((F=(c.J=false,K)[0],1)==F)c.h=25,c.H(K);else if(2==F){F=(W=K[3],K[1]);try{c.F=false,Y=c.H(K)}catch(u){d(c,u),Y=c.Z}F&&F(Y),W.push(Y)}else if(3==F)c.H(K);else if(4==F)c.H(K);else if(5==F)c.F=false,K=K[1],K();else if(6==F)return Y=K[2],Z(c,177,K[6]),Z(c,160,Y),c.H(K)},H=function(c){if(c.K){if(!c.T)return false;c.T=false}else if(10>c.A()-c.I)return false;return 0!=document.hidden?false:true},p,l=function(c,K,F,W){try{for(W=0;101513633568!=W;)c+=(K<<4^K>>>5)+K^W+F[W&3],W+=3172301049,K+=(c<<4^c>>>5)+c^W+F[W>>>11&3];return[c>>>24,c>>16&255,c>>8&255,c&255,K>>>24,K>>16&255,K>>8&255,K&255]}catch(Y){throw Y;}},y=(I.prototype.A=((((I.prototype.O="toString",I.prototype).D=false,I).prototype.lb=(I.prototype.ub=function(c,K,F,W){for(;F--;)48!=F&&22!=F&&K.L[F]&&(K.L[F]=K[W](K[c](F),this));K[c]=this},I.prototype.H=function(c,K,F,W,Y){if(K=c[0],4==K){c=c[1];try{for(W=K=(c=(F=atob(c),[]),0);W>=8),c[K++]=Y;this.U=c}catch(u){y(this,17,u)}b(this)}else if(1==K)Y=c[1],F=c[2],F.push(this.c(91).length,this.c(56).length,this.c(224).length,this.c(90)),this.F=Y,Z(this,160,c[3]),this.L[146]&&R(this,this.c(146));else{if(2==K){if(c=((Y=m((4<(((Y=(0<(Y=(F=c[2],c=P(this.c(91).length+2,2),this.c(169)),Y).length&&n(this,91,P(Y.length,2).concat(Y),10),this.c(211)&511),Y-=this.c(91).length+5,K=this.c(56),4>8&255,Y&255],W)&&K.push(W),c.c(169).length)&&(c.L[169]=void 0,Z(c,169,K)),W="",F)&&(F.message&&(W+=F.message),F.stack&&(W+=":"+F.stack)),c.c(90)),3=c.K||1>6;return W=new Number((c=(W+=W<<3,W^=W>>11,W)+(W<<15)>>>0,c)&(1<>>K)%F,W},I.prototype.c=function(c,K){if(K=this.L[c],void 0===K)throw y(this,30,0,c),this.G;return K()},I.prototype.f=function(c,K,F,W,Y,u){if(this.Z)return this.Z;try{u=[],W=!!c,Y=[],E(this,[1,W,Y,K]),E(this,[2,c,Y,u]),q(this,false,W,true),F=u[0]}catch(T){d(this,T),F=this.Z,c&&c(F)}return F},function(c,K,F,W){n(c,(W=(F=c.l(),c).l(),W),P(c.c(F),K))}),e=!(p=O.botguard||(O.botguard={}),1);p.yKT=function(c,K,F){(F=new I(c,{g:K}),this).invoke=function(c,K,u){return(u=F.f(K&&c,u),c&&!K)&&c(u),u}},p.bg=function(c,K,F){return c&&c.substring&&(F=p[c.substring(0,3)])?new F(c.substring(3),K):new p.yKT(c,K)};try{p.u||(O.addEventListener("unload",function(){},e),p.u=1)}catch(c){}try{O.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){e={passive:true}}}))}catch(c){};')(); \ No newline at end of file diff --git a/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/roundtrip.js b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/roundtrip.js new file mode 100644 index 0000000..9c09b84 --- /dev/null +++ b/Think Like a Proton Be Positive - Inspirational Quote - Motivational - T-Shirt _ TeePublic_files/roundtrip.js @@ -0,0 +1,62 @@ +window.__adroll||(function(){function l(){this.exp=8760;this.eexp=720;this.pv=1E11*Math.random();this.__adc="__ar_v4";this._nad=0;this._lce=null;this._loaded=this._broken=!1;this._url=2E3;this._kwl=300;this._r={};this._logs=[];this.consent_networks={facebook:"f",linkedin:"linkedin"};for(var a=Array(4),b=0;bb.indexOf(a+"=")?b=null:(a=b.indexOf(a+"=")+a.length+1,c=b.indexOf(";",a),-1===c&&(c=b.length),b=b.substring(a,c),b=""===b?null:window.unescape(b));return b}; +l.prototype.set=function(a,b,c){var d;c&&"number"===typeof c?(d=new Date,d.setTime(d.getTime()+36E5*c),c=d.toGMTString(),c="; expires="+c):c="";d="; domain="+window.location.hostname;b=window.escape(b);window.document.cookie=a+"="+b+c+"; path=/"+d};l.prototype.del=function(a){this.set(a,"",-8760)}; +l.prototype.check_cookie=function(a,b){if(this._global("adroll_ext_network")||this._global("adroll_optout"))return"";for(var c=a.split("|"),d=c.length-1;0<=d;d--)if(c[d]){var h=c[d].split(":");b===h[0]&&(h[2]=""+(parseInt(h[2])+1),c[d]=h.join(":"))}return c.join("|")};l.prototype.handle=function(a){var b=this.get(this.__adc)||"";-1!==b.indexOf(a)?this.set(this.__adc,this.check_cookie(b,a),this.exp):(a=[b,[a,this.get_date(this.eexp),"1"].join(":")].join("|"),this.set(this.__adc,a,this.exp))}; +l.prototype.expire_old=function(){if(!this._global("adroll_ext_network")&&!this._global("adroll_optout")){for(var a=this.get_date(!1),b=this.get(this.__adc),b=b?b.split("|"):[""],c=[],d=b.length-1;0<=d;d--)b[d]&&b[d].split(":")[1]>a&&c.push(b[d]);this.set(this.__adc,c.join("|"),this.exp)}};l.prototype.get_date=function(a){var b=new Date;a&&b.setTime(b.getTime()+36E5*a);a=""+b.getUTCFullYear();var c=b.getUTCMonth(),c=10<=c?c:"0"+c,b=b.getUTCDate();return[a,c,10<=b?b:"0"+b].join("")}; +l.prototype.consent_allowed=function(a){var b=this._global("__adroll_consent");return"object"===typeof b?b[a]:b};l.prototype.generate_link=function(){return""};l.prototype.view=function(a){var b=new window.Image;b.src=this._srv("/view/"+a);b.setAttribute("width","1");b.setAttribute("height","1");b.setAttribute("border","0");this._head().appendChild(b)};l.prototype.set_cookie=function(){}; +l.prototype.reset=function(){this._set_global("adroll_c_id",null);this._set_global("adroll_url_macro","");this._set_global("adroll_c_macro","");this._set_global("adroll_cpm_macro","");this._set_global("adroll_ext_network",null);this._set_global("adroll_subnetwork",null);this._set_global("adroll_ad_payload",null);this._set_global("adroll_win_notif",null)};l.prototype.set_pixel_cookie=function(a,b,c){this._global("adroll_optout")||(this.handle(a),this.handle(b),this.handle(c),this.pixel_loaded())}; +l.prototype.add_pixel_load_callback=function(a){this._loaded?a():this._ensure_global("adroll_callbacks",[]).push(a)};l.prototype.pixel_loaded=function(){this._loaded=!0;for(var a=this._ensure_global("adroll_callbacks",[]),b=0;b>16)+(b>>16)+(c>>16)<<16|c&65535}function b(b,c,d,g,f,m){c=a(a(c,b),a(g,m));return a(c<>>32-f,d)}function c(a,c,d,g,f,m,h){return b(c&d|~c&g,a,c,f,m,h)}function d(a,c,d,g,f,m,h){return b(c&g|d&~g,a,c,f,m,h)}function h(a,c,d,g,f,h,n){return b(d^(c|~g),a,c,f,h,n)}function n(n,k){var e=n[0],g=n[1],f=n[2],m=n[3],e=c(e,g,f,m,k[0],7,-680876936),m=c(m,e,g,f,k[1],12,-389564586),f=c(f,m,e,g,k[2],17,606105819),g=c(g,f,m,e,k[3], +22,-1044525330),e=c(e,g,f,m,k[4],7,-176418897),m=c(m,e,g,f,k[5],12,1200080426),f=c(f,m,e,g,k[6],17,-1473231341),g=c(g,f,m,e,k[7],22,-45705983),e=c(e,g,f,m,k[8],7,1770035416),m=c(m,e,g,f,k[9],12,-1958414417),f=c(f,m,e,g,k[10],17,-42063),g=c(g,f,m,e,k[11],22,-1990404162),e=c(e,g,f,m,k[12],7,1804603682),m=c(m,e,g,f,k[13],12,-40341101),f=c(f,m,e,g,k[14],17,-1502002290),g=c(g,f,m,e,k[15],22,1236535329),e=d(e,g,f,m,k[1],5,-165796510),m=d(m,e,g,f,k[6],9,-1069501632),f=d(f,m,e,g,k[11],14,643717713),g=d(g, +f,m,e,k[0],20,-373897302),e=d(e,g,f,m,k[5],5,-701558691),m=d(m,e,g,f,k[10],9,38016083),f=d(f,m,e,g,k[15],14,-660478335),g=d(g,f,m,e,k[4],20,-405537848),e=d(e,g,f,m,k[9],5,568446438),m=d(m,e,g,f,k[14],9,-1019803690),f=d(f,m,e,g,k[3],14,-187363961),g=d(g,f,m,e,k[8],20,1163531501),e=d(e,g,f,m,k[13],5,-1444681467),m=d(m,e,g,f,k[2],9,-51403784),f=d(f,m,e,g,k[7],14,1735328473),g=d(g,f,m,e,k[12],20,-1926607734),e=b(g^f^m,e,g,k[5],4,-378558),m=b(e^g^f,m,e,k[8],11,-2022574463),f=b(m^e^g,f,m,k[11],16,1839030562), +g=b(f^m^e,g,f,k[14],23,-35309556),e=b(g^f^m,e,g,k[1],4,-1530992060),m=b(e^g^f,m,e,k[4],11,1272893353),f=b(m^e^g,f,m,k[7],16,-155497632),g=b(f^m^e,g,f,k[10],23,-1094730640),e=b(g^f^m,e,g,k[13],4,681279174),m=b(e^g^f,m,e,k[0],11,-358537222),f=b(m^e^g,f,m,k[3],16,-722521979),g=b(f^m^e,g,f,k[6],23,76029189),e=b(g^f^m,e,g,k[9],4,-640364487),m=b(e^g^f,m,e,k[12],11,-421815835),f=b(m^e^g,f,m,k[15],16,530742520),g=b(f^m^e,g,f,k[2],23,-995338651),e=h(e,g,f,m,k[0],6,-198630844),m=h(m,e,g,f,k[7],10,1126891415), +f=h(f,m,e,g,k[14],15,-1416354905),g=h(g,f,m,e,k[5],21,-57434055),e=h(e,g,f,m,k[12],6,1700485571),m=h(m,e,g,f,k[3],10,-1894986606),f=h(f,m,e,g,k[10],15,-1051523),g=h(g,f,m,e,k[1],21,-2054922799),e=h(e,g,f,m,k[8],6,1873313359),m=h(m,e,g,f,k[15],10,-30611744),f=h(f,m,e,g,k[6],15,-1560198380),g=h(g,f,m,e,k[13],21,1309151649),e=h(e,g,f,m,k[4],6,-145523070),m=h(m,e,g,f,k[11],10,-1120210379),f=h(f,m,e,g,k[2],15,718787259),g=h(g,f,m,e,k[9],21,-343485551);n[0]=a(e,n[0]);n[1]=a(g,n[1]);n[2]=a(f,n[2]);n[3]= +a(m,n[3])}var p="0123456789abcdef".split("");return function(a){var b=a;/[\x80-\xFF]/.test(b)&&(b=unescape(encodeURI(b)));var c=b.length;a=[1732584193,-271733879,-1732584194,271733878];var d;for(d=64;d<=b.length;d+=64){for(var f=b.substring(d-64,d),h=[],r=void 0,r=0;64>r;r+=4)h[r>>2]=f.charCodeAt(r)+(f.charCodeAt(r+1)<<8)+(f.charCodeAt(r+2)<<16)+(f.charCodeAt(r+3)<<24);n(a,h)}b=b.substring(d-64);f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(d=0;d>2]|=b.charCodeAt(d)<<(d%4<<3);f[d>>2]|= +128<<(d%4<<3);if(55d;d++)f[d]=0;f[14]=8*c;n(a,f);for(b=0;br;r++)h+=p[f>>8*r+4&15]+p[f>>8*r&15];c[d]=h}return a.join("")}}();l.prototype._gurl=function(){var a=window.location;return this.normalize_url(a.pathname+a.search)};l.prototype.get_dummy_product_for_facebook=function(a){return{product_id:"adroll_dummy_product",product_group:a,product_action:null,product_category:null}};l.prototype.facebook_dummy_product_enabled=function(){return!0}; +l.prototype.extract_pid=function(a,b,c){function d(a){return a?(a=new RegExp(a,"gi"),!!a.exec(k)):null}a||(a={});var h=null,n=null,p=null,q=null,k=this._gurl(),e=this.get_external_data();e&&(n=e.product_id,h=e.product_group,p=e.product_action,q=e.adroll_product_category_id);if(!n&&a.regexp_group&&!("string"===a.regexp_group&&a.regexp_group instanceof String)&&"html"===a.regexp_group.scheme){if(d(a.blacklist_regexp)||!0!==d(a.regexp))return"";n=this.get_product_id_from_dom(a.regexp_group)}else if(!n){if(d(a.blacklist_regexp))return""; +n=this.get_product_id_from_url(k,a.regexp,a.regexp_group)}h||!a.product_group_group||"string"===a.product_group_group&&a.product_group_group instanceof String||"html"!==a.product_group_group.scheme?h||a.product_group_regexp&&(h=this.get_product_id_from_url(k,a.product_group_regexp,a.product_group_group)):h=this.get_product_id_from_dom(a.product_group_group);if(n)a={product_id:n,product_group:h,product_action:p,product_category:q};else if(this.facebook_dummy_product_enabled()&&"facebook"===b)a=this.get_dummy_product_for_facebook(h); +else return null;c&&c(a);return a}; +l.prototype.get_pid=function(a){this.extract_pid(a,"adroll",function(a){if(a){var c=a.product_id,d=a.product_group,h=a.product_action,n=a.product_category;a=[];var p;if(c instanceof Array)for(p=0;p=window.document.referrer.length&&p.push("adroll_s_ref="+window.escape(window.document.referrer))}catch(f){}try{p.push("keyw="+window.escape(h))}catch(f){}try{n._has_global("adroll_segments")&&p.push("name="+window.escape(n._global("adroll_segments").toLowerCase()))}catch(f){}try{n._has_global("adroll_p")&& +p.push("adroll_p="+window.escape(n._global("adroll_p")))}catch(f){}try{n._has_global("adroll_u")&&p.push("adroll_u="+window.escape(n._global("adroll_u")))}catch(f){}try{n._has_global("adroll_m")&&n._has_global("adroll_m_type")&&(p.push("adroll_m="+window.escape(n._global("adroll_m"))),p.push("adroll_m_type="+window.escape(n._global("adroll_m_type"))))}catch(f){}try{var q=n.get_conversion_value();q.conv_value&&p.push("conv_value="+q.conv_value);q.currency&&p.push("adroll_currency="+q.currency)}catch(f){}try{if(n._has_user_identifier()){var k= +n._global("adroll_user_identifier"),k=k.replace(/^\s\s*/,"").replace(/\s\s*$/,"");p.push("user_identifier="+n.md5(k))}}catch(f){}try{n._has_global("adroll_shop_id")&&(q={},n._has_global("adroll_custom_data")?q=n._global("adroll_custom_data"):n._set_global("adroll_custom_data",q),"undefined"===typeof q.adroll_shop_id&&(q.adroll_shop_id=n._global("adroll_shop_id")));var e=n.external_data_to_qs(!0);e&&p.push(e)}catch(f){}try{var g=window.location.href.split("#")[0];500>=g.length&&p.push("arrfrr="+window.encodeURIComponent(g))}catch(f){}p= +n.get_base_url(c,a,b,null,"",p);d.src=p;n._head().appendChild(d)}}(this));this.addLoadEvent(function(a){return function(){var b=a._global("adroll");if(b&&"object"===typeof b){b.identify=function(){return a.identify.apply(a,arguments)};b.track=function(){return a.track.apply(a,arguments)};for(var c,d,e=0;e\x3c/script>');this._nad+=1;this._r[b]=1}}; +l.prototype.render_win_notification=function(a){if(a.adroll_cpm_macro&&a.adroll_win_notif){var b=(this._secure()?"https://":"http://")+a.adroll_win_notif+a.adroll_cpm_macro;a.adroll_ad_payload&&(a.adroll_rtb_dict&&a.adroll_rtb_dict.waap||/waap=1&/.test(a.adroll_win_notif)&&!this._is_defined(a.adroll_rtb_dict))&&(b+="&ad_payload="+a.adroll_ad_payload);this.imgRequest(b)}}; +l.prototype.render_extra_script=function(a){a.adroll_rtb_dict&&a.adroll_rtb_dict.extra_script_src&&this.add_script_element(a.adroll_rtb_dict.extra_script_src,{})};l.prototype.add_script_element=function(a,b){var c=window.document.createElement("script"),d=this._secure()?"https://":"http://";a.match(/^(\w+:)*\/\//)&&(d="");c.type="text/javascript";c.src=d+a;for(var h in b)b.hasOwnProperty(h)&&"src"!==h&&c.setAttribute(h,b[h]);this._head().appendChild(c)}; +l.prototype.get_base_url=function(a,b,c,d,h,n){var p=a.split("?");a=p[0]+"/"+b+"/"+c+(d?"/"+d:"")+(h?"/"+h:"");var q="?";p[1]&&(a+="?"+p[1],q="&");var p=q+"no-cookies=1&pv=",k="";this.cookieEnabled(!1)?(k=window.escape(this.get_eids()),a+=q+"pv="+this.pv+"&cookie="+k):a+=p+this.pv;n&&(a+="&"+n.join("&"));a=this.add_tpc_to_url(a);if(a.length>this._url){this.del(this.__adc);if(a.length-k.length>this._url)return a;this.log("Url was too big, shrinking it");return this.get_url(b,c,d,h,n)}this.log("Generated url: "+ +a);return a};l.prototype.get_url=function(a,b,c,d,h){var n=c?this._srv("/c"):this._srv("/r");return this.get_base_url(n,a,b,c,d,h)};l.prototype.get_eids=function(){if(this._global("adroll_ext_network")||this._global("adroll_optout"))return"";try{for(var a=this.get(this.__adc),b=a?a.split("|"):"",a=[],c=b.length-1;0<=c;c--)if(b[c]){var d=b[c].split(":");a.push([d[0],d[2]].join(":"))}return a.join("|")}catch(h){return this.del(this.__adc),""}};l.prototype.record_user=function(a){var b="adroll_conversion_value adroll_conversion_value_in_dollars adroll_segments adroll_email adroll_user_identifier adroll_currency".split(" "),c,d;a=a||{};var h={adroll_user_identifier:!0};for(c=0;c\n")};l.prototype.normalize_url=function(a){return a.toLowerCase()};l.prototype.imgRequest=function(a){var b=new window.Image;b.src=this.add_tpc_to_url(a);b.setAttribute("width","1");b.setAttribute("height","1");b.setAttribute("border","0");this._head().appendChild(b)};l.prototype.copyObj=function(a,b){if(!a)return null;var c={},d=0,h;for(h in a)!a.hasOwnProperty(h)||b&&-1!==b.indexOf(h)||(d++,c[h]=a[h]);return d?c:null}; +l.prototype.add_tpc_to_url=function(a){var b=this._global("adroll_tpc");if(!a||!b)return a;var c=this.parseUri(a);if(c.queryKey.adroll_tpc||"d.adroll.com"!==c.host&&"d.adroll.com"!==c.host+":"+c.port)return a;var d=a.indexOf("?"),h=c="";-1!==d?(c=a.slice(0,d+1),h="&"+a.slice(d+1)):(d=a.indexOf("#",-1===d?0:d),-1===d?c=a+"?":(c=a.slice(0,d)+"?",h=a.slice(d)));return c+"adroll_tpc="+encodeURIComponent(b)+h}; +l.prototype.getSafariVersion=function(){var a=/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[^ ]+ \(KHTML, like Gecko\) Version\/([^ ]+)( Mobile\/[^ ]+)? Safari\/[^ ]+$/i.exec(navigator.userAgent);return a?a[1]:null};l.prototype.set_tpc=function(a,b){var c=this.tpc_callback();a&&b&&this._set_global("adroll_tpc",a+"="+b);c&&c.call(this)};l.prototype.tpc_callback=function(a){var b=window.adroll_tpc_callback;window.adroll_tpc_callback=a;return b}; +l.prototype.extract_query_param=function(a,b){for(var c=b.split("&"),d=0;d:", ": am", ": pm", "Sorry, we are unavailable at the moment. Please leave us a message. 24/7 support is available for Enterprise and Premium (Legacy) customers.", "Back", "View more", "Zendesk Support agent not found", "Zendesk Chat requires cookies to function. Enable cookies?", "Powered by Zendesk Chat", "Please wait for an agent. There are visitor(s) waiting to be served.", "Online", "Away", "Offline", "Complete this field", "Enter a valid email address", "Complete this field", "Select an option", "Select an option", "Check this option to continue", "Select at least one option", "Select a department", "This field is invalid", "Phone number", "Are you sure you want to end this chat?", "Facebook", "Twitter", "Google+", " joined the chat", " left the chat", " is now known as ", "Chat started", "Chat ended", "Comment submitted", "Chat rated Good", "Chat rated Bad", "Chat rating removed", " is typing...", " are typing...", "Agents are typing...", "Type your message here", "Send", " new message", " new messages", " new message", " new messages", "Chat", "Message", "1 new attachment", "Reconnecting", "Click to reconnect", "Reconnecting", "Resuming session", "Loading", "Chat Disabled", "Disabled", "Privacy policy", "Unlink from ", "Send Message", "Start Chatting", "Any Department", "Choose a Department", "Close", "Closed", " to ", "File size too large. Maximum total size is limited to .", "The file you are trying to send is not supported.", "File sending is temporary disabled. Please try again later.", "Failed to send. Please try again.", "Failed to save assignee", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Weekdays", "Weekends", "Daily", "All day", "Chat With Us", "Leave a Message", "Chat with us", "support", "We're online.", "We're away.", "We're offline.", "Live Support", "Ask us anything", "Hi, welcome to our website!", "Questions?", "Click here to chat with us", "Choose a Department", "Message", "Phone", "Sorry, we aren't online at the moment. Leave a message and we'll get back to you.", "Sorry, we aren't online at the moment.", "Thanks for the message! We'll get back to you as soon as we can.", "Message", "Phone", "Nice chatting with you!", "How would you rate the chat experience you just had?", "Thanks for the good rating! Would you like to leave a comment?", "What did you like about this chat?", "Sorry that we disappointed you. We'd appreciate it if you could tell us how to improve.", "What did you dislike about this chat?", "File size too large. Maximum limit is .", "The file you are trying to send is not supported.", "File sending is temporarily disabled. Please try again later.", " bytes", " KB", " MB", "Failed to send. Please try again.", "Reply", "Dismiss", "Close", "Minimize", "Send", "Type your message here", "Back to Chat", "Leave a Comment", "(Optional)", "Send", "Cancel", "How would you rate this chat?", "Chat rated Good", "Chat rated Bad", "Chat rating removed", "Cancel", "Skip", "Submit", "Cancel", "Back to Chat", "Email will be sent to @@@@@@@@ when the chat ends", "An email of the last chat will be sent to @@@@@@@@", "End", "Cancel", "Send Chat Transcript to", "Email", "This isn't a valid email.", "Send", "Cancel", "Drop files here", "http://zop.im/prem-offline-form", "Learn more", "Our Operating Hours", "Back", "Send Another", "Choose a Department", "Operating Hours", "Back", "Introduce yourself", "Hello there!", "Name, Email", "Edit", "Sign out", "Please update your profile", "Name", "Please provide your name", "Email", "Please provide a valid email", "or sign in with", "Phone Number", "Please provide a valid phone", "Name", "Email", "Submit", "Skip", "Sign In", "Hi, ", "Hi there!", "You objected to the use of cookies based on our @cookie policy@. Approve the use of cookies to enable chat functions.", "You may disable the chat anytime.", "Enable Cookies and Chat", "Zendesk Chat requires cookies to function", "If you do not agree with our @cookie policy@, you may disable the chat widget. Past information and cookies will be removed.", "You may re-enable chat anytime.", "Disable Chat", "Cancel", "Zendesk Chat requires cookies to function", "Sound", "Cookies", "About", "Send a File", "Email Transcript", "Edit Contact Details", "Name", "Enter your name", "Email", "Enter your email", "Phone", "Enter your phone", "Save", "Cancel", "End This Chat", "Connect with", "Use Name and Email", "Sign out", "Edit", "Open in new window", "Minimize", "Queue position: ", "This widget uses @cookies@.", "Offline", "Options", "Sign in", "Hi, ", "Hi there!", "Customer support", "Contact us here", "View past chats", "Reconnecting", "Good", "Bad", "Remove", "Good", "Bad", "Remove", "Leave a Comment", "Message not sent", "Resend", "Rate This Chat", "show original", "show translated", "This attachment was deleted.", 'Uploading ""', '"" sent.', "You", "You — Please update your info", "Open image" ]; +e.__languages = { +ar: "__$$__stringtable_lang_ar", +az: "__$$__stringtable_lang_az", +bg: "__$$__stringtable_lang_bg", +ca: "__$$__stringtable_lang_ca", +cs: "__$$__stringtable_lang_cs", +da: "__$$__stringtable_lang_da", +de: "__$$__stringtable_lang_de", +el: "__$$__stringtable_lang_el", +es: "__$$__stringtable_lang_es", +et: "__$$__stringtable_lang_et", +eu: "__$$__stringtable_lang_eu", +fa: "__$$__stringtable_lang_fa", +fi: "__$$__stringtable_lang_fi", +fr: "__$$__stringtable_lang_fr", +fr_CA: "__$$__stringtable_lang_fr_CA", +he: "__$$__stringtable_lang_he", +hi: "__$$__stringtable_lang_hi", +hr: "__$$__stringtable_lang_hr", +hu: "__$$__stringtable_lang_hu", +id: "__$$__stringtable_lang_id", +is: "__$$__stringtable_lang_is", +it: "__$$__stringtable_lang_it", +ja: "__$$__stringtable_lang_ja", +ka: "__$$__stringtable_lang_ka", +ko: "__$$__stringtable_lang_ko", +ku: "__$$__stringtable_lang_ku", +lt: "__$$__stringtable_lang_lt", +lv: "__$$__stringtable_lang_lv", +mk: "__$$__stringtable_lang_mk", +ms: "__$$__stringtable_lang_ms", +nb: "__$$__stringtable_lang_nb", +nl: "__$$__stringtable_lang_nl", +pl: "__$$__stringtable_lang_pl", +pt: "__$$__stringtable_lang_pt", +pt_BR: "__$$__stringtable_lang_pt_BR", +ro: "__$$__stringtable_lang_ro", +ru: "__$$__stringtable_lang_ru", +sk: "__$$__stringtable_lang_sk", +sl: "__$$__stringtable_lang_sl", +sq: "__$$__stringtable_lang_sq", +sr: "__$$__stringtable_lang_sr", +sv: "__$$__stringtable_lang_sv", +th: "__$$__stringtable_lang_th", +tl: "__$$__stringtable_lang_tl", +tr: "__$$__stringtable_lang_tr", +uk: "__$$__stringtable_lang_uk", +ur: "__$$__stringtable_lang_ur", +vi: "__$$__stringtable_lang_vi", +zh_CN: "__$$__stringtable_lang_zh_CN", +zh_TW: "__$$__stringtable_lang_zh_TW" +}; +e(e.s = 387); +}([ function(t, e) { +function i(t, e) { +if ("function" == typeof t && t.prototype && !t.__jx__no_fqname) { +t.prototype.__jx__fqname_chain = (t.prototype.__jx__fqname_chain || "") + " " + e; +t.prototype.__jx__fqname = e; +} +} +t.exports = i; +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i() {} +function n(t) { +i.prototype = t; +return new i(); +} +t.exports = n; +e(n, "jx_core_globals_clone"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(93), o = i(14), r = i(381), s = i(379), a = i(183), _ = i(180), l = i(92), d = i(28), u = n.REGEX, c = {}; +o.extend(c); +c.generateAll = r.generateAll; +c.generate = r.generate; +c.writeChanges = r.writeChanges; +c.setPalette = s.setPalette; +c.delPalette = s.delPalette; +c.delPalettes = s.delPalettes; +c.appendPalette = s.appendPalette; +c.getPalette = s.getPalette; +s.initDefaultPalette(); +c.setIFrameOnly = a.setIFrameOnly; +c.bindIFrame = a.bindIFrame; +c.unbindIFrame = a.unbindIFrame; +c.transform2CSS = _; +c.getVariable = function(t) { +for (var e = l.palettes, i = l.priorities, n = i.length - 1; n >= 0; n--) if (i[n] && e[i[n]] && (e[i[n]][t] || d(e[i[n]][t]))) return u.isVariable.test(e[i[n]][t]) ? c.getVariable(e[i[n]][t].toString().slice(2)) : e[i[n]][t]; +}; +c.reload = function() { +c.writeChanges(!0); +}; +t.exports = c; +e(c, "jx_core_JCSS"); +return c; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i) { +try { +t.style[I(e)] = i; +} catch (t) {} +} +function o() {} +function r() {} +function s() { +return "___$_" + N++; +} +function a(t, e) { +var i = e.getAttribute(D); +i = i ? i.split(" ") : []; +t || (t = s()); +E[t] = e; +i.push(t); +e.setAttribute(D, i.join(" ")); +} +function _(t) { +var e = t.getAttribute(D); +if (e) { +e = e.split(" "); +for (var i = 0; i < e.length; i++) delete E[e[i]]; +} +} +function l(t) { +return E[t]; +} +function d(t, e) { +for (var i, n = 0; n < e.length; n++) { +i = e[n]; +if ("string" != typeof i) { +i[1] && (i[1] = t + "__" + i[1]); +i[3] && d(t, i[3]); +} +} +return e; +} +function u(t) { +var e = function(i, n, o, r, a) { +n = n || s(); +var _ = i.ownerDocument, l = T.create(_, t, n); +l.__jx__constructor = e; +l.__jx__native = !0; +var d = !1; +l.appendToParent = function(t) { +T.hasParentNode(l) || T.appendChild(i, l); +if (t && !d) { +i.appendToParent && i.appendToParent(!0); +d = !0; +} +}; +l.setStyle(o); +l.setAttributes(a); +T.addChildren(l, r); +l.appendToParent(); +return l; +}; +return e; +} +function c(t) { +for (;t.defaultPlacement; ) t = t.defaultPlacement; +return t; +} +function h(t) { +return t.createElement ? t : c(t).ownerDocument; +} +function p(t, e, i, n) { +var r = h(t).createElement(e); +x.isSafari && "textarea" == e.toLowerCase() && (r.style.resize = "none"); +switch (e.toLowerCase()) { +case "textarea": +case "input": +r.style.outlineStyle = "none"; +} +o(r); +a(i, r); +w(r); +v.extend(r); +r.setStyle(n); +x.buggyCSS && r.setOverflow("auto"); +return r; +} +function f(t) { +return t.parentNode && t.parentNode.nodeType && 11 != t.parentNode.nodeType; +} +function g(t, e) { +if (t != document.body || "absolute" != e.style.position && "fixed" != e.style.position) { +for (var i = t; i.defaultPlacement; ) i = i.defaultPlacement; +i.appendChild(e); +e.applyConstraints(); +} else { +t.insertBefore(e, t.firstChild); +e.applyConstraints(); +} +} +function m(t, e) { +if (e && e.length) { +t = c(t); +for (var i, n, o, r = t.ownerDocument, s = 0; s < e.length; s++) { +n = e[s]; +if (y(n)) i = n[0](t, n[1], n[2], n[3], n[4]); else { +o = r.createTextNode(n); +t.appendChild(o); +"function" == typeof n.bind && n.bind(o); +} +} +return i; +} +} +function $(t) { +var e = t.ownerDocument; +return e.defaultView && e.defaultView.getComputedStyle ? e.defaultView.getComputedStyle(t, null) || {} : t.currentStyle ? t.currentStyle : {}; +} +function b(t, e) { +return $(t)[e]; +} +function w(t, e) { +function i(e) { +var i; +for (var n in e) if (e.hasOwnProperty(n)) { +i = "set" + n.substr(0, 1).toUpperCase() + n.substr(1); +"function" == typeof t[i] && t[i](e[n]); +} +} +function n() { +return t.textContent || t.innerText || ""; +} +function o(e) { +j && j.unbind && j.unbind(t); +e && "function" == typeof e.bind && e.bind(t); +O ? t.textContent = e : t.innerText = e; +} +function r(e) { +function i(e, i) { +var n = I("set-" + e); +"function" == typeof t[n] ? t[n](i) : B(t, e, i); +} +var n, o; +if (1 == arguments.length && C(e)) { +if (!e) return; +e = e.split(";"); +for (n = 0; n < e.length; n++) if (!e[n].match(/^\s*$/)) { +o = e[n].match(/\s*([^:]+):\s*(.*?)\s*$/); +!o && e[n].length || i(o[1], o[2]); +} +} else if (1 == arguments.length && "object" == typeof e) for (var r in e) e.hasOwnProperty(r) && i(r, e[r]); else if (arguments.length > 1) for (n = 0; n < arguments.length; n += 2) i(arguments[n], arguments[n + 1]); +} +function s(e) { +function i() { +var t = j && j.flip ? j.flip(e) : e; +x.isIE ? ot.styleFloat = t : ot.cssFloat = t; +} +j && j.onLanguage && j.onLanguage(i); +i(); +return t; +} +function a(e) { +X = h(e); +f(); +return t; +} +function _(e) { +Z = h(e); +f(); +return t; +} +function l(e) { +K = h(e); +f(); +return t; +} +function d(e) { +Q = h(e); +f(); +return t; +} +function u(e) { +J = h(e); +f(); +return t; +} +function c(e) { +tt = h(e); +f(); +return t; +} +function h(t) { +return C(t) && "%" == t.substr(t.length - 1) ? parseInt(t, 10) + "%" : parseInt(t, 10); +} +function p(e) { +switch (e) { +case "static": +case "relative": +case "absolute": +case "fixed": +et = e; +} +null !== et && B(t, "position", _t && "fixed" == et ? "absolute" : et); +return t; +} +function f() { +isNaN(X) || isNaN(tt) || (K = NaN); +isNaN(Z) || isNaN(J) || (Q = NaN); +J < 0 && (J = 0); +tt < 0 && (tt = 0); +g(); +} +function g() { +T.hasParentNode(t) && (x.bugs.ie.cssFixed && "fixed" == et ? S(m, t, !0) : !x.bugs.ie.cssBottomRight || (isNaN(Z) || isNaN(Q)) && (isNaN(X) || isNaN(K)) ? D() : N()); +} +function m() { +v(); +t.appendToParent && t.appendToParent(!0); +K < 0 && (K = 0); +Q < 0 && (Q = 0); +A.ok(isNaN(Z) != isNaN(Q), "One and only one of left/right must be set"); +A.ok(isNaN(X) != isNaN(K), "One and only one of top/bottom must be set"); +A.ok(!isNaN(J), "Width must be set"); +A.ok(!isNaN(tt), "Height must be set"); +A.ok(t.ownerDocument == document, "Fixed element must be top level element"); +if (tt != nt) { +ot.height = tt + "px"; +nt = tt; +} +if (J != it) { +ot.width = J + "px"; +it = J; +} +var e, i, n, o; +if (x.isQuirks) { +o = "document.body.clientHeight"; +n = "document.body.clientWidth"; +e = "(dummye34cf6=document.body.scrollLeft)+"; +i = "(dummye34cf6=document.body.scrollTop )+"; +} else { +o = "document.documentElement.clientHeight"; +n = "document.documentElement.clientWidth"; +e = "(dummye34cf6=document.documentElement.scrollLeft)+"; +i = "(dummye34cf6=document.documentElement.scrollTop )+"; +} +isNaN(Z) ? C(Z) ? e += parseInt(Z, 10) / 100 * (x.isQuirks ? document.body : document.documentElement).clientWidth : e += n + "-" + (J + Q) : e += Z; +isNaN(X) ? C(X) ? i += parseInt(X, 10) / 100 * (x.isQuirks ? document.body : document.documentElement).clientHeight : i += o + "-" + (tt + K) : i += X; +x.isIE6 && "rtl" == document.body.currentStyle.direction && (x.isQuirks ? e += "-(document.body.scrollWidth-document.body.clientWidth)" : e += "-(document.documentElement.scrollWidth-document.documentElement.clientWidth)"); +ot.setExpression("left", e + '+"px"'); +ot.setExpression("top", i + '+"px"'); +} +function v() { +if (!v.alreadyHacked) { +v.alreadyHacked = 1; +if (x.isStrict) document.body.parentNode.style.background = "#fff url(https://) fixed"; else if ("fixed" != document.body.currentStyle.backgroundAttachment) { +if ("none" != document.body.currentStyle.backgroundImage) { +var t = document.createElement("div"), e = t.style, i = document.body.currentStyle; +e.backgroundAttachment = i.backgroundAttachment; +e.backgroundColor = i.backgroundColor; +e.backgroundImage = i.backgroundImage; +e.backgroundPositionX = i.backgroundPositionX; +e.backgroundPositionY = i.backgroundPositionY; +e.backgroundRepeat = i.backgroundRepeat; +e.position = "absolute"; +e.zIndex = -1; +e.top = e.left = 0; +e.width = "100%"; +document.body.insertBefore(t, document.body.firstChild); +var n, o, r = !1, s = 0, a = function() { +if (!r && s) { +n += document.body.clientWidth - s; +e.width = n + "px"; +s = document.body.clientWidth; +} +o || (o = setTimeout(function() { +e.width = 0; +document.body.className = document.body.className; +n = Math.max(document.body.scrollWidth, document.body.clientWidth); +e.width = n + "px"; +s = document.body.clientWidth; +r = document.body.scrollWidth > document.body.clientWidth; +o = null; +}, 0)); +}; +setTimeout(a, 0); +e.setExpression("height", 'document.body.scrollHeight+"px"'); +a(); +} +document.body.style.backgroundImage = "url(https://)"; +document.body.style.backgroundAttachment = "fixed"; +} +} +} +function N() { +function e(t, e) { +ot[t] = ""; +ot.removeExpression(t); +"number" == typeof e ? ot[t] = e + "px" : C(e) && "%" == e.substr(e.length - 1) ? ot[t] = e : C(e) && e.length && ot.setExpression(t, e); +} +t.appendToParent && t.appendToParent(!0); +v(); +var i, n, o = isNaN(Z) ? "" : Z, r = isNaN(Q) ? "" : Q, s = isNaN(J) ? "" : J, a = isNaN(X) ? "" : X, _ = isNaN(K) ? "" : K, l = isNaN(tt) ? "" : tt, d = "BackCompat" == t.ownerDocument.compatMode; +if ("fixed" == et && t.ownerDocument == document) if (d) { +n = "document.body.clientHeight"; +i = "document.body.clientWidth"; +} else { +n = "document.documentElement.clientHeight"; +i = "document.documentElement.clientWidth"; +} else { +n = "this.offsetParent.clientHeight"; +i = "this.offsetParent.clientWidth"; +} +if (x.isIE6) { +if (!isNaN(Z) && !isNaN(Q)) { +r = ""; +s = [ i, Z, Q ].join("-"); +} +if (!isNaN(X) && !isNaN(K)) { +_ = ""; +l = [ n, X, K ].join(" - "); +} +} +if ("fixed" == et && t.ownerDocument == document) if (d) { +if (!isNaN(Z) || isNaN(Q)) o += "+(dummye34cf6=document.body.scrollLeft)"; else { +o += "+(dummye34cf6=document.body.scrollLeft)+document.body.clientWidth-this.offsetWidth-" + Q; +r = ""; +} +if (!isNaN(X) || isNaN(K)) a += "+(dummye34cf6=document.body.scrollTop)"; else { +a += "+(dummye34cf6=document.body.scrollTop)+document.body.clientHeight-this.offsetHeight-" + K; +_ = ""; +} +} else { +if (!isNaN(Z) || isNaN(Q)) o += "+(dummye34cf6=document.documentElement.scrollLeft)"; else if (x.isIE6) { +o += "+(dummye34cf6=document.documentElement.scrollLeft)+document.documentElement.clientWidth-this.offsetWidth-" + Q; +r = ""; +} else r += "+document.documentElement.scrollWidth-(dummye34cf6=document.documentElement.scrollLeft)-document.documentElement.clientWidth"; +if (!isNaN(X) || isNaN(K)) a += "+(dummye34cf6=document.documentElement.scrollTop)"; else if (x.isIE6) { +a += "+(dummye34cf6=document.documentElement.scrollTop)+document.documentElement.clientHeight-this.offsetHeight-" + K; +_ = ""; +} else _ += "+document.documentElement.scrollHeight - (dummye34cf6=document.documentElement.scrollTop) - document.documentElement.clientHeight"; +} +e("left", o); +e("right", r); +e("width", s); +e("top", a); +e("bottom", _); +e("height", l); +} +function D() { +L(); +E(); +} +function E() { +ot.top = C(X) ? X : isNaN(X) ? "" : X + "px"; +ot.bottom = C(K) ? K : isNaN(K) ? "" : K + "px"; +if (tt != nt) { +ot.height = C(tt) ? tt : isNaN(tt) ? "" : tt + "px"; +nt = tt; +} +} +function L() { +ot.left = C(Z) ? Z : isNaN(Z) ? "" : Z + "px"; +ot.right = C(Q) ? Q : isNaN(Q) ? "" : Q + "px"; +if (J != it) { +ot.width = C(J) ? J : isNaN(J) ? "" : J + "px"; +it = J; +} +} +function W() { +var e, i, n, o, r, s, a = isNaN(J) ? t.offsetWidth : J, _ = isNaN(tt) ? t.offsetHeight : tt; +e = i = n = o = NaN; +r = s = 0; +switch (lt.charAt(0)) { +case "t": +e = 0; +break; + +case "m": +e = "50%"; +break; + +case "b": +i = 0; +} +switch (lt.charAt(1)) { +case "l": +n = 0; +break; + +case "c": +n = "50%"; +break; + +case "r": +o = 0; +} +"50%" == e && (r = -_ / 2); +"50%" == n && (s = -a / 2); +var l = 0; +ut >= 0 || !isNaN(e) || "string" == typeof e ? r += ut : l = -ut; +s += dt; +t.setMargin([ r + "px", 0, l + "px", s + "px" ].join(" ")).setTop(e).setBottom(i).setLeft(n).setRight(o); +} +function R(e) { +if (!y(e)) { +e = e.split(" "); +e[0] = parseInt(e[0], 10); +e[1] = parseInt(e[1], 10); +e[2] = parseInt(e[2], 10); +e[3] = parseInt(e[3], 10); +} +if (_t) { +e[1] = Math.max(0, e[1]); +e[2] = Math.max(0, e[2]); +} +ct = e; +return t; +} +function F(e) { +if (!y(e)) { +e = e.split(" "); +e[0] = parseInt(e[0], 10); +e[1] = parseInt(e[1], 10); +e[2] = parseInt(e[2], 10); +e[3] = parseInt(e[3], 10); +} +ht = [ Math.max(0, e[0]), Math.max(0, e[1]), Math.max(0, e[2]), Math.max(0, e[3]) ]; +return t; +} +function M() { +if (ct) { +Z < ct[3] + ht[3] && (Z = ct[3]); +Q < ct[1] + ht[1] && (Q = ct[1]); +X < ct[0] + ht[0] && (X = ct[0]); +K < ct[2] + ht[2] && (K = ct[2]); +var e = x.isQuirks ? document.body : document.documentElement, i = isNaN(J) ? t.offsetWidth : J, n = e.clientWidth - i, o = e.clientHeight - t.offsetHeight; +n - Z <= ct[1] + ht[1] && (Z = n - ct[1]); +n - Q <= ct[3] + ht[3] && (Q = n - ct[3]); +o - X <= ct[2] + ht[2] && (X = o - ct[2]); +o - K <= ct[0] + ht[0] && (K = o - ct[0]); +} +} +function V(e, i) { +K = Q = NaN; +X = i; +Z = e; +M(); +g(); +return t; +} +function H(t, e) { +isNaN(Z) && isNaN(Q) && (Z = 0); +isNaN(X) && isNaN(K) && (X = 0); +isNaN(Z) || (Z += t); +isNaN(Q) || (Q -= t); +isNaN(X) || (X += e); +isNaN(K) || (K -= e); +M(); +g(); +} +function z(e, i, n, o) { +if (e) { +isNaN(J) && (J = t.offsetWidth); +J = Math.max(n || 0, J + e); +} +if (i) { +isNaN(tt) && (tt = t.offsetHeight); +tt = Math.max(o || 0, tt + i); +} +M(); +g(); +t.fire("jx:resize"); +return t; +} +function U(e) { +"none" != e && "block" != e || (pt = !0); +"none" != e && "hidden" != e && "false" != e && e ? Y() : q(); +return t; +} +function q() { +if (pt) { +if ("none" != ot.display) { +ot.display = "none"; +t.fire("hide"); +} +} else if ("hidden" != ot.visibility) { +ot.visibility = "hidden"; +t.fire("hide"); +} +return t; +} +function G() { +return pt ? "none" != t.getStyle("display") : "visible" == t.getStyle("visibility"); +} +function Y() { +if (pt) { +if ("block" != ot.display) { +ot.display = "block"; +t.fire("show"); +} +} else if ("visible" != ot.visibility) { +ot.visibility = "visible"; +t.fire("show"); +} +return t; +} +var X, K, Z, Q, J, tt, et, it, nt, ot = t.style, rt = t.ownerDocument, st = "BackCompat" == rt.compatMode, at = !(!rt.documentElement || !rt.documentElement.style.setExpression), _t = x.isIE6 || x.isIE && st && at; +X = K = Z = Q = J = tt = NaN; +et = null; +var lt = "", dt = 0, ut = 0; +t.dock = function(e, i, n) { +lt = e; +k(i) && (dt = i); +k(n) && (ut = n); +W(); +t.on("jx:resize", W); +}; +var ct, ht = [ 0, 0, 0, 0 ], pt = !1; +t.getStyles = function() { +return $(t); +}; +t.getStyle = function(e) { +return b(t, e); +}; +t.setAttributes = i; +t.getText = n; +t.setText = o; +t.setStyle = r; +t.setFloat = s; +t.setPosition = p; +t.setTop = a; +t.setBottom = l; +t.setLeft = _; +t.setRight = d; +t.setHeight = c; +t.setWidth = u; +t.applyConstraints = g; +t.setVisible = U; +t.setBounds = R; +t.setSnaps = F; +t.move = H; +t.moveTo = V; +t.resizeBy = z; +t.hide = q; +t.show = Y; +t.isVisible = G; +for (var ft in P) P.hasOwnProperty(ft) && (t[ft] = P[ft]); +if (e) for (var gt = t.firstChild; gt; ) { +w(gt, !0); +gt = gt.nextSibling; +} +return t; +} +var x = i(8), v = i(14), y = i(22), j = i(7), C = i(21), S = i(16), A = i(94), k = i(28), I = i(186).toCamelCase, T = { +create: p, +extend: w, +appendChild: g, +addChildren: m, +hasParentNode: f, +id: s, +get: l, +set: a, +unset: _, +mangleIDs: d, +generateID: s, +nativeGenerator: u, +getStyles: $, +processDeferredStyles: r +}, B = n, N = 1, D = "__JX__ID", E = {}; +x.bugs.leaksMemory && x.bugs.leaksMemory(function() { +for (var t, e = 0, i = E.length; e < i; e++) { +t = E[e]; +t.plugLeakage && t.plugLeakage(); +} +}); +var O = x.isTextContent, P = T.proto = { +$: function(t) { +return l(this.id + "__" + t); +}, +destroy: function() { +if (this._destructors) for (var t = this._destructors, e = t.length, i = 0; i < e; i++) t[i].call(this); +this.parentNode && this.parentNode.removeChild(this); +this._autobinds && this.autounbind(); +"function" == typeof this.empty && this.empty(); +"function" == typeof this.unextendEvents && this.unextendEvents(); +_(this); +x.bugs.leaksMemory && "function" == typeof this.plugLeakage && this.plugLeakage(); +}, +empty: function() { +for (var t; t = this.firstChild; ) "function" == typeof t.destroy ? t.destroy() : t.jx_wrapper ? t.jx_wrapper.destroy() : 1 == t.nodeType ? P.destroy.call(t) : this.removeChild(t); +}, +onDestruction: function(t) { +(this._destructors || (this._destructors = [])).push(t); +}, +autobind: function(t, e, i) { +t.on(e, i); +this._autobinds || (this._autobinds = []); +this._autobinds.push([ t, e, i ]); +}, +autounbind: function(t, e, i) { +var n, o, r = this._autobinds; +if (t && e && i) for (n = r.length - 1; n >= 0; n--) { +o = r[n]; +if (o[0] == t && o[1] == e && o[2] == i) { +r.splice(n, 1); +o[0].un(o[1], o[2]); +return; +} +} else if (t || e || i) ; else { +if (!r) return; +for (n = r.length - 1; n >= 0; n--) { +o = r[n]; +o[0].un(o[1], o[2]); +} +} +}, +getXY: function() { +var t, e, i = this.offsetParent; +t = this.offsetLeft; +e = this.offsetTop; +for (;i; ) { +t += i.offsetLeft; +e += i.offsetTop; +i = i.offsetParent; +} +return [ t, e ]; +}, +getFixedXY: function() { +var t = 0, e = 0, i = this; +if ("getBoundingClientRect" in this) { +var n = this.ownerDocument, o = n.body, r = n.defaultView || i.parentWindow || !1, s = i.getBoundingClientRect(), a = n.clientTop || o.clientTop || 0, _ = n.clientLeft || o.clientLeft || 0, l = r.pageYOffset || o.scrollTop, d = r.pageXOffset || o.scrollLeft; +e = s.top + l - a; +t = s.left + d - _; +} else { +e = i.offsetTop; +t = i.offsetLeft; +for (;i = i.offsetParent; ) { +e -= i.scrollTop, t -= i.scrollLeft; +e += i.offsetTop, t += i.offsetLeft; +} +} +return [ t, e ]; +}, +toggle: function() { +this.isVisible() ? this.hide() : this.show(); +return this; +}, +setOpacity: function(t) { +t = Math.max(Math.min(t, 1), 0); +x.isIE ? this.style.filter = (this.style.filter || "").replace(/progid:DXImageTransform.Microsoft.Alpha\([^\)]*\),? ?/gi, "") + (t >= 1 ? "" : "progid:DXImageTransform.Microsoft.Alpha(opacity=" + 100 * t + "), ") : this.style.opacity = t; +return this; +}, +setBackgroundImage: function(t) { +var e = t; +e && x.isIE ? this.style.filter += 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + e + '",sizingMethod="scale"), ' : this.style.backgroundImage = 'url("' + t + '")'; +return this; +}, +setClass: function(t) { +this.className = t; +return this; +}, +addClass: function(t) { +this.removeClass(t); +this.className += " " + t; +return this; +}, +removeClass: function(t) { +for (var e = this.className.split(" "), i = 0; i < e.length; i++) e[i] == t && (e[i] = ""); +this.className = e.join(" "); +return this; +}, +setRotation: function(t) { +if (x.isFF) this.style.MozTransform = t ? "rotate(" + t + "deg)" : ""; else if (x.isSafari) this.style.WebkitTransform = t ? "rotate(" + t + "deg)" : ""; else if (x.isIE) { +this.style.filter = t ? "progid:DXImageTransform.Microsoft.BasicImage(rotation=" + Math.round(t / 90) + ")" : ""; +if (x.isIE8 && t) { +var e = this.getElementsByTagName("iframe"); +if (x.isIE8 && e.length) { +e[0].style.filter = t ? "progid:DXImageTransform.Microsoft.BasicImage(rotation=" + Math.round(t / 90) + ")" : ""; +this.style.overflow = "visible"; +} +} +} +return this; +}, +setSelectable: function(t) { +function e() { +return !1; +} +if (t && "false" != t) { +this.unselectable = "on"; +void 0 !== this.style.MozUserSelect ? this.style.MozUserSelect = "none" : void 0 !== this.style.WebkitUserSelect ? this.style.WebkitUserSelect = "none" : void 0 !== this.onselectstart && this.un("selectstart", e); +} else { +this.unselectable = "on"; +void 0 !== this.style.MozUserSelect ? this.style.MozUserSelect = "none" : void 0 !== this.style.WebkitUserSelect ? this.style.WebkitUserSelect = "none" : void 0 !== this.onselectstart && this.on("selectstart", e); +} +return this; +}, +setScrollTop: function(t) { +this.scrollTop = t; +return this; +} +}; +x.leaksMemory && (P.plugLeakage = function() { +this.unextendEvents && this.unextendEvents(); +this.$ = this.plugLeakage = this.destroy = this.empty = this.autobind = this.autounbind = this._autobinds = this._destructors = this.onDestruction = this.getXY = this.appendToParent = this.defaultPlacement = this.getStyles = this.getStyle = this.setAttributes = this.getText = this.setText = this.setStyle = this.setFloat = this.setPosition = this.setTop = this.setBottom = this.setLeft = this.setRight = this.setHeight = this.setWidth = this.applyConstraints = this.setVisible = this.setBounds = this.setSnaps = this.move = this.moveTo = this.resizeBy = this.hide = this.show = this.isVisible = this.toggle = this.setOpacity = this.setBackgroundImage = this.setClass = this.addClass = this.removeClass = this.setRotation = this.setSthisectable = this.setScrollTop = this.setBackground = this.setBackgroundPosition = this.setBorder = this.setBorderColor = this.setBorderStyle = this.setBorderWidth = this.setBorderTop = this.setBorderRight = this.setBorderBottom = this.setBorderLeft = this.setClear = this.setColor = this.setPadding = this.setMargin = this.setMarginTop = this.setMarginRight = this.setMarginBottom = this.setMarginLeft = this.setDisplay = this.setLineHeight = this.setLetterSpacing = this.setVisibility = this.setOutline = this.setOverflow = this.setOverflowX = this.setOverflowY = this.setFontFamily = this.setFontSize = this.setFontWeight = this.setFontStyle = this.setTextAlign = this.setTextDecoration = this.setTextTransform = this.setVerticalAlign = this.setZIndex = this.setCursor = this.setHref = this.setSrc = this.setChecked = this.setMedia = this.setName = this.setType = this.setValue = this.setDataNode = this.__jx__constructor = this.__jx__native = null; +}); +var L, W; +L = "background background-position border border-color border-style border-width color border-top border-right border-bottom border-left clear padding margin margin-top margin-right margin-bottom margin-left display line-height letter-spacing visibility outline overflow overflow-x overflow-y font-family font-size font-weight font-style text-align text-decoration text-transform vertical-align z-index cursor".split(" "); +for (W = 0; W < L.length; W++) P[I("set-" + L[W])] = function(t) { +return function(e) { +try { +this.style[t] = e; +} catch (t) {} +return this; +}; +}(I(L[W])); +L = "checked href media name src target type value".split(" "); +for (W = 0; W < L.length; W++) P[I("set-" + L[W])] = function(t) { +return function(e) { +this.setAttribute(t, e); +return this; +}; +}(L[W]); +x.isIE && document.execCommand("BackgroundImageCache", !1, !0); +t.exports = T; +e(T, "jx_core_Element"); +return T; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +var n = i(46), o = {}; +o.$Data = n; +t.exports = o; +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i) { +W = !0; +V.root = $ = t instanceof S ? t : new S("root"); +w = i; +if (A.ACCOUNT_KEY || e) { +if (e) { +b = e; +$.$$("livechat.ui.mockup$bool").update(!0); +} +if (D.isMobileBrowser) { +$.$$("livechat.ui.mobile$bool").update(!0); +D.isMobileWhitelist && $.$$("livechat.ui.mobile_whitelist$bool").update(!0); +D.isMobileTablet && $.$$("livechat.ui.tablet$bool").update(!0); +} +window.$zopim_popout ? $.$$("livechat.ui.popout$bool").update(!0) : e || x.setIFrameOnly(!0); +var n, o = m(k); +if (!b) for (var r in O) if (O.hasOwnProperty(r)) { +var s = I.DOM.getVariable(r); +"log" == r && s && "object" == typeof s && $.$("livechat").$("temp").update({ +prev_log: s +}); +"settings" == r && s && N.getKeys(s).length && $.$("livechat").$("settings").update({ +cached$bool: !0 +}); +if ("object" == typeof s) { +n = N.getKeys(s); +n && n.length && N.fullyExtend(N.descendsObj(o, O[r]), s); +} else N.insertObj(O[r], s, o); +} +$.update(o); +if (!b && !f()) { +var a = v.isIOS ? "unload" : "beforeunload"; +y.window.on(a, function() { +try { +g(); +} catch (t) {} +}); +} +var _ = I.getAllowCookieLaw(); +"boolean" == typeof _ && $.$$("livechat.profile").update({ +allow_cookies$bool: _ +}); +$.$$("livechat.settings.package").on("value", function(t) { +if (t) { +"color_customization_enabled$int" in t && t.color_customization_enabled$int && (L = 1); +"widget_customization_enabled$int" in t && t.widget_customization_enabled$int && (L = 2); +} +}); +V.fire("init"); +} +} +function o(t) { +j(t) && (W ? t() : V.on("init", t)); +} +function r(t, e) { +B.sendChatMsg(t, e); +} +function s(t) { +var e = parseInt(w.getServerTime().toFixed(0), 10), i = e + ""; +$.$("livechat").$("channel").$("log").$(i).write({ +timestamp$int: e, +nick$string: $.$("livechat").$("profile").$("nick$string").getValue() || "", +display_name$string: $.$("livechat").$("profile").$("display_name$string").getValue() || "", +type$string: "chat.file.upload", +file_name$string: t.file_name || "", +file_type$string: t.file_type || "", +file_size$int: t.file_size || 0, +unverified$bool: !0, +__client$bool: !0 +}); +return e; +} +function a(t) { +if (t) { +var e = {}; +"name" in t && (e.display_name$string = t.name + ""); +"email" in t && (e.email$string = t.email + ""); +"phone" in t && (e.phone$string = t.phone + ""); +"department_id" in t && (e.department_id$int = t.department_id); +$.$$("livechat.profile").write(e); +return !0; +} +} +function _() { +T.clearIdentity(); +I.clearAll(); +$.$("livechat").$("ui").$("chat_button").$("unread_count$int").update(0); +$.$$("livechat.channel").update(null); +$.$$("profile").update(null); +} +function l() { +var t = $.$$("livechat.settings.cookie_law.enabled$bool").getValue(), e = $.$$("livechat.profile.allow_cookies$bool").getValue(); +return !t || !1 !== e; +} +function d() { +$.$$("connection").update({ +reconnect$bool: !0 +}); +} +function u(t) { +if (!b) { +var e = $.$$("livechat.account.key$string").getValue(), i = $.$$("livechat.profile.mid$string").getValue(); +t && e && i && window.open(N.getAuthLoginUrl(t, e, i), F + e, $.$$("livechat.ui.mobile$bool").getValue() ? "" : M); +} +} +function c() { +if ($.$$("livechat.profile.auth.type$string").getValue()) { +$.$$("livechat.profile.auth").write({ +type$string: null +}); +$.$$("livechat.profile").update({ +display_name$string: "", +email$string: "" +}); +} else $.$$("livechat.profile").write({ +display_name$string: "", +email$string: "" +}); +} +function h() { +$.$$("livechat.channel").write({ +chatting$bool: !1 +}); +} +function p() { +return $.$$("livechat.ui.mockup$bool").getValue() ? 100 : L; +} +function f() { +var t = $.$("livechat").$("account").$("status$string").getValue(); +return C(t, E) > -1; +} +function g() { +if (R.canStoreCookie()) { +var t = $.$("connection").getValue(); +if (t && "status$string" in t) { +var e = new S("root"); +e.update($.getValue()); +for (var i = 0, n = P.length; i < n; i++) e.$$(P[i]).update(null); +var o, r; +for (o in O) if (O.hasOwnProperty(o)) { +switch (o) { +case "settings": +r = w.getServerSettings("settings"); +break; + +case "log": +r = e.$("livechat").$("channel").$("chatting$bool").getValue() ? N.getLastLogEntries($.$$(O[o]), A.CHAT_LOG_REMEMBER_COUNT) : null; +break; + +default: +r = e.$$(O[o]).getValue(); +} +I.DOM.saveVariable(o, r); +} +e = null; +} +} +} +function m(t) { +if ("object" != typeof t || !t) return t; +var e = {}; +for (var i in t) t.hasOwnProperty(i) && (e[i] = m(t[i])); +t.hasOwnProperty(H) && (e[H] = m(t[H])); +return e; +} +var $, b, w, x = i(2), v = i(8), y = i(14), j = i(20), C = i(24), S = i(91), A = i(18), k = i(90), I = i(112), T = i(45), B = i(177), N = i(10), D = i(34), E = [ "banned", "invalid_account_key" ], O = { +last_host: "connection.server$string", +chatting: "livechat.channel.chatting$bool", +account_status: "livechat.account.status$string", +settings: "livechat.settings", +ui: "livechat.ui", +notification: "livechat.profile.notification", +departments: "livechat.departments", +log: "livechat.channel.log", +read: "livechat.channel.read", +features: "livechat.features", +gates: "livechat.gates" +}, P = [ "livechat.settings.cached$bool", "livechat.ui.chat_window.menu_stack_name$string", "livechat.ui.chat_window.pre_chat_form.submitted$bool", "livechat.ui.post_chat_form.stack_index$int", "livechat.ui.offline_form.stack_index$int", "livechat.ui.theme_reload$bool", "livechat.ui.theme_loaded$bool", "livechat.ui.popout$bool", "livechat.ui.mobile$bool", "livechat.ui.mobile_overlay$bool", "livechat.ui.mobile_notifications$bool", "livechat.ui.chat_button.fully_visible$bool", "livechat.ui.chat_window.chat_panel.file_toast.error$string", "livechat.ui.departments", "livechat.ui.visitor.authenticated$bool", "livechat.ui.visitor.auth_status$string", "livechat.ui.history" ], L = 0, W = !1, R = { +sendChatMsg: r, +sendFile: s, +updateProfile: a, +clearAll: _, +reconnect: d, +canStoreCookie: l, +doExternalLogin: u, +doExternalLogout: c, +endChat: h, +getLimit: p, +isAccountError: f +}, F = "zlivechatexternallogin_", M = "width=500,height=500,menubar=no,toolbar=no,location=no,personalbar=no,status=no,resizable=yes,scrollbars=no", V = y.extend({ +init: n, +root: $, +livechat: R, +afterInit: o +}), H = "toString"; +t.exports = V; +e(V, "meshim_widget_controllers_DataController"); +return V; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName || (s.tagName = "div"); +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_Widget"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +if (isNaN(t)) { +var i = new o(); +i.add("_", t); +return i; +} +-1 == t && (t = $.length); +var n = $[t]; +n || ($[t] = n = new o()); +if ("string" == typeof e) n.add("_", e); else for (var r in e) e.hasOwnProperty(r) && n.add(r, e[r]); +return n; +} +function o() { +function t(t, e) { +l[t] = e; +} +function e(t) { +r(t, u); +} +function i(t) { +d.push(t); +} +function n() { +return s(); +} +function s(t) { +return l[t || b] || l._; +} +function a(t) { +var e, i = s(t); +for (e = 0; e < d.length; e++) d[e](i); +} +function _(t, e) { +var i, n = new o(); +$[l._] = n; +for (var r in l) if (l.hasOwnProperty(r)) { +i = l[r]; +if ("string" != typeof i) continue; +i = i[t].apply(i, e); +n.add(r, i); +} +return n; +} +for (var l = {}, d = [], u = { +add: t, +bind: e, +onTranslate: i, +toJSON: n, +toString: s, +update: a +}, c = [ "concat", "replace", "toLowerCase", "toUpperCase" ], h = 0; h < c.length; h++) u[c[h]] = function(t) { +return function() { +return _(t, arguments); +}; +}(c[h]); +return u; +} +function r(t, e) { +for (var i = 0; i < w.length; i++) if (w[i] == t) { +x[i] = e; +return; +} +w.push(t); +x.push(e); +} +function s(t) { +for (var e = 0; e < w.length; e++) if (w[e] == t) { +w.splice(e, 1); +x.splice(e, 1); +return; +} +} +function a(t) { +t = t.split(/-|_/).slice(0, 2); +var e = t[0] = t[0].toLowerCase(); +t[1] && (t[1] = t[1].toUpperCase()); +t = t.join("_"); +return f.languages ? t in f.languages ? t : e in f.languages ? e : null : null; +} +function _(t) { +var e, i, o, r, s, _; +t = a(t); +if (t) { +s = f.languages[t]; +if (s) { +_ = g[f.languages[t]]; +if (_) { +n.language = b = t; +m.ensureLoaded(_, function(n) { +n && l(t); +if (t == b) { +for (e = 0, i = $.length; e < i; e++) $[e].update instanceof Function && $[e].update(t); +for (e = 0, i = w.length; e < i; e++) { +o = w[e]; +r = x[e].toString(); +if (y) o.textContent = r; else if ("string" == typeof o.innerText) o.innerText = r; else if ("string" == typeof o.nodeValue) try { +o.data = r; +} catch (t) {} +} +v._active = !0; +i = v.length; +for (e = 0; e < i; e++) try { +v[e] && v[e](t); +} catch (t) {} +v._active = !1; +if (v._dirty) { +for (e = 0; e < i; e++) if (!v[e]) { +e == i - 1 ? v.pop() : v[e--] = v.pop(); +i--; +} +v._dirty = !1; +} +} +}); +} +} +} +} +function l(t) { +var e, i = g[f.languages[t]]; +for (e = 0; e < i.length; e++) 0 !== i[e] && $[e].add(t, i[e]); +} +function d(t) { +v.push(t); +} +function u(t) { +for (var e = 0, i = v.length; e < i; e++) if (v[e] == t) { +v._active ? (v[e] = null, v._dirty = !0) : e == i - 1 ? v.pop() : v[e] = v.pop(); +break; +} +} +function c() { +return !(-1 == b.search(j)); +} +function h(t) { +return c() ? t.replace(/left/, "%left%").replace(/right/, "left").replace(/%left%/, "right").replace(/ltr/, "%ltr%").replace(/rtl/, "ltr").replace(/%ltr%/, "rtl") : t; +} +var p = i(8), f = i(46), g = i(4), m = i(187), $ = [], b = "_", w = [], x = [], v = [], y = p.isTextContent, j = /^ar|^fa|^he|^ku|^ur/, C = f.strings; +if (C) for (var S = 0; S < C.length; S++) n(S, C[S]); +n.bind = r; +n.flip = h; +n.onLanguage = d; +n.unLanguage = u; +n.update = _; +n.unbind = s; +n.rtl = c; +n.findClosestLanguage = a; +t.exports = n; +e(n, "jx_core__"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = (i(24), i(94)), o = (i(20), i(26)), r = function() { +function t(t) { +return t.replace(/^http:/, O ? "https:" : "http:"); +} +function e() { +if (void 0 !== window.innerHeight) return window.innerHeight; +if (document.documentElement) return document.documentElement.offsetHeight; +var t = document.getElementsByTagName("body"); +return t.length ? t[0].clientHeight : 0; +} +function i() { +if (void 0 !== window.innerWidth) return window.innerWidth; +if (document.documentElement) return document.documentElement.offsetWidth; +var t = document.getElementsByTagName("body"); +return t.length ? t[0].clientWidth : 0; +} +function r() { +if (!o(s)) return s; +var t = document.createElement("div"), e = document.createElement("div"), i = t.style, n = e.style; +i.overflow = "auto"; +i.width = i.height = "100px"; +i.position = "absolute"; +i.top = "-1000px"; +n.width = "100%"; +n.height = "200px"; +t.appendChild(e); +document.body.appendChild(t); +s = t.offsetWidth - t.clientWidth; +document.body.removeChild(t); +return s; +} +var s, a, _ = navigator, l = _.userAgent.toLowerCase(), d = +(/trident.*rv:? *([0-9]+)/.exec(l) || [])[1] || !1, u = function() { +for (var t = 3, e = document.createElement("div"), i = e.getElementsByTagName("i"); e.innerHTML = "", +i[0]; ) ; +return t > 4 ? t : document.documentMode; +}(), c = 8 === u, h = 7 === u, p = 6 === u, f = !!window.opera && "[object Opera]" === Object.prototype.toString.call(window.opera), g = l.indexOf("edge") > -1, m = "Google Inc." === _.vendor, $ = "Apple Computer, Inc." === _.vendor, b = !g && !u && !f && (m || $ || /webkit|khtml/.test(l)), w = +/\d+/.exec(/firefox\/\d+/i.exec(_.userAgent) || ""), x = -1 !== l.indexOf("iphone"), v = -1 !== l.indexOf("ipod"), y = -1 !== l.indexOf("ipad"), j = x || y || v, C = -1 !== l.indexOf("android"), S = -1 !== l.indexOf("wp7"), A = j || C || S, k = u && "msie" || w && "firefox" || f && "opera" || m && "chrome" || $ && "safari", I = "CSS1Compat" === document.compatMode, T = !I, B = u && T && document.documentElement && !!document.documentElement.style.setExpression, N = document.documentMode || u, D = -1 !== l.indexOf("windows") || -1 !== l.indexOf("win32"), E = -1 !== l.indexOf("macintosh") || -1 !== l.indexOf("mac os x"), O = "https:" === document.location.protocol, P = _.language || _.browserLanguage || _.userLanguage || _.systemLanguage, L = { +noBoxSizing: N <= 7, +ie: { +cssBottomRight: p, +cssFixed: p || B, +buggyCSS: p || B +} +}, W = "textContent" in document.createElement("div"), R = !1, F = null; +try { +if (window.CustomEvent && /\[native code\]|\[object CustomEventConstructor\]/.test(window.CustomEvent.toString())) { +new window.CustomEvent("testevent", { +bubbles: !1, +cancelable: !0, +detail: !0 +}); +R = !0; +F = window.CustomEvent; +} +} catch (t) {} +switch (k) { +case "msie": +case "firefox": +case "chrome": +a = +/\d+/.exec(new RegExp(k + "[ /]\\d+").exec(l) || ""); +break; + +default: +a = +/\d+/.exec(/version[ \/]\d+/.exec(l) || ""); +} +if (p) { +var M = []; +L.leaksMemory = function(t) { +n.isFunction(t); +M.push(t); +}; +var V = function() { +for (var t = 0; t < M.length; t++) M[t](); +}; +L.leaksMemory.remove = function(t) { +for (var e = M.length - 1; e >= 0; e--) t == M[e] && M.splice(e, 1); +}; +window.attachEvent("onunload", V); +} +var H = "Shockwave Flash", z = "ShockwaveFlash.ShockwaveFlash", U = "application/x-shockwave-flash", q = "application/x-java-vm"; +return { +browser: k, +version: a, +isStrict: I, +isQuirks: T, +isOpera: f, +isSafari: $, +isWebKit: b, +isChrome: m, +isAndroid: C, +isIPhone: x, +isIPod: v, +isIPad: y, +isIOS: j, +isWP7: S, +isMobile: A, +isNewIE: d, +isEdge: g, +isIE: u, +isIE6: p, +isIE7: h, +isIE8: c, +isFF: w, +isCustomEvents: R, +CustomEvent: F, +engineIE: N, +bugs: L, +isWindows: D, +isMac: E, +isSecure: O, +secureURL: t, +hasFlash: function() { +var t, e = _.plugins && _.plugins[H]; +if (e) { +t = _.mimeTypes && _.mimeTypes[U]; +return t && !t.enabledPlugin ? null : e.description; +} +if (window.ActiveXObject) try { +e = new window.ActiveXObject(z); +e.AllowScriptAccess = "always"; +return e.GetVariable("$version"); +} catch (t) {} +}(), +hasJava: function() { +var t = _.mimeTypes; +return u ? !S && ("javaEnabled" in _ && _.javaEnabled()) : t && (t = t[q]) && (t = t.enabledPlugin) ? t.name : void 0; +}(), +language: P, +getScrollbarSize: r, +getWindowClientHeight: e, +getWindowClientWidth: i, +isTextContent: W +}; +}(); +t.exports = r; +e(r, "jx_core_Browser"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +var t = l.root, e = t.$("livechat").$("ui").$("mobile$bool"), i = t.$("livechat").$("ui").$("popout$bool"), n = t.$("livechat").$("ui").$("mockup$bool"), r = t.$("livechat").$("ui").$("tablet$bool"); +d.popout = s(i); +d.mockup = s(n); +d.tablet = s(r); +d.mobile = function(t) { +if (e.getValue()) { +t.addClass("mobile"); +t.removeClass("desktop"); +} else { +t.addClass("desktop"); +t.removeClass("mobile"); +} +}; +d.rtl = function(t) { +function e() { +_.unLanguage(i); +} +function i() { +if (_.rtl()) { +t.addClass("rtl"); +t.removeClass("ltr"); +} else { +t.addClass("ltr"); +t.removeClass("rtl"); +} +} +if (_ && _.onLanguage) { +_.onLanguage(i); +i(); +t.onDestruction(e); +} else t.addClass("ltr"); +}; +d.windowPosition = o(t.$("livechat").$("settings").$("theme").$("chat_window").$("position$string")); +d.windowPositionMobile = o(t.$("livechat").$("settings").$("theme").$("chat_window").$("position_mobile$string")); +d.windowSize = o(t.$("livechat").$("settings").$("theme").$("chat_window").$("size$string")); +d.buttonPosition = o(t.$("livechat").$("settings").$("theme").$("chat_button").$("position$string")); +} +function o(t, e) { +e = e || ""; +return function(i, n, o) { +n = n || ""; +i.autobind(t, "value", r(i, e + n, o)); +}; +} +function r(t, e, i) { +var n; +return function(o) { +if (n != o) { +n && t.removeClass(e + n); +n = o; +n && t.addClass(e + n); +"function" == typeof i && i(n); +} +}; +} +function s(t, e) { +e = e || t.name.split("$")[0]; +return function(i, n) { +i.autobind(t, "value", a(i, e, n)); +}; +} +function a(t, e, i) { +return function(n) { +t[n ? "addClass" : "removeClass"](e); +"function" == typeof i && i(n); +}; +} +var _ = i(7), l = i(5), d = {}; +l.afterInit(n); +t.exports = d; +e(d, "meshim_widget_utils_BindClass"); +return d; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +for (var i, n = document.createElement("div"), o = 0, r = P.length; o < r; o++) if (void 0 !== n.style[P[o]]) { +i = e[o]; +break; +} +return i ? t ? function(t, e, n) { +t.autobind(e, i, n); +} : function(t, e, n) { +L && t.autounbind(e, i, n); +} : function() {}; +} +function o(t, e) { +for (var i = {}, n = 0, o = e.length; n < o; n++) { +var r = e[n]; +r in t && (i[r] = t[r]); +} +return i; +} +function r() { +for (var t, e, i = arguments.length, n = 1, o = arguments[0] || {}; n < i; n++) if (null != (t = arguments[n])) for (e in t) t.hasOwnProperty(e) && o !== t[e] && (o[e] = t[e]); +return o; +} +function s(t, e) { +for (var i in e) if (e.hasOwnProperty(i)) if (e[i] && e[i].constructor && e[i].constructor === Object) { +t[i] = t[i] || {}; +s(t[i], e[i]); +} else t[i] = e[i]; +return t; +} +function a(t, e) { +for (var i in e) if (e.hasOwnProperty(i)) { +if (!(i in t)) continue; +e[i] && e[i].constructor && e[i].constructor === Object ? a(t[i], e[i]) : delete t[i]; +} +return t; +} +function _() { +if (void 0 === k) try { +k = l(); +} catch (t) {} +return k; +} +function l() { +if (!window.getComputedStyle) return !1; +var t = document.createElement("div"), e = "border-box"; +document.body.appendChild(t); +t.style.height = "10px"; +t.style.padding = "5px"; +t.style.boxSizing = e; +t.style.webkitBoxSizing = e; +t.style.mozBoxSizing = e; +var i = parseInt(window.getComputedStyle(t).height, 10); +document.body.removeChild(t); +return 10 != i; +} +function d(t) { +var e = t.getComputedStyle(); +if ("auto" == e.height) return t.getHeight(); +var i = parseInt(e.height, 10) || 0; +R.computedHeightBoxSizingBug() && (i += (parseInt(e.paddingTop, 10) || 0) + (parseInt(e.paddingBottom, 10) || 0) + (parseInt(e.borderTopWidth, 10) || 0) + (parseInt(e.borderBottomWidth, 10) || 0)); +return i + "px"; +} +function u(t) { +function e() { +this.addClass("hover"); +} +function i() { +this.removeClass("hover"); +} +if (I.bugs.noBoxSizing) { +t.on("mouseover", e); +t.on("mouseout", i); +} +} +function c(t, e) { +for (var i, n = e.split("."); n.length; ) { +i = n.shift(); +T(t[i], !0) && (t[i] = {}); +t = t[i]; +} +return t; +} +function h(t, e) { +if (0 === e.indexOf(t.path)) { +for (var i, n = t.path.split(".").length, o = e.split(".").slice(n), r = t.update; o.length; ) { +i = o.shift(); +if (!(i in r)) return; +r = r[i]; +} +return r; +} +} +function p(t, e, i) { +t = t.split("."); +var n = t.pop(); +if (n) { +for (var o = 0, r = t.length; o < r; o++) { +t[o] in i || (i[t[o]] = {}); +i = i[t[o]]; +} +i[n] = e; +} +} +function f(t) { +for (var e = t.split("."), i = "." + e.splice(e.length - 2, 2).join("."); e.length; ) { +var n = { +domain: i, +path: "/" +}; +N.set("zte2095", "1", n); +if ("1" == N.get("zte2095")) { +N.remove("zte2095", n); +break; +} +i = "." + e.pop() + i; +} +return i; +} +function g(t) { +return M.test(t); +} +function m(t) { +return F.test(t); +} +function $(t) { +if (t && "object" == typeof t) { +var e = []; +for (var i in t) t.hasOwnProperty(i) && e.push(i); +return e; +} +} +function b(t) { +if (window.Image) try { +var e = new window.Image(); +e.onload = e.onerror = function() { +t(!(1 != this.width || 1 != this.height)); +}; +e.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; +} catch (e) { +t(); +} else t(); +} +function w(t, e) { +t = parseInt(t, 10); +isNaN(t) && (t = 0); +var i = t < 0; +t = Math.abs(t).toString().split(""); +for (var n = Math.max(e - t.length, 0); n--; ) t.unshift("0"); +i && t.unshift("-"); +return t.join(""); +} +function x(t, e) { +function i(t, e, i) { +return i.replace("", t).replace("", e); +} +var n = B(0), o = B(1), r = B(2), s = "24" === e ? 24 : 12, a = function(t, e) { +return t - Math[t > 0 ? "floor" : "ceil"](t / e) * e; +}(Math[t > 0 ? "floor" : "ceil"](t / 60), s), _ = R.pad(Math.abs(t) % 60, 2); +if (24 === s) return i(R.pad(a, 2), _, n); +var l = 0 === a ? 12 : a; +return Math.abs(t / 60) % 24 < 12 ? i(l, _, o) : i(l, _, r); +} +function v(t) { +return t && t.replace(D.FILE_REPLACE_SOURCE, D.FILE_REPLACE_RESULT); +} +function y(t, e) { +e = parseInt(e, 10); +if (!e) return t.getValue(); +var i = t.getKeys(), n = i.length, o = {}; +if (n <= e) return t.getValue() || o; +for (var r = 0; r < n; r++) i[r] = parseInt(i[r], 10); +i = i.sort().slice(-e); +var s, a = t.getValue(); +if (!a) return o; +for (r = 0, n = i.length; r < n; r++) { +s = i[r]; +o[s] = a[s]; +} +return o; +} +function j(t, e) { +var i; +if (t.leaf && t.parentNode) { +i = {}; +i[t.name] = e; +t.parentNode.write(i); +} else t.write(e); +} +function C() { +if (I.isNewIE) try { +"body" !== document.activeElement.nodeName.toLowerCase() && document.activeElement.focus(); +} catch (t) {} +} +function S() { +window.console && window.console.warn && window.console.warn("The Zopim widget embed code is invalid. Please email chat@zendesk.com with your account key: " + D.ACCOUNT_KEY); +} +function A(t, e, i) { +return D.AUTH_URL.replace("$NAME", t).replace("$KEY", e).replace("$MID", i); +} +var k, I = i(8), T = i(26), B = i(7), N = i(178), D = i(18), E = "-webkit- -moz- -o- -ms- ".split(" "), O = "webkit Moz O ms ".split(" "), P = [ "transition", "MozTransition", "OTransition", "WebkitTransition" ], L = [ "transitionend", "transitionend", "otransitionend", "webkitTransitionEnd" ], W = [ "animationend", "animationend", "oanimationend", "webkitAnimationEnd" ], R = { +contains: function() { +var t = document.documentElement; +return t.compareDocumentPosition ? function(t, e) { +t = t.dom || t; +e = e.dom || e; +return !!(16 & t.compareDocumentPosition(e)); +} : t.contains ? function(t, e) { +t = t.dom || t; +e = e.dom || e; +var i = 9 === t.nodeType ? t.documentElement : t, n = e.parentNode; +return t === n || !!(n && 1 === n.nodeType && i.contains && i.contains(n)); +} : function(t, e) { +t = t.dom || t; +e = e.dom || e; +for (;e = e.parentNode; ) if (e === t) return !0; +return !1; +}; +}(), +onTransitionEnd: n(!0, L), +unTransitionEnd: n(!1, L), +onAnimationEnd: n(!0, W), +unAnimationEnd: n(!1, W), +css_prefixes: E, +cssom_prefixes: O, +isStyleSupported: function() { +function t(t) { +for (var e = t.charAt(0).toUpperCase() + t.slice(1), n = (t + " " + O.join(e + " ") + e).split(" "), o = 0; o < n.length; o++) if (void 0 !== i[n[o]]) return !0; +return !1; +} +var e = document.createElement("div"), i = e.style; +return t; +}(), +pick: o, +shallowExtend: r, +fullyExtend: s, +fullyDelete: a, +computedHeightBoxSizingBug: _, +getComputedHeight: d, +hoverFix: u, +getEffectiveTLD: f, +descendsObj: c, +insertObj: p, +getValueByReference: h, +isDefaultName: m, +getKeys: $, +supportsDataURI: b, +isIE: function() { +return I.isIE || /Trident\//.test(window.navigator.userAgent); +}(), +pad: w, +formatMinutesAsHours: x, +replaceFileHostname: v, +getLastLogEntries: y, +writeNode: j, +isAgentNick: g, +refocusActiveElement: C, +warnBadEmbed: S, +getAuthLoginUrl: A +}, F = /^Visitor [0-9]{3,}$/, M = /^agent:[0-9]+/i; +t.exports = R; +e(R, "meshim_widget_utils_Utils"); +return R; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n, o = i(7), r = i(5), s = i(90), a = i(10), _ = i(91), l = o(4), d = o(5), u = o(6), c = o(7), h = o(8), p = o(9); +n = { +get: function(t) { +if (!t) return ""; +var e, i; +if (t instanceof _) { +e = t.getValue(); +i = a.descendsObj(s, t.path().slice(1).join(".")); +} else { +e = r.root.$$(t).getValue(); +i = a.descendsObj(s, t); +} +return (e && e.toString(10)) == (i && i.toString(10)) ? i : e || ""; +}, +status: { +online: o(10), +away: o(11), +offline: o(12) +}, +error_message: { +text: o(13), +email: o(14), +textarea: o(15), +select: o(16), +radio: o(17), +checkbox: o(18), +checkbox_multiple: o(19), +department: o(20), +default: o(21) +}, +placeholder: { +phone: o(22) +}, +end_chat_menu_message: o(23), +external_login: { +facebook: o(24), +twitter: o(25), +google: o(26) +}, +chat_log: { +"chat.memberjoin": o(27), +"chat.memberleave": o(28), +"chat.changename": o(29), +"chat.visitorjoin": o(30), +"chat.visitorleave": o(31), +"chat.comment": o(32), +"chat.rating": { +good: o(33), +bad: o(34), +cancel: o(35) +} +}, +chat_panel: { +name_is_typing: o(36), +names_are_typing: o(37), +agents_are_typing: o(38), +chattextarea_placeholder: o(39), +sendbutton_text: o(40), +new_message_below: o(41), +new_messages_below: o(42) +}, +chat_button: { +unread_one: o(43), +unread_many: o(44), +mobile_greeting: { +online: o(45), +offline: o(46) +} +}, +chat_notification: { +attachment: o(47) +}, +connection_status: { +reconnecting: o(48), +idle_disconnect: o(49), +disconnected: o(50), +resuming: o(51), +fast_init: o(52) +}, +cookie_law: { +disabled: o(53), +disabled_mobile: o(54), +privacy_policy: o(55), +request_use_cookies_golion: c +}, +profile: { +unlink: o(56) +}, +system_msg: { +queue: p +}, +branding: { +title_zendesk: "Zendesk", +title_golion: h +}, +pre_chat_offline_form: { +button_message: o(57), +button_chat: o(58), +department_any: o(59), +department_any_required: o(60), +button_disabled: o(61), +operating_hours: { +closed: o(62), +period: o(63) +} +}, +file_upload: { +error: { +size: o(64), +type: o(65), +disabled: o(66), +default: o(67) +} +}, +set_assignee: { +error: { +default: o(68), +zendesk_agent_not_found: u +} +}, +datetime: { +days: [ o(69), o(70), o(71), o(72), o(73), o(74), o(75) ], +weekday: o(76), +weekend: o(77), +everyday: o(78), +all_day: o(79) +}, +back: l, +history: { +view_more: d +} +}; +t.exports = n; +e(n, "meshim_widget_utils_Strings"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return !!t && "false" != t; +} +t.exports = i; +e(i, "jx_core_globals_parseBoolean"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "div"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_div"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +var i = {}, n = {}, o = function(e) { +return !t.nodeType && t != window && t != document || ("FORM" != t.tagName || "submit" != e) && (!u.isCustomEvents && (u.isFF && u.isFF < 9 ? !document.createEvent("event")[e.toUpperCase()] : void 0 === t["on" + e])); +}, r = function(e, n, r) { +if (!e && "function" != typeof n) throw "bad arguments to on / addEventListener"; +if (!(e in i)) { +i[e] = []; +o(e) || s(e); +} +i[e].push(n); +return t; +}, s = function(e) { +if (!(e in n)) { +n[e] = function(n) { +n && (n.stopPropagation || h(n)); +var o, r = i[e], s = r.length, a = !0; +r._active = !0; +for (o = 0; o < s; o++) try { +if (!r[o]) continue; +!1 === r[o].call(t, u.isCustomEvents && n instanceof u.CustomEvent ? n.detail : n) && (a = !1); +} catch (t) { +c.fire("error", t); +} +r._active = !1; +if (r._dirty) { +for (o = 0; o < s; o++) if (!r[o]) { +o == s - 1 ? r.pop() : r[o--] = r.pop(); +s--; +} +r._dirty = !1; +} +if (!1 === a) { +if (n) { +n.preventDefault(); +n.returnValue = !1; +} +return !1; +} +}; +t.attachEvent ? t.attachEvent("on" + e, n[e]) : t.addEventListener && t.addEventListener(e, n[e], !1); +} +}, a = function(e) { +var o = n[e]; +if (o) { +t.attachEvent ? t.detachEvent("on" + e, o) : t.addEventListener && t.removeEventListener(e, o, !1); +delete n[e]; +delete i[e]; +} +}, _ = function(e, o) { +var r = i[e]; +if (r) { +for (var s = 0, _ = r.length; s < _; s++) if (r[s] === o) { +1 == r.length ? n[e] ? a(e) : delete i[e] : r._active ? (r[s] = null, r._dirty = !0) : s == _ - 1 ? r.pop() : r[s] = r.pop(); +break; +} +return t; +} +}, l = function() { +if (i && n) { +for (var t in n) n.hasOwnProperty(t) && a(t); +i = n = null; +} +}, d = function(e, n) { +if (!u.isCustomEvents || o(e)) { +var r = i[e], s = !0; +if (r && r.length) { +r._active = !0; +var a, _, l; +for (a = 0, _ = r.length; a < _; a++) try { +if (!r[a]) continue; +l = r[a].call(t, n); +!1 === l && (s = !1); +} catch (t) { +c.fire("error", t); +} +r._active = !1; +if (r._dirty) { +for (a = 0; a < _; a++) if (!r[a]) { +a == _ - 1 ? r.pop() : r[a--] = r.pop(); +_--; +} +r._dirty = !1; +} +} +return s; +} +return t.dispatchEvent(new u.CustomEvent(e, { +bubbles: !1, +cancelable: !0, +detail: n +})); +}, h = function(t) { +t.preventDefault = h.preventDefault; +t.stopPropagation = h.stopPropagation; +t.target = t.srcElement; +}; +h.preventDefault = function() { +this.returnValue = !1; +}; +h.stopPropagation = function() { +this.cancelBubble = !0; +}; +var p = { +fire: d, +on: r, +un: _, +unextendEvents: l +}; +if (e) return p; +for (var f in p) p.hasOwnProperty(f) && (t[f] = p[f]); +u.bugs.leaksMemory && u.bugs.leaksMemory(function() { +for (var e in p) p.hasOwnProperty(e) && (t[e] = null); +}); +return t; +} +function o(t) { +a(0, t); +} +function r(t) { +a(1, t); +} +function s(t) { +a(2, t); +} +function a(t, e) { +t <= h ? e() : p[t].push(e); +} +function _(t) { +for (;h < t; ) { +h++; +for (var e = 0; e < p[h].length; e++) p[h][e](); +p[h] = null; +} +} +function l() { +h > 0 || (document.body && document.body.firstChild ? _(1) : window.setTimeout(l, 200)); +} +function d() { +_(2); +} +var u = i(8), c = { +extend: n, +body: n(document.body, !0), +window: n(window, !0), +document: n(document, !0), +runAfterScriptReady: o, +runAfterFirstChildReady: r, +runAfterDomReady: s +}; +c.extend(c); +var h = 0, p = [ [], [], [], [] ]; +l(); +!function() { +var t; +if (u.isSafari) t = window.setInterval(function() { +if (/loaded|complete/i.test(document.readyState)) { +window.clearInterval(t); +d(); +} +}, 20); else if (document.addEventListener) /loaded|complete/i.test(document.readyState) ? d() : document.addEventListener("DOMContentLoaded", d, !1); else if (u.isIE) { +window.attachEvent("onload", d); +var e = document.createElement("document:ready"); +t = window.setInterval(function() { +if (/loaded|complete/i.test(document.readyState)) { +e = null; +window.clearInterval(t); +d(); +} else { +try { +e.doScroll("left"); +} catch (t) { +return; +} +e = null; +window.clearInterval(t); +d(); +} +}, 200); +} +}(); +t.exports = c; +e(c, "jx_core_Events"); +return c; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +selectable: "false", +class: "icon_font" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = function() { +var t = { +zopim: "", +message: "💬", +tick: "✔", +cross: "✖", +popout: "↗", +popin: "↙", +minimize: "−", +plus: "+", +smiley: "☺", +happy: "", +happier: "", +sad: "", +thumbsup: "👍", +thumbsdown: "👎", +sadder: "", +brand: "", +brand_suffix: "", +brand_extended: "", +avatar_placeholder: "", +email: "📧", +facebook: "", +twitter: "", +google: "", +facebook_out: "", +twitter_out: "", +google_out: "", +badge_default: "", +warning_sign: "⚠", +arrow_left: "←", +arrow_up: "↑", +arrow_down: "↓", +arrow_down_long: "⇩", +arrow_right: "→", +pencil: "✎", +dustbin: "", +sound_on: "🔊", +sound_off: "🔇", +send: "»", +upload: "⇧", +exclamation: "!", +brand_zendesk: "", +google_2016: "", +google_2016_out: "", +paperclip: "📎", +picture: "🖼", +zendesk_2016: "", +zendesk_chat_2016: "", +messenger_squircle: "", +twitter_squircle: "", +messenger_round: "", +twitter_round: "", +clock_stroke: "🕐" +}; +c.setIcon = function(e) { +c.setHTML(t[e] || e || ""); +}; +c.setFont = function(t) { +c.setFontFamily(t || ""); +}; +}(); +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +fontFamily: 'zopim, "Segoe UI Symbol", "Arial Unicode MS", "Lucida Sans Unicode", sans-serif', +speak: "none", +fontStyle: "normal", +fontWeight: "normal", +lineHeight: 1, +WebkitFontSmoothing: "antialiased" +}, +"&:focus": { +outline: "none" +} +}; +s(t, "meshim_widget_widgets_IconFont"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i) { +s.ok("function" == typeof t, "1st argument to nextTick must be a function"); +if (i) for (var n = l.length; n-- > 0; ) if (l[n][0] === t && l[n][1] === e) return; +l.push([ t, e ]); +r || (r = setTimeout(o, 0)); +} +function o() { +var t = +new Date() + _, e = l; +l = []; +r && (r = clearTimeout(r)); +for (var i = 0, n = e.length; i < n; i++) { +try { +e[i][0].apply(e[i][1]); +} catch (t) { +a.fire("error", t); +} +if (+new Date() > t) { +if (i < n - 1) { +e.splice(0, i + 1); +if (l.length) l = e.concat(l); else { +l = e; +r = setTimeout(o, 0); +} +} +break; +} +} +} +var r, s = i(94), a = i(14), _ = 100, l = []; +n.tick = o; +t.exports = n; +e(n, "jx_core_globals_nextTick"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(2), o = i(7), r = i(1), s = i(71), a = s, _ = i(6), l = i(5), d = i(9); +s = function(t, e, i, r, _) { +function u() { +c.fixOverflowTitle(); +} +if (!(this instanceof s)) return new s(t, e, i, r, _); +if (!s.__jx__jcss_generated) { +n.generate(this, s.prototype.__jx__fqname, s.__jx__jcss, null, s); +s.__jx__jcss_generated = !0; +} +_ || (_ = {}); +_.type || (_.type = "button"); +a.call(this, t, e, i, r, _); +d.mobile(this); +d.rtl(this); +var c = this; +if (r && 1 == r.length && ("string" == typeof r[0] || r[0].bind)) { +if (o && o.onLanguage) { +o.onLanguage(u); +this.onDestruction(function() { +o.unLanguage(u); +}); +} +this.autobind(l.root.$("livechat").$("ui").$("theme_loaded$bool"), "value", function(t) { +t && c.fixOverflowTitle(); +}); +} +}; +s.__jx__jcss = { +"**self": { +appearance: "none", +width: "48%", +overflow: "hidden", +textOverflow: "ellipsis", +whiteSpace: "nowrap", +color: "$$buttonColor", +background: "$$buttonBg", +"paddingTop, paddingBottom": "$$buttonPadding", +"paddingLeft, paddingRight": "$$buttonPaddingHorizontal", +borderWidth: "$$buttonBorderWidth", +borderStyle: "$$buttonBorderStyle", +borderColor: "$$buttonBorderColor", +borderRadius: "$$buttonRadius", +boxShadow: "$$buttonShadow", +fontWeight: "$$buttonFontWeight", +wordWrap: "normal", +"*overflow": "visible", +cursor: "pointer", +"&:hover, &:focus": { +color: "$$buttonHoverColor", +background: "$$buttonHoverBg", +borderColor: "$$buttonHoverBorderColor", +boxShadow: "$$buttonHoverShadow" +}, +"&:active": { +color: "$$buttonActiveColor", +background: "$$buttonActiveBg", +borderColor: "$$buttonActiveBorderColor", +boxShadow: "$$buttonActiveShadow" +} +}, +"&.secondary": { +color: "$$buttonSecColor", +background: "$$buttonSecBg", +borderColor: "$$buttonSecBorderColor", +boxShadow: "$$buttonSecShadow", +"&:hover, &:focus": { +color: "$$buttonSecHoverColor", +background: "$$buttonSecHoverBg", +borderColor: "$$buttonSecHoverBorderColor", +boxShadow: "$$buttonSecHoverShadow" +}, +"&:active": { +color: "$$buttonSecActiveColor", +background: "$$buttonSecActiveBg", +borderColor: "$$buttonSecActiveBorderColor", +boxShadow: "$$buttonSecActiveShadow" +} +}, +"&.disabled": { +opacity: "0.5", +cursor: "default", +"&:hover, &:focus": { +color: "$$buttonColor", +background: "$$buttonBg", +borderColor: "$$buttonBorderColor", +boxShadow: "$$buttonShadow" +} +}, +"&.fit": { +width: "auto", +"paddingLeft, paddingRight": "$$buttonPadding" +}, +"&.wide": { +width: "100%" +}, +"&.short": { +"paddingTop, paddingBottom": "$$buttonShortPadding" +}, +"&.short.mobile": { +"paddingTop, paddingBottom": "$$buttonPadding" +}, +"&.short.mobile.short_mobile": { +"paddingTop, paddingBottom": "$$buttonShortPadding" +} +}; +s.prototype = r(a.prototype); +var u = [ "fontFamily", "fontSize", "fontWeight", "fontStyle" ]; +s.prototype.fixOverflowTitle = function() { +if ("en" != o.language) { +s.dummy || (s.dummy = new _(this.doc.body, null, null, null, { +position: "absolute", +visibility: "hidden" +})); +var t = this.getText(), e = this.getComputedStyle(); +if (e) { +for (var i = 0, n = u.length; i < n; i++) s.dummy.style[u[i]] = e[u[i]]; +s.dummy.setText(t); +var r = s.dummy.getWidth(), a = parseInt(e.width, 10) || 0 - (parseInt(e.paddingLeft, 10) || 0) - (parseInt(e.paddingRight, 10) || 0) - (parseInt(e.borderLeftWidth, 10) || 0) - (parseInt(e.borderRightWidth, 10) || 0); +this.setTitle(r > 0 && a > 0 && r > a ? t : ""); +} +} else this.setTitle(""); +}; +s.prototype.__jx__super = a; +t.exports = s; +e(s, "meshim_widget_widgets_Button"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +if (window.$zopim && window.$zopim.s) return window.$zopim.s.src; +for (var t, e = document.getElementsByTagName("script"), i = /.*zopim.(com|net|org)\//, n = 0, o = e.length; n < o; n++) { +t = e[n].src || ""; +if (i.test(t)) return t; +} +return ""; +} +function o(t) { +t && !p.test(t) && (t = null); +var e = "id." + (d.brandDomain || "zopim.com"); +return "https://" + (t || e) + "/authenticated/web/jwt"; +} +var r = i(26), s = i(46), a = i(8), _ = i(179), l = i(59), d = function() { +for (var t = n(), e = [ /\/?[?]/, /\/livechat\// ], i = [], o = 0; o < e.length; o++) { +i = t.split(e[o]); +if (i.length) break; +} +var r = i[1], s = i[0], a = /^(https?:)?\/\/[^\/]+/.exec(s), _ = s.replace(/^(https?:)?\/\//i, "").split("/")[0], l = _.replace(/(.+\.)(?=.+\..+)/, ""), d = i[0].split("/"); +d = d.pop() == _ ? i[0] : d.join("/"); +a = a && "zopim.com" !== _ ? a[0] : "https://v2.zopim.com"; +return { +accountKey: r, +brandDomain: l, +baseURL: d, +rootURL: a +}; +}(), u = "https://v2.zopim.com/widget", c = u + "/images", h = _.map([ ".zopim.com", ".zopim.org", ".zdch.at" ], l.escape), p = new RegExp("^[a-z][a-z0-9_-]*(\\.[a-z][a-z0-9_-]*)*(" + h.join("|") + ")(:\\d+)?$", "i"); +r(s.baseURL, !0) && (s.baseURL = a.secureURL(d.baseURL)); +var f = { +ASSETS_URL: u, +IMAGES_URL: c, +SOUNDS_URL: "https://v2.zopim.com/widget/sounds", +FONTS_URL: "https://v2.zopim.com/widget/fonts", +ASSETS_LEGACY: document.location.protocol + "//cdn.zopim.com/assets", +BRANDING_URL: "https://www.zopim.com", +AVATARS: { +CONCIERGE: c + "/avatar_simple_agent.png", +AGENT: c + "/avatar_simple_agent.png", +VISITOR: c + "/avatar_simple_visitor.png", +DEFAULT: c + "/avatar_simple_visitor.png" +}, +ACCOUNT_KEY: d.accountKey, +BRAND_DOMAIN: d.brandDomain, +COUNTRY_CODE: function() { +var t = 'GB'.toUpperCase(); +"<" == t.charAt(0) && (t = "geo"); +return t; +}(), +AUTH_URL: "https://www.zopim.com/auth/$NAME/$KEY-$MID", +AUTH_LOGOUT_URL: "https://www.zopim.com/auth/logout/$KEY-$MID", +AUTH_SERVER_URL: o(), +IS_POPOUT: window.$zopim_popout, +POPOUT_WINDOW_PREFIX: "zlivechatpopout_", +POPOUT_URL: d.rootURL + "/widget/livechat.html", +CALLBACK_FILE_UPLOAD_PATH: "/client/widget/upload", +FILE_UPLOAD_PATH: "/client/widget/uploads", +FILE_UPLOAD_MAX: 20971520, +RESEND_MSG_TIMEOUT: 5e3, +FILE_REPLACE_SOURCE: /^(\s*https?\:\/\/v2(?:assets|uploads)\.zopim\.)com(\/)/i, +FILE_REPLACE_RESULT: "$1io$2", +CHAT_LOG_REMEMBER_COUNT: 10, +getAuthServerURL: o +}; +t.exports = f; +e(f, "meshim_widget_Config"); +return f; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName || (s.tagName = "label"); +r.call(this, t, e, i, o, s); +null == s.selectable && this.setSelectable(!1); +} +var o = i(1), r = i(6); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_Label"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return "function" == typeof t; +} +t.exports = i; +e(i, "jx_core_globals_isFunction"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return "string" == typeof t; +} +t.exports = i; +e(i, "jx_core_globals_isString"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return "[object Array]" == Object.prototype.toString.call(t); +} +t.exports = i; +e(i, "jx_core_globals_isArray"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +return _(t) && "%" == t.substr(t.length - 1) ? parseInt(t, 10) + "%" : parseInt(t, 10); +} +function o() { +if (!o.alreadyHacked) { +o.alreadyHacked = 1; +if (a.isStrict) { +document.body.parentNode.style.background = "#fff url(https://) fixed"; +document.body.className = document.body.className; +} else if ("fixed" != document.body.currentStyle.backgroundAttachment) { +if ("none" != document.body.currentStyle.backgroundImage) { +var t, e, i = document.createElement("div"), n = i.style, r = document.body.currentStyle, s = !1, _ = 0; +n.backgroundAttachment = r.backgroundAttachment; +n.backgroundColor = r.backgroundColor; +n.backgroundImage = r.backgroundImage; +n.backgroundPositionX = r.backgroundPositionX; +n.backgroundPositionY = r.backgroundPositionY; +n.backgroundRepeat = r.backgroundRepeat; +n.position = "absolute"; +n.zIndex = -1; +n.top = n.left = 0; +n.width = "100%"; +document.body.insertBefore(i, document.body.firstChild); +var l = function() { +if (!s && _) { +t += document.body.clientWidth - _; +n.width = t + "px"; +_ = document.body.clientWidth; +} +e || (e = setTimeout(function() { +n.width = 0; +document.body.className = document.body.className; +t = Math.max(document.body.scrollWidth, document.body.clientWidth); +n.width = t + "px"; +_ = document.body.clientWidth; +s = document.body.scrollWidth > document.body.clientWidth; +e = null; +}, 0)); +}; +setTimeout(l, 0); +n.setExpression("height", 'document.body.scrollHeight+"px"'); +l(); +} +document.body.style.backgroundImage = "url(https://)"; +document.body.style.backgroundAttachment = "fixed"; +} +} +} +function r(t) { +for (;t.defaultPlacement; ) t = t.defaultPlacement; +return t; +} +function s(t, e, i, n, o) { +if (!(this instanceof s)) return new s(t, e, i, n, o); +if (t) { +o || (o = {}); +this.jx_id = e = e || l.generateID(); +this._top = this._bottom = this._left = this._right = this._width = this._height = NaN; +this._position = null; +this.pos = ""; +this.offsetx = 0; +this.offsety = 0; +this._snaps = [ 0, 0, 0, 0 ]; +this.useDisplay = !1; +this.doc = this.ownerDocument = t.ownerDocument; +this.parentNode = t; +this.attributes = o; +this.tagName = o.tagName; +this.isNew = !0; +this.dom = this.doc.createElement(this.tagName); +this.dom.jx_wrapper = this; +this.style = this.dom.style; +this.children = []; +this._autobinds = []; +w.call(this); +n && this.addChildren(n); +t.appendChild(t instanceof s ? this : this.dom); +this.setStyle(i); +this.setAttributes(o); +this.__jx__fqname && this.addClass(this.__jx__fqname); +e && l.set(e, this); +} +} +var a = i(8), _ = i(21), l = i(3), d = i(1), u = i(22), c = i(24), h = i(7), p = i(16), f = i(94), g = i(28), m = i(12), $ = i(26), b = i(186).toCamelCase, w = i(185); +a.isIE && document.execCommand("BackgroundImageCache", !1, !0); +var x = "background background-position border border-color border-style border-width color border-top border-right border-bottom border-left clear padding margin margin-top margin-right margin-bottom margin-left display line-height letter-spacing visibility outline overflow overflow-x overflow-y font-family font-size font-weight font-style text-align text-decoration text-transform vertical-align z-index cursor min-height min-width max-height max-width".split(" "), v = "title checked href media name src target dir data-test-id".split(" "), y = a.bugs.ie.cssFixed; +s.prototype = d(w.prototype); +s.prototype.addChildren = function(t) { +var e = t && t.length; +if (t && e) for (var i, n, o = r(this), s = o.ownerDocument, a = 0; a < e; a++) { +i = t[a]; +if (u(i)) o.appendChild(i); else { +n = s.createTextNode(i); +o.appendChild(n); +"function" == typeof i.bind && i.bind(n); +} +} +}; +s.prototype.appendChild = function(t) { +if (u(t)) return t[0](this, t[1], t[2], t[3], t[4]); +-1 == c(t, this.children) && 3 != t.nodeType && this.children.push(t); +t.parentNode && t.parentNode != this && t.parentNode.removeChild(t.parentNode instanceof s ? t : t.dom || t); +t.dom && (t.parentNode = this); +this.dom.appendChild(t.dom || t); +return t; +}; +s.prototype.removeChild = function(t) { +try { +if (t.dom) { +this.dom.removeChild(t.dom); +t.parentNode = null; +} else this.dom.removeChild(t); +var e = c(t, this.children); +if (-1 != e) return this.children.splice(e, 1); +} catch (t) {} +}; +s.prototype.insertBefore = function(t, e) { +var i = c(e, this.children); +e && -1 == i && (e = null); +if (t.parentNode) { +var n = c(t, this.children); +if (-1 != n) { +this.children.splice(n, 1); +i > n && i--; +} else t.parentNode.removeChild(t); +} +t.dom && (t.parentNode = this); +e ? this.children.splice(i, 0, t) : this.children.push(t); +this.dom.insertBefore(t.dom || t, e ? e.dom || e : null); +}; +s.prototype.insertAfter = function(t, e) { +this.insertBefore(t, e && e.getNextSibling()); +}; +s.prototype.prependTo = function() {}; +s.prototype.cloneNode = function(t) { +return this.dom.cloneNode(t); +}; +s.prototype.getNextSibling = function() { +return this.dom.nextSibling && this.dom.nextSibling.jx_wrapper; +}; +s.prototype.getPreviousSibling = function() { +return this.dom.previousSibling && this.dom.previousSibling.jx_wrapper; +}; +s.prototype.getFirstChild = function() { +return this.dom.firstChild && this.dom.firstChild.jx_wrapper; +}; +s.prototype.getLastChild = function() { +return this.dom.lastChild && this.dom.lastChild.jx_wrapper; +}; +var j = a.isTextContent; +s.prototype.getText = function() { +return this.dom.textContent || this.dom.innerText || ""; +}; +s.prototype.setText = function(t) { +if (this.dom) { +h && h.unbind && h.unbind(this.dom); +t && "function" == typeof t.bind && t.bind(this.dom); +j ? this.dom.textContent = t : this.dom.innerText = t; +return this; +} +}; +s.prototype.getHTML = function() { +return this.dom.innerHTML; +}; +s.prototype.setHTML = function(t) { +this.dom.innerHTML = t; +return this; +}; +s.prototype.destroy = function() { +if (this._destructors) for (var t = this._destructors, e = t.length, i = 0; i < e; i++) t[i].call(this); +this._autobinds && this.autounbind(); +this.dom.jx_wrapper = null; +"function" == typeof this.empty && this.empty(); +this.parentNode && this.parentNode.removeChild(this.parentNode instanceof s ? this : this.dom); +this.parentNode = null; +l.unset(this); +}; +s.prototype.empty = function() { +for (var t; this.children.length; ) { +t = this.children.pop(); +"function" == typeof t.destroy ? t.destroy() : 1 == t.nodeType && l.proto.destroy.call(t); +} +}; +s.prototype.onDestruction = function(t) { +(this._destructors || (this._destructors = [])).push(t); +}; +s.prototype.getClassName = s.prototype.getClass = function() { +return this.dom.className; +}; +s.prototype.setClassName = s.prototype.setClass = function(t, e) { +this.dom.className = (e ? t : this.__jx__fqname + " " + t) + (this._pseudo ? " " + this._pseudo : ""); +return this; +}; +s.prototype.setAddClass = s.prototype.addClass = function(t) { +if (!t) return this; +this.dom.className ? this.hasClass(t) || (this.dom.className += " " + t) : this.dom.className = t; +return this; +}; +s.prototype.removeClass = function(t) { +if (!t || !this.dom.className || !this.hasClass(t)) return this; +this.dom.className = (" " + this.dom.className + " ").replace(" " + t + " ", " ").slice(1, -1); +return this; +}; +s.prototype.hasClass = function(t) { +return !!t && !!this.dom.className && -1 != (" " + this.dom.className + " ").indexOf(" " + t + " "); +}; +s.prototype.autobind = function(t, e, i) { +if (this._autobinds) { +this._autobinds.push([ t, e, i ]); +t.on(e, i); +} +}; +s.prototype.autounbind = function(t, e, i) { +if (this._autobinds) { +var n, o, r = this._autobinds; +if (t && e && i) for (n = r.length - 1; n >= 0; n--) { +o = r[n]; +if (o[0] == t && o[1] == e && o[2] == i) { +r.splice(n, 1); +o[0].un(o[1], o[2]); +return; +} +} else if (t || e || i) ; else { +if (!r) return; +for (n = r.length - 1; n >= 0; n--) { +o = r[n]; +o[0].un(o[1], o[2]); +} +delete this._autobinds; +} +} +}; +s.prototype.getAttribute = function(t) { +return this.dom.getAttribute(t) || this.dom[t]; +}; +s.prototype.setAttribute = function(t, e) { +this.dom.setAttribute(t, e); +return this; +}; +s.prototype.removeAttribute = function(t) { +this.dom.removeAttribute(t); +return this; +}; +s.prototype.setAttributes = function(t) { +var e, i; +for (i in t) if (t.hasOwnProperty(i)) { +e = b("set-" + i); +"function" == typeof this[e] && this[e](t[i]); +} +return this; +}; +s.prototype.getStyle = function(t) { +return this.dom.style[b(t)]; +}; +s.prototype.getComputedStyle = function(t) { +t = t && b(t); +var e; +if (window.getComputedStyle) e = window.getComputedStyle(this.dom, null); else { +if (!this.dom.currentStyle) return; +e = this.dom.currentStyle; +} +return t ? e[t] : e; +}; +s.prototype.setStyle = function(t) { +var e, i; +if (1 == arguments.length && _(t)) { +if (!t) return this; +t = t.split(";"); +for (e = 0; e < t.length; e++) if (!t[e].match(/^\s*$/)) { +i = t[e].match(/\s*([^:]+):\s*(.*?)\s*$/); +!i && t[e].length || this.setOneStyle(i[1], i[2]); +} +} else if (1 == arguments.length && "object" == typeof t) for (var n in t) t.hasOwnProperty(n) && this.setOneStyle(n, t[n]); else if (arguments.length > 1) for (e = 0; e < arguments.length; e += 2) this.setOneStyle(arguments[e], arguments[e + 1]); +return this; +}; +s.prototype.setOneStyle = function(t, e) { +var i = b("set-" + t); +"function" == typeof this[i] ? this[i](e) : this.setCSSStyle(t, e); +return this; +}; +s.prototype.setCSSStyle = function(t, e) { +try { +this.dom.style[b(t)] = e; +} catch (t) {} +return this; +}; +s.prototype.getScrollWidth = function() { +return this.dom.scrollWidth; +}; +s.prototype.getScrollHeight = function() { +return this.dom.scrollHeight; +}; +s.prototype.getClientWidth = function() { +return this.dom.clientWidth; +}; +s.prototype.getClientHeight = function() { +return this.dom.clientHeight; +}; +s.prototype.getTop = function() { +return this.dom.offsetTop; +}; +s.prototype.getLeft = function() { +return this.dom.offsetLeft; +}; +s.prototype.getWidth = function() { +return this.dom.offsetWidth; +}; +s.prototype.getHeight = function() { +return this.dom.offsetHeight; +}; +s.prototype.setTop = function(t) { +this._top = n(t); +this.solveConstraints(); +return this; +}; +s.prototype.setLeft = function(t) { +this._left = n(t); +this.solveConstraints(); +return this; +}; +s.prototype.setBottom = function(t) { +this._bottom = n(t); +this.solveConstraints(); +return this; +}; +s.prototype.setRight = function(t) { +this._right = n(t); +this.solveConstraints(); +return this; +}; +s.prototype.setWidth = function(t) { +this._width = n(t); +this.solveConstraints(); +return this; +}; +s.prototype.setHeight = function(t) { +this._height = n(t); +this.solveConstraints(); +return this; +}; +s.prototype.getScrollLeft = function() { +return this.dom.scrollLeft; +}; +s.prototype.setScrollLeft = function(t) { +this.dom.scrollLeft = t; +return this; +}; +s.prototype.getScrollTop = function() { +return this.dom.scrollTop; +}; +s.prototype.setScrollTop = function(t) { +this.dom.scrollTop = t; +return this; +}; +s.prototype.setFloat = function(t) { +function e() { +var e = h && h.flip ? h.flip(t) : t; +a.isIE ? i.dom.style.styleFloat = e : i.dom.style.cssFloat = e; +} +var i = this; +if (h && h.onLanguage && !this._onLanguageFloat) { +h.onLanguage && h.onLanguage(e); +this.onDestruction(function() { +h.unLanguage && h.unLanguage(e); +}); +this._onLanguageFloat = !0; +} +e(); +return this; +}; +s.prototype.solveConstraints = function() { +isNaN(this._top) || isNaN(this._height) || (this._bottom = NaN); +isNaN(this._left) || isNaN(this._width) || (this._right = NaN); +this._width < 0 && (this._width = 0); +this._height < 0 && (this._height = 0); +this.applyConstraints(); +}; +s.prototype.applyConstraints = function() { +var t = this.dom.style, e = this; +if (l.hasParentNode(this.dom)) if (a.bugs.ie.cssFixed && "fixed" == this._position) p(function() { +e.dom && e.hackFixed(); +}); else { +if (a.bugs.ie.cssBottomRight && (!isNaN(this._left) && !isNaN(this._right) || !isNaN(this._top) && !isNaN(this._bottom))) { +this.appendToParent && this.appendToParent(!0); +o(); +var i, n, r = isNaN(this._left) ? "" : this._left, s = isNaN(this._right) ? "" : this._right, d = isNaN(this._width) ? "" : this._width, u = isNaN(this._top) ? "" : this._top, c = isNaN(this._bottom) ? "" : this._bottom, h = isNaN(this._height) ? "" : this._height, f = "BackCompat" == this.dom.ownerDocument.compatMode; +if ("fixed" == this._position && this.dom.ownerDocument == document) if (f) { +n = "document.body.clientHeight"; +i = "document.body.clientWidth"; +} else { +n = "document.documentElement.clientHeight"; +i = "document.documentElement.clientWidth"; +} else { +n = "this.offsetParent.clientHeight"; +i = "this.offsetParent.clientWidth"; +} +if (a.isIE6) { +if (!isNaN(this._left) && !isNaN(this._right)) { +s = ""; +d = [ i, this._left, this._right ].join("-"); +} +if (!isNaN(this._top) && !isNaN(this._bottom)) { +c = ""; +h = [ n, this._top, this._bottom ].join(" - "); +} +} +var g = function(e, i) { +t[e] = ""; +t.removeExpression(e); +"number" == typeof i ? t[e] = i + "px" : _(i) && "%" == i.substr(i.length - 1) ? t[e] = i : _(i) && i.length && t.setExpression(e, i); +}; +g("left", r); +g("right", s); +g("width", d); +g("top", u); +g("bottom", c); +g("height", h); +} +!function() { +t.left = _(e._left) ? e._left : isNaN(e._left) ? "" : e._left + "px"; +t.right = _(e._right) ? e._right : isNaN(e._right) ? "" : e._right + "px"; +if (e._width != e.__width) { +t.width = _(e._width) ? e._width : isNaN(e._width) ? "" : e._width + "px"; +e.__width = e._width; +} +}(); +!function() { +t.top = _(e._top) ? e._top : isNaN(e._top) ? "" : e._top + "px"; +t.bottom = _(e._bottom) ? e._bottom : isNaN(e._bottom) ? "" : e._bottom + "px"; +if (e._height != e.__height) { +t.height = _(e._height) ? e._height : isNaN(e._height) ? "" : e._height + "px"; +e.__height = e._height; +} +}(); +} +}; +s.prototype.hackFixed = function() { +var t = this.dom.style; +o(); +this.appendToParent && this.appendToParent(!0); +this._bottom < 0 && (this._bottom = 0); +this._right < 0 && (this._right = 0); +f.ok(isNaN(this._left) != isNaN(this._right), "One and only one of left/right must be set"); +f.ok(isNaN(this._top) != isNaN(this._bottom), "One and only one of top/bottom must be set"); +f.ok(!isNaN(this._width), "Width must be set"); +f.ok(!isNaN(this._height), "Height must be set"); +f.ok(this.ownerDocument == document, "Fixed element must be top level element"); +if (this._height != this.__height) { +t.height = this._height + "px"; +this.__height = this._height; +} +if (this._width != this.__width) { +t.width = this._width + "px"; +this.__width = this._width; +} +var e, i, n, r, s = this.getHeight(), l = this.getWidth(); +if (a.isQuirks) { +r = "document.body.clientHeight"; +n = "document.body.clientWidth"; +e = "(dummye34cf6=document.body.scrollLeft)+"; +i = "(dummye34cf6=document.body.scrollTop )+"; +} else { +r = "document.documentElement.clientHeight"; +n = "document.documentElement.clientWidth"; +e = "(dummye34cf6=document.documentElement.scrollLeft)+"; +i = "(dummye34cf6=document.documentElement.scrollTop )+"; +} +isNaN(this._left) ? _(this._left) ? e += parseInt(this._left, 10) / 100 * (a.isQuirks ? document.body : document.documentElement).clientWidth : e += n + "-" + (l + this._right) : e += this._left; +isNaN(this._top) ? _(this._top) ? i += parseInt(this._top, 10) / 100 * (a.isQuirks ? document.body : document.documentElement).clientHeight : i += r + "-" + (s + this._bottom) : i += this._top; +a.isIE6 && "rtl" == document.body.currentStyle.direction && (a.isQuirks ? e += "-(document.body.scrollWidth-document.body.clientWidth)" : e += "-(document.documentElement.scrollWidth-document.documentElement.clientWidth)"); +t.setExpression("left", e + '+"px"'); +t.setExpression("top", i + '+"px"'); +}; +s.prototype.dock = function(t, e, i) { +this.pos = t; +g(e) && (this.offsetx = e); +g(i) && (this.offsety = i); +this.doDock(); +this.on("jx:resize", this.doDock); +}; +s.prototype.doDock = function() { +var t, e, i, n, o, r, s, a = isNaN(this._width) ? this.dom.offsetWidth : this._width, _ = isNaN(this._height) ? this.dom.offsetHeight : this._height; +t = e = i = n = NaN; +o = r = s = 0; +switch (this.pos.charAt(0)) { +case "t": +t = 0; +break; + +case "m": +t = "50%"; +break; + +case "b": +e = 0; +} +switch (this.pos.charAt(1)) { +case "l": +i = 0; +break; + +case "c": +i = "50%"; +break; + +case "r": +n = 0; +} +"50%" == t && (o = -_ / 2); +"50%" == i && (r = -a / 2); +this.offsety >= 0 || !isNaN(t) || "string" == typeof t ? o += this.offsety : s = -this.offsety; +r += this.offsetx; +this.setMargin([ o + "px", 0, s + "px", r + "px" ].join(" ")).setTop(t).setBottom(e).setLeft(i).setRight(n); +}; +s.prototype.setBounds = function(t) { +if (!u(t)) { +t = t.split(" "); +t[0] = parseInt(t[0], 10); +t[1] = parseInt(t[1], 10); +t[2] = parseInt(t[2], 10); +t[3] = parseInt(t[3], 10); +} +if (y) { +t[1] = Math.max(0, t[1]); +t[2] = Math.max(0, t[2]); +} +this._bounds = t; +return this; +}; +s.prototype.setSnaps = function(t) { +if (!u(t)) { +t = t.split(" "); +t[0] = parseInt(t[0], 10); +t[1] = parseInt(t[1], 10); +t[2] = parseInt(t[2], 10); +t[3] = parseInt(t[3], 10); +} +this._snaps = [ Math.max(0, t[0]), Math.max(0, t[1]), Math.max(0, t[2]), Math.max(0, t[3]) ]; +return this; +}; +s.prototype.applyBounds = function() { +if (this._bounds) { +this._left < this._bounds[3] + this._snaps[3] && (this._left = this._bounds[3]); +this._right < this._bounds[1] + this._snaps[1] && (this._right = this._bounds[1]); +this._top < this._bounds[0] + this._snaps[0] && (this._top = this._bounds[0]); +this._bottom < this._bounds[2] + this._snaps[2] && (this._bottom = this._bounds[2]); +var t = a.isQuirks ? document.body : document.documentElement, e = isNaN(this._width) ? this.dom.offsetWidth : this._width, i = t.clientWidth - e, n = t.clientHeight - this.dom.offsetHeight; +i - this._left <= this._bounds[1] + this._snaps[1] && (this._left = i - this._bounds[1]); +i - this._right <= this._bounds[3] + this._snaps[3] && (this._right = i - this._bounds[3]); +n - this._top <= this._bounds[2] + this._snaps[2] && (this._top = n - this._bounds[2]); +n - this._bottom <= this._bounds[0] + this._snaps[0] && (this._bottom = n - this._bounds[0]); +} +}; +s.prototype.moveTo = function(t, e) { +this._bottom = this._right = NaN; +this._top = e; +this._left = t; +this.applyBounds(); +this.applyConstraints(); +return this; +}; +s.prototype.move = function(t, e) { +isNaN(this._left) && isNaN(this._right) && (this._left = 0); +isNaN(this._top) && isNaN(this._bottom) && (this._top = 0); +isNaN(this._left) || (this._left += t); +isNaN(this._right) || (this._right -= t); +isNaN(this._top) || (this._top += e); +isNaN(this._bottom) || (this._bottom -= e); +this.applyBounds(); +this.applyConstraints(); +}; +s.prototype.resizeBy = function(t, e, i, n) { +if (t) { +isNaN(this._width) && (this._width = this.dom.offsetWidth); +this._width = Math.max(i || 0, this._width + t); +} +if (e) { +isNaN(this._height) && (this._height = this.dom.offsetHeight); +this._height = Math.max(n || 0, this._height + e); +} +this.applyBounds(); +this.applyConstraints(); +this.fire("jx:resize"); +return this; +}; +s.prototype.setVisible = function(t) { +"none" != t && "block" != t || (this.useDisplay = !0); +"none" != t && "hidden" != t && "false" != t && t ? this.show() : this.hide(); +return this; +}; +s.prototype.isVisible = function() { +var t = this.dom.style; +return this.useDisplay ? "none" != t.display : "visible" == t.visibility; +}; +s.prototype.show = function() { +var t = this.dom.style; +if (this.useDisplay) { +if (t.display != (this._initialDisplay || "block")) { +t.display = this._initialDisplay || "block"; +this.fire("show"); +} +} else if ("visible" != t.visibility) { +t.visibility = "visible"; +this.fire("show"); +} +return this; +}; +s.prototype.hide = function() { +var t = this.dom.style; +if (this.useDisplay) { +if ("none" != t.display) { +this._initialDisplay = "none" != t.display && t.display; +t.display = "none"; +this.fire("hide"); +} +} else if ("hidden" != t.visibility) { +t.visibility = "hidden"; +this.fire("hide"); +} +return this; +}; +s.prototype.toggle = function() { +return this.isVisible() ? this.hide() : this.show(); +}; +s.prototype.getXY = function() { +var t, e, i = this.dom.offsetParent; +t = this.dom.offsetLeft; +e = this.dom.offsetTop; +for (;i; ) { +t += i.offsetLeft; +e += i.offsetTop; +i = i.offsetParent; +} +return [ t, e ]; +}; +s.prototype.getFixedXY = function() { +var t, e, i = this.dom, n = this.dom.ownerDocument, o = n.documentElement, r = n.defaultView || i.parentWindow || !1, s = { +top: 0, +left: 0 +}, a = o.clientTop || 0, _ = o.clientLeft || 0, l = r.pageYOffset || o.scrollTop, d = r.pageXOffset || o.scrollLeft; +"getBoundingClientRect" in i && (s = i.getBoundingClientRect()); +e = s.top + l - a; +t = s.left + d - _; +return [ t, e ]; +}; +s.prototype.setOpacity = function(t) { +t = Math.max(Math.min(t, 1), 0); +a.isIE < 9 ? this.dom.style.filter = (this.dom.style.filter || "").replace(/progid:DXImageTransform.Microsoft.Alpha\([^\)]*\),? ?/gi, "") + (t >= 1 ? "" : "progid:DXImageTransform.Microsoft.Alpha(opacity=" + 100 * t + "), ") : this.dom.style.opacity = t; +return this; +}; +s.prototype.setPosition = function(t) { +switch (t) { +case "static": +case "relative": +case "absolute": +case "fixed": +this._position = t; +} +null !== this._position && this.setCSSStyle("position", y && "fixed" == this._position ? "absolute" : this._position); +return this; +}; +s.prototype.setBackgroundImage = function(t) { +this.dom.style.backgroundImage = 'url("' + t + '")'; +return this; +}; +s.prototype.setRotation = function(t) { +if (a.isFF) this.dom.style.MozTransform = t ? "rotate(" + t + "deg)" : ""; else if (a.isSafari) this.dom.style.WebkitTransform = t ? "rotate(" + t + "deg)" : ""; else if (a.isIE) { +this.dom.style.filter = t ? "progid:DXImageTransform.Microsoft.BasicImage(rotation=" + Math.round(t / 90) + ")" : ""; +if (a.isIE8 && t) { +var e = this.parentNode.getElementsByTagName("iframe"); +if (a.isIE8 && e.length) { +e[0].style.filter = t ? "progid:DXImageTransform.Microsoft.BasicImage(rotation=" + Math.round(t / 90) + ")" : ""; +this.dom.style.overflow = "visible"; +} +} +} +return this; +}; +s.prototype.appendToParent = function(t) { +l.hasParentNode(this.dom) || this.parentNode.appendChild(this.parentNode instanceof s ? this : this.dom); +this.parentNode != document.body || "absolute" != this.style.position && "fixed" != this.style.position || this.parentNode.insertBefore(this.dom, this.parentNode.firstChild); +if (t && !this.inDOM) { +this.parentNode.appendToParent && this.parentNode.appendToParent(t); +this.inDOM = !0; +} +}; +s.prototype.focus = function() { +try { +this.dom.focus(); +} catch (t) {} +return this; +}; +s.prototype.blur = function() { +try { +this.dom.blur(); +} catch (t) {} +return this; +}; +s.prototype.click = function() { +this.dom.click && this.dom.click(); +return this; +}; +s.prototype.validate = function(t) { +for (var e = !0, i = 0, n = this.children.length; i < n; i++) { +var o = this.children[i]; +o instanceof s && "function" == typeof o.validate && (o.validate(!!t && e) || (e = !1)); +} +return e; +}; +s.prototype.getSelectable = function() { +return this.selectable; +}; +s.prototype.setSelectable = function(t) { +function e() { +return !1; +} +if (m(t)) { +this.selectable = !0; +this.setStyle("user-select", "text"); +a.isFF && this.setStyle("-moz-user-select", "text"); +a.isWebKit && this.setStyle("-webkit-user-select", "text"); +a.isIE > 9 && this.setStyle("-ms-user-select", "text"); +(a.isIE < 10 || a.isOpera) && this.un("selectstart", e); +} else { +this.selectable = !1; +this.setStyle("user-select", "none"); +a.isFF && this.setStyle("-moz-user-select", "none"); +a.isWebKit && this.setStyle("-webkit-user-select", "none"); +a.isIE > 9 && this.setStyle("-ms-user-select", "none"); +(a.isIE < 10 || a.isOpera) && this.on("selectstart", e); +} +return this; +}; +s.prototype.getDisabled = function() { +return this.dom.disabled; +}; +s.prototype.setDisabled = function(t) { +t = m(t); +for (var e = 0, i = this.children.length; e < i; e++) this.children[e] instanceof s && this.children[e].setDisabled(t); +this[t ? "addClass" : "removeClass"]("disabled"); +this.dom.disabled = t; +return this; +}; +s.prototype.getReadOnly = function() { +return this.dom.readOnly; +}; +s.prototype.setReadOnly = function(t) { +t = m(t); +for (var e = 0, i = this.children.length; e < i; e++) this.children[e] instanceof s && this.children[e].setReadOnly(t); +this.dom.readOnly = t; +return this; +}; +s.prototype.getValue = function() { +return this.dom.value; +}; +s.prototype.setValue = function(t) { +this.dom.value = $(t, "allowNull") ? "" : t; +return this; +}; +s.prototype.getType = function() { +return this.getAttribute("type"); +}; +s.prototype.setType = function(t) { +try { +this.dom.setAttribute("type", t); +} catch (t) {} +return this; +}; +s.prototype.getName = function() { +return this.getAttribute("name"); +}; +s.prototype.setName = function(t) { +return this.setAttribute("name", t); +}; +s.prototype.getTabIndex = s.prototype.getTabindex = function() { +try { +return this.dom.tabIndex; +} catch (t) {} +}; +s.prototype.setTabIndex = s.prototype.setTabindex = function(t) { +try { +this.dom.tabIndex = t; +} catch (t) {} +return this; +}; +s.prototype.setPlacement = function(t) { +if (t && this.parentNode && this.parentNode instanceof s) { +var e = this.parentNode.getContainer(t); +if (e) { +if (!m(this.attributes.discardPlacement)) { +e.appendChild(e instanceof s ? this : this.dom); +return this; +} +for (;this.children.length; ) e.appendChild(this.children[0]); +this.destroy(); +} +} +}; +s.prototype.setContainer = function(t) { +this.attributes.container = t; +return this; +}; +s.prototype.getContainer = function(t) { +if (t) { +if (this.attributes.container == t) return this; +for (var e, i = this.children.length, n = 0; n < i; n++) if ("function" == typeof this.children[n].getContainer) { +e = this.children[n].getContainer(t); +if (e) return e; +} +} +}; +s.prototype.getPseudo = function() { +return this._pseudo; +}; +s.prototype.setPseudo = function(t) { +this._pseudo && this.removeClass(t); +this._pseudo = t; +this._pseudo && this.addClass(t); +return this; +}; +s.prototype.setUseDisplay = function(t) { +this.useDisplay = m(t); +return this; +}; +s.prototype.getElement = function(t) { +return l.get(this.jx_id + "__" + t); +}; +s.prototype.setLabel = function(t) { +this.label = t; +return this; +}; +s.prototype.getLabel = function() { +return this.label || ""; +}; +for (var C = 0; C < x.length; C++) s.prototype[b("set-" + x[C])] = function(t) { +return function(e) { +try { +this.dom.style[t] = e; +} catch (t) {} +return this; +}; +}(b(x[C])); +for (C = 0; C < v.length; C++) s.prototype[b("set-" + v[C])] = function(t) { +return function(e) { +this.dom.setAttribute(t, e); +return this; +}; +}(v[C]); +s.__jx__no_fqname = !0; +t.exports = s; +e(s, "jx_ui_HTMLElement"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +"use strict"; +if (null == this) throw new TypeError(); +var e = Object(this), i = e.length >>> 0; +if (0 === i) return -1; +var n = 0; +if (arguments.length > 0) { +n = Number(arguments[1]); +n != n ? n = 0 : 0 != n && n != 1 / 0 && n != -1 / 0 && (n = (n > 0 || -1) * Math.floor(Math.abs(n))); +} +if (n >= i) return -1; +for (var o = n >= 0 ? n : Math.max(i - Math.abs(n), 0); o < i; o++) if (o in e && e[o] === t) return o; +return -1; +} +function n(t, e, i) { +return o.call(e, t, i); +} +var o = Array.prototype.indexOf; +"function" == typeof o && /\[native code\]/.test(o.toString()) || (o = i); +t.exports = n; +e(n, "jx_core_globals_indexOf"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +H("UIController init"); +se.mobile && se.popout && ee(); +te(); +o(); +_e.userShowBadgeOrWindow = h; +_e.userShowWindow = p; +_e.userHideWindow = f; +_e.userHideBanner = g; +_e.userHideBubble = m; +_e.userDismissMobileNotification = le; +_e.userReplyMobileNotification = $; +_e.showWindow = b; +_e.hideWindow = w; +_e.toggleWindow = x; +_e.showBanner = v; +_e.hideBanner = y; +_e.showButton = j; +_e.hideButton = C; +_e.showMobileNotification = T; +_e.hideMobileNotification = B; +_e.disableMobileNotifications = N; +_e.hideAll = S; +_e.showBubble = A; +_e.hideBubble = k; +_e.resetBubble = I; +_e.setWindowUserHidden = E; +_e.setBannerUserHidden = O; +_e.setBubbleUserHidden = P; +_e.resetBubbleUserHidden = L; +_e.setHideWhenOffline = W; +_e.mobileNotificationsIgnoreChatButtonVisibility = D; +_e.showMenu = R; +_e.showProfileMenu = F; +_e.getAPIState = M; +_e.resetState = U; +} +function o() { +nt = !1; +q = Zt.root; +G = q.$("livechat"); +Y = G.$("settings"); +X = Y.$("theme"); +K = G.$("ui"); +Z = K.$("chat_window"); +Q = K.$("chat_button"); +Et = G.$("profile").$("logged_in$bool"); +Ot = G.$("profile").$("auth").$("type$string"); +Pt = Y.$("login").$("allowed_types_count$int"); +Lt = G.$("settings").$("login").$("restrict_profile$bool"); +Nt = Z.$("menu_stack_name$string"); +Dt = Z.$("profile_menu").$("index$int"); +J = K.$("popout$bool"); +tt = K.$("mobile$bool"); +et = K.$("mockup$bool"); +it = K.$("mobile_overlay$bool"); +Ht = K.$("current_display$string"); +Vt = K.$("previous_display$string"); +V(J, "popout", function() { +l(); +_(); +}); +V(tt, "mobile", function() { +l(); +_(); +}); +V(it, "mobile_overlay", _); +V(et, "mockup"); +pt = q.$("connection").$("message$string"); +V(pt, "connection_message", _); +ft = q.$("connection").$("status$string"); +V(ft, "connection_status", function() { +Gt(se.connection_status) && se.connection_status && (/disconnect|shutdown/.test(se.connection_status) || Jt.fromRefTime("conn_status_" + se.connection_status, .25)); +r(); +_(); +}); +gt = G.$("account").$("status$string"); +V(gt, "account_status", function() { +l(); +_(); +}); +mt = G.$("channel").$("chatting$bool"); +It = K.$("chat_window").$("pre_chat_form").$("submitted$bool"); +V(mt, "chatting", function() { +r(); +_(); +}); +$t = G.$("channel").$("served$bool"); +V($t, "chat_served", _); +bt = Y.$("behavior").$("do_not_display$bool"); +wt = Y.$("banner").$("enabled$bool"); +vt = Y.$("bubble").$("enabled$bool"); +Ct = Y.$("chat_button").$("hide_when_offline$bool"); +St = Z.$("user_hidden$bool"); +At = Z.$("user_hidden_banner$bool"); +kt = Z.$("user_hidden_bubble$bool"); +xt = X.$("chat_window").$("use_banner$bool"); +jt = Q.$("bubble").$("display$bool"); +yt = X.$("chat_button").$("use_bubble$bool"); +V(bt, "do_not_display", _); +V(wt, "banner_enabled", _); +V(vt, "bubble_enabled", _); +V(Ct, "hide_when_offline", _); +V(St, "chat_window_user_hidden", _); +V(At, "banner_user_hidden", _); +V(kt, "bubble_user_hidden", l); +V(xt, "use_banner", _); +V(jt, "bubble_display", l); +V(yt, "use_bubble", l); +Tt = G.$("settings").$("forms").$("pre_chat_form").$("required$bool"); +Tt.bindValue(s); +It.bindValue(s); +Wt = Q.$("display$bool"); +Rt = Z.$("display$bool"); +Ft = Z.$("main_stack_name$string"); +Mt = K.$("chat_notification").$("display$bool"); +Wt.bindValue(a); +Rt.bindValue(a); +Ft.bindValue(a); +Mt.bindValue(a); +nt = !0; +} +function r() { +if (se.chatting && se.connection_status == oe.REATTACHED) { +H("UIController: setting pre_chat_form_submitted to true"); +It.update(!0); +} +} +function s() { +var t = Tt.getValue(), e = It.getValue(), i = t && !e; +if (i != Bt) { +Bt = i; +_(); +} +} +function a() { +var t, e, i = Wt.getValue(), n = Rt.getValue(), o = Ft.getValue(), r = Mt.getValue(); +t = Yt(i) && Yt(n) && Yt(r) ? ie.UNDEFINED : n ? o == ne.NEW_CHAT_FORM ? ie.BANNER : ie.WINDOW : i ? ie.BUTTON : r ? ie.NOTIFICATION : ie.NONE; +e = o; +if (t != zt || e != Ut) { +zt = t; +Ut = e; +_(); +} +} +function _() { +function t() { +if (Bt) { +z(e, "pre_chat_form_required"); +u([ ne.PRE_CHAT_OFFLINE_FORM ]); +} else { +z(e, "!pre_chat_form_required"); +u([ ne.CHAT_PANEL, ne.AGENT_LIST, ne.CARD_FORM, ne.POST_CHAT_FORM, ne.ABOUT_PANEL, ne.COOKIE_FORM ]); +} +} +if (nt) if (_t) H("UIController update: abort - display settings updating"); else if (st) H("UIController update: abort - api updating"); else if (at) H("UIController update: abort - user updating"); else if (ot) H("UIController update: abort - updating loop"); else { +ot = !0; +var e = []; +if (se.account_status == re.BANNED) { +z(e, re.BANNED); +if (se.popout) { +z(e, "popout"); +d(ie.WINDOW); +u([ ne.PRE_CHAT_OFFLINE_FORM ]); +} else { +z(e, "!popout"); +d(ie.UNDEFINED); +} +} else if (ae.api_display && ae.api_stack) z(e, "api_display && api_stack"); else if (!se.do_not_display || se.popout || ae.api_display || se.chatting || zt != ie.UNDEFINED) if (!se.mobile || se.mobile_overlay || se.popout) { +if (se.connection_status == oe.COOKIE_LAW) { +z(e, "cookie_law"); +if (ae.api_display) z(e, "api_display"); else if (zt == ie.NONE) z(e, "none"); else if (se.popout) { +z(e, "popout"); +d(ie.WINDOW); +} else { +z(e, "!popout"); +if (zt == ie.UNDEFINED) { +z(e, "undefined"); +d(ie.BUTTON); +} else z(e, "!undefined"); +} +u([ ne.COOKIE_FORM ]); +} else if (se.connection_status == oe.REGISTERED || se.connection_status == oe.REATTACHED || se.connection_message == oe.FAST_INIT) { +z(e, "registered/reattached/fast_init"); +if (se.chatting) { +z(e, "chatting"); +if (ae.api_display) { +z(e, "api_display"); +if (se.mobile_overlay && (zt === ie.BUTTON || ae.mobile_notifications_ignore_chat_button_visibility && zt !== ie.WINDOW) && ut) { +z(e, "overlay && (displaying button || ignoring chat button visibility && not displaying window) && has mobile notification"); +d(ie.NOTIFICATION); +} else { +z(e, "!overlay || !displaying button && !(ignoring chat button visibility && not displaying window) || !has mobile notification"); +if (zt !== ie.NOTIFICATION || ut) z(e, "!displaying notification || has mobile notification"); else { +z(e, "displaying notification && !has mobile notification"); +d(ae.api_display); +} +} +} else { +z(e, "!api_display"); +if (se.mobile_overlay) { +z(e, "overlay"); +if (se.chat_window_user_hidden) { +z(e, "user hidden"); +if (ut) { +z(e, "has mobile notification"); +d(ie.NOTIFICATION); +} else { +z(e, "!has mobile notification"); +d(ie.BUTTON); +} +} else { +z(e, "!user hidden"); +if (dt) { +z(e, "user_shown_window_before"); +d(ie.WINDOW); +} else { +z(e, "!user_shown_window_before"); +if (ut) { +z(e, "has mobile notification"); +d(ie.NOTIFICATION); +} else { +z(e, "!has mobile notification"); +d(ie.BUTTON); +} +} +} +} else { +z(e, "!overlay"); +if (se.chat_window_user_hidden) { +z(e, "user hidden"); +if (se.popout) { +z(e, "popout"); +d(ie.WINDOW); +} else { +z(e, "!popout"); +if (zt == ie.UNDEFINED) { +z(e, "undefined"); +d(ie.BUTTON); +} else z(e, "!undefined"); +} +} else { +z(e, "!user hidden"); +d(ie.WINDOW); +} +} +} +u(se.chat_served ? [ ne.CHAT_PANEL, ne.AGENT_LIST, ne.CARD_FORM, ne.ABOUT_PANEL, ne.RATING_PANEL, ne.COOKIE_FORM ] : [ ne.CHAT_PANEL, ne.AGENT_LIST, ne.CARD_FORM, ne.ABOUT_PANEL, ne.COOKIE_FORM ]); +} else if (se.account_status == re.ONLINE || se.account_status == re.AWAY) { +z(e, "online/away"); +if (ae.api_display) { +z(e, "api_display"); +t(); +} else if (se.popout || zt == ie.WINDOW) { +z(e, "popout/window"); +if (se.popout) { +z(e, "popout"); +d(ie.WINDOW); +} else z(e, "window"); +t(); +} else if (zt == ie.NONE) z(e, "none"); else if (se.banner_enabled && se.use_banner) { +z(e, "show banner"); +switch (zt) { +case ie.UNDEFINED: +z(e, "none"); +if (se.banner_user_hidden) { +z(e, "user hidden"); +d(ie.BUTTON); +} else { +z(e, "!user hidden"); +d(ie.BANNER); +} +break; + +case ie.BUTTON: +z(e, "button"); +if (se.banner_user_hidden) z(e, "user hidden"); else { +z(e, "!user hidden"); +d(ie.BANNER); +} +break; + +case ie.BANNER: +z(e, "banner"); +} +} else { +z(e, "!show banner"); +if (zt === ie.BUTTON) z(e, "button"); else { +z(e, zt); +d(ie.BUTTON); +} +} +} else if (se.account_status == re.OFFLINE) { +z(e, re.OFFLINE); +if (ae.api_display) z(e, "api_display"); else if (se.popout) { +z(e, "popout"); +d(ie.WINDOW); +} else if (zt == ie.NONE) z(e, "none"); else if (se.hide_when_offline) { +z(e, "hide when offline"); +d(ie.UNDEFINED); +} else { +z(e, "!hide when offline"); +if (zt == ie.WINDOW) z(e, "window"); else { +z(e, "!window"); +d(ie.BUTTON); +} +} +u([ ne.PRE_CHAT_OFFLINE_FORM ]); +} +} +} else { +z(e, "mobile"); +if (ae.api_display) z(e, "api_display"); else { +z(e, "!api_display"); +if (zt == ie.NONE) z(e, "none"); else { +z(e, "!none"); +if (se.do_not_display || se.account_status == re.OFFLINE && se.hide_when_offline) { +z(e, "do_not_display || (account_status == offline && hide_when_offline)"); +if (se.chatting) { +z(e, "chatting"); +d(ie.BUTTON); +} else { +z(e, "!chatting"); +d(ie.UNDEFINED); +} +} else { +z(e, "!(do_not_display || (account_status == offline && hide_when_offline))"); +d(ie.BUTTON); +} +} +} +} else z(e, "do not display, !popout, !api_display"); +H("UIController update: " + (e.join(" > ") || "no path")); +ot = !1; +} else H("UIController update: abort - binding not complete"); +} +function l() { +if (nt) if (lt) H("UIController Bubble update: abort - bubble settings updating"); else if (st) H("UIController Bubble update: abort - api updating"); else if (at) H("UIController Bubble update: abort - user updating"); else if (rt) H("UIController Bubble update: abort - updating loop"); else { +rt = !0; +var t = []; +if (se.mobile || se.popout) { +z(t, "mobile || popout"); +c(!1); +} else { +z(t, "!mobile && !popout"); +if (se.use_bubble) { +z(t, "use_bubble"); +if (ae.api_bubble) z(t, "bubble_api"); else { +z(t, "!bubble_api"); +if (se.bubble_enabled) { +z(t, "bubble_enabled"); +if (se.account_status == re.ONLINE || se.account_status == re.AWAY) { +z(t, "online || away"); +if (se.bubble_user_hidden) { +z(t, "user_hidden_bubble"); +c(!1); +} else { +z(t, "!user_hidden_bubble"); +if (Yt(se.bubble_display)) { +z(t, "undefined"); +c(!0); +} else z(t, "!undefined"); +} +} else { +z(t, re.OFFLINE); +c(void 0); +} +} else { +z(t, "!bubble_enabled"); +c(!1); +} +} +} else { +z(t, "!use_bubble"); +c(void 0); +} +} +H("UIController Bubble update: " + (t.join(" > ") || "no path")); +rt = !1; +} else H("UIController Bubble update: abort - binding not complete"); +} +function d(t) { +H("UIController setDisplay: " + t); +ct = Rt.getValue(); +_t = !0; +var e = Ht.getValue(); +if (e !== t) { +Vt.update(e); +Ht.update(t); +} +switch (t) { +case ie.UNDEFINED: +Wt.update(void 0); +Rt.update(void 0); +Mt.update(void 0); +break; + +case ie.NONE: +Wt.update(!1); +Rt.update(!1); +Mt.update(!1); +break; + +case ie.BUTTON: +Wt.update(!0); +Rt.update(!1); +Mt.update(!1); +break; + +case ie.BANNER: +if (Ft.getValue() != ne.NEW_CHAT_FORM) { +ht = Ft.getValue(); +Ft.update(ne.NEW_CHAT_FORM); +} +Wt.update(!1); +Rt.update(!0); +Mt.update(!1); +break; + +case ie.NOTIFICATION: +Wt.update(!1); +Rt.update(!1); +Mt.update(!0); +break; + +case ie.WINDOW: +if (Ft.getValue() == ne.NEW_CHAT_FORM) { +u(ht ? [ ht ] : [ ne.PRE_CHAT_OFFLINE_FORM, ne.CHAT_PANEL, ne.POST_CHAT_FORM, ne.COOKIE_FORM, ne.CARD_FORM, ne.AGENT_LIST, ne.RATING_PANEL ]); +ht = null; +} +Wt.update(!1); +Mt.update(!1); +Rt.update(!0); +} +st || (ct && t != ie.WINDOW ? _e.fire("API:window:hide") : ct || t != ie.WINDOW || _e.fire("API:window:show")); +_t = !1; +} +function u(t) { +if (t && t.length) { +-1 == Xt(Ut, t) && Ft.update(t[0]); +} +} +function c(t) { +H("UIController setBubble: " + t); +lt = !0; +jt.update(t); +lt = !1; +} +function h() { +if (!se.mobile) { +at = !0; +var t = Ft.getValue(); +d(se.banner_enabled && t == ne.NEW_CHAT_FORM && se.use_banner ? ie.BANNER : ie.WINDOW); +ae.api_display = !1; +ae.api_stack = !1; +at = !1; +_(); +} +} +function p() { +if ((!se.mobile || se.mobile_overlay) && zt != ie.WINDOW) { +at = !0; +St.update(!1); +dt = !0; +d(ie.WINDOW); +ae.api_display = !1; +ae.api_stack = !1; +at = !1; +_(); +} +} +function f() { +if ((!se.mobile || se.mobile_overlay) && zt != ie.BUTTON) { +at = !0; +_e.setWindowUserHidden(); +d(se.do_not_display ? ie.NONE : ie.BUTTON); +ae.api_display = !1; +ae.api_stack = !1; +at = !1; +_(); +} +} +function g() { +if (!se.mobile && zt != ie.BUTTON) { +at = !0; +_e.setBannerUserHidden(); +d(se.do_not_display ? ie.NONE : ie.BUTTON); +ae.api_display = !1; +ae.api_stack = !1; +at = !1; +_(); +} +} +function m() { +if (!se.mobile) { +at = !0; +_e.setBubbleUserHidden(); +c(!1); +ae.api_bubble = !1; +at = !1; +l(); +} +} +function $() { +ut = !1; +p(); +} +function b() { +H("API update: showWindow"); +if (se.mobile && !se.mobile_overlay) Qt.openPopout(!0); else { +st = !0; +ut && (ut = !1); +d(ie.WINDOW); +ae.api_display = ie.WINDOW; +st = !1; +_(); +} +} +function w() { +if (!se.mobile || se.mobile_overlay) { +H("API update: hideWindow"); +st = !0; +if (se.do_not_display) { +d(ie.NONE); +ae.api_display = ie.NONE; +} else { +d(ie.BUTTON); +ae.api_display = ie.BUTTON; +} +st = !1; +_(); +} +} +function x() { +if (!se.mobile || se.mobile_overlay) { +H("API update: toggleWindow"); +zt == ie.WINDOW ? _e.hideWindow() : _e.showWindow(); +} +} +function v() { +if (!se.mobile && se.use_banner) { +H("API update: showBanner"); +st = !0; +d(ie.BANNER); +ae.api_display = ie.BANNER; +ae.api_stack = ie.BANNER; +st = !1; +_(); +} +} +function y() { +if (!se.mobile) { +H("API update: hideBanner"); +st = !0; +if (se.do_not_display) { +d(ie.NONE); +ae.api_display = ie.NONE; +} else { +d(ie.BUTTON); +ae.api_display = ie.BUTTON; +} +ae.api_stack = !1; +st = !1; +_(); +} +} +function j() { +H("API update: showButton"); +st = !0; +d(ie.BUTTON); +ae.api_display = ie.BUTTON; +st = !1; +_(); +} +function C() { +H("API update: hideButton"); +st = !0; +if (se.mobile) { +ut && (ut = !1); +ae.api_display = ie.NONE; +d(ie.NONE); +} else { +ae.api_display = ie.WINDOW; +d(ie.WINDOW); +} +st = !1; +_(); +} +function S() { +H("API update: hideAll"); +st = !0; +d(ie.NONE); +ae.api_display = ie.NONE; +ut && (ut = !1); +st = !1; +_(); +} +function A() { +if (!se.mobile) { +H("API update: showBubble"); +st = !0; +c(!0); +ae.api_bubble = !0; +st = !1; +l(); +} +} +function k() { +if (!se.mobile) { +H("API update: hideBubble"); +st = !0; +c(!1); +ae.api_bubble = !0; +st = !1; +l(); +} +} +function I() { +if (!se.mobile) { +H("API update: resetBubble"); +st = !0; +_e.resetBubbleUserHidden(); +c(!0); +ae.api_bubble = !0; +st = !1; +l(); +} +} +function T() { +if ((zt === ie.BUTTON || ae.mobile_notifications_ignore_chat_button_visibility && zt !== ie.WINDOW) && !ae.disable_mobile_notifications) { +ut = !0; +_(); +} +} +function B() { +ut = !1; +_(); +} +function N(t) { +Yt(t) && (t = !0); +ae.disable_mobile_notifications = t; +} +function D(t) { +Yt(t) && (t = !0); +ae.mobile_notifications_ignore_chat_button_visibility = t; +} +function E() { +St.update(!0); +} +function O() { +At.update(!0); +} +function P() { +kt.update(!0); +} +function L() { +kt.update(!1); +} +function W(t) { +Ct.update(t); +} +function R(t) { +Nt.update(t); +} +function F() { +if (!Lt.getValue()) { +_e.showMenu("profile_menu"); +Dt.update(Et.getValue() ? Ot.getValue() ? 1 : 2 : se.mobile ? 2 : Pt.getValue() ? 0 : 2); +} +} +function M() { +return ae; +} +function V(t, e, i) { +t && Kt(t.bindValue) && t.bindValue(function(t) { +if (se[e] != t) { +se[e] = t; +Kt(i) && i(); +} +}); +} +function H(t) {} +function z(t, e) {} +function U() { +dt = void 0; +ut = void 0; +ae = { +api_display: !1, +api_stack: !1, +api_bubble: !1 +}; +} +var q, G, Y, X, K, Z, Q, J, tt, et, it, nt, ot, rt, st, at, _t, lt, dt, ut, ct, ht, pt, ft, gt, mt, $t, bt, wt, xt, vt, yt, jt, Ct, St, At, kt, It, Tt, Bt, Nt, Dt, Et, Ot, Pt, Lt, Wt, Rt, Ft, Mt, Vt, Ht, zt, Ut, qt = i(14), Gt = i(21), Yt = i(26), Xt = i(24), Kt = i(20), Zt = i(5), Qt = i(72), Jt = i(56), te = i(355), ee = i(354), ie = { +UNDEFINED: "undefined", +NONE: "none", +BUTTON: "button", +BANNER: "banner", +WINDOW: "window", +NOTIFICATION: "notification" +}, ne = { +NEW_CHAT_FORM: "new_chat_form", +PRE_CHAT_OFFLINE_FORM: "pre_chat_offline_form", +CHAT_PANEL: "chat_panel", +POST_CHAT_FORM: "post_chat_form", +COOKIE_FORM: "cookie_form", +CARD_FORM: "card_form", +AGENT_LIST: "agent_list", +ABOUT_PANEL: "about_panel", +RATING_PANEL: "rating_panel" +}, oe = { +COOKIE_LAW: "cookie_law", +REATTACHED: "reattached", +REGISTERED: "registered", +FAST_INIT: "fast_init" +}, re = { +ONLINE: "online", +AWAY: "away", +OFFLINE: "offline", +BANNED: "banned" +}, se = {}, ae = { +api_display: !1, +api_stack: !1, +api_bubble: !1 +}, _e = qt.extend({ +init: n +}), le = B; +t.exports = _e; +e(_e, "meshim_widget_controllers_UIController"); +return _e; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var i = function(t) { +return function(t, e) { +return e ? null == t : void 0 === t; +}; +}(); +t.exports = i; +e(i, "jx_core_globals_isUndefined"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n) { +t.exports = function() { +function o() { +A = k = I = !1; +T = []; +B = []; +N = []; +D = []; +E = []; +O = []; +P = []; +W = {}; +S = z.root; +S.$("connection").$("status$string").bindValue(r); +S.$("connection").$("message$string").bindValue(s); +L = S.$("tmp").$("api_settings"); +R = S.$("tmp").$("server_settings"); +G.bindToConnectionStatus(S.$("connection").$("status$string")); +F = window.zE ? "web_widget" : "standalone"; +} +function r(t) { +if ("reattached" == t) { +I = !0; +l(); +} else if ("registered" == t || "cookie_law" == t) { +k = !0; +_(); +} +} +function s(t) { +if ("fast_init" == t) { +A = !0; +a(); +} +} +function a() { +h(T); +T.length = 0; +h(D); +} +function _() { +h(B); +B.length = 0; +h(E); +} +function l() { +h(N); +N.length = 0; +h(O); +} +function d(t, e) { +e && D.push(t); +A ? p(t) : e || T.push(t); +} +function u(t, e) { +e && E.push(t); +k ? p(t) : e || B.push(t); +} +function c(t, e) { +e && O.push(t); +I ? p(t) : e || N.push(t); +} +function h(t) { +if (t && M(t)) for (var e = 0; e < t.length; e++) p(t[e]); +} +function p(t) { +var e = K.call(arguments, 1); +try { +t.apply(null, e); +} catch (e) { +if (!window.console) return; +if (!V(window.console.log)) return; +var i = "Error in LiveChatAPI call", n = []; +e.name && n.push(e.name); +e.message && n.push(e.message); +n.length && (i += ": " + n.join(" - ")); +window.console.log(i); +V(window.console.dir) && window.console.dir(e); +window.console.log(t.toString()); +} +} +function f(t) { +return function() { +var e = Array.prototype.slice.call(arguments); +setTimeout(function() { +t.apply(null, e); +}, 0); +}; +} +function g(t) { +return Z.test(t); +} +function m(t) { +U.fullyExtend(W, t); +L && L.update(W); +} +function $(t) { +U.fullyDelete(W, t); +if (L) { +L.update(null); +L.update(W); +} +} +function b(t) { +return t ? R.getValue(t) : R.getValue(); +} +function w(t, e) { +P.push([ t, e ]); +} +function x() { +return P; +} +function v() { +var t; +try { +t = q.parse(H().get("api_calls")); +} catch (t) {} +return M(t) ? t : []; +} +function y() { +return Y; +} +function j(t, i, n) { +if (!e(n.interval) || !e(n.limit)) throw new Error("requires numeric interval and limit"); +return function() { +var e = Date.now(); +if (n.start > e - n.interval) { +n.count || (n.count = 0); +n.count++; +if (n.count > n.limit) { +window.console && window.console.log && window.console.log(X.getPrefix() + ": " + i + " has been ratelimited. This call has been ignored."); +return; +} +} else { +n.start = e; +n.count = 1; +} +return t.apply(this, arguments); +}; +} +function C(t) { +G.increment("jsapi.usage", [ "source:" + F, "method:" + t ]); +} +var S, A, k, I, T, B, N, D, E, O, P, L, W, R, F, M = i(22), V = i(20), H = i(35), z = (i(57), +i(5)), U = i(10), q = i(58), G = i(356), Y = "Zendesk Chat", X = { +init: o, +callNow: p, +handleDelayed: h, +callOnFastInit: d, +callOnRegistered: u, +callOnReattached: c, +isHexColor: g, +getCallbackCaller: f, +saveAPISettings: m, +resetAPISettings: $, +getServerSettings: b, +savePopoutAPICalls: w, +getPopoutAPICalls: x, +parseAPIFromQuery: v, +getPrefix: y, +rateLimit: j, +instrument: C +}, K = Array.prototype.slice, Z = /^#[0-9A-F]{6}$/i; +t.exports = X; +n(X, "meshim_widget_controllers_liveChatAPI_APIHelper"); +return X; +}(); +}).call(this, i(28), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return "number" == typeof t; +} +t.exports = i; +e(i, "jx_core_globals_isNumber"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_AbsolutePaddingContainer = i(164); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_AbsolutePaddingContainer, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(5), e = i(9), n = t.root.$("livechat").$("ui").$("mobile$bool").getValue(), o = h.setAbsPaddingBottom; +h.setAbsPaddingBottom = function() { +n || o.apply(h, arguments); +}; +!function() { +e.mobile(h); +e.tablet(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_AbsolutePaddingContainer.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_AbsolutePaddingContainer; +t.__jx__jcss = { +"**self": {}, +"&.mobile": { +margin: "0 auto", +height: "auto", +border: "none", +maxWidth: "$$mobileMaxWidthS" +}, +"&.tablet": { +maxWidth: "$$mobileMaxWidth" +} +}; +s(t, "meshim_widget_widgets_ChatWindowContent"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "inner", "", [], { +id: "inner", +addClass: "scrollable_inner", +container: "default" +} ], [ e.__$$__jx_ui_Widget, "", "", [], { +addClass: "scrollable_fixed_top" +} ], [ e.__$$__jx_ui_Widget, "", "", [], { +addClass: "scrollable_fixed_bottom" +} ] ], { +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__inner"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +h.defaultPlacement = p; +var f = function() { +function t() { +s && window.clearTimeout(s); +s = window.setTimeout(e, 10); +} +function e() { +s && window.clearTimeout(s); +s = null; +if (h.dom) { +h[n() ? "addClass" : "removeClass"]("scroll_top"); +h[o() ? "addClass" : "removeClass"]("scroll_bottom"); +h[r() ? "addClass" : "removeClass"]("scrollable"); +} +} +function n() { +return !p.getScrollTop(); +} +function o() { +return p.getScrollTop() + p.getHeight() >= p.getScrollHeight(); +} +function r() { +return p.getScrollHeight() > p.getHeight(); +} +var s, a = i(5), _ = i(9), l = a.root.$("livechat").$("ui").$("theme_loaded$bool"), d = a.root.$$("livechat.ui.mobile$bool"); +p.on("scroll", t); +h.updateScrollStyles = t; +h.getScrollHeight = function() { +return p.getScrollHeight(); +}; +h.getScrollTop = function() { +return p.getScrollTop(); +}; +h.getHeight = function() { +return p.getHeight(); +}; +h.setScrollTop = function(t) { +return p.setScrollTop(t); +}; +!function() { +h.autobind(l, "value", t); +t(); +_.mobile(h); +_.popout(h); +_.windowSize(h, "sf_"); +d.getValue() && h.addClass("mobile"); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self, .scrollable_inner": { +position: "relative", +"width, height": "100%" +}, +".scrollable_inner": { +overflowX: "hidden", +overflowY: "auto", +paddingBottom: "0 !important" +}, +".scrollable_fixed_top, .scrollable_fixed_bottom": { +position: "absolute", +"left, right": 0, +pointerEvents: "none" +}, +".scrollable_fixed_top": { +top: 0, +height: "$$scrollableFrameTopHeight", +background: "$$scrollableFrameTopBackground", +backgroundColor: "$$scrollableFrameTopBackgroundColor" +}, +".scrollable_fixed_bottom": { +bottom: 0, +height: "$$scrollableFrameBottomHeight", +background: "$$scrollableFrameBottomBackground", +backgroundColor: "$$scrollableFrameBottomBackgroundColor" +}, +"&.scroll_top .scrollable_fixed_top": { +display: "none" +}, +"&.scroll_bottom .scrollable_fixed_bottom": { +display: "none" +}, +"&.scroll .scrollable_inner": {}, +"&.sf_small": { +padding: "$$scrollableFramePaddingSmall", +".scrollable_inner": { +padding: "$$scrollableFrameInnerPaddingSmall" +} +}, +"&.sf_medium": { +padding: "$$scrollableFramePaddingMedium", +".scrollable_inner": { +padding: "$$scrollableFrameInnerPaddingMedium" +} +}, +"&.sf_large": { +padding: "$$scrollableFramePaddingLarge", +".scrollable_inner": { +padding: "$$scrollableFrameInnerPaddingLarge" +} +}, +"&.popout": { +"@media only screen and (max-width: 300px)": { +padding: "$$scrollableFramePaddingSmall", +".scrollable_inner": { +padding: "$$scrollableFrameInnerPaddingSmall" +} +}, +"@media only screen and (min-width: 300px) and (max-width: 500px)": { +padding: "$$scrollableFramePaddingMedium", +".scrollable_inner": { +padding: "$$scrollableFrameInnerPaddingMedium" +} +}, +"@media only screen and (min-width: 500px)": { +padding: "$$scrollableFramePaddingLarge", +".scrollable_inner": { +padding: "$$scrollableFrameInnerPaddingLarge" +} +} +}, +"&.mobile": { +borderBottom: "none", +".scrollable_inner": { +padding: "10px" +} +} +}; +s(t, "meshim_widget_widgets_ScrollableFrame"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "span"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_span"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +addClass: "bottom" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(9); +!function() { +t.mobile(h); +t.windowSize(h, "bottom_"); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +"bottom, left": 0, +width: "100%", +textAlign: "center", +"*overflow": "hidden", +paddingTop: "$$margin", +paddingBottom: 0, +height: "$$bottomHeight", +borderWidth: "$$bottomBorderWidth", +borderStyle: "$$bottomBorderStyle", +borderColor: "$$bottomBorderColor", +"&.bottom_padding_bottom": { +paddingBottom: "$$margin", +height: "$$bottomHeightBottomPadding" +}, +"&.bottom_small": { +"paddingLeft, paddingRight": "10px" +}, +"&.bottom_medium": { +"paddingLeft, paddingRight": "20px" +}, +"&.bottom_large": { +"paddingLeft, paddingRight": "50px" +} +}, +"&.note": { +height: "auto", +fontSize: "$$fontSizeXS", +padding: "$$margin", +borderWidth: "$$bottomNoteBorderWidth", +borderStyle: "$$bottomNoteBorderStyle", +borderColor: "$$bottomNoteBorderColor" +}, +"&.padding_bottom": { +height: "$$bottomHeightBottomPadding" +}, +"&.mobile": { +position: "relative", +padding: "$$margin", +height: "auto" +} +}; +s(t, "meshim_widget_widgets_Bottom"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +m = P.throttle(r, 2e3); +$ = P.debounce(s, 100); +b = L.root.$("livechat"); +w = b.$("channel"); +x = w.$("chatting$bool"); +j = w.$("log"); +y = w.$("rating$string"); +v = w.$("last_read"); +A = b.$("profile").$("nick$string"); +S = b.$("ui").$("chat_button").$("unread_count$int"); +I = 0; +N = 0; +T = 0; +B = []; +w.on("value", function(t) { +null === t && (E = D = void 0); +}); +A.on("value", function(t) { +if (t && t !== k) { +k && v.$(k).$("timestamp$int").un("value", l); +k = t; +v.$(t).$("timestamp$int").on("value", l); +} +}); +x.on("value", d); +j.on("value", function(t) { +C = t; +}); +j.on("keys", o); +} +function o(t) { +if (t && t.length && k) { +for (var e, i, n, o, r = 0, s = t.length; r < s; r++) { +e = C[t[r]]; +if (e) { +i = e.timestamp$int; +n = e.type$string; +o = e.nick$string; +i > N && (N = i); +switch (n) { +case "chat.comment": +w.update({ +last_comment_ts$int: i +}); +break; + +case "chat.rating": +w.update({ +last_rating_ts$int: i +}); +break; + +case "chat.memberjoin": +case "chat.join": +W.isAgentNick(o) && u(i); +break; + +case "chat.memberleave": +W.isAgentNick(o) ? c(i) : p(); +break; + +case "chat.mention": +case "chat.msg": +o != k && -1 === B.indexOf(i) && B.push(i); +_(i, o, t[r]); + +default: +W.isAgentNick(o) && 0 === I && u(i); +} +} +} +$(); +} +} +function r() { +x.getValue() && b.$("ui").$("chat").write({ +read_ts$int: N +}); +} +function s() { +for (;B[0] <= T; ) B.shift(); +S.update(B.length); +} +function a() { +S.update(0); +B = []; +m(); +} +function _(t, e, i) { +if (e != k) { +if (!D) { +D = t; +w.update({ +first_account_msg_id$string: i, +first_account_msg_ts$int: t +}); +} +} else if (!E) { +E = t; +w.update({ +first_visitor_msg_ts$int: t +}); +} +} +function l(t) { +if (!O(t, !0)) { +T = t; +N > 0 && $(); +} +} +function d(t) { +if (!1 === t) { +a(); +w.getValue("served$bool") && f(); +} +} +function u(t) { +I++; +h(t); +} +function c(t) { +I = Math.max(I - 1, 0); +h(t); +} +function h(t) { +if (0 === I) w.update({ +last_agent_leave_ts$int: t +}); else { +1 === I && w.update({ +served$bool: !0 +}); +w.getValue("last_agent_leave_ts$int") && w.update({ +last_agent_leave_ts$int: null +}); +} +} +function p() { +f(); +} +function f() { +I = 0; +w.update({ +served$bool: !1, +first_visitor_msg_ts$int: null, +first_account_msg_ts$int: null, +first_account_msg_id$string: null, +last_agent_leave_ts$int: null, +last_comment_ts$int: null, +last_rating_ts$int: null +}); +E = D = void 0; +N = T = 0; +B = []; +} +function g() { +f(); +k = void 0; +} +var m, $, b, w, x, v, y, j, C, S, A, k, I, T, B, N, D, E, O = i(26), P = i(39), L = i(5), W = i(10), R = { +init: n, +resetUnreadCount: a, +updateUnreadCount: $, +resetState: g +}; +t.exports = R; +e(R, "meshim_widget_controllers_ChatLogListener"); +return R; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +return window.document.documentElement.clientWidth > window.document.documentElement.clientHeight; +} +function o(t) { +} +function r() { +return y && g.test(v); +} +function s() { +return y && /(iemobile|windows phone)/i.test(x); +} +function a() { +return y && p.test(v) && !f.test(x); +} +function _() { +var t = window.document.documentElement.clientWidth, e = window.document.documentElement.clientHeight, i = t / e > b, n = window.screen.width, o = window.screen.height; +if (i && n < o) { +!0; +n = window.screen.height; +o = window.screen.width; +} +var r = window.innerWidth, _ = t / n; +window.devicePixelRatio && a() && !d.isIOS ? _ *= window.devicePixelRatio : s() && (_ *= 1.5); +var l = t / r / _; +l = (l / j.MOBILE_ZOOM_ADDITIONAL).toFixed(2); +return l; +} +function l() { +var t = window, e = t.document.documentElement, i = t.document.body, n = null, o = { +top: 0, +left: 0 +}; +u(e.getBoundingClientRect) && (u(t.getComputedStyle) ? "relative" == t.getComputedStyle(i).position ? n = i : "relative" == t.getComputedStyle(e).position && (n = e) : i.currentStyle ? "relative" == i.currentStyle.position ? n = i : "relative" == e.currentStyle.position && (n = e) : "relative" == i.style.position ? n = i : "relative" == e.style.position && (n = e)); +if (n) { +var r = n.getBoundingClientRect(); +o.top = r.top + t.pageYOffset - e.clientTop; +o.left = r.left + t.pageXOffset - e.clientLeft; +} +return o; +} +var d = i(8), u = i(20), c = i(176), h = i(377), p = /google inc\./i, f = /chrome/i, g = /apple computer, inc\./i, m = /crios/i, $ = /OS ([_0-9]+) like Mac OS X/i, b = 1.45, w = c.getVariable("navigator"), x = w.userAgent || "", v = w.vendor || "", y = h(), j = { +isMobileBrowser: y, +isMobileWhitelist: function() { +for (var t, e = [ /(android [2-9])|(iemobile\/(?![5-9]))|(ucbrowser)|(Webkit.+Chrome)|(ipod|iphone|ipad).+applewebkit.+(CriOS|Version\/[5-9]|Mobile)/i ], i = 0, n = e.length; i < n; i++) if (e[i].test(x)) { +t = !0; +break; +} +/android.+ucbrowser/i.test(x) && (t = !1); +return t; +}(), +isMobileTablet: function() { +var t, e = window.document.documentElement.clientWidth; +t = n() ? e > C : e > S; +return t; +}(), +isAndroid: function() { +return y && p.test(v); +}(), +isIOS: r(), +isWP: s(), +isIEMobile: s(), +isChromeIOSMobile: function() { +return y && g.test(v) && m.test(x); +}(), +isSafariIOSMobile: function() { +return y && g.test(v) && !m.test(x); +}(), +isChromeAndroidMobile: function() { +return y && p.test(v) && f.test(x); +}(), +isOperaAndroidMobile: function() { +return y && /(opera|opr).*android|android.*(opera|opr)/i.test(x); +}(), +isNativeAndroidMobile: a(), +isUCBrowserMobile: function() { +return y && /ucbrowser/i.test(x); +}(), +iOSVersion: function() { +if (r()) { +var t = x.match($); +return t && parseFloat(t[1].split("_").slice(0, 2).join(".")); +} +}(), +hideVirtualKeyboard: o, +checkLandscape: n, +getZoomLevel: _, +getOffset: l, +MOBILE_ZOOM_ADDITIONAL: 1.2 +}, C = 640, S = 320; +t.exports = j; +e(j, "meshim_widget_utils_Mobile"); +return j; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +if (!(this instanceof n)) { +_ || n._initSingleton(window); +return _; +} +if (t) return n.parseQuery(t); +this.store = {}; +} +function o(t, e, i) { +if (void 0 === e && void 0 === i) return t; +void 0 === e && (e = "string"); +if (!(e in a)) throw "invalid type requested"; +return void 0 === t ? void 0 !== i ? i : a[e] : "boolean" === e ? s.test(t) : "integer" === e ? !0 === t ? 1 : parseInt(t, 10) : "float" === e ? !0 === t ? 1 : parseFloat(t) : t; +} +var r = i(22), s = /^(1|on|true)$/i, a = { +boolean: !1, +integer: 0, +float: 0, +string: "" +}, _ = null; +n._initSingleton = function(t) { +_ = new n(t.location.search); +}; +n.buildQuery = function(t) { +var e, i, n, o, s, a, _ = [], l = []; +for (s in t) t.hasOwnProperty(s) && _.push(s); +_.sort(); +for (e = 0, n = _.length; e < n; e++) { +s = _[e]; +a = t[s]; +s = window.encodeURIComponent(s); +if (r(a)) if (1 !== a.length || !0 !== a[0]) for (i = 0, o = a.length; i < o; i++) l.push(s + "=" + window.encodeURIComponent(a[i] + "")); else l.push(s); else l.push(s + "=" + window.encodeURIComponent(a + "")); +} +return l.join("&"); +}; +n.parseQuery = function(t) { +var e, i, o = new n(); +t = t.replace(/^\?|\/+$/g, ""); +var r, s, a = t.split("&"); +for (e = 0, i = a.length; e < i; e++) { +var _ = a[e]; +if (_.length) { +var l = _.indexOf("="); +if (l <= -1) { +r = _; +s = !0; +} else { +r = _.slice(0, l); +s = window.decodeURIComponent(_.slice(l + 1)); +} +o.add(window.decodeURIComponent(r), s); +} +} +return o; +}; +n.getHash = function(t, e) { +var i = e || window.location.hash; +return n.parseQuery(i.replace(/^#/, "")).get(t); +}; +var l = n.prototype; +l.add = function(t, e) { +this.has(t) ? this.store[t].push(e) : this.store[t] = [ e ]; +}; +l.has = function(t) { +return this.store.hasOwnProperty(t); +}; +l.getLast = function(t, e, i) { +return this.has(t) ? this.getAt(t, this.store[t].length - 1, e, i) : o(void 0, e, i); +}; +l.getFirst = function(t, e, i) { +return this.getAt(t, 0, e, i); +}; +l.getAt = function(t, e, i, n) { +return o(this.has(t) ? this.store[t][e] : void 0, i, n); +}; +l.getRaw = function(t) { +return this.has(t) ? this.store[t].concat() : []; +}; +l.get = l.getLast; +l.toString = function() { +return n.buildQuery(this.store); +}; +t.exports = n; +e(n, "meshim_common_QueryString"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +type: "button" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(9); +!function() { +t.mobile(h); +t.rtl(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +background: "transparent", +border: "none", +position: "relative", +width: "100%", +overflow: "hidden", +cursor: "pointer", +"*zoom": 1, +textAlign: "left", +padding: "$$menuItemPadding", +"*": { +cursor: "pointer" +} +}, +"&.rtl": { +textAlign: "right" +}, +"&:hover": { +background: "$$menuItemHoverBg" +}, +"&.mobile": { +borderTopWidth: "$$menuBorderWidth", +borderTopStyle: "$$menuBorderStyle", +borderTopColor: "$$menuBorderColor" +} +}; +s(t, "meshim_widget_widgets_menu_Item"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, a) { +if (!(this instanceof n)) return new n(t, e, i, r, a); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, r, a); +} +var o = i(2), r = i(1), s = i(6); +n.__jx__jcss = { +"**self": { +lineHeight: "1.2", +marginBottom: "$$marginL" +}, +"&.short": { +marginBottom: "0" +} +}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = s; +t.exports = n; +e(n, "meshim_widget_widgets_Body"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_Branding = i(87); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "container_and_brand_wrapper", "", [ [ e.__$$__jx_ui_Widget, "$$defaultplacement$$", "", [], { +container: "default", +addClass: "container", +id: "$$defaultplacement$$" +} ], [ e.__$$__meshim_widget_widgets_Branding, "branding", "", [], { +id: "branding", +addClass: "chat_window_panel_branding", +hideOnDesktop: "true" +} ] ], { +id: "container_and_brand_wrapper", +addClass: "container_and_brand_wrapper" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__container_and_brand_wrapper"), f = n.get(s + "__$$defaultplacement$$"), g = n.get(s + "__branding"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +h.defaultPlacement = f; +var m = function() { +function t() { +var i; +if (v) { +i = "free_flow_with_fixed_titlebar_layout"; +if (d.isStyleSupported("overflow-scrolling")) { +e(); +l(p); +} +} else i = w ? "free_flow_layout" : "full_frame_layout"; +if (i !== t.lastClassName) { +h.removeClass(t.lastClassName); +h.addClass(i); +t.lastClassName = i; +} +} +function e() { +function t() { +p.setCSSStyle("webkitOverflowScrolling", "auto"); +setTimeout(function() { +p.setCSSStyle("webkitOverflowScrolling", "touch"); +}, 50); +} +h.autobind(b.$("chat_window").$("display$bool"), "value", function(e) { +e && t(); +}); +} +function n() { +var t; +t = o ? "cwp_mini" : w || x ? "cwp_full" : "cwp_" + y.getValue(); +if (t !== n.lastClassName) { +h.removeClass(n.lastClassName); +h.addClass(t); +n.lastClassName = t; +} +} +var o, r = i(24), s = i(12), a = i(5), _ = i(9), l = i(358), d = i(10), u = i(168), c = i(167), f = i(166), m = i(353), $ = a.root, b = $.$("livechat").$("ui"), w = b.getValue("mobile$bool"), x = b.getValue("popout$bool"), v = b.getValue("mobile_overlay$bool"), y = $.$("livechat").$("settings").$("theme").$("chat_window").$("size$string"); +h.setTitleBar = function(t) { +if (!h.titleBar) { +var e = t.split(","); +if (-1 == r("none", e)) { +h.titleBar = new u(h); +h.addClass("has_title_bar"); +for (var i = 0, n = e.length; i < n; i++) switch (e[i]) { +case "hidePopout": +h.titleBar.setHidePopout(!0); +} +} else { +h.titleBar = !0; +h.removeClass("has_title_bar"); +} +} +}; +h.getDraggableNode = function() { +return h.titleBar instanceof u ? h.titleBar : null; +}; +h.setActionBar = function(t) { +if (!h.actionBar) { +var e = t.split(","); +if (-1 == r("none", e)) if (w) { +if (-1 != r("default", e)) { +h.actionBar = new f(h); +h.actionBar.addClass("mobile_options_menu_icon"); +} +} else { +h.addClass("has_action_bar_at_bottom"); +-1 != r("default", e) ? h.actionBar = new m(h) : h.actionBar = new c(h); +} else { +h.actionBar = !0; +h.removeClass("has_action_bar_at_bottom"); +} +} +}; +h.setMiniSize = function(t) { +o = s(t); +n(); +}; +h.setHideBrandingMobile = function(t) { +t = s(t); +w && t ? g.addClass("hidden") : g.removeClass("hidden"); +}; +!function() { +_.rtl(h); +h.autobind(y, "value", n); +t(); +}(); +}(); +for (var $ in m) m.hasOwnProperty($) && (h[$] = m[$]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative", +margin: "$$chatWindowPanelMargin" +}, +".container": { +position: "relative", +background: "$$windowContentBg", +borderWidth: "$$windowContentBorderWidth", +borderStyle: "$$windowContentBorderStyle", +borderColor: "$$windowContentBorderColor" +}, +".mobile_options_menu_icon": { +position: "absolute", +zIndex: "102" +}, +".chat_window_panel_branding": { +display: "block", +padding: "5px", +margin: "10px 0", +textAlign: "center", +"&.hidden": { +display: "none !important" +} +}, +".container_and_brand_wrapper": { +"width, height": "100%" +}, +"&.full_frame_layout": { +overflow: "hidden", +"width, height": "100%", +".container": { +"width, height": "100%", +overfow: "hidden" +} +}, +"&.free_flow_layout": { +overflow: "auto", +"width, height": "auto", +".container": { +"width, height": "auto" +} +}, +"&.free_flow_with_fixed_titlebar_layout": { +overflow: "hidden", +"width, height": "100%", +".container_and_brand_wrapper": { +overflow: "auto", +"-webkit-overflow-scrolling": "touch" +}, +".container": { +"width, height": "auto" +} +}, +"&.has_title_bar": { +paddingTop: "$$titleBarHeight" +}, +"&.has_action_bar_at_bottom": { +paddingBottom: "$$actionBarHeight" +}, +"&.cwp_small": { +width: "$$windowSmallWidth", +height: "$$windowSmallHeight" +}, +"&.cwp_medium": { +width: "$$windowMediumWidth", +height: "$$windowMediumHeight" +}, +"&.cwp_large": { +width: "$$windowLargeWidth", +height: "$$windowLargeHeight" +}, +"&.cwp_full": { +"width, height": "100%" +}, +"&.cwp_mini": { +width: "$$windowMiniWidth", +height: "$$windowMiniHeight" +}, +"&.ltr": { +".mobile_options_menu_icon": { +"top, left": 0 +} +}, +"&.rtl": { +".mobile_options_menu_icon": { +"top, right": 0 +} +} +}; +s(t, "meshim_widget_widgets_ChatWindowPanel"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +function i() { +a = !a; +t.apply(o, n); +} +var n, o, r, s, a = !0; +return function() { +n = Array.prototype.slice.call(arguments); +o = this; +if (a) { +s = setTimeout(function() { +a = !0; +}, e); +return i(); +} +s && clearTimeout(s); +r && clearTimeout(r); +r = setTimeout(i, e); +}; +} +function o(t, e) { +function i() { +t.apply(o, n); +} +var n, o, r; +return function() { +r && clearTimeout(r); +n = Array.prototype.slice.call(arguments); +o = this; +r = setTimeout(i, e); +}; +} +function r(t, e) { +function i() { +s = +new Date(); +r = null; +t.apply(o, n); +} +var n, o, r, s = 0; +return function() { +n = Array.prototype.slice.call(arguments); +o = this; +if (!r) { +var t = +new Date() - s; +t >= e ? i() : r = setTimeout(i, e - t); +} +}; +} +function s(t, e) { +function i() { +s = +new Date(); +n = o.length > 1 ? setTimeout(i, e) : null; +t.apply(r.shift(), o.shift()); +} +var n, o = [], r = [], s = 0; +return function() { +o.push(Array.prototype.slice.call(arguments)); +r.push(this); +if (!n) { +var t = +new Date() - s; +t >= e ? i() : n = setTimeout(i, e - t); +} +}; +} +var a = (i(40), { +debounceExceptFirst: n, +debounce: o, +throttle: r, +queue: s +}); +t.exports = a; +e(a, "meshim_common_AsyncUtils"); +return a; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +if (!r(t)) throw new TypeError("FunctionUtils.bind - what is trying to be bound is not callable"); +if (r(t.bind) && !("prototype" in t.bind)) return t.bind.apply(t, a.call(arguments, 1)); +var i = a.call(arguments, 2), n = function() {}, o = function() { +return t.apply(this instanceof n && e ? this : e, i.concat(a.call(arguments))); +}; +n.prototype = o.prototype; +o.prototype = new n(); +return o; +} +function o(t) { +var e; +return function() { +if (!e) { +e = !0; +return t.apply(this, a.call(arguments)); +} +}; +} +var r = i(20), s = { +bind: n, +once: o +}, a = Array.prototype.slice; +t.exports = s; +e(s, "jx_core_FunctionUtils"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +c = b.root; +h = c.$("livechat").$("settings").$("cookie_law"); +p = h.$("enabled$bool"); +f = c.$("livechat").$("profile"); +g = f.$("allow_cookies$bool"); +var t = $.getAllowCookieLaw(); +"boolean" == typeof t && f.write({ +allow_cookies$bool: t +}); +} +function o() { +c.$("connection").$("status$string").getValue() ? window.console && window.console.log && window.console.log("Zendesk Chat: Cookie Law mode must be enabled immediately after embedding script") : h.write({ +enabled$bool: !0 +}); +} +function r(t) { +t = m(t); +var e = a(), i = _(); +if (t !== e) { +$.setAllowCookieLaw(t); +f.write({ +allow_cookies$bool: t +}); +if (s()) { +!1 === t && b.livechat.clearAll(); +t !== i && b.livechat.reconnect(); +} +} +} +function s() { +return !!p.getValue(); +} +function a() { +return g.getValue(); +} +function _() { +var t = a(); +return "boolean" != typeof t || t; +} +function l() { +var t = s(), e = _(); +return t && !1 === e; +} +function d() { +"boolean" != typeof a() && r(!1); +} +function u() { +if (x.isCookieDenied()) { +var t = w.cookie_law.request_use_cookies_golion + "\n\n" + w.cookie_law.privacy_policy + ": https://www.zendesk.com/privacy"; +if (window.confirm(t)) { +x.setUserChoice(!0); +return !0; +} +return !1; +} +return !0; +} +var c, h, p, f, g, m = i(12), $ = i(112), b = i(5), w = i(11), x = { +init: n, +enableCookieLaw: o, +setUserChoice: r, +isCookieDenied: l, +setDefaultImplicitConsent: d, +requestPermission: u +}; +t.exports = x; +e(x, "meshim_widget_controllers_CookieLaw"); +return x; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, r) { +if (!(this instanceof n)) return new n(t, e, i, o, r); +r || (r = {}); +r.tagName || (r.tagName = "form"); +r.method || (r.method = "post"); +s.call(this, t, e, i, o, r); +this.on("submit", function(t) { +this.validate() || t.preventDefault(); +}); +this.on("reset", function(t) { +t.preventDefault(); +this.reset(); +}); +} +var o = i(1), r = i(12), s = i(6); +n.prototype = o(s.prototype); +n.prototype.submit = function() { +this.dom.submit(); +return this; +}; +n.prototype.reset = function() { +for (var t = this.getElements(), e = 0; e < t.length; e++) t[e].reset && t[e].reset(); +return this; +}; +n.prototype.getElements = function() { +for (var t = [], e = 0, i = this.dom.elements.length; e < i; e++) t.push(this.dom.elements[e].jx_wrapper || this.dom.elements[e]); +return t; +}; +n.prototype.getAutocomplete = n.prototype.getAutoComplete = function() { +return this.dom.autocomplete; +}; +n.prototype.setAutocomplete = n.prototype.setAutoComplete = function(t) { +if (void 0 === this.dom.autocomplete) return this; +if ("on" === t || "off" === t) { +this.dom.autocomplete = t; +return this; +} +t = r(t); +this.dom.autocomplete = t ? "on" : "off"; +return this; +}; +n.prototype.getNoValidate = function() { +return this.dom.noValidate; +}; +n.prototype.setNoValidate = function(t) { +this.dom.noValidate = r(t); +return this; +}; +n.prototype.getMethod = function() { +return this.dom.method; +}; +n.prototype.setMethod = function(t) { +this.dom.method = t; +return this; +}; +t.exports = n; +e(n, "jx_ui_Form"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, s) { +if (!(this instanceof n)) return new n(t, e, i, r, s); +s || (s = {}); +s.tagName || (s.tagName = "input"); +l.call(this, t, e, i, r, s); +if (o.engineIE <= 8 && s.type && s.tagName && "input" == s.tagName.toLowerCase()) { +var a = this.parentNode; +this.parentNode.removeChild(this.parentNode instanceof u ? this : this.dom); +this.dom = t.doc.createElement("<" + s.tagName + ' type="' + s.type + '" name="' + (s.name || "") + '"/>'); +this.dom.jx_wrapper = this; +this.style = this.dom.style; +a.appendChild(a instanceof u ? this : this.dom); +this.setStyle(i); +this.setAttributes(s); +this.addClass(this.__jx__fqname); +} +s.initialValue && this.setValue(s.initialValue); +this.setAttribute("id", this.jx_id); +s.label && this.setLabel(s.label); +s.errorMessage && this.setErrorMessage(s.errorMessage); +this.on("blur", function() { +this.onAutoValidate(); +}); +} +var o = i(8), r = i(1), s = i(12), a = i(24), _ = i(19), l = i(6), d = i(42), u = i(23), c = /^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+([a-z0-9][a-z0-9-]*[a-z0-9])$/i, h = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/i, p = { +required: 1, +pattern: 2, +maxlength: 4, +min: 8, +max: 16, +step: 32 +}, f = { +button: 1, +checkbox: 1, +email: 7, +hidden: 0, +number: 57, +password: 3, +radio: 1, +range: 25, +reset: 0, +search: 7, +select: 1, +submit: 0, +tel: 7, +text: 63, +textarea: 1, +url: 7 +}; +n.prototype = r(l.prototype); +n.prototype.getLabel = function() { +return this.label && this.label.getText(); +}; +n.prototype.setLabel = function(t) { +t && this.createLabel(t); +this.label && this.label.setText(t); +return this; +}; +n.prototype.createLabel = function(t) { +if (this.label instanceof u) return this; +if (!this.dom.parentNode) return this; +this.label = new _(this.parentNode, null, null, null, { +tagName: "label" +}); +this.getNextSibling() != this.label && this.parentNode.insertBefore(this.label, this.getNextSibling()); +this.label.setAttribute("for", this.jx_id || ""); +this.label.addClass("label"); +this.label.addClass(this.attributes.type || this.getInputType() || ""); +this.label.setText(t || this.attributes.label || ""); +this.defaultLabel = !0; +return this; +}; +n.prototype.getLabelElement = function() { +return this.label; +}; +n.prototype.setLabelElement = function(t) { +if (!(t instanceof u)) return this; +this.defaultLabel && this.label.destroy(); +this.label = t; +this.label.setAttribute("for", this.jx_id || ""); +this.defaultLabel = !1; +return this; +}; +n.prototype.getErrorMessage = function() { +return this.errorMessage && this.errorMessage.getText(); +}; +n.prototype.setErrorMessage = function(t) { +t && this.createErrorMessage(t); +this.errorMessage && this.errorMessage.setText(t); +return this; +}; +n.prototype.showErrorMessage = function() { +this.errorMessage && this.errorMessage.setVisible(!0).setDisplay(""); +return this; +}; +n.prototype.hideErrorMessage = function() { +this.errorMessage && this.errorMessage.setVisible(!1); +return this; +}; +n.prototype.createErrorMessage = function(t) { +if (this.errorMessage instanceof u) return this; +if (!this.dom.parentNode) return this; +this.errorMessage = new _(this.parentNode, null, null, null, { +tagName: "label" +}); +(this.label ? this.label.getNextSibling() : this.getNextSibling()) != this.errorMessage && this.parentNode.insertBefore(this.errorMessage, this.label ? this.label.getNextSibling() : this.getNextSibling()); +this.errorMessage.setAttribute("for", this.jx_id || ""); +this.errorMessage.addClass("error_message"); +this.errorMessage.addClass(this.attributes.type || this.getInputType() || ""); +this.setErrorMessage(t || this.attributes.errorMessage || ""); +this.hideErrorMessage(); +this.defaultErrorMessage = !0; +return this; +}; +n.prototype.getErrorMessageElement = function() { +return this.errorMessage; +}; +n.prototype.setErrorMessageElement = function(t) { +if (!(t instanceof u)) return this; +this.defaultErrorMessage && this.errorMessage.destroy(); +this.errorMessage = t; +this.errorMessage.setAttribute("for", this.jx_id || ""); +this.defaultErrorMessage = !1; +return this; +}; +n.prototype.validate = function(t) { +var e = this.getInputType(), i = this.getValue(), n = f[e], o = this.dom, r = (!(n & p.required) || !o.required || "" !== (i || "").trim() && null != i) && (!(n & p.pattern) || !o.pattern || new RegExp(o.pattern).test(i)) && (!(n & p.maxlength) || !(o.maxLength && o.maxLength >= 0) || i.length <= o.maxLength) && (!(n & p.min) || !o.min || parseFloat(i) >= parseFloat(o.min)) && (!(n & p.max) || !o.max || parseFloat(i) <= parseFloat(o.max)) && ("email" != e || (o.required ? c.test(i) : "" === i || c.test(i))) && ("url" != e || (o.required ? h.test(i) : "" === i || h.test(i))); +!r && t && this.focus(); +this.setValidity(r); +return r; +}; +n.prototype.getValidity = function() { +return this.validity; +}; +n.prototype.setValidity = function(t) { +this.validity = s(t); +this.validity ? (this.hideErrorMessage(), this.addClass("valid"), this.removeClass("invalid")) : (this.showErrorMessage(), +this.removeClass("valid"), this.addClass("invalid")); +return this; +}; +n.prototype.getAutoValidate = function() { +return this.autoValidate; +}; +n.prototype.setAutoValidate = function(t) { +this.autoValidate = s(t); +return this; +}; +n.prototype.onAutoValidate = function() { +if (this.autoValidate && !this.getDisabled() && !this.getReadOnly()) return this.validate(); +}; +n.prototype.reset = function() { +var t = this.getType(); +if ("submit" == t || "reset" == t) return this; +this.setValue(this.getInitialValue() || "").setValidity(!0); +return this; +}; +var g = "textarea button select".split(" "); +n.prototype.getInputType = function() { +return -1 != a(this.tagName, g) ? this.tagName : this.getType(); +}; +n.prototype.getType = function() { +return this.validationType || l.prototype.getType.call(this); +}; +n.prototype.setType = function(t) { +this.validationType = t; +l.prototype.setType.call(this, t); +}; +n.prototype.getInitialValue = function() { +return o.engineIE <= 8 ? this._initialValue : this.dom.getAttribute("value"); +}; +n.prototype.setInitialValue = function(t) { +o.engineIE <= 8 ? this._initialValue = t && (t.toString ? t.toString() : t) : this.setAttribute("value", t); +return this; +}; +n.prototype.getRequired = function() { +return this.dom.required; +}; +n.prototype.setRequired = function(t) { +this.dom.required = s(t); +return this; +}; +n.prototype.getPattern = function() { +return this.dom.pattern; +}; +n.prototype.setPattern = function(t) { +this.dom.pattern = t; +return this; +}; +n.prototype.getMin = function() { +return this.dom.min; +}; +n.prototype.setMin = function(t) { +this.dom.min = t; +return this; +}; +n.prototype.getMax = function() { +return this.dom.max; +}; +n.prototype.setMax = function(t) { +this.dom.max = t; +return this; +}; +n.prototype.getMaxLength = function() { +return this.dom.maxLength; +}; +n.prototype.setMaxLength = function(t) { +this.dom.maxLength = parseInt(t, 10); +return this; +}; +n.prototype.getStep = function() { +return this.dom.step; +}; +n.prototype.setStep = function(t) { +this.dom.step = t; +return this; +}; +n.prototype.getMultiple = function() { +return this.dom.multiple; +}; +n.prototype.setMultiple = function(t) { +this.dom.multiple = s(t); +return this; +}; +n.prototype.getAutocomplete = n.prototype.getAutoComplete = d.prototype.getAutocomplete; +n.prototype.setAutocomplete = n.prototype.setAutoComplete = d.prototype.setAutocomplete; +n.prototype.select = function() { +this.dom.select && this.dom.select(); +return this; +}; +n.prototype.getForm = function() { +return this.dom.form && (this.dom.form.jx_wrapper || this.dom.form); +}; +t.exports = n; +e(n, "jx_ui_Input"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "a"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_a"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +p = t; +} +function o(t) { +j = t ? b.getAuthServerURL(t) : b.AUTH_SERVER_URL; +} +function r(t) { +c = t; +} +function s() { +return c; +} +function a(t) { +if (h) { ++new Date() - h.issued_at >= h.expires_in - 6e4 ? w.authenticate(function(e) { +if (e) { +p && p.$("visitor").$("auth_status$string").update("failed"); +t(e, null); +} else t(null, h.id_token); +}) : t(null, h.id_token); +} else t(null, null); +} +function _() { +c = void 0; +h = void 0; +p && p.$("visitor").$("authenticated$bool").update(!1); +} +function l() { +return !!h; +} +function d(t) { +c && c(g.once(function(e) { +e && f(e) ? w.exchangeToken({ +account_key: b.ACCOUNT_KEY, +auth_url: j, +site_jwt: e, +state: h && h.state ? h.state : null +}, function(e, i) { +h = i; +p && p.$("visitor").$("authenticated$bool").update(!e); +t(e); +}) : t({ +reason: "invalid jwt in callback" +}); +})); +} +function u(t, e) { +var i = new m(); +i.on("success", function(t) { +"object" != typeof t && e && e({ +reason: x +}); +t.success ? e && e(void 0, { +issued_at: +new Date(), +id_token: t.id_token, +expires_in: 1e3 * t.expires_in, +state: t.state +}) : e && e({ +reason: y, +details: t.details +}); +}); +i.on("error", function() { +e && e({ +reason: v +}); +}); +var n = { +account_key: t.account_key, +token: t.site_jwt, +format: "dataiframe" +}; +t.state && (n.state = t.state); +i.load(t.auth_url + "?" + $.buildQuery(n)); +} +var c, h, p, f = i(21), g = i(40), m = i(113), $ = i(35), b = i(18), w = { +authenticate: d, +isAuthenticated: l, +getSiteJWTFunc: s, +retrieveIDToken: a, +clearIdentity: _, +setOverrideHost: o, +setSiteJWTFunc: r, +setDataNode: n, +exchangeToken: u +}, x = "format error", v = "network/security error", y = "jwt verification error", j = b.AUTH_SERVER_URL; +t.exports = w; +e(w, "meshim_widget_controllers_IdentityController"); +return w; +}(); +}).call(this, i(0)); +}, function(t, e) { +var i = { +build_number: "20180828.040699", +git_commit: "8f8193c138248a44231e2f1de3868d4838327c3d", +release_tag: "!ERR" +}; +t.exports = i; +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, r) { +function s(e) { +if (e) for (var i in e) e.hasOwnProperty(i) && i in h && h[i](e[i], t); +} +if (!(this instanceof n)) return new n(t, e, i, o, r); +c.root.$("tmp").$("api_settings").$("settings").$("theme").$("custom_fonts").$("config$json").on("value", s); +} +function o(t, e) { +for (var i = 0, n = t.urls.length; i < n; i++) d(e, null, null, null, { +href: t.urls[i] +}); +} +function r(t, e) { +d(e, null, null, null, { +href: l(t.families, t.text) +}); +} +function s(t, e) { +var i = t.projectId, n = t.version; +new u(e, null, null, null, { +src: "//fast.fonts.net/jsapi/" + i + ".js" + (n ? "?v=" + n : "") +}); +} +function a(t, e) { +var i = e.ownerDocument; +0 === i.documentElement.getElementsByTagName("script").length && new u(e); +var n = t.api || "https://use.typekit.net"; +!function(e) { +var i, o = { +kitId: t.id, +scriptTimeout: 3e3 +}, r = e.documentElement, s = setTimeout(function() { +r.className = r.className.replace(/\bwf-loading\b/g, "") + " wf-inactive"; +}, o.scriptTimeout), a = e.createElement("script"), _ = !1, l = e.getElementsByTagName("script")[0]; +r.className += " wf-loading"; +a.src = n + "/" + o.kitId + ".js"; +a.async = !0; +a.onload = a.onreadystatechange = function() { +i = this.readyState; +if (!(_ || i && "complete" != i && "loaded" != i)) { +_ = !0; +clearTimeout(s); +try { +(e.defaultView ? e.defaultView : e.parentWindow).Typekit.load(o); +} catch (t) {} +} +}; +l.parentNode.insertBefore(a, l); +}(i); +} +function _(t, e) { +var i = window.location.hostname, n = t.id; +new u(e, null, null, null, { +src: "//f.fontdeck.com/s/css/js/" + i + "/" + n + ".js" +}); +} +function l(t, e) { +for (var i = "//fonts.googleapis.com/css?family=", n = [], o = [], r = 0, s = t.length; r < s; r++) { +var a = t[r].split(":"); +3 === a.length && o.push(a.pop().replace(/ /g, "+")); +var _ = 2 == a.length && "" != a[1] ? ":" : ""; +n.push(a.join(_).replace(/ /g, "+")); +} +i += n.join("%7C"); +o.length > 0 && (i += "&subset=" + o.join(",")); +e && e.length > 0 && (i += "&text=" + window.encodeURIComponent(e)); +return i; +} +var d = i(254), u = i(253), c = i(5), h = { +custom: o, +google: r, +monotype: s, +typekit: a, +fontdeck: _ +}; +t.exports = n; +e(n, "meshim_widget_widgets_fontLoader_CustomFonts"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(9); +!function() { +t.mobile(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +padding: "5px 0", +borderTopWidth: "$$menuBorderWidth", +borderTopStyle: "$$menuBorderStyle", +borderTopColor: "$$menuBorderColor", +"*borderTop": "none", +"*zoom": 1, +"*position": "relative" +}, +"&:first-child": { +borderTop: "none" +}, +"&.flow": { +padding: "0", +margin: "10px" +}, +"&.mobile": { +padding: "0", +borderTop: "0 none" +}, +"&.border_top": { +borderTopWidth: "$$menuBorderWidth", +borderTopStyle: "$$menuBorderStyle", +borderTopColor: "$$menuBorderColor" +} +}; +s(t, "meshim_widget_widgets_menu_Section"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "primary", "", [], { +id: "primary", +addClass: "button_container left", +container: "primary" +} ], [ e.__$$__jx_ui_Widget, "secondary", "", [], { +id: "secondary", +addClass: "button_container right", +container: "secondary" +} ], [ e.__$$__jx_ui_Widget, "", "", [], { +addClass: "clear_both" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__primary"), f = n.get(s + "__secondary"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t() { +var t = !!(e && e.rtl && e.rtl()), i = o != t; +p.addClass(i ? "right" : "left"); +p.removeClass(i ? "left" : "right"); +f.addClass(i ? "left" : "right"); +f.removeClass(i ? "right" : "left"); +} +var e = i(7), n = i(5), o = n.root.$("livechat").$("ui").$("mobile$bool").getValue() || !1; +!function() { +t(); +if (e && e.onLanguage) { +e.onLanguage(t); +h.onDestruction(function() { +e.unLanguage(t); +}); +} +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (h[m] = g[m]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +".button_container": { +width: "48%" +}, +".left": { +float: "left" +}, +".right": { +float: "right" +}, +".clear_both": { +clear: "both" +} +}; +s(t, "meshim_widget_widgets_Controls"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(20), o = i(22), r = i(26), s = function() { +function t() { +if (d || u) return !0; +var t, e = window[window.GoogleAnalyticsObject || "ga"]; +if (n(e)) { +u = e; +t = !0; +} +if (window._gaq && window._gat) { +d = window._gaq; +c = window._gat; +t = !0; +} +return t; +} +function e(t) { +var e; +t == p.NEW && u ? n(u.getAll) && (e = u.getAll()) : t == p.OLD && c && (n(c._getTrackers) ? e = c._getTrackers() : n(c._getTrackerByName) && (e = [ c._getTrackerByName() ])); +return o(e) ? e : []; +} +function i(t, e, i, n) { +try { +s(t, e, i, n); +} catch (t) {} +} +function s(e, i, n, o) { +if (!g && t() && e) { +u && a(e, i, n, o); +d && _(e, i, n, o); +} +} +function a(t, i, o, s) { +h = e(p.NEW); +var a = { +hitType: "event", +eventCategory: o || f, +eventAction: t +}; +r(i, !0) || (a.eventLabel = i); +r(s, !0) || (a.eventValue = s); +if (h.length) for (var _ = 0, l = h.length; _ < l; _++) n(h[_].send) && h[_].send("event", a); else u("send", a); +} +function _(t, i, o, s) { +h = e(p.OLD); +d.push(function() { +for (var e = 0, a = h.length; e < a; e++) if (n(h[e]._trackEvent)) { +r(i, !0) && (i = void 0); +r(s, !0) && (s = void 0); +h[e]._trackEvent(o || f, t, i, s); +} +}); +} +function l(t) { +g = t; +} +var d, u, c, h, p = { +OLD: "ga.js", +NEW: "analytics.js" +}, f = "Zopim Livechat", g = !1; +return { +trackEvent: i, +setDisabled: l +}; +}(); +t.exports = s; +e(s, "meshim_widget_controllers_GoogleAnalytics"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "td"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_td"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "tr"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_tr"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "tbody"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_tbody"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "table"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_table"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(2), o = i(1), r = i(171), s = r; +r = function(t, e, i, o, a) { +if (!(this instanceof r)) return new r(t, e, i, o, a); +if (!r.__jx__jcss_generated) { +n.generate(this, r.prototype.__jx__fqname, r.__jx__jcss, null, r); +r.__jx__jcss_generated = !0; +} +a || (a = {}); +s.call(this, t, e, i, o, a); +}; +r.__jx__jcss = { +"**self": { +"width, height": "100%" +} +}; +r.prototype = o(s.prototype); +r.prototype.__jx__super = s; +t.exports = r; +e(r, "meshim_widget_widgets_ViewStack"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +t.bindValue(o); +} +function o(t) { +if ("registered" == t || "reattached" == t || "cookie_law" == t) { +_ = !0; +a.flush(); +} else _ = !1; +} +function r() { +if (_ && this.queue.length) { +p.root.$("livechat").$("ui").$("mockup$bool").getValue() || l(a.send) && a.send({ +__type: "instrumentation", +metrics: this.queue +}); +this.queue = []; +} +} +function s() { +var t = []; +t.push("client_country_code:" + f.COUNTRY_CODE); +t.push("browser:" + d.browser); +var e, i; +if (h.isMobileBrowser) { +e = h.isMobileTablet ? "tablet" : "mobile"; +i = h.isAndroid ? "android" : h.isIOS ? "ios" : h.isWP ? "wp" : "other"; +} else { +e = "desktop"; +i = d.isWindows ? "win" : d.isMac ? "mac" : "other"; +} +t.push("device:" + e); +t.push("platform:" + i); +t.push("rev:" + u.git_commit); +return t; +} +var a, _, l = i(20), d = i(8), u = i(46), c = i(175), h = i(34), p = i(5), f = i(18); +!function() { +a = new c(); +a.setTags(s()); +a.bindToConnectionStatus = n; +a.flush = r; +}(); +t.exports = a; +e(a, "meshim_widget_controllers_InstrumentationController"); +return a; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +function e() { +if ("prerender" != document.visibilityState) { +document.removeEventListener("visibilitychange", e); +Lt.connect(); +} +} +rt = t.isCookieDenied; +st = t.overrideProxy; +at = t.source; +_t = t.lastHost; +lt = t.source_ver; +U = t.activity_window || window; +q = U.document; +G = t.root; +Z = G.$("tmp").$("api_settings"); +Q = G.$("tmp").$("server_settings"); +J = G.$("livechat").$("settings").$("cached$bool"); +Y = G.$("connection"); +tt = Y.$("server_retired$bool"); +it = Y.$("server_ready$bool"); +it.bindValue(a); +tt.bindValue(s); +K = G.$("livechat").$("ui").$("mockup$bool").getValue(); +if (K) Y.$("status$string").update("reattached"); else { +G.$("livechat").$("profile").bindValue(r); +Y.$("status$string").bindValue(o); +Y.$("socket_status$string").bindValue(I); +G.bindWrite(P); +Y.$("reconnect$bool").bindValue(g); +if (window.__z_sdk) H = !0; else { +H = !1; +"visibilityState" in document && "prerender" == document.visibilityState ? document.addEventListener("visibilitychange", e) : Lt.connect(); +} +} +} +function o(t) { +Tt = "reattached" == t; +if (Tt) { +Y.update({ +client_reattached_timestamp$int: +new Date() +}); +P(); +} +Tt && !1 === H && T(); +if ("idle_disconnect" == t || "shutdown" == t || "error" == t) { +var e = G.$("livechat").$("account").$("status$string").getValue(), i = G.$("connection").$("backoff"), n = i.$("active$int").getValue() || 0, o = i.$("max_seconds$int").getValue(); +"invalid_account_key" == e ? bt.warnBadEmbed() : "widget_v2" == at && "shutdown" == t && n && o && p(o); +c(); +} +I(); +} +function r(t) { +t && (rt() || ft.IS_POPOUT || t.mid$string && gt.setIdentity(t.mid$string)); +} +function s(t) { +et = !0 === t; +} +function a(t) { +nt = !1 !== t; +if (nt) { +Dt = !1; +_(); +} +} +function _() { +for (var t = 0, e = Nt.length; t < e; t++) { +var i = Nt[t]; +ut(i) && i(); +} +Nt = []; +} +function l(t) { +if (!nt || et) { +Y.update({ +server_ready$bool: !1 +}); +Nt.push(t); +if (!Dt) { +Dt = !0; +X.reconnect(); +} +} else t(); +} +function d(t) { +X && X.send(t); +} +function u(t) { +for (var e = -1, i = 0; i < kt.length; i++) if (kt[i].socket == t) { +e = i; +break; +} +if (-1 !== e) { +var n = kt[e].expiryTimer; +t.close(); +clearTimeout(n); +} +} +function c(t) { +X && u(X); +z = !t; +X = null; +It = ""; +} +function h() { +window.clearTimeout(Lt.reconnectTimer); +c(!0); +Lt.connect(); +} +function p(t) { +window.clearTimeout(Lt.reconnectTimer); +Lt.reconnectTimer = window.setTimeout(function() { +Lt.reconnect(); +}, 1e3 * t); +} +function f() { +Y.update({ +status$string: "idle_disconnect" +}); +} +function g(t) { +t && h(); +} +function m(t) { +var e = dt || new wt(t, "W", null, jt); +e.on("open", function() { +x(t, e); +}); +return e; +} +function $() { +var t = b(); +try { +ot = At.getGeoAccess(st, t, 3, 2); +} catch (t) { +window.console && window.console.log("Unable to compute host list"); +return; +} +w(Ct); +} +function b() { +return _t || Y.$("server$string").getValue() || ""; +} +function w(t) { +function e() { +clearTimeout(o); +n.un("close", e); +w(t); +} +if (!X && !z) { +var i = ot.getNextHost(); +if (i) { +Et++; +var n = m(i); +kt.push({ +socket: n, +expiryTimer: setTimeout(function() { +n != X && n.close(); +}, St) +}); +if (ot.hasNext()) { +var o = setTimeout(e, t); +n.on("close", e); +} +} +} +} +function x(t, e) { +if (!K) if (X) u(e); else { +Y.update({ +socket_open_timestamp$int: +new Date(), +socket_status$string: null, +disconnection_status$string: null +}); +It = t; +$t.increment("conn", [ "tries:" + Et ]); +Et = 0; +$t.start("conn_open", e.starttime); +$t.end("conn_open", .25, [ "proxy:" + t ]); +X = e; +X.on("break", y); +X.on("message", v); +X.on("reopen", C); +X.on("resume", j); +X.on("error", function() { +var t = this.connect_attempts, e = this.recv_messages; +if (t > 3 && 0 == e) { +c(!0); +w(Ct); +} +}); +A(); +} +} +function v(t) { +if (t) { +if (t.raw && t.raw.__messageID in Pt) { +var e = Pt[t.raw.__messageID]; +delete Pt[t.raw.__messageID]; +e(t); +} +var i = G; +if ("update" in t) { +var n = bt.getValueByReference(t, "livechat.account"); +if (n) { +Q.$("account").update(n); +bt.fullyExtend(n, Z.getValue("account")); +} +var o = bt.getValueByReference(t, "livechat.settings"); +if (o) { +Q.$("settings").update(o); +bt.fullyExtend(o, Z.getValue("settings")); +} +var r = bt.getValueByReference(t, "livechat.profile.mid$string"); +if (r && r !== gt.getIdentity()) { +G.$("livechat").$("channel").update(null); +G.$("livechat").$("profile").update(null); +G.$("livechat").$("ui").$("chat_button").$("unread_count$int").update(0); +} +t.path && (i = i.descend(t.path)); +i.update(t.update); +Lt.fire("message", t); +} +} +} +function y() { +Y.update({ +socket_status$string: "break" +}); +} +function j() { +Y.update({ +socket_resume_timestamp$int: +new Date(), +socket_status$string: "resume" +}); +} +function C() { +Y.update({ +socket_open_timestamp$int: +new Date(), +socket_status$string: "reconnect" +}); +Tt = !1; +A(); +} +function S() { +var t = gt.getIdentity(), e = rt(), i = G.$("livechat").$("ui").getValue("mobile$bool") ? "mobile" : "desktop", n = G.$("livechat").$("settings").$("theme").getValue("name$string"), o = { +__type: "register", +accountKey: ft.ACCOUNT_KEY, +mID: t, +ua: U.navigator.userAgent, +dt: i, +theme: n, +cookie_law: e, +rev: ct.git_commit, +source: at, +source_ver: lt +}; +if (G.$("livechat").$("ui").$("popout$bool").getValue()) o.popout = !0; else { +o.title = q.title; +o.url = U.location.href; +o.ref = U.document.referrer; +} +var r = Lt._register; +if (r) for (var s in r) r.hasOwnProperty(s) && (o[s] = r[s]); +return o; +} +function A() { +if (ft.ACCOUNT_KEY) { +X || Lt.connect(); +var t = S(); +mt.retrieveIDToken(function(e, i) { +if (e) M(); else { +if (i) { +delete t.mID; +t.idt = i; +} +d(t); +} +}); +} +} +function k() { +return !!J.getValue(); +} +function I() { +var t = Y.getValue("status$string"), e = Y.getValue("socket_status$string"); +window.clearTimeout(B.timer); +if ("error" != t) if ("break" == e) if ("idle_disconnect" == t) Y.update({ +message$string: "idle_disconnect" +}); else { +Y.update({ +message$string: "reconnecting" +}); +B.timer = window.setTimeout(B, 6e4); +} else if (null === e && "registered" == t) Y.update({ +message$string: "resuming" +}); else if (ht(t) && ht(e)) { +var i = k() ? "fast_init" : "first_init"; +Y.update({ +message$string: i +}); +} else Y.update({ +message$string: null +}); else B.timer = window.setTimeout(B, 5e3); +} +function T() { +X && G.$("livechat").$("profile").write({ +disconnect_timeout$int: W(X.rtt) +}); +} +function B() { +Y.update({ +message$string: "disconnected" +}); +} +function N() { +var t = X; +return t ? { +connect_attempts: t.connect_attempts, +connections: t.connections, +disconnects: t.disconnects, +timeout_server: t.timeout_server, +timeout_response_soft: t.timeout_response_soft, +timeout_response_hard: t.timeout_response_hard, +sent_bytes: t.sent_bytes, +recv_bytes: t.recv_bytes, +sent_messages: t.sent_messages, +recv_messages: t.recv_messages, +sent_frames: t.sent_frames, +recv_frames: t.recv_frames, +lost_frames: t.lost_frames, +ooo_frames: t.ooo_frames, +bytes_at_connect: t.bytes_at_connect, +rtt: t.rtt, +clock_skew: t.clock_skew, +reconnect_delay: t.reconnect_delay, +quality: t.quality, +host: t.host, +status: t.status, +zone: window.__$__GEO, +last_frame_time: t.last_frame_time, +local_time: +new Date() +} : { +status: "not connected" +}; +} +function D() { +return It; +} +function E() { +return +new Date() - (X ? X.clock_skew : 0); +} +function O(t) { +Ot += 1; +Pt[Ot] = t; +return Ot; +} +function P(t) { +if (t) { +var e = {}; +e.path = t.path; +e.value = t.value; +ut(t.func) && (e.__messageID = O(t.func)); +Bt.push(e); +} +if (X && Tt) for (;Bt.length; ) X.send(Bt.shift()); +} +function L(t) { +return t ? Q.getValue(t) : Q.getValue(); +} +function W(t) { +var e, i, n = 10 * yt.SECOND, o = 1 * yt.SECOND, r = 120 * yt.SECOND, s = 20 * yt.SECOND; +t = Math.round(t) || 0; +t = Math.max(o, Math.min(t, n)); +e = (t - o) / (n - o); +i = s + function(t) { +return t; +}(e) * (r - s); +return Math.floor(i / 1e3); +} +function R(t) { +dt = t; +} +function F() { +V(); +} +function M() { +Y.update({ +disconnection_status$string: "disconnecting" +}); +c(); +kt.forEach(function(t) { +u(t.socket); +t.socket.fire("close"); +}); +B.timer = clearTimeout(B.timer); +Y.update({ +disconnection_status$string: "disconnected" +}); +} +function V() { +it.unbindValue(a); +tt.unbindValue(s); +G.$("livechat").$("profile").unbindValue(r); +Y.$("status$string").unbindValue(o); +Y.$("socket_status$string").unbindValue(I); +Y.$("reconnect$bool").unbindValue(g); +M(); +kt = [], It = "", Tt = !1, Bt = [], Nt = [], Dt = !1, Et = 0, Ot = 0, Pt = {}, H = z = G = Y = X = K = Z = Q = J = tt = et = it = nt = ot = rt = st = at = _t = lt = dt = null; +} +var H, z, U, q, G, Y, X, K, Z, Q, J, tt, et, it, nt, ot, rt, st, at, _t, lt, dt, ut = i(20), ct = i(46), ht = i(26), pt = i(14), ft = i(18), gt = i(112), mt = i(45), $t = i(56), bt = i(10), wt = i(375), xt = i(370), vt = i(369), yt = i(174), jt = { +FLUSH_DELAY_MS: 0, +RECONNECT_DELAY_MS: 1e4 +}, Ct = 3e3, St = 6e4, At = new vt(xt, '{"CLUSTERS":{"US":["us08","us10","us12","us14","us16","us18","us20","us22","us24","us26","us28","us30","us32","us34","us36","us38","us40","us42","us44","us46"],"DE":["de04","de06","de08","de10","de12","ie02","ie04","ie06","ie08","ie10","ie12","ie14","ie16","de14","de16","de18","de20","ie18","ie20","ie22","ie24","de22","de24","de26","de28"],"SG":["sg06","sg08","sg10","sg12","sg14","sg16","sg18","sg20"],"JP":["jp02","jp04","jp06","jp08"],"AU":["au02","au04"],"BR":["br02","br04","br06","br08","br10","br12"]},"FALLBACKS":{"US":["DE"],"DE":["US"],"SG":["US"],"JP":["US"],"AU":["SG","US"],"BR":["US"]},"NEAR_MAP":{"AL":"DE","AD":"DE","AM":"DE","AT":"DE","BY":"DE","BE":"DE","BA":"DE","BG":"DE","CH":"DE","CY":"DE","CZ":"DE","DE":"DE","DK":"DE","EE":"DE","ES":"DE","EU":"DE","FO":"DE","FI":"DE","FR":"DE","GB":"DE","GE":"DE","GI":"DE","GR":"DE","HU":"DE","HR":"DE","IE":"DE","IM":"DE","IS":"DE","IT":"DE","LT":"DE","LU":"DE","LV":"DE","MC":"DE","MK":"DE","MT":"DE","NO":"DE","NL":"DE","PK":"DE","PO":"DE","PT":"DE","RO":"DE","SA":"DE","SE":"DE","SI":"DE","SK":"DE","SM":"DE","TR":"DE","UA":"DE","VA":"DE","ZA":"DE","NG":"DE","MA":"DE","AP":"SG","BD":"SG","BN":"SG","CN":"SG","ID":"SG","IN":"SG","LA":"SG","KH":"SG","LK":"SG","MM":"SG","MY":"SG","SG":"SG","TH":"SG","VN":"SG","AU":"AU","NZ":"AU","HK":"JP","KR":"JP","JP":"JP","PH":"US","RU":"JP","TW":"JP","AR":"BR","BO":"BR","BR":"BR","CL":"BR","PE":"BR","PY":"BR","UY":"BR","DEFAULT":"US"}}'), kt = [], It = "", Tt = !1, Bt = [], Nt = [], Dt = !1, Et = 0, Ot = 0, Pt = {}, Lt = pt.extend({ +init: n, +send: d, +connect: $, +reconnect: h, +clientDisconnect: M, +destroy: V, +disconnect: f, +getConnectionStats: N, +getHost: D, +getServerTime: E, +getServerSettings: L, +reconnectIfServerRetired: l, +registerCallback: O, +getDCTimeoutValue: W, +setSocket: R, +reset: F +}); +t.exports = Lt; +e(Lt, "meshim_widget_controllers_ConnectionController"); +return Lt; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +return '"' + t.replace(u, o) + '"'; +} +function o(t) { +return c[t] || "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4); +} +function r(t) { +switch (typeof t) { +case "string": +return n(t); + +case "number": +return isFinite(t) ? t.toString() : "null"; + +case "boolean": +return String(t); + +case "object": +if (!t) return "null"; +var e, i, o = []; +if (l(t)) { +for (e = 0, i = t.length; e < i; e++) o[e] = r(t[e]) || "null"; +return "[" + o.join(",") + "]"; +} +var s, a, _ = []; +for (s in t) t.hasOwnProperty(s) && _.push(s); +_.sort(); +for (e = 0, i = _.length; e < i; e++) { +s = _[e]; +a = r(t[s]); +a && o.push(n(s) + ":" + a); +} +if (o.length) return "{" + o.join(",") + "}"; +} +} +function s(t, e, i) { +return e ? f[e] : String.fromCharCode(parseInt(i, 16)); +} +function a(t) { +var e, i, n, o, r, a = t.match(h), _ = a.length, l = a[0]; +"{" == l ? (e = {}, r = 1) : "[" == l ? (e = [], r = 1) : (e = [], r = 0, i = !0); +var d = [ e ]; +for (_ = a.length; r < _; ++r) { +l = a[r]; +switch (l.charCodeAt(0)) { +case 91: +o = d[0]; +d.unshift(o[n || o.length] = []); +n = void 0; +break; + +case 93: +d.shift(); +break; + +case 123: +o = d[0]; +d.unshift(o[n || o.length] = {}); +n = void 0; +break; + +case 125: +d.shift(); +break; + +case 102: +o = d[0]; +o[n || o.length] = !1; +n = void 0; +break; + +case 110: +o = d[0]; +o[n || o.length] = null; +n = void 0; +break; + +case 116: +o = d[0]; +o[n || o.length] = !0; +n = void 0; +break; + +case 34: +l = l.substring(1, l.length - 1); +-1 !== l.indexOf(m) && (l = l.replace(p, s)); +o = d[0]; +if (void 0 == n) { +if (!(o instanceof Array)) { +n = l || g; +break; +} +n = o.length; +} +o[n] = l; +n = void 0; +break; + +default: +o = d[0]; +o[n || o.length] = +l; +n = void 0; +} +} +if (i) { +if (1 == d.length) return e[0]; +} else if (!d.length) return e; +throw "error"; +} +var _ = i(26), l = i(22), d = (i(24), !_(window) && window.JSON || { +parse: a, +stringify: r +}); +d = { +parse: a, +stringify: r +}; +var u = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, c = { +"\b": "\\b", +"\t": "\\t", +"\n": "\\n", +"\f": "\\f", +"\r": "\\r", +"\\": "\\\\", +'"': '\\"' +}, h = new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))', "g"), p = new RegExp("\\\\(?:([^u])|u(.{4}))", "g"), f = { +'"': '"', +"/": "/", +"\\": "\\", +b: "\b", +f: "\f", +n: "\n", +r: "\r", +t: "\t" +}, g = new String(""), m = "\\"; +t.exports = d; +e(d, "jx_data_JSON"); +return d; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var i = "[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+([a-z0-9][a-z0-9-]*[a-z0-9])", n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)", o = { +email: new RegExp("^" + i + "$", "i"), +ip_token: new RegExp("^" + n + "$"), +ip: new RegExp("^(?:" + n + "\\.){3}" + n + "$"), +tld: /^(AERO|ARPA|ASIA|A[CDEFGILMNOQRSTUWXZ]|BIZ|B[ABDEFGHIJMNORSTVWYZ]|CAT|COM|COOP|C[ACDFGHIKLMNORUVXYZ]|D[EJKMOZ]|EDU|E[CEGRSTU]|F[IJKMOR]|GOV|G[ABDEFGHILMNPQRSTUWY]|H[KMNRTU]|INFO|INT|I[DELMNOQRST]|JOBS|J[EMOP]|K[EGHIMNPRWYZ]|L[ABCIKRSTUVY]||MIL|MOBI|MUSEUM|M[ACDEGHKLMNOPQRSTUVWXYZ]|NAME|NET|N[ACEFGILOPRUZ]|ORG|OM|PRO|P[AEFGHKLMNRSTWY]|QA|R[EOSUW]|S[ABCDEGHIJKLMNORTUVYZ]|TEL|TRAVEL|T[CDFGHJKLMNOPRTVWZ]|U[AGKSYZ]|V[ACEGINU]|W[FS]|XN|Y[ET]|Z[AMW])$/i, +search: { +email: new RegExp(i, "ig"), +email_lws: new RegExp("(^|\\s+)" + i, "ig"), +hurl: /(^|\s+)(?:(?:https?|ftps?):\/\/)(?:\S+)/gi, +url: /(^|\s+)(?:[\w-]+\.)+(\w{2,})(?::[0-9]+)?(?:\/\S*)?/g, +phone_number: /(?:^|\s+)(?:(?:\+?\d{1,3}|\(\d{1,3}\))([-.\s])?)?\d{3,10}(?:([-.\s])\d{3,10})?/gi +}, +escape: function(t) { +return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); +} +}; +t.exports = o; +e(o, "meshim_common_Regex"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +if (!t._vmlstyled) { +var i = t.createElement("style"); +i.setAttribute("type", "text/css"); +i.styleSheet.cssText = "v\\:*{behavior:url(#default#VML); display: inline-block;} .vml{behavior:url(#default#VML); display: inline-block;}"; +t.getElementsByTagName("head")[0].appendChild(i); +i = null; +t._vmlstyled = !0; +} +return t.createElement("<" + e + ' xmlns="urn:schemas-microsoft.com:vml">'); +} +function o(t) { +var e = t.split(/\s+/); +if (4 !== e.length) throw "bad viewBox: " + t; +for (var i = 0; i < 4; i++) { +e[i] = parseInt(e[i], 10); +if (isNaN(e[i])) throw "bad viewBox: " + t; +} +return { +x: e[0], +y: e[1], +width: e[2], +height: e[3] +}; +} +function r(t) { +var e = t.split(" "); +return { +offsetX: parseInt(e[0], 10), +offsetY: parseInt(e[1], 10), +blurRadius: parseInt(e[2], 10), +color: e[3], +opacity: parseFloat(e[4]), +rgba: "rgba(" + C(e[3]).toArray().join(",") + "," + e[4] + ")" +}; +} +function s(t) { +var e = /from\(([^)]+\){0,1})\)/.exec(t), i = /to\(([^)]+\){0,1})\)/.exec(t), n = []; +e && n.push({ +stop: "0%", +color: new C(e[1]) +}); +t.replace(/color-stop\(([^)]+\){0,1})\)/g, function(t, e) { +e = a(e); +n.push({ +stop: e.substring(0, e.indexOf(" ")), +color: new C(e.substring(e.indexOf(" "))) +}); +}); +i && n.push({ +stop: "100%", +color: new C(i[1]) +}); +return n; +} +function a(t) { +return t.replace(/[,\s]+/g, " ").trim(); +} +function _(t, e) { +function i(t, e, i, n) { +for (var o = 0; o < arguments.length; o++) arguments[o] = parseFloat(arguments[o]); +var r = (n - e) / (i - t); +return Math.round(270 - 180 * Math.atan(r) / Math.PI); +} +e = a(e); +var n, o, r, _ = e.split(" "), l = []; +_.shift(); +switch (_[0]) { +case "left": +_.shift(); +n = "270"; +break; + +case "top": +_.shift(); +n = "180"; +break; + +case "right": +_.shift(); +n = "90"; +break; + +case "bottom": +_.shift(); +n = "0"; +break; + +default: +n = i.apply(null, _.splice(0, 4)); +} +o = s(e); +for (var d = 0, u = o.length; d < u; d++) { +r = o[d]; +l.push(r.stop + " " + r.color.toStrRGB()); +} +var c = j.createVMLNode(t, "fill"); +c.className = "vml"; +c.setAttribute("on", "true"); +c.setAttribute("type", "gradient"); +c.setAttribute("angle", n); +c.setAttribute("colors", l.join(",")); +c.setAttribute("method", "sigma"); +r && 1 !== r.color.alpha && c.setAttribute("opacity", r.color.alpha); +return c; +} +function l(t, e) { +e = a(e); +var i, n = e.split(" "); +n.shift(); +switch (n[0]) { +case "left": +n.shift(); +i = "0% 0% 100% 0%".split(" "); +break; + +case "top": +n.shift(); +i = "0% 0% 0% 100%".split(" "); +break; + +case "right": +n.shift(); +i = "100% 0% 0% 0%".split(" "); +break; + +case "bottom": +n.shift(); +i = "0% 100% 0% 0%".split(" "); +break; + +default: +i = n.splice(0, 4); +} +var o = t.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), r = "grad_" + new Date().getTime() + Math.round(1001 * Math.random()); +o.setAttribute("id", r); +o.setAttribute("x1", i[0]); +o.setAttribute("y1", i[1]); +o.setAttribute("x2", i[2]); +o.setAttribute("y2", i[3]); +o.setAttribute("gradientUnits", "objectBoundingBox"); +for (var _, l, d = s(e), u = 0; u < d.length; u++) { +l = d[u]; +l.stop.indexOf("%") > -1 ? l.stop = parseFloat(l.stop) / 100 : l.stop = parseFloat(l.stop); +_ = t.createElementNS("http://www.w3.org/2000/svg", "stop"); +_.setAttribute("offset", l.stop); +_.setAttribute("stop-color", l.color.toStrRGB()); +_.setAttribute("stop-opacity", l.color.alpha); +o.appendChild(_); +} +return o; +} +function d(t) { +function e(t) { +for (var e = t.length; e--; ) t[e] += a[e % 2]; +n(t); +return t; +} +function i(t, e) { +_.push({ +command: S[t], +coords: e +}); +} +function n(t) { +if (2 == t.length) { +h.x.push(t[0]); +h.y.push(t[1]); +} else { +if (6 != t.length) throw "problem with updateBBox"; +var e = o(a.concat(t)); +h.x.push(e.minX, e.maxX); +h.y.push(e.minY, e.maxY); +} +} +function o(t) { +var e = t[0], i = t[1], n = t[2], o = t[3], s = t[4], a = t[5], _ = t[6], l = t[7], d = [ e, _ ].concat(r(e, n, s, _)), u = [ i, l ].concat(r(i, o, a, l)); +return { +minX: Math.min.apply(null, d), +minY: Math.min.apply(null, u), +maxX: Math.max.apply(null, d), +maxY: Math.max.apply(null, u) +}; +} +function r(t, e, i, n) { +var o, r, s, a = [], _ = []; +if (t - 3 * e + 3 * i - n != 0) { +r = (Math.sqrt(-t * i + t * n + e * e - e * i - e * n + i * i) - t + 2 * e - i) / (3 * e - t - 3 * i + n); +s = (-Math.sqrt(-t * i + t * n + e * e - e * i - e * n + i * i) - t + 2 * e - i) / (3 * e - t - 3 * i + n); +a.push(r, s); +} else if (t - 3 * e + 3 * i - n == 0 && t - 2 * e + i !== 0) { +o = (t - e) / (2 * (t - 2 * e + i)); +a.push(o); +} +for (var l = 0; l < a.length; l++) { +o = a[l]; +o < 0 || o > 1 || _.push(Math.pow(1 - o, 3) * t + 3 * (1 - o) * (1 - o) * o * e + 3 * (1 - o) * o * o * i + o * o * o * n); +} +return _; +} +t = t.replace(/[A-Za-z]/g, " $& ").replace(/,/g, " ").replace(/-/g, " -").replace(/\s+/g, " ").trim(); +for (var s = t.split(" "), a = [ 0, 0 ], _ = [ { +command: "beginPath" +} ], l = 0, d = s.length; l < d; l++) if (!/^[A-Za-z]/.test(s[l])) { +s[l] = parseFloat(s[l]); +if (isNaN(s[l])) throw new window.Error("Bad path after " + s.slice(0, l).join(" ")); +} +for (var u, c = [], h = { +x: [], +y: [] +}; s.length; ) { +/^[a-z]$/i.test(s[0]) && (u = s.shift()); +switch (u) { +case "M": +c = s.splice(0, 2); +n(c); +i("M", c); +a = c; +break; + +case "m": +c = e(s.splice(0, 2)); +i("M", c); +a = c; +break; + +case "Z": +case "z": +i("Z", []); +break; + +case "l": +c = e(s.splice(0, 2)); +i("L", c); +a = c; +break; + +case "L": +c = s.splice(0, 2); +n(c); +i("L", c); +a = c; +break; + +case "c": +c = e(s.splice(0, 6)); +i("C", c); +a = [ c[4], c[5] ]; +break; + +default: +throw new window.Error("Unknown canvas command: " + u); +} +} +var p = function(t) { +for (var e = 0, i = _.length; e < i; e++) { +var n = _[e]; +t[n.command].apply(t, n.coords); +} +}; +p.bBox = { +minX: Math.min.apply(null, h.x), +minY: Math.min.apply(null, h.y), +maxX: Math.max.apply(null, h.x), +maxY: Math.max.apply(null, h.y) +}; +return p; +} +function u(t) { +function e(t, n) { +t = new t.constructor(t, i); +t.id && !n && y.set(t.id, t); +t.attributes && t.setAttributes(t.attributes); +if (t.childrens) for (var o = 0, r = t.childrens.length; o < r; o++) t.childrens[o] = e(t.childrens[o]); +return t; +} +var i = new c(t); +v.extend(i); +e(i, "ignore-id"); +return i; +} +function c(t, e) { +t || (t = {}); +this.id = t.id; +e && (this.root = e); +this.attributes = t.attributes; +this.childrens = t.childrens; +} +function h(t) { +return t.replace(/^\w/, function(t) { +return t.toUpperCase(); +}); +} +function p(t, e) { +switch (t) { +case "viewBox": +return o(e); + +case "path": +return d(e); + +case "fill": +return f(e); + +case "shadow": +return r(e); + +default: +return e; +} +} +function f(t) { +t = a(t); +return /linear/.test(t) ? function(e, i) { +return g(t, e, i); +} : function() { +return t; +}; +} +function g(t, e, i) { +t = t.replace(/,/g, " ").replace(/\s+/g, " "); +var n, o = t.split(" "); +o.shift(); +switch (o.shift()) { +case "left": +n = e.createLinearGradient(i.minX, i.minY, i.maxX, i.minY); +break; + +case "top": +n = e.createLinearGradient(i.minX, i.minY, i.minX, i.maxY); +break; + +case "right": +n = e.createLinearGradient(i.maxX, i.minY, i.minX, i.minY); +break; + +case "bottom": +n = e.createLinearGradient(i.minX, i.maxY, i.minX, i.minY); +} +for (var r, a = s(t), _ = 0; _ < a.length; _++) { +r = a[_]; +r.stop.indexOf("%") > -1 ? r.stop = parseFloat(r.stop) / 100 : r.stop = parseFloat(r.stop); +n.addColorStop(r.stop, r.color.toStrRGBA()); +} +return n; +} +function m(t) { +var e = $(t); +if (t.border) { +var i = {}, n = t.border; +for (var o in t) t.hasOwnProperty(o) && (i[o] = t[o]); +i.x += n; +i.y += n; +i.width -= 2 * n; +i.height -= 2 * n; +i.rx && (i.rx = Math.max(i.rx - n, 1)); +i.ry && (i.ry = Math.max(i.ry - n, 1)); +e += $(i, "CCW"); +} +return e; +} +function $(t, e) { +var i = t.rx, n = t.ry, o = t.width, r = t.height, s = t.x, a = t.y, _ = Math.round(a + r / 2), l = ""; +if (i || n) { +var d = .5522848 * i, u = .5522848 * n, c = o - 2 * i, h = r - 2 * n; +l = e ? w("M", s + o, a + n) + (t.corner2 ? b(-i, -n, d, u, 1) : w("l", 0, -n, -i, 0)) + w("l", -c, 0) + (t.corner1 ? b(-i, n, d, u, 1) : w("l", -i, 0, 0, n)) + w("l", 0, h) + (t.corner4 ? b(i, n, d, u, 1) : w("l", 0, n, i, 0)) + w("l", c, 0) + (t.corner3 ? b(i, -n, d, u, 1) : w("l", i, 0, 0, -n)) + "z" : w("M", s, a + n) + (t.corner1 ? b(i, -n, d, u) : w("l", 0, -n, i, 0)) + w("l", c, 0) + (t.corner2 ? b(i, n, d, u) : w("l", i, 0, 0, n)) + w("l", 0, h) + (t.corner3 ? b(-i, n, d, u) : w("l", 0, n, -i, 0)) + w("l", -c, 0) + (t.corner4 ? b(-i, -n, d, u) : w("l", -i, 0, 0, -n)) + "z"; +} else { +e && (r = -r); +l = w("M", s, _) + w("l", 0, e ? a - r - _ : a - _) + w("l", o, 0) + w("l", 0, r) + w("l", -o, 0) + "z"; +} +return l; +} +function b(t, e, i, n, o) { +var r = t > 0 ? 1 : -1, s = e > 0 ? 1 : -1, a = o ? -r * s : r * s; +return w("c", 1 == a ? r * i : 0, 1 == a ? 0 : s * n, 1 == a ? t : t - r * i, 1 == a ? e - s * n : e, t, e); +} +function w(t) { +var e = " ", i = Array.prototype.slice.apply(arguments); +if ("string" == typeof i[0] && /^[A-Za-z]$/.test(i[0])) { +e += t; +i.shift(); +} +for (var n = 0, o = i.length; n < o; n++) e += Math.round(i[n]) + " "; +return e; +} +var x = i(8), v = (i(7), i(14)), y = i(3), j = { +parseViewBox: o, +parseShadow: r, +detectedGraphicType: function() { +var t = document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"); +return document.createElement("canvas").getContext ? "canvas" : document.createElementNS && t ? "svg" : x.isIE ? "vml" : "none"; +}(), +getGradColors: s, +parseCanvasData: u, +CanvasData: c, +generateVmlLinearGradient: _, +generateSvgLinearGradient: l, +generateCanvasGradient: g, +generate_drawing_function: d, +generateRectPath: m, +createVMLNode: n +}, C = i(119), S = { +M: "moveTo", +L: "lineTo", +C: "bezierCurveTo", +Z: "closePath" +}; +c.prototype.setAttribute = function(t, e) { +this.attributes[t] = p(t, e); +this.refresh(); +return this; +}; +c.prototype.setAttributes = function(t) { +for (var e in t) if (t.hasOwnProperty(e)) { +var i = "set" + h(e); +"function" == typeof this[i] && this[i](t[e]); +} +}; +c.prototype.refresh = function() { +this.root ? this.root.fire("update") : this.fire("update"); +return this; +}; +c.prototype.getAttribute = function(t) { +return this.attributes[t]; +}; +c.prototype.destroy = function() { +this.id && y.unset(this); +this.root = null; +var t = this.childrens; +if (t) for (var e = 0, i = t.length; e < i; e++) t[e] instanceof c && t[e].destroy(); +}; +for (var A = "opacity fill stroke strokeWidth d path shadow viewBox".split(" "), k = 0; k < A.length; k++) { +var I = A[k]; +c.prototype["set" + h(I)] = function(t) { +return function(e) { +return this.setAttribute(t, e); +}; +}(I); +} +t.exports = j; +e(j, "meshim_common_Graphic"); +return j; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, a) { +if (!(this instanceof n)) return new n(t, e, i, o, a); +s.call(this, t, e, i, o, a); +this.setBase64(r); +this.setFont("zopim"); +} +var o = i(1), r = { +woff: "d09GRgABAAAAADIsABEAAAAAR7AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAyCAAAABsAAAAcgsGZ0EdERUYAADHsAAAAHAAAAB4AJwA9T1MvMgAAAfAAAABAAAAAVldBZERjbWFwAAACpAAAASsAAAL6l/mEk2N2dCAAAAW0AAAACgAAAAoAkwCIZnBnbQAAA9AAAAGxAAACZVO0L6dnYXNwAAAx5AAAAAgAAAAIAAAAEGdseWYAAAYwAAApagAAOdxpm0wGaGVhZAAAAYAAAAAwAAAANi00RRtoaGVhAAABsAAAAB4AAAAkI2YeimhtdHgAAAIwAAAAcQAAAMTrWAZ/bG9jYQAABcAAAABwAAAAcCcBNHJtYXhwAAAB0AAAACAAAAAgAWQDPG5hbWUAAC+cAAABWgAAAmfHg21lcG9zdAAAMPgAAADpAAACWlRkBd5wcmVwAAAFhAAAAC4AAAAusPIrFHdlYmYAADIkAAAABgAAAAbQTVsoeNpjYGRgYADi2bdWvoznt/nKIM/CAALX/Rq8oPTp/3/+c8pngMU5GJhAFABxFQzDeNpjYGRgYGH495WBQT7z/x8gmcEAFEEB2gCAnwUvAAAAAQAAADcBmwAVAAAAAAACAAEAAgAWAAABAAGdAAAAAHjaY2BkDWacwMDKwMLUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGBwYFP//ZwHzWRgYuYEUI4gNAMzvCTl42mNhgADGUAYGFgYGHiAG0cxAfJyF4f9/IH0EKlYMxBVQtgSIZvwCZusA1f2BiP//C6RToWrUgTgaiNWAOIonlyGCw44hAiqHhMF2cAHxN6iYjeAjiDrWHgYB4QYGBvlMsDgTGDJC3cvGAAcAMWMTtwAAAHjazdDNSsNAFAXgM2mqUDVqW0uXnWKSRUXq76KPICi+igo+R6GL2l0fwDeoS9cupREMwU3ovu6C48nccSOI4MqBb87MMCFzL4AqgArtUY0eoThDLXmq7HnFnfu4Y3bR4cqDRg8zPdJjPdG5XnTrYRENomkcxM24lbWN4V25M/zhDowxbyYxZ+ltepNep2G6+1q8NJLn5Crx52b+0dmRt/wy1u17+27Xtv8VZV09x6eZw5r1kEZcrzDHoqxTTwTWmLko/6AXAhtsQV0gAMJCYBOIBgJbzKnANhAHAvwmbgo0mC0B7jNGVr6dNS/P6YLrfea9BfSZTxZwwMwt4BDqfdUCjpg1CzhmXlrACfPBAk7ZK9b81VjlcfK+dVS53snw8Y9H9Y/ffQIcXVxYAHjaXVG7TltBEN0NDwOBxNggOdoUs5mQxnuhBQnE1Y1iZDuF5QhpN3KRi3EBH0CBRA3arxmgoaRImwYhF0h8Qj4hEjNriKI0Ozuzc86ZM0vKkap36WvPU+ckkMLdBs02/U5ItbMA96Tr642MtIMHWmxm9Mp1+/4LBpvRlDtqAOU9bykPGU07gVq0p/7R/AqG+/wf8zsYtDTT9NQ6CekhBOabcUuD7xnNussP+oLV4WIwMKSYpuIuP6ZS/rc052rLsLWR0byDMxH5yTRAU2ttBJr+1CHV83EUS5DLprE2mJiy/iQTwYXJdFVTtcz42sFdsrPoYIMqzYEH2MNWeQweDg8mFNK3JMosDRH2YqvECBGTHAo55dzJ/qRA+UgSxrxJSjvjhrUGxpHXwKA2T7P/PJtNbW8dwvhZHMF3vxlLOvjIhtoYEWI7YimACURCRlX5hhrPvSwG5FL7z0CUgOXxj3+dCLTu2EQ8l7V1DjFWCHp+29zyy4q7VrnOi0J3b6pqqNIpzftezr7HA54eC8NBY8Gbz/v+SoH6PCyuNGgOBEN6N3r/orXqiKu8Fz6yJ9O/sVoAAAC4Af+FsAGNAEuwCFBYsQEBjlmxRgYrWCGwEFlLsBRSWCGwgFkdsAYrXFhZsBQrAAAAAAA9AFsASwA4AAAAAAAqACoAKgB2AI4AogDKAO4BEgE2AVABagGUAcoB4AHoAs4DDgNCA3YDsgP0BIgE7gV8Bd4HEgigCV4JqAosC1QMKAyWDNQN8A6+EP4RqhIkE1YVMBWkFjQWpBdEGHYZkBnCGkYagBr0G+YchBzueNqNewl4HMd1Zlf3zPTc091z9Nz39AzmBHqOnsE1AAiCuAiCJAiCNymK933osESKUkTJpC1Zki3HtuQr+RTZsZykBrRkr+xs6GzWtjaZT/E6y00+R7ZjJ458RhsrkuUVhvuqZwBBtJINMOipru6urnrvf6/+96pAMRTF/C3FMa9SeoqnfBTFOVxypSTForpSpSi7HLqoUizHysnuAHJodVotw2g05E9HaxjE/AhqdFqTDs41OqRF8IEGKTPlZb7P/JyyU34qTOUprClgXxOLBRxoIhwpYOoGlLBDxgGuEUYZ7JaxodmIogzV3aM4gqgYkQdRmS/lUSwStSInVaqQvsSiDF/kzZFqlH4lUovAZykWrUbQ1epsrZZKVb/+ZKQagQ/9vfb30nGon60iAX2kdYKCrt1sMa8yP6ZMFMVHoKVIOcLH+Ah6/Fvo8dbpb7VOow/BX/uMgvsZys38DfMTSktRigHZLYhhvv124ffQp1u3udGP0C9b28eL5L5vQrtRaNdOUYJDRESCSQOCA/Rfx6JvBtCHA3N9wdYLaCwQsCUdqUDrHB2cC7ROBvo2B9EkVM8FbDYE1RS0d/Mm9Qrzz0wVNELRJQVVZGiTjB4a1UVRED0Kt0OTfV1paLP1YmAO+aHi0WCwdSq4uS+AplovBkm//gL6FYJ+QTtKCUYgldpNsdCM9Bft+/qhA490ntyfDpDOkDZa54KbSWUfaYeivg9y6yXtcOr4oE8EIyw0GX2P7tC/gWfPBVYPm4yLOkedYU4zZykjRQ0iBSUjfBJZ0TlDBF16jR79+9ajkRk8H0FHfrj0x6+3HoxoyTN3U+eZO5jz5BmFF9EgcoFExbv/Hp2LzNT10dYDr52nN72OLkY0g/PR1sf+AUQG70pBfz8LmBYpqq1jPuYQdK4+BFovyhUJJMm8evrtN099XhcMPfu9zwVDOlfrpdZLKXS59TPk/HN0JOZo/RREFXMhpfUS9MN980fMt5mXoUWBQthdwNob2NxseFTMCtIgCiGeoNTJK5Uggj5aURJFDN0zoX9QZpQfhWYKpnDrCff6UOtRpMwMGD2YPplUlOTSU18QTfX17tYvggY3iqtyotCHmFfpecCfQGGqgBmwGk2hoVXfRVDLvPq2G33oW23drPz0UIDULOj8axoKbFmhhqgJahP1HQqbCzjXxKMFPNHE6wu4XsQbm7hXxtECFqHtzapF+pvYzzVqYI4DTTzANaagtKGJN3CNJJSEZmMOvireF+v4rT+mnBmjFWs4zFxvyOgtXLxOXWM0cjEPP2ilhIe8qFHz8wLW1/AA/4IYMXYXhtfExRqeEhZz5tFarYY38Iuu6BiUqEbODLcaa3iUb3SX4dKE0Kjw8L2ev+ZPUsPkuY0CFmrdPXaHS2R0QSTXkasoKxUFjE1KSlFWx+rEEjmXRZfocjpIBRiOZENKBcyxoqoIvBoLz1aUSDRWWXZ42e6cFxmsgv6/Tq6/cPRQf73ef+jor0lhoFLavvPGzu2lCikcm1xns3zUifTp3CtxOR6X9YZNxzYZWj+hNd8g5x4PXZ38UF/rN3rOoHu/D1o59ubRQwODgwOHjl44ttLKsZ3byhW/znjkZbOxfN/7irGY1xM/VV67tvTNYjxejIEfvfk26PKnzGXKCqjzUV5qEfSaAY1hgfhThP2FRkDFhNRxmUmUJ9DTqO6S1UWZIhPTsAMyw8j9rKd1yTO6xtu6hL4QrAZtNiV4jt94bjKTmczQn8yEQpml21nFHyjbOPQvrb8kfpy6ucT8nPkeWJSO8lCUM4HAiSQVkcgXxAkCZ1WJs+hQ640iMqB/ei39Swtn4nR6oylaHPAFXC7OyuxEhp7WW+g3v0z9wmZ3BPzxiBQtIpPeajRTqr9bop6C9xyAEVL0IO0KIWLmompFNmJHUgEhiTFI1T5A67PiQK/DaXaIrbhJy+c8cbem9TORlqqSwaledpgdzr5+uGzQcyatxq1FDrf6HuoA+J8HmUcpEG5FqtQRAEJ9HUELvM2G1HfqogXEWpF0zmp1fPe7DoslVS5DITgfdLRr4AgnUCiXn1UvQSFlsZB7go7lCkcwqD5Mrcw7P4DxhahFD9Ghvblo9xgz14bsjCGDsK/Q8LeNu0SFYfgEu+/8KtCnMIVS6JNPalqv6VijFbywLxhNdOV6yvaLT7b2t/4O/fR/o9Djmtb3WIPBYrZZbCYzq0e0/tn3PYZCRJdJKs58i/k3mI+zVJV6gMI6Yvs4XsCVIk43cbeMcK3jB65F/JQ+gyXVIeTA6kvNa3wpB1Xg8XpRphGhwFBDNezncbCGJaERS4OZ5sCSRR2xaV5o9FTgu8RjWw2bBWwF646LvHCNMluDYMfEgsnQ2rZbLklRXdtWowRV6rmdGOYAUi9pywTRQEFg3koODx45ceHiiSMDQz7JV5Tntn5r65xc8iZ9pcp0BT7075TJd5mm7jt9bGjNcP3oyfsdPp/j0MJ8sVQubd1+0O52o4xULks71cPO5SKR0w4qwXyEeYOyga4y4D+xi7AWzBRwVxGGj2Mgp6wqJ07GbBOzbQaTbBJBNVgimEANh/mG0wUCSAoNnx9cm+qx+lB7QBkEQ2qPvz38ZKSbRauGuKOSQKRPKFFhqpVde763d6dSpd/+a0TfB+OC0TF1qVKRdiYqlUSr68ze3Uqtpuzed9qsQefUyp1wGcYiwVi+ybwJOu+m+qmTFDapPAx03lskE0IJxjKgjkULOtcSnaeaWMs1emBE1eY1rtoDVc5mY3BZ53QNa3nM1Bo9KV5YNJp8RNsc3yj3wneV+Gbs5LG9pvI40F95tS9Wz4l+Y6rXuFUiq5UsgTqLPXNbXyKqBTUP1UHn9x0/MlgvgVhU2UjlZUXP2X0++6FtHe0esrs9wqXTx4dGQPOn6OOqpFbrGUQDstlOSaDnN4EL+sA2QM8W1R5Az4kikFEcAtmkVNmYZRAPkQqYKI41G10gDC0RhoUYQMMlwtBjQoPnlvW8Alu7GOkuK+/MTKt1vL2jScT0IKLj7+/ZVakS/RIIM0Mr6Hz7YxatfkXF9KfeAaueWrhpMJ9gWpSBcoBPK1Ej1GZqK3UPoqlF8HeZa6mFg2fiYpHAdEheFIjj8TTxnYVFunasWCziXc2GZp8s4+4mLsp4F4ct4Rt8Y+duuBSB6eXeAjbewK4mdnFknsG2JrZxjTiUEs2GXIYHE1yjH06zTZzlGgtQuqeJt8v4Hq5xFk7ONPEZrnEISgebjQsgtYALQGMxCwCaRn8CnESqG0oLWfALaybmtoBfaJy9BwS7q4bP8HhPDR8S8D7wHJQAlXM17OEXkbSFPH0nywsvGG1OVyDbTx7bFYFznTy/dduOPap7EcsIeJITRZz2UiVMpvxYVKo42h6HoBAwiIr86tNyzF5Wgx7iieBu5FDNUwfqg6mCeCSFjwGBdMI9IvkDrhfj1ViJ1a0UnfwCcrdeR99u/QK5R59B6JnPPHz16ccD8bkTPpMvMTeVRG9f3bn27rHByam7tlWvXt2ZmJzL52dDc+gPj3yklGNHCqJJnKRLHzly4soVxD88v2/H8I5jB0cmr9SVrjGb4cpArbKJ2Y8Ove+21lP3osj9zz13/8PPPvO/Ppnp3xkrb8gMKEsnUCS7d/7i+2Y3bNnSevSx6Ojc1KZ8rpf+8MTBYqbP4LXYPDN08eDbBybQm0vX6aG1G/qrhcrtrQfReHUym3BYWp8npclq6ysU4ZQLN/+PfpARwSP2UnuoY9TD6FPU4i6A06Jv7gECpP1NvFlevI/UhPM7SM3FJj4kY33hmkE5fo5g8ERzUSedkWV58YSeTHwnThsyWM9hE4FceRQe0TQbqWm4rjGR65oImRjf3/a0TcxxDRYQRFxtbxNHZdzLNQpwkm/iPNfog9K+Jt7HNQ7DTUNHAJqzTTzLNR6CCydlfEcTn5YX73iINHzHOUNm8aE7SPGh44ZM44rKarEEVFXP5l+iGqw+/xLhuW89cH0L4bla0k3DdSu4eqy9/qKu5/p6Uq3BQ3krrl/XNI4wb1nx0eta8BHXdFrWnmGoa/WhI0fbZFhnqB/tkOFGmAMD0LiJ12wUegHUqVpjXx8Ywtg6cCKH+cXR6V3Eo84KeKGGH+Ibm+cIL95/H9ziXoALF2FeuQe+9cKXKU6s9W3YuI+wYhOPx2r4BMzD0A74oNIgKsohxCY74HQAsQGkiyquk5IWoiDilwHrHRCTSJW4KD4BDrsOfooYRLJzj5MPIpElM3ObTYMdqXYD97G6RLlYLjqLzljnJXWkviUP4ftC4eBcbKRf26N4B4atZpNleCi9wPSPRhdudzlp6xFvONgVnt7E2w7r9blsUvE70D/m0js+mcmtv6yVCune1M4dtM+n7QlFff5YrDuzYdOxhORP+UOexzPo6akjzzyj0QTC9lRcmy6466NB5D94b81g2KHVxroSYzPJbMKw02DoH6ljxtNa0pt0htpg9WDrFRRZG+1KWHRsa/T3N6firK2rkLHMsnotu31369eim9lkMLhNFr1p+wNzBb1Wzz5j1fzNns99bs+vFDEo0swOlk0sbEKmd7jdG9QpKt/2ugifLmDuBt7bXNzLEZTtPQUoOwO43Eu0X+jbV1MnCieRbh1VlM5vT6lAg25AE8B3aUmpiAoQeolMoESbEDBXioq8wgkr6reTeDbi1ESXjVDX5UMA6ZbvDCHyhZCWBYpq88ayAw+yiKY5h81lctg1NI0YWqOxabU6GtEaTpzUaixWrd46brUarAatTseaHGLIrKMZltVoBFaLaMagcwq2EGdmGI3Nv30wG/dyDrPdqKXpWCrQZba6TE4rb3DMaO0Br4kTfEG9Ta81m3whuw8h2mgK7XSEgmkrradps0lnMzI6hBiNVhe1Jzl3Kh/S0l5H0Gcz6CymtGQ3+gOsxu9KWQ28zWF2WfjxeJhS4/xOPscOTA0iZV8BW5uEnREqBhIuv0cmCQFcSwTVxDoA8QFUZGNgAdFalP4lHOCzJMABvXAxkdsZjXiZuajZ+Lju6sV721eX72pNXTw7mS3RzAXEmUO3XWhdRXe9u09TVK4TsU02sdLu23QB228AicAZubEeIBGzg2U7XCog3qu7dlBtRQFIEIPLowFEWCPYVkkhSgWiTKDhEmGWYsmfYzngvXU437VaUhMhqc9kMjpsyR7eyruDtsxAfYwJlUOeDJeMWRPRsBiVUutmDuy9ZahLf4s8bpSL0hp9PU3rNBrEFQMRTzkUYazmcDnk4PWOLlFji7v17IbJmXyRojQrcnBBvHGMepD6+44sZouYby7yGmIZ/DZD5ktpn2abJUNCkLMFnC3i+wgvxXIB7y7iQyCyywV8/Aa+GygGmSmoHMwU0Sa+u+30dzTxDq4xA6Ut4P5l4u8bx4FP4EINR/lG+j7wlXcLX+ZtgeTQyNhZ4iv7+Be0JX25Pj5BznYIeLbW2DIDFKS4bfsuqKIavAaUIs7Aoz4eT9RwWliMjowTv3yWbyTr8H2f8OVcoW9+5669+1S20Vad0qG3BdSme2xZNexiO6Qhxh4juQheNeUIG3O9k6JgdaDYEL1c00ZBzBkrx9rutbyCCPFdcVObTVsRBE6A2XlGK9iijrJszsWU5GgoNhgb8RkZu96ioXU0HbRuHwOTO/IEKm7aZhT9Jj7uqdn1VoueL1vSjijvtKARaOer9a/CZxk6NcGRyPSOhAWT3uGSclV/NcpqCUJYqzHoE718PEZrWIuna7PfBGas8dq8fptVb9MyfWg/bUELdSGYEBOFCUXK2c3OtGC0dZlijmikK9MdICiTydu+erGNtacqpf5YV9wVcAu1/pFkwZcOucDWNTdv3lwCPB2lKtQkcNz91KPUopbgabyJ+wq42CRBGWAgVMAzKkD2An+/vYCTNxrdavYKCxxJ1jUOwF93EtSdVarTBAEC/yVtXh4YJ2WP8CVrKDy6SYVB3zi4a0SZyGSdLULZKnQTEGzhcb6GQ8LzzuT23XtuUwEgdWbYdjDbVnhllYqKSqQ9Ebd1R2ZkMt+6iP12PPQy7SS5xCBjJcmJBNE8Sb8DElAycWl6c703EkqD6/c6wjGHy2iyO31b+1uv9Z8Mx0qF7gEDZwVBD/X5lB2lWNiVtrl1mqx8uLRJMLvLa4eyZncpFhtC1x4ff+yx8cdfvi0RTwZ8+azcv0HiRT/vCnp9iWQ6Hk+K3nglVygp270+5HWn4gHf764fkZDR5re5fFbrcKwrSae2T6Xp/PSOqQxC+cOPPTbx2GMwHxpBTz9gfFSd5Dr6iYbo5iLdT8ydlgilGyo0htuJ/jaKl50b3XZubVu5xbsBwIl7WzEWktEzel1jw4Pl4cN2uz3sza9LhbyBLo/XO3305L3ayk4lM+0f7Tflw/3Vrn4kSePTh848NDe7foERXV1oZkCjN1TnuhkTyyJ/NlesZXdVajq3S9lZiQQtsVjNznoGM1bTwdsPb9zaXXKLZK5/42aLfo35G0qkCtSii4yNAn9exKiJeZkE12xTTQ27bmBahrgZc3InQWxfnnZEmHV070w7bzxZ6r9rtEIfCPg1zBf1z7yIfvDk+3fXRnSfRrxg9p99shVEPwT8Wzr+9CCwjAo1SK2j5qjT1J3gVx+nPkV9gfoG9TJF8QRdfUh0AQmDEBSEKitlnUK4AwlIkx0XwjrbpBBoRR+CMg1BT8QZiUqlSh8gEWRLCmS9BcJySVGBDPNSEJHAlYVKtqxG7HlERuVk1efVrCo0/65n+9GqK672Fad6qSJBo9DbFXXmkcpzkhIxik6ONh1PZNf8F41Jk2LNRovGqvnT2+T5Yq3gH4u1vtmztYSqpd3+0LhvLF49KLMGHTrc+rjOYND9oYX7Bvk+2Dn8KJ9MFVA1uzYlReL5g88KOkd+Q2GnS2CMLOJZo5Ft/Qs5Hlw5rNR+1sgeIsVDLAYmFC3bHJzeZWc1wHxYLW3y2XUsl2fNJs5k4tBUbpPb+wmGCWrZU4wRMU+WdylP9O0QBUdmAvhtNFHY4RTF1vNWY/SA1eiwHtcZjRajMfNEelp0Z6fyT2TWuzyXDrF8fn1r4zl0hEdft8K7WeNx6AKUdlhNAFfTbLtyi8XCmI0uv9fGWQQTYiys12HhDCLH/AH0Rq83UWrs1g/2+EXm+8BFeoGRLFAHqLuoRTPB7nwT75fbxRoESwU81Wz4MhA6TXGA3UVG3gXRGh4pYAlQfVBd8IBoKy2TgKsCPrVPxtNNPM01NsPJtiaekPE2rrEPTvwydjRJ4E81pmZhLkVuEpUIJN/Dt0kpwKJNf8lqDEFTOal6zQxNZk4nG7Xz7VCcJ7kSezuNpBTVZwMoxnSWWtSoXll9a3/IBVRSp7fwbvq8m7fodQyNXMGg6zTwVwPQnm99M+s00qddD8dcjmiyK3QKRKk3vmmA6ED/rBJNR6NOZ/QVcoh3Regf5qJLf2gE9OmNRr0FCvTWeC54xcJZ7EZrxum8gpbuQz9y+f2uVsCViNNPQYCu1zCEzeoNtrGlB9A/OsNhZ8vvjET4lRuDQaIbJ4mr+R8CKxKoONVPzVCz1CZqM2joTuqD1GPU58Gqm9TPkBYJqAdV0d3oKYqyQygG/KEM8YGykkdT5xR1xpGShAvY1cBOJJ6z3Lb7KNQ7u9s5R/I8CTLgVycqPYpdcTlZsE1ouT1dxaJMRXXOnSmJGKfKQyuquy4gJ7wErtnFaBKUCrpUVWgnUx8Yuo7omYkTSiRXVrIrauQZIRnAPIrqoA/Qxai2kyxTU4QB1Dkj/SUOarmJduaQV1NqvHrR1Z4Z2lmd1W9qh7H/zqvaUzQwq5LK0ZKER5PIaaWbbS7lbEspiDqjJ7136jpdhQAQqU0U0PLQbKjdtQV9OROay6OQLzsy5fZUCtmaob4uGjX6PFVbYcYTvsNYPShFfEGeD3XnkntlPR2TfsctphLd3VOu0ozTF8jGQgLD2D69FvE8E+23p5yOmGb/2FhF6pkcCRtGxqORytb7BCG/IGX8Xn1wS49RF/UydXA2L3p4JPNuN/+d140+Z+s7vMfDf+df0fP140PlgxGrHmI/Q9+UMq1BgzZX3+FLx7L60QNr2fuQEsgE/cGjwUAwHajd1tu7zx9Eb/UeGC7MOKEmkA7aN3SPHMxFB1IDExNwQF+AJisHwzY9yxs4Q++0MqVBA9DmofuPZvVrDqzVX0Jhiym+PdmfS+dz0VlD2uoUFvp6Wb3FqWX88XCyIM/mo6E1vWLAFfFnRgYMJpdRg/450BUofoG1GwWv6Q+esJs5h9VyA+rozxR3RNJlg6EiRU2Sxhjwtw4kpJghIeXm4v11YU1+EP1lWqJ5IRy3GvpOpmIxJO0rL/2gv1wEcDgme5wbeqz2QLj/KxD39v71xB2cBkUCI+uVYo+0NCZ12+IDY/FYTG8Z+iwdDES7c6WkAg6+a8LPcVuQjkFL6YjPE/WgkJmz+9xRT+sHNx44Xk/HrHaziTfURkt268jRgfpleaDe/UNnIOB8WYnGYlHlZVL+Tt9titIt96UfPjbQlXCTKno7ObbejGcGbsyuSW4aqm9OflFt0SaYTXrDLU3+mcnJOt12YVCqRL1exqIzCFzOz9jMep3HIugNwVqiEA6KToPZyfls5rhORMYYecNdqa+zBoS8gmD507M2p9XGG/8AHXcGg07ifxj18CrzKsSqFWqE+gS1yJHJwNvEUoFQ6Ii6agyRmBYmgDVqJg44jZNrpMHHw/Uo1whCSYHoliPLQngQSFATmzjc38T9hcYoUO1oGqi2V8rJhF4H+UasmyS0ohLQaWetl9DpCD9kCHallWrfwKC6xJsTrjkK9SFSlHncTcIrntg7oSDg5K2ExeSR0ImDVHOOOItQDbWqXxA7nlG7ij6HlQj964gShu8lPXyvS0rDa9Zvujiqbf3rJw1z9fyGPHxGchtnT69fMyzRte3j27aNb7/7XQ+FFfTq7w4PJqS1924IBI7L9fzM9pl8emZcSgz+yfz82Pw8peYlQIzaDzKfo7qoMrWFWtQRqYLkggWcAElWChjdIFL2cg0bSM3UbCggKZsXJKVzBhPthF6DixBJBZ288AIEIZZwVhVhgscRdS7tRIGd4UeI21c9tcrWiAg6yyxolRC4ocGjJy49dOjAaUNrnLppHC1XR6eHh6amhoanj049OLh+485LJ44OMr//4Ts+DB96cwvOhvp6X35I7n5BmXd7UtKDH39QSq17sC8Urg8ebf0due3DMGYjGbj9fuZrlAHmsgw1BOO+jbpIXaa+DnMYNYCWs/GVkprNAi/KRsgIXBVF7BB6e4Ssk+hQsTO5FztpSTIVaNuPuUSojZWJruHeCjh+Vf/EzWv+/w0r4LrlVUH6SpgmkrQa2547Ot6/6Hr3/gGSMkVFBqgH60QPtS7T3a170Qc357Kf2HVk/cSUtsVa5OKcvCu20N23duHopg0jaJ+xK/vkXvrwI1uf3vBIOnl10+aryTT9V/nsR7cMnY9fvZo4P7T5o9nCByq7z+2qVHaf3U0fzmWe2nVkenJK12KtPaU5eWecNLftyKrm1l70bCtVw0EHH3XKtjUpJRAZVPomt40OJ8+7prrLIb+di4u9aFSqBWK+oFLfun9ijL7rAyj+uSWk+eRLJ0yX0AcvXGrdceGf/mxmaluxB58ZT3WhWGxvjyeYzaCetcnMhtYAOrxh+7bZ1sfR++aH66NrB4fnK7dvmNxczqKLb2/cVlDmJmY/fX5vtbqvVttbVf7vf9DUN4ayReQV4yJnNuqMjI0TY+nB0navH0XDfUOxpOgKu2wWk85i41yxdL07XwyAvIeYP1n6GBpq/az1GArd9XkCLxs5hA4zfwoYSwCfHaG2Ald6gLoKPOl/Uv+GzCgC3GR8Ndrsq0DRic/FlXgjoprIfxJvujbeaGUZb9r/TNNKe4n3txFX/C3ErUoCsLqk7hbElZR3PWRFjlvfSW5X7yFOsr0WBVSGR8sDKd8yEDIO1SxIAl8hCXy+7VOcsfYaPI8utx4CmF9AH5jPZZ/adXR6ahJwaTywpbenK7TQ3T+6DWC+9WNovymVmx7fRx9dBvpmAHoXAD3z0a31c9IHPpA4NzT30VzhqrL7XHe+rCL9OGnxyHoV6e0WgwuFftVw1Ba7stMTe+nxC/6u7KlwwM5HnD32UcB6FLA+RbB+zjWdLwf9vC3iqNhGUtVg3A9Ynz8wCVi/iqQ21k8xx/PZ6ZmdRzfPShfc+warO8uVXdUhOS9e6lq/6eTuDdPb6Nc/ECmWBzbeWX9kw/r8ZJqu5zNPzg+djavd3vRktvCIsuvMrlIpXzi7ix499cjVDxqMAd+g4/Zy1e1asSW0bs/M9EKxu3F6cpNTCO3p8QaymU98bEzKzLYG0RHVlj6G7p4fGRwdHRyZrxzYMLmplEP3vb1xe3cFbZ7c8Jlz+xTk9+3rre2rKk//+4399+Gc20OsyWYBa9JaeFe8i1hTIBoeqMdSYExOmxmMibGqdtZDrAkhmJ/Anj6Khlu/aH0IBe/6HBrZtWE6k1PK20vVkeqeM3uq8Wi1tKtcy2ef/imz2Hoo4/GuubTQuoKObd6R26y0nkZr232eW7p3pct7q0jZ19u71+9X0hc+sf7HF1o3B70Bo+FBt7tXOYQ0hGPQcPipyjGyVJFa1+EY/iZOtnlFSZ0NHU3s4MgGUGxsNsqENzggbsypZMHP8QL21HCSv+b25rrVfJvyHoxAjW6cyur9YO0ASVREhY0l6Ujv6qR4b+Sr4WDlWDa/ZXxdVybTtW5ibssElA7/yebP/DHadBFu7Y3AI0sCHKK9wID6e1On+iwpaWTNp0aHpVRKGh596unxyafHyZz/zjgnqMnOKF0QLhewDkY5qY6yr4nLMu5r7ySAgU7BQCEkFrCD7CR43hVNVteqeUij0Agn1EWB9xqospL+LZOsGIRzuo5XAFeihnUOkkcjyUbiG8BTkAmTvnVN4Gv7zr9vz5aeXJdfSrvC+nTBXg5IQwnN/NRkyR71RwP1biCOFsu6HMxC/K3y+G/1weruhb0GQzDNay0pt9vgEBNDEmfTgPOOTAzYEYfk9UYNna4EQqtw4KAkQMJMhxWFm9hTwBxIKLeKXwbarChPtgwA//mSTssl02pONqwDacXIToAXjCYqGlerlzcThYlQuE4YR4sqFwwiIrVoki3nkYqDJD265sx5xN1xZmR0dOTMHVf2f+XR6d+sOTc6em4NHBOxLRl58/0jj9w/gl6/cv4sueks3H7+zJrR6Ue/Mjt4bHDw2MVjg8bCtvButq92b2+tzfkQhZifMD+B8a2jDnX0LzZxF9H/YpeO5D+7CiT/Oa5CoaZuuaitjHUCxlojUHDWcAAYsU4rclGpsmZMZYMAhzgxhS4RpIFg5LI6bIEjIw6TsXPLRCW5jI4BtLwqtIINiPpvhYZIpIOIIJANRLJ2LZTefwVKX5zdvX9mbSoRFUPRhCUm2TLuUCnEjN2T5nxuv7uUtHJGk6k3EZhImtGJtoCIZFuvdYRWLRZz6ydmbO6YVePqcrK8HZ63WJh62dcv25AFddX1GjqaRaK3HYtsgljkC1SJGqXuQXqK7MThinikiU+RfQR4bRPvKZA001j4Bk92nBws4GCTbFnrUZNXsfaGFcBQGayMI1uWMNtsZNfKMtmjJcFpO1u1BUrwYJBrHEVkPwzZmUKW+wd/9vpYe11fyltx6rqmMa15y4onr784yL22r33lKFw5dr3h1ryFxevUl0W3lJqcPnos3/lBXxLdqcn2qbr3VWLBi1nuhihnmm/ceRdZPBAWYzv2kLgnyOMDoNIRBpRurmE9j++q4bUCvrvWCB6Ex7YcqKkrS51NUiu7AeEU1GtXgIVkUDsDoWunUTt5WZ2TJM/UXCvfzsMm+JVV5qKaaCE3W9HKkoUiEobAqMnd6ApVkePPxeSAhxctrOAR/L+qJMOWCQQeomHxrC30aWmTzR1My7Hn4nKNNz9n4nnTc2YeBSYKEd6IaKMlEDbqdWbBYzIxjM2g0XT5BZOmEe5BE3q7O/TPHrPdpDWioCvx+bgsx2mN1egwa61aTTpWQlE2OZL8bLdflnPp7sF0ybw3VizGlm7SyMzz5qWbcBxHacuG6pZ8xGGw8lbpz21Wp55xmgxmZI44Pagn2vqHqNuPaL3GiLxmp4qxjYCx5wBje6hT1K8obCyQfSLggU40sbbQ0G0pFvHOJol1E03cW8C3F8neqIisrumvQGtyZS+UC6w2sQYQtreJ93KNI3Ah0CRr/SqgmNeybdiUATaV642ShmyUfrE++Ea+va9EB/XsdW1jCwHa3HXqebYILn2uA6YXdHBamdvSAZcKqMkyIMNIdoLY+MYgWYp0CTgNMPLMQkTN2SbJYtWanXCTcxRKvWSTlXpbN4+7AE6dJQLW0Y4dk21UONsgIyk2gh9WSnZ+WYItRrTDTX2oQrYbAAJ5FWzvhEZJRc3hqlOT9lbkBSPJ/+EB0hYxW2iAhNOXUAED2IrKyO/hRBtrEa3xN3qmrBNVwIUYfiNvMgMm0qOZkM1AMzpbxGuzI1/IzHHm1iuuuEg/oQJNhRxtiI873b/XtyZhiZjzpdHuPvsDMVmO0XRM7o5pOKPTojXRNFpTa/0QUBB1ehFrQj6LS9N63b4wtLucoLWsjjPZpGd5kfdnPkXTBMdLLTi29wxT6h7sv6VCFEW2wYCgnMrK6msnaRhRaYaTmR4cnoz8+BqE1AmJlhIQVbfG1RP068kLscTPf67W8dyn1Er1hLwD6SgD/SrTpHqo8+r/yljVDEygSfae5sGvySr4+Cbm2xwp1MQhruGFUhfMMFzD2PZ1RcKbeHAnZHmSX7Q6GeJnvMI1V0LKkXmki29YNGQecQV44ZpBH46o00iiE0dD2ACTpbp1B+bONuXQRSW1vnMHCX3ILgrd8MnLJ4dHCrN7ZwuBYp8c9Ma9I0G5Xw52z+7ZWPjNyMnh4ZMj6NctffdsoTDbTccDxQB8WiXB6xXQZ1t7g3IQPuivChsL8GnPoRR1BezzTuBQXrKfg2tzp5XN0R4IZtR/PnGtIn0GROQvouf5PI+eF4vz8tJjxfnieXQ/uj+aWHpMQqPormym9bs2GzqaybauwsXiPL219XVUt6rvfJT5J+YMVaCmyApaOxQjXrITkKmLFKotLG+vUZfA2jagcZC1NpH8BwHJB5ekqE3dKegIIdZs5Mw281guIRi7CgGes1qMepbVGy1Wjg8Uuo0mzu7yjMEtnNFMZ0MZ2+UHuUzQdvmyLZjhHrxsA/hfvoz+yC9Y9TqEPGZLrphwaDWsxqinn9MbtDpG60iUSkaWLGHSWr3V7vvxbz1vU9ttz6+PgmzPAPfaTD1OZSiEnyjgqRud7N3DgKBDzcaHAUHKFC88//jCHRcufohQLuIzQAq3SkT+dySC2ssOKwn1ZLu+86jqM2x0e2+SUln9W0pK7/wWkC62+rnOk+qzkt1xi1AR995CzTE2Ica7sr5kKpATeStn5rV6k5W3OUw2m8lh460azcOMlY8arVaH3e30OEROMMKPwIkOj9Ntd1itRpblzYKWNTk8YtgT5B0OPugJix6HRoP+SBYMtyqGfy+9tP5NMFmRgY+k+0bW9KdjgoHR6E28M8AarXYxsDbgdlpNeovt43AbrWFJHx1ur7rB/7ZclxQJ+kSHYDHrdVpEswbOETRaBU8gke45WUxLQa/darJYV+dzHVSaGqTu7HDsZBMXCrjaxP42066rBLS9rTerbvTGPhlX264FqOgQgCDrgolDmySbuvkG1w/fUWFRJxXVf9MpJMnebyeqqZdxEYIX4ZrJRfWr3sSNbuXioDi6ncAoy+rCyvJGf6RuAXcNIpXLtPfPttn5Mpu8cgVK2r7e/Qfvuuvg/t4+1A/FX0IJ9SHB8l29TQ+fr9ktFoG+AMyz89TK861Hf/mup/qgJdrV+rxFQMAZbHpUswh2IjYIVamLILtjlA28j5uKUPvUHeGc+l+KILhIE9sLWAPii67akupdccY8lAzNRgxk5+XaEV2Ix271XyGc4nIY2xDdasYbu9pZ7fbyOK+uj0tKhI/YI4hJSmR2Js4kHWC2B9LpwNvPBtLrmO1vPxtnhNavvr37WDkBCJv8On3Qn0r5l54iR/rg0lPoldYLn316nSyvkynq/wEJ57ZsAAB42n2QzU7CQBSFT/lTIRqjiQvjYty4kKTlJyGEuMaNboxhX2BaStpOUwYC7Nz6GD6Az+DWl/BZPJSrS5pM57tnzpyZOwAu8AMH++8UN8IOqugJl3CEJ+EyjhEIV8hvwlU08CFco/4lXEfTuRVu4NJZMsGpnLC6LtJ27NB1L1zCGR6EyzjHq3CFbISruMK7cI36p3AdI3wLN3DnPCNCAh8hNDwssCI1saYWA1Hih9pbrMLmOmG5ZXpW+LE1WcTphbtCLOn1kbPU4TL2CQGdKSy6aHP0KZjUdtvd/sGlEdNy3iEqLIoGFy3KOl9EJlVtt3Vw+yO3p0WET4PGlBFjbPjft9WhahmgOHLGJKShxGm2EJMVG9ytzalMqLuM1anOfaunarxRfIuOtYEKcpOoIY/WcWxUlpu5nliaZ8UZGQZ8TO//sn/pLjN352JmbTbwvEAC3IlJ8Au++mLUAAB42m2RyU7EMBBE88KSYdj3HYZ9h7jdmYEzEr8CSAhx4cDfg4SrDwhLUcrleu1SUtXV7+pX/6/Rz0NVUzPGOBNM0tBjij7TzDDLHPMssMgSy6ywyhrrbLDJFtvssMse+ww44JAjjjnhlDPOueCSK6654ZY7WhJGxul6z29fHy+D3DVFyPAiTI6FI8iGBUoyJDyElYg1n++v1j09lv39XyS35eShGKmV0Awvb3XV9SMFhVqgKp9UPql8Gios3KJTzDGVi5aisjKuu1yTXRnXZNdkF9WJyspkZVJQUV5HOf6OinXxof0b7uGQMAAAAAABAAH//wAPeNpjYGRgYOABYjEgZmJgBEIzIGYB8xgABfAAZXjaY2BgYGQAgisqM3aB6Ot+DV5Q+jQARZQGqwAAAVso0EwAAA==" +}, s = i(255); +n.prototype = o(s.prototype); +t.exports = n; +e(n, "meshim_widget_widgets_fontLoader_ZopimFont"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +v = Y.root; +y = v.$("livechat"); +j = y.$("ui").$("chat_button"); +C = y.$("ui").$("chat_window"); +k = y.$("channel").$("typing"); +T = y.$("channel").$("log"); +S = C.$("chat_panel"); +A = S.$("textarea"); +I = S.$("scrollable"); +B = y.$("ui").$("chat_button").$("button_clicked$bool"); +N = C.$("display$bool"); +D = C.$("main_stack_name$string"); +E = S.$("served_by").$("visible$bool"); +E.update(!0); +D.on("value", function(t) { +"chat_panel" === t && s(K.INSTANT); +}); +z.window.on("resize", c); +T.on("keys", u); +B.on("value", f); +O = !0; +W = 0; +H = 0; +M = !1; +V = !1; +R = !0; +} +function o(t) { +A.update({ +value$string: t +}); +if (t) { +P || _(); +clearTimeout(L); +L = setTimeout(l, X); +} else if (!1 !== P) { +L = clearTimeout(L); +l(); +} +} +function r() { +return W <= 5; +} +function s(t, e) { +if (R) { +t = t || K.SMOOTH; +var i = I.$(t).getValue() || 0, n = {}; +n[t] = i + 1; +I.update(n); +if (void 0 === e) { +clearTimeout(F); +F = setTimeout(function() { +s(t, !0); +}, 250); +} +} +} +function a(t) { +r() && s(t); +} +function _() { +P = !0; +k.write({ +typing$bool: !0 +}); +G.setUserChoice(!0); +} +function l() { +P = !1; +k.write({ +typing$bool: !1 +}); +} +function d(t) { +var e = t.trim(); +if (e) { +Y.livechat.sendChatMsg({ +msg: e +}); +o(""); +s(K.SMOOTH); +} +} +function u() { +a(K.SMOOTH); +} +function c() { +W = void 0; +s(K.INSTANT); +} +function h(t) { +W = t; +M && (V = !0); +R && I.$("scrolled_to_bottom$bool").update(r()); +V && g(); +Z(); +} +function p() { +m(!1); +s(K.SMOOTH); +} +function f() { +s(K.INSTANT); +} +function g() { +R && r() && "chat_panel" === D.getValue() && !0 === N.getValue() && 0 !== j.$("unread_count$int").getValue() && q.resetUnreadCount(); +} +function m(t) { +if (O !== t) { +E.update(!!t); +O = t; +} +} +function $(t) { +M = !0; +H = t.touches[0].clientY; +g(); +} +function b(t) { +t.touches[0].clientY - H > 0 ? m(!0) : t.touches[0].clientY - H < 0 && m(!1); +} +function w() { +M = !1; +} +function x() { +L = clearTimeout(L); +F = clearTimeout(F); +T.un("keys", u); +B.un("value", f); +v = y = j, C = S = A = k = I = T = B = N = D = P = W = R = M = V = void 0; +} +var v, y, j, C, S, A, k, I, T, B, N, D, E, O, P, L, W, R, F, M, V, H, z = i(14), U = i(39), q = i(33), G = i(41), Y = i(5), X = 12e4, K = { +SMOOTH: "smooth_scroll_count$int", +INSTANT: "instant_scroll_count$int" +}, Z = U.debounce(function() { +V = !1; +}, 80), Q = { +TYPING_TIMEOUT: X, +SCROLL_TYPES: K, +init: n, +scrollToBottom: s, +userFocusTextArea: p, +userInputValue: o, +userChangeOrientation: c, +userClickChatButton: f, +userDistFromBottom: h, +userSendMessage: d, +userReceiveMessage: u, +userTouchStart: $, +userTouchMove: b, +userTouchEnd: w, +resetState: x +}; +t.exports = Q; +e(Q, "meshim_widget_controllers_ChatPanelController"); +return Q; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, a) { +if (!(this instanceof n)) return new n(t, e, i, r, a); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, r, a); +} +var o = i(2), r = i(1), s = i(37); +n.__jx__jcss = { +"**self": { +fontWeight: "bold" +} +}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = s; +t.exports = n; +e(n, "meshim_widget_widgets_Header"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(2), o = i(1), r = i(43), s = r, a = i(6), _ = i(5), l = i(349), d = i(9); +r = function(t, e, i, o, a) { +if (!(this instanceof r)) return new r(t, e, i, o, a); +if (!r.__jx__jcss_generated) { +n.generate(this, r.prototype.__jx__fqname, r.__jx__jcss, null, r); +r.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, o, a); +r.__constructor.call(this); +}; +r.__constructor = function() { +d.mobile(this); +d.rtl(this); +if (_.root.$("livechat").$("ui").$("mobile$bool").getValue() && this.hasClass("mobile_error_icon")) { +this.pContainer = new a(this.parentNode, null, null, null, { +position: "relative" +}); +this.pContainer.appendChild(this); +var t = new l(this.pContainer), e = this.showErrorMessage, i = this.hideErrorMessage, n = this; +this.showErrorMessage = function() { +t.setDisplay(""); +return e.call(n); +}; +this.hideErrorMessage = function() { +t.setDisplay("none"); +return i.call(n); +}; +} +}; +r.__jx__jcss = { +"**self": { +display: "block", +appearance: "none", +"*overflow": "visible", +width: "100%", +color: "$$inputColor", +background: "$$inputBg", +padding: "$$inputPadding", +borderWidth: "$$inputBorderWidth", +borderStyle: "$$inputBorderStyle", +borderColor: "$$inputBorderColor", +borderRadius: "$$inputRadius", +boxShadow: "$$inputShadow" +}, +"&:focus, &.focus": { +color: "$$inputFocusColor", +background: "$$inputFocusBg", +borderColor: "$$inputFocusBorderColor", +boxShadow: "$$inputFocusShadow", +outline: "none" +}, +"&::placeholder": { +color: "$$inputPlaceholderColor", +fontStyle: "$$inputPlaceholderFontStyle" +}, +"&.invalid": { +color: "$$inputInvalidColor", +background: "$$inputInvalidBg", +borderColor: "$$inputInvalidBorderColor", +boxShadow: "$$inputInvalidShadow" +}, +"&.invalid.mobile": { +paddingRight: "30px" +}, +"&.invalid.rtl.mobile": { +paddingRight: "$$inputPadding", +paddingLeft: "30px" +}, +"&.unstyled": { +border: "none", +background: "transparent", +boxShadow: "none" +}, +"&.standalone": { +marginTop: "10px", +marginBottom: "5px" +} +}; +r.prototype = o(s.prototype); +r.prototype.__jx__super = s; +t.exports = r; +e(r, "meshim_widget_widgets_Input"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var i = function(t, e) { +return t === e || t && e && "object" == typeof t && "object" == typeof e && n(t, e); +}, n = function(t, e) { +var n; +for (n in t) if (!i(t[n], e[n])) return !1; +for (n in e) if (!i(t[n], e[n])) return !1; +return !0; +}, o = function(t) { +if ("object" != typeof t || !t) return t; +var e = {}; +for (var i in t) t.hasOwnProperty(i) && (e[i] = o(t[i])); +return e; +}, r = function(t) { +if (t) for (var e = 1, i = arguments.length; e < i; e++) { +var n = arguments[e]; +if (n) for (var o in n) n.hasOwnProperty(o) && (t[o] = n[o]); +} +return t; +}, s = { +equal: i, +clone: o, +extend: r +}; +t.exports = s; +e(s, "jx_core_ObjectUtil"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(7), o = i(24), r = i(26), s = n(106), a = n(107), _ = n(108), l = n(109), d = n(110), u = n(111), c = {}; +c.ERR_SIZE = "TOO_LARGE"; +c.ERR_FORMAT = "ILLEGAL_TYPE"; +c.ERR_DISABLED = "FILE_UPLOADS_TEMPORARILY_DISABLED"; +var h = /^(x-|vnd\.)/i, p = [ "png", "jpg", "jpeg", "gif", "txt", "pdf" ], f = {}, g = n(112); +f[c.ERR_SIZE] = s; +f[c.ERR_FORMAT] = a; +f[c.ERR_DISABLED] = _; +c.prettySize = function() { +var t = [ l, d, u ], e = [ 0, 1, 2 ]; +return function(i, n) { +i = Math.max(parseInt(i, 10) || 0, 0); +n = n || {}; +for (var o, r = n.base2 ? 1024 : 1e3, s = t.length; s--; ) { +o = Math.pow(r, s); +if (i >= o) return t[s].replace("", (i / o).toFixed(e[s])); +} +}; +}(); +c.prettyType = function(t, e, i) { +i = i || window.Infinity; +var n = t.split("/")[1]; +n = n && n.replace(h, ""); +if (n && n.length < i) return n.toLowerCase(); +n = e.split(".").pop(); +return (n || "").toLowerCase(); +}; +c.isValidType = function(t, e) { +if (t) { +e = e || p; +var i = t.substr(t.lastIndexOf(".") + 1).toLowerCase(); +return -1 !== o(i, e); +} +}; +c.prettyError = function(t, e) { +var i = t in f ? f[t] : g; +r(e) || (i = i.replace("", c.prettySize(e || 5e6))); +return i; +}; +c.blobToFile = function(t, e, i) { +t.lastModifiedDate = new Date(); +t.name = e; +return new window.File([ t ], e, { +type: i +}); +}; +c.getExtension = function(t) { +var e = t.lastIndexOf("."); +return -1 === e ? null : t.substr(e + 1).toLowerCase(); +}; +t.exports = c; +e(c, "meshim_common_FileUtil"); +return c; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +if (!(this instanceof n)) return new n(t, e); +this.elm = t; +this.currStyle = d({}, e); +this.applyStyle(this.currStyle); +var i = this; +this.elm.onDestruction(function() { +i.destroy(); +}); +} +var o = i(28), r = i(227), s = i(226), a = i(225), _ = i(10), l = i(223), d = _.shallowExtend, u = function() {}; +n.prototype.animate = function(t, e) { +var i = d({}, t.endStyle), n = o(t.duration) ? t.duration : 300, r = o(t.delay) ? t.delay : 0, s = t.easeType || "easeQuadInOut", a = o(t.startTime) ? t.startTime : +new Date(), _ = 0; +e = e || u; +if (o(window.animateDebug)) { +n *= window.animateDebug; +r *= window.animateDebug; +} +r < 0 ? _ = -r : a += r; +this.stop(); +this.cb = e || u; +this._animate({ +startStyle: this.currStyle, +endStyle: i, +duration: n, +startTime: a, +elapsedOffset: _, +easeType: s +}); +}; +n.prototype.stop = function() { +if (this.timer) { +this.timer.stop(); +this.timer = null; +this.cb.call(this.elm, "stopped"); +} +}; +n.prototype.destroy = function() { +this.stop(); +this.elm = this.currStyle = this.cb = this.timer = null; +}; +n.prototype.isAnimating = function() { +return !!this.timer; +}; +n.prototype._animate = function(t) { +function e(t) { +t += _; +if (t >= o) { +h.stop(); +p.timer = null; +p.currStyle = n; +p.applyStyle(n); +p.cb.call(p.elm, null); +} else { +var e = c(t / o), i = u(e); +p.currStyle = i; +p.applyStyle(i); +} +} +var i = t.startStyle, n = t.endStyle, o = t.duration, _ = t.elapsedOffset, l = t.startTime, d = t.easeType, u = a.interpolateObject(i, n), c = s[d], h = r.timer(e, 0, l), p = this; +p.timer = h; +}; +n.prototype.applyStyle = function(t) { +t = l(t); +for (var e in t) t.hasOwnProperty(e) && this.elm.setCSSStyle(e, t[e]); +}; +t.exports = n; +e(n, "meshim_widget_utils_Animate"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(9); +!function() { +t.mobile(h); +t.tablet(h); +t.rtl(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +minWidth: "180px", +maxWidth: "360px", +zIndex: "100", +bottom: "$$actionBarHeight", +marginBottom: "-2px", +"left, right": "10px", +color: "$$menuColor", +background: "$$menuBg", +borderWidth: "$$menuBorderWidth", +borderStyle: "$$menuBorderStyle", +borderColor: "$$menuBorderColor", +borderRadius: "$$menuRadius", +boxShadow: "$$menuShadow" +}, +"&.rtl": { +"left, right": "10px" +}, +"&.mobile": { +left: "0", +top: "$$titleBarHeight", +bottom: "auto", +width: "100%", +maxWidth: "$$mobileMaxWidth", +borderTop: "0 none" +}, +"&.mobile.rtl": { +right: 0 +} +}; +s(t, "meshim_widget_widgets_Menu"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +if (k.isAuthenticated()) { +D = !0; +_ = t.$("livechat"); +l = _.$("history"); +d = _.$("ui").$("history"); +u = _.$("channel"); +c = u.$("log"); +h = _.$("profile").$("has_history$bool"); +p = d.$("state$string"); +f = d.$("log"); +g = d.$("log_length$int"); +m = d.$("scroller_at_top$bool"); +$ = d.$("spinner_visibility"); +b = l.$("log"); +w = l.$("has_more$bool"); +x = l.$("in_progress$bool"); +v = l.$("cursor$string"); +b.bindValue(function(t) { +t && (N = S.extend(N, t)); +}); +x.bindValue(function(t) { +!1 === t && setTimeout(function() { +p.update("rendering"); +f.update(N); +N = {}; +}, I); +}); +v.bindValue(function(t) { +if (void 0 !== t && t !== y) { +y = t; +p.update("fetched"); +} +}); +c.bindKeys(function() { +var t = c.getKeys(); +if (0 !== t.length) { +var e = c.$(t[0]).$("first$bool"); +e.getValue() || e.update(!0); +} +}); +h.bindValue(function(t) { +t && P.fetchChatHistory(!0); +}); +g.bindValue(function(t) { +void 0 !== t && p.update("rendered"); +}); +o(); +} +} +function o() { +function t() { +var t = w.getValue(), e = c.getKeys().length > 0, i = g.getValue() > 0, n = p.getValue(), o = n && "rendered" !== n, r = m.getValue(), s = !(e || i); +$.update({ +large$bool: s && o, +small$bool: !s && !1 !== t && r && o +}); +} +if (D) { +j && j(); +c.bindKeys(t); +w.bindValue(t); +g.bindValue(t); +p.bindValue(t); +m.bindValue(t); +t(); +j = function() { +c.unbindKeys(t); +w.unbindValue(t); +g.unbindValue(t); +p.unbindValue(t); +m.unbindValue(t); +}; +} +} +function r(t, e, i) { +D && t.autobind($, "value", function(t) { +if (t) { +"large$bool" in t && i.setVisible(t.large$bool); +"small$bool" in t && e.setVisible(t.small$bool); +} +}); +} +function s(t, e) { +function i() { +var e = t.getScrollHeight(), o = e - E, r = E > 0 ? O + o : e; +t.setScrollTop(r); +n || C.un("write", i); +} +if (D) { +e = e || 0; +var n = !1; +p.bindValue(function(e) { +if ("rendering" === e) { +n = g.getValue() > 0; +E = t.getScrollHeight(); +O = t.getScrollTop(); +} else "rendered" === e && (n ? i() : C.on("write", i)); +}); +t.on("scroll", A.debounce(function() { +var i = t.getScrollTop(), n = i < B + e; +n && P.fetchChatHistory(); +m.getValue() !== n && m.update(n); +}, T)); +} +} +function a(t) { +if (D && !x.getValue() && !1 !== w.getValue()) { +t && f.update(null); +p.update("fetching"); +l.write({ +cursor$string: t ? "" : v.getValue() || "" +}); +} +} +var _, l, d, u, c, h, p, f, g, m, $, b, w, x, v, y, j, C = i(2), S = i(65), A = i(300), k = i(45), I = 500, T = 100, B = 20, N = {}, D = !1, E = 0, O = 0, P = { +init: n, +fetchChatHistory: a, +setupSpinner: o, +bindSpinnerUI: r, +setupScrollListener: s +}; +t.exports = P; +e(P, "meshim_widget_controllers_HistoryController"); +return P; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, s, _) { +if (!(this instanceof n)) return new n(t, e, i, s, _); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +_ || (_ = {}); +_.tagName || (_.tagName = "input"); +_.type || (_.type = "submit"); +a.call(this, t, e, i, s, _); +this.setValue(this._value); +var l = this; +this._setValue = function() { +l.setValue(l._value); +}; +r && r.onLanguage && r.onLanguage(this._setValue); +} +var o = i(2), r = i(7), s = i(1), a = i(17); +n.__jx__jcss = { +"**self": {} +}; +n.prototype = s(a.prototype); +n.prototype.__jx__super = a; +n.prototype.setValue = function(t) { +this._value = t; +return a.prototype.setValue.call(this, t); +}; +n.prototype.destroy = function() { +r && r.unLanguage && r.unLanguage(this._setValue); +a.prototype.destroy.call(this); +}; +t.exports = n; +e(n, "meshim_widget_widgets_Submit"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName || (s.tagName = "button"); +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(43); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_Button"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(8), o = i(58), r = i(35), s = i(18), a = i(5), _ = i(27), l = i(34), d = {}; +d.init = function() { +var t, e = a.root, i = e.$("connection").$("status$string"), u = e.$("livechat").$("ui").$("popout$bool"), c = e.$("livechat").$("ui").$("mobile$bool"), h = e.$("livechat").$("ui").$("mockup$bool"), p = e.$("livechat").$("account").$("key$string"), f = e.$("livechat").$("profile").$("mid$string"), g = e.$("livechat").$("settings").$("language").$("language$string"), m = c.getValue() ? "dialog=no,fullscreen=yes" : "width=400,height=500,menubar=no,toolbar=no,location=no,personalbar=no,status=no,resizable=yes,scrollbars=no"; +d.openPopout = function(e) { +if (!n.bugs.noBoxSizing) { +var i = p.getValue() || s.ACCOUNT_KEY, o = c.getValue(); +if (!h.getValue() && !u.getValue() && i && !l.isIEMobile) { +var r = d.getPopoutURL(); +if (t && !t.closed && t.focus) { +if (!o && n.isChrome || l.isNativeAndroidMobile || l.isSafariIOSMobile) t.focus(); else { +t.close(); +t = window.open(r, s.POPOUT_WINDOW_PREFIX + i + new Date(), m); +if (!t || t.closed) return; +} +return !0; +} +if (o || e) { +try { +t = window.open(r, s.POPOUT_WINDOW_PREFIX + i, m); +} catch (t) {} +if (l.isChromeIOSMobile) return !0; +if (!t || t.closed) return; +try { +t.focus(); +} catch (t) {} +return !0; +} +} +} +}; +d.getPopoutURL = function() { +var t = { +key: p.getValue() || s.ACCOUNT_KEY, +mid: f.getValue() || "", +lang: g.getValue() || "", +hostname: window.location.hostname, +api_calls: o.stringify(_.getPopoutAPICalls()) +}, e = [ s.POPOUT_URL, "?", r.buildQuery(t) ], i = r.getHash("__zopim_widget_proxy"); +i && e.push("#", r.buildQuery({ +__zopim_widget_proxy: i +})); +return e.join(""); +}; +d.isReady = function() { +var t = i.getValue(); +return "registered" == t || "reattached" == t || "cookie_law" == t; +}; +}; +t.exports = d; +e(d, "meshim_widget_controllers_PopoutController"); +return d; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +var a = this; +this._onAutoResize = function() { +a.onAutoResize(); +}; +l.call(this, t, e, i, null, s); +l.prototype.setMargin.call(this, "0"); +l.prototype.setPadding.call(this, "0"); +l.prototype.setBorder.call(this, "0"); +l.prototype.setBackground.call(this, "transparent"); +l.prototype.setOverflow.call(this, "hidden"); +l.prototype.setPosition.call(this, "fixed"); +this.appendToParent(); +this.iframe = new d(this, null, null, null, { +tagName: "iframe", +position: "relative", +width: "100%", +height: "100%", +minWidth: "100%", +minHeight: "100%", +maxWidth: "100%", +maxHeight: "100%", +border: "0", +margin: "0", +padding: "0", +background: "transparent", +overflow: "hidden", +display: "block" +}); +this.iwin = this.iframe.iwin; +this.idoc = this.iframe.idoc; +this.ibody = this.iframe.ibody; +this.ihead = this.iframe.ihead; +this.content = new u(this.iframe.defaultPlacement); +this.content.setOverflow("hidden"); +this.wrapper = new l(this.content, null, null, null, { +display: "inline-block" +}); +this.wrapper.__jx__fqname = this.__jx__fqname; +this.wrapper.__jx__fqname_chain = this.__jx__fqname_chain; +if (r.bugs.noBoxSizing) { +this.wrapper.style.display = "inline"; +this.wrapper.style.zoom = "1"; +} +this.setAttributes(s); +this.defaultPlacement = this.wrapper; +this.addChildren(o); +if (r.isIE < 9) { +this.on("hide", function() { +a.iframe.setDisplay("none"); +}); +this.on("show", function() { +a.iframe.setDisplay("block"); +}); +} +this.raise(); +} +var o, r = i(8), s = i(1), a = i(3), _ = i(12), l = i(6), d = i(172), u = i(88), c = 16e6; +!function() { +for (var t = [ "", "WebKit" ], e = "MutationObserver", i = 0; i < t.length; i++) t[i] + e in window && (o = window[t[i] + e]); +}(); +n.prototype = s(l.prototype); +n.prototype.fire = function(t, e) { +l.prototype.fire.call(this, t, e); +this.iframe && this.iframe.fire(t, e); +this.wrapper && this.wrapper.fire(t, e); +}; +n.prototype.on = function(t, e) { +"init" == t ? l.prototype.on.call(this, t, e) : this.wrapper && this.wrapper.on(t, e); +}; +n.prototype.raise = function(t) { +t = parseInt(t, 10) || 1; +this.setZIndex(c += t); +}; +n.prototype.normalize = function() { +var t = this.getXY(); +this.moveTo(t[0], t[1]).setMargin(0); +}; +n.prototype.getXY = function() { +var t = this.dom.offsetLeft, e = this.dom.offsetTop; +if (r.isIE) if (r.isStrict) { +if (r.isIE6) { +t -= document.documentElement.scrollLeft; +e -= document.documentElement.scrollTop; +} +} else { +t -= document.body.scrollLeft; +e -= document.body.scrollTop; +} else if (r.isSafari) { +var i = a.getStyles(this.iframe.offsetParent); +t += parseInt(i.borderLeftWidth, 10); +e += parseInt(i.borderTopWidth, 10); +} +return [ t, e ]; +}; +n.prototype.fitToContents = function(t, e, i) { +t = t || this; +for (var n = 0, o = 0; t.defaultPlacement; ) t = t.defaultPlacement; +t.dom && (t = t.dom); +o = t.scrollWidth - t.clientWidth; +n = t.scrollHeight - t.clientHeight; +this.resizeBy(o, n, i || 0, e || 0); +}; +n.prototype.destroy = function() { +this.setAutoResize(!1); +l.prototype.destroy.call(this); +this.iframe = this.iwin = this.idoc = this.ibody = this.ihead = this.content = null; +}; +n.prototype.setBackground = function(t) { +return this.iframe && this.iframe.setBackground(t); +}; +n.prototype.setBackgroundImage = function(t) { +return this.iframe && this.iframe.setBackgroundImage(t); +}; +n.prototype.setBorder = function(t) { +return this.iframe && this.iframe.setBorder(t); +}; +n.prototype.setBorderColor = function(t) { +return this.iframe && this.iframe.setBorderColor(t); +}; +n.prototype.setBorderStyle = function(t) { +return this.iframe && this.iframe.setBorderStyle(t); +}; +n.prototype.setBorderWidth = function(t) { +return this.iframe && this.iframe.setBorderWidth(t); +}; +n.prototype.setCursor = function(t) { +return this.iframe && this.iframe.setCursor(t); +}; +n.prototype.setOpacity = function(t) { +return this.iframe && this.iframe.setOpacity(t); +}; +n.prototype.setSelectable = function(t) { +return this.iframe && this.iframe.setSelectable(t); +}; +n.prototype.setColor = function(t) { +return this.content && this.content.setColor(t); +}; +n.prototype.setPadding = function(t) { +return this.content && this.content.setPadding(t); +}; +n.prototype.setFontFamily = function(t) { +return this.content && this.content.setFontFamily(t); +}; +n.prototype.setFontSize = function(t) { +return this.content && this.content.setFontSize(t); +}; +n.prototype.setFontWeight = function(t) { +return this.content && this.content.setFontWeight(t); +}; +n.prototype.setTextAlign = function(t) { +return this.content && this.content.setTextAlign(t); +}; +n.prototype.setLetterSpacing = function(t) { +return this.content && this.content.setLetterSpacing(t); +}; +n.prototype.setLineHeight = function(t) { +return this.content && this.content.setLineHeight(t); +}; +n.prototype.setOverflow = function(t) { +return this.content && this.content.setOverflow(t); +}; +n.prototype.getAutoResize = function() { +return this.autoResize; +}; +n.prototype.setAutoResize = function(t) { +t = _(t); +this.autoResize = t; +if (this.wrapper) { +var e = this; +if (this.autoResize) { +if (o) { +this._autoResizer = new o(function() { +e.onAutoResize(); +}); +this._autoResizer.observe(this.wrapper.dom, { +childList: !0, +attributes: !0, +characterData: !0, +subtree: !0 +}); +} else { +this._autoResizer && window.clearInterval(this._autoResizer); +this._autoResizer = window.setInterval(this._onAutoResize, 200); +} +this.onAutoResize(); +} else if (this._autoResizer) if (o) { +this._autoResizer.disconnect(); +this._autoResizer = null; +} else { +window.clearInterval(this._autoResizer); +this._autoResizer = null; +} +return this; +} +}; +n.prototype.onAutoResize = function() { +if (r.bugs.noBoxSizing) { +this.style.width = "10px"; +this.style.height = "10px"; +} +var t = this.wrapper.getWidth(), e = this.wrapper.getHeight(); +this.setWidth(t); +this.setHeight(e); +if (r.bugs.noBoxSizing) { +this.style.width = t + "px"; +this.style.height = e + "px"; +this.iframe.dom.className = this.iframe.dom.className; +} +}; +n.prototype.setDataTestId = function(t) { +this.iframe && this.iframe.setDataTestId(t + "-iframe"); +return l.prototype.setDataTestId.call(this, t); +}; +t.exports = n; +e(n, "jx_ui_FloatingFrame"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +var e; +c = m.root.$("livechat").$("account").$("key$string"); +u = t; +p.on("error", a); +c.bindValue(function(t) { +if (-1 != f(t, S)) { +p.window.on("error", s); +p.window.on("unload", function() { +p.window.un("error", s); +}); +} +}); +e = { +ignoreErrors: y, +logger: "widget", +release: g.info.gitCommit, +shouldSendCallback: function(t) { +w.submitToServer(t); +return !1; +} +}; +e.whitelistUrls = [ C ]; +x.config("https://0@0/0", e); +} +function o(t) { +t && (t.onerror = a); +} +function r(t, e, i, n, o) { +try { +w.handleErrorEvent(t, e, i, n, o); +} catch (t) {} +} +function s(t, e, i, n, o) { +r(t, e, i, n, o); +return !1; +} +function a(t, e, i, n, o) { +r(t, e, i, n, o); +return !0; +} +function _(t, e, i, n, o) { +if ((t || o) && !k) { +var r = o || t, s = r.stack ? [ r.toString(), r.stack ].join("\n") : r.toString(), a = [ s, e, i ].join(" "); +if (!(r.name && v.indexOf(r.name) > -1 || I[a])) { +I[a] = !0; +w.post(r); +} +} +} +function l(t) { +if (!(Math.random() > A) && t && u) { +var e = m.root, i = e.$("livechat").$("account").getValue(), n = e.$("livechat").$("profile").$("mid$string").getValue(), o = { +key: i.key$string, +is_voltron: i.is_voltron$bool, +status: i.status$string, +mid: n +}; +x.setUserContext({ +id: o.key +}).captureException(t, { +extra: { +system: g.info, +connection: u.getConnectionStats(), +account: o +} +}); +} +} +function d(t) { +var e = u.getHost(); +if (t && e) { +try { +var i = t.exception.values[0], n = i.type, o = i.stacktrace.frames, r = o[o.length - 1].lineno; +t.fingerprint = [ n, r + "" ]; +} catch (t) {} +b.post("https://" + e + "/client/widget/errors", { +params: { +sentry_data: $.stringify(t) +} +}); +} +} +var u, c, h = i(8), p = i(14), f = i(24), g = (i(7), i(252)), m = i(5), $ = i(58), b = i(251), w = { +init: n, +post: l, +bind: o, +handleErrorEvent: _, +submitToServer: d +}, x = i(250), v = [ "SyntaxError" ], y = [ "Out of memory", "too much recursion" ], j = /^en/i, C = /^($|about:blank$|(https?:\/\/)?([\w_-]+\.)*zopim\.(?:com|org))/i, S = [ "zopim" ], A = .1, k = (h.isIE || h.isNewIE) && ("language" in window.navigator && !j.test(window.navigator.language) || "userLanguage" in window.navigator && !j.test(window.navigator.userLanguage) || "browserLanguage" in window.navigator && !j.test(window.navigator.browserLanguage)), I = {}; +t.exports = w; +e(w, "meshim_widget_controllers_ErrorHandler"); +return w; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Button = i(71); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Button, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Button.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Button; +t.__jx__jcss = { +"**self": { +background: "transparent", +border: "0px none", +color: "$$menuColor", +textAlign: "inherit" +} +}; +s(t, "meshim_widget_widgets_menu_ButtonLabel"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, _) { +if (!(this instanceof n)) return new n(t, e, i, r, _); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, r, _); +var l = a.root.$("connection").$("message$string"), d = this; +d.autobind(l, "value", function(t) { +d.setDisabled(!!t); +}); +} +var o = i(2), r = i(1), s = i(70), a = i(5); +n.__jx__jcss = {}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = s; +t.exports = n; +e(n, "meshim_widget_widgets_ConnAwareSubmit"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(2), o = i(1), r = i(153), s = r, a = i(64); +r = function(t, e, i, o, _) { +if (!(this instanceof r)) return new r(t, e, i, o, _); +if (!r.__jx__jcss_generated) { +n.generate(this, r.prototype.__jx__fqname, r.__jx__jcss, null, r); +r.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, o, _); +a.__constructor.call(this); +}; +r.__jx__jcss = {}; +r.prototype = o(s.prototype); +r.prototype.__jx__super = a; +t.exports = r; +e(r, "meshim_widget_widgets_TextArea"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(2), o = i(1), r = i(338), s = r, a = i(64); +r = function(t, e, i, o, _) { +if (!(this instanceof r)) return new r(t, e, i, o, _); +if (!r.__jx__jcss_generated) { +n.generate(this, r.prototype.__jx__fqname, r.__jx__jcss, null, r); +r.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, o, _); +a.__constructor.call(this); +}; +r.__jx__jcss = {}; +r.prototype = o(s.prototype); +r.prototype.__jx__super = a; +t.exports = r; +e(r, "meshim_widget_widgets_EmailField"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, a) { +if (!(this instanceof n)) return new n(t, e, i, r, a); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, r, a); +} +var o = i(2), r = i(1), s = i(6); +n.__jx__jcss = { +"**self": { +marginTop: "$$marginS", +marginBottom: "$$margin", +color: "$$errorMessageColor", +fontWeight: "$$errorMessageFontWeight", +fontStyle: "$$errorMessageFontStyle" +} +}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = s; +t.exports = n; +e(n, "meshim_widget_widgets_ErrorMessage"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_ui_html_img = i(108); +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_html_img, "img", "", [], { +id: "img", +class: "img" +} ], [ e.__$$__meshim_widget_widgets_IconFont, "auth_type", "", [], { +id: "auth_type", +addClass: "auth_type" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__img"), f = n.get(s + "__auth_type"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t(t) { +e(); +_ && h.autounbind(_, "value", n); +_ = t; +_ && h.autobind(_, "value", n); +} +function e() { +w = x = y = ""; +f.setDisplay("none"); +} +function n() { +if (_) { +switch (_.name) { +case "profile": +l = "visitor"; +break; + +case "concierge": +l = "concierge"; +break; + +default: +l = "agent"; +} +var t = _.getValue() || {}; +t.nick$string && (v = t.nick$string); +t.display_name$string && !g.isDefaultName(t.display_name$string) && o(t.display_name$string); +var e; +e = t.auth && t.auth.avatar$string ? t.auth.avatar$string : t.avatar_data$string ? t.avatar_data$string : t.avatar_path$string ? t.avatar_path$string : ""; +r(e); +var i; +i = t.auth && "type$string" in t.auth ? t.auth.type$string : ""; +s(i); +} +} +function o(t) { +if (t && t != w) { +h.setTitle(t); +w = t; +} +} +function r(t) { +var e = t || a(); +if (e && e != x) { +p.setSrc(g.replaceFileHostname(e)); +x = e; +} +} +function s(t) { +if (t !== y) { +f.removeClass(y); +y = t; +f.addClass(y); +f.setIcon(y); +f.setDisplay(y ? "" : "none"); +} +} +function a() { +var t = m.getValue(), e = b.getValue() || {}; +d = t; +var i; +switch (l) { +case "visitor": +i = e.visitor$string || u.AVATARS.VISITOR; +break; + +case "concierge": +i = e.concierge$string || u.AVATARS.CONCIERGE; +break; + +case "agent": +i = $.getValue() || e.agent$string || u.AVATARS.AGENT; +} +return i || u.AVATARS.DEFAULT; +} +var _, l, d, u = i(18), c = i(5), g = i(10), m = c.root.$("livechat").$("settings").$("theme").$("name$string"), $ = c.root.$("livechat").$("settings").$("concierge").$("avatar_path$string"), b = c.root.$("livechat").$("settings").$("theme"), w = "", x = "", v = "", y = ""; +h.setDataNode = t; +!function() { +h.autobind(m, "value", function(t) { +d && t != d && n(); +}); +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (h[m] = g[m]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative" +}, +".img": { +"width, height": "100%" +}, +".auth_type": { +position: "absolute", +"bottom, left": 0, +background: "#FFF", +"fontSize, width, height": "12px", +"line-height": "16px", +overflow: "hidden", +borderRadius: "2px", +"&.facebook": { +color: "$$facebook" +}, +"&.twitter": { +color: "$$twitter" +}, +"&.google": { +color: "$$google" +} +} +}; +s(t, "meshim_widget_widgets_gravatar_GravatarImage"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_div = i(13); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_div, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +h[c(t) ? "addClass" : "removeClass"]("hide_auth_type"); +return h; +} +function e(t) { +h.autounbind(); +"agents" == t.name ? o(t) : n(t); +} +function n(t) { +_([ t ]).setNodes([ t ]); +} +function o(t) { +l && h.autounbind(l, "keys", r); +l = t; +l && h.autobind(l, "keys", r); +} +function r() { +for (var t = l.getKeys(), e = [], i = 0, n = Math.min(3, t.length); i < n; i++) e.push(l.$(t[i])); +s(e); +} +function s(t) { +var e = _(t); +e && e.setNodes(t); +} +function a(t) { +var e = _(t); +e && e.setImages(t); +} +function _(t) { +if (t instanceof Array && t.length) { +var e = Math.min(t.length, 4), i = $[e - 1]; +if (e !== u) { +h.empty(); +d = new i(h); +u = e; +} +return d; +} +} +var l, d, u, c = i(12), p = i(342), f = i(341), g = i(340), m = i(339), $ = [ p, f, g, m ]; +!function() { +h.setImages = a; +h.setDataNode = e; +h.setMemberNode = n; +h.setGroupNode = o; +h.setHideAuthType = t; +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +width: "60px", +height: "60px", +position: "relative", +overflow: "hidden", +borderWidth: "$$avatarBorderWidth", +borderStyle: "$$avatarBorderStyle", +borderColor: "$$avatarBorderColor", +borderRadius: "$$avatarRadius", +boxShadow: "$$avatarShadow", +".avatar": { +background: "#FFF" +}, +"&.hide_auth_type": { +".auth_type": { +display: "none !important" +} +} +} +}; +s(t, "meshim_widget_widgets_Gravatar"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_toast_Disconnected = i(348); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_toast_Disconnected, "", "", [], { +addClass: "toast" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(9); +!function() { +t.mobile(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +zIndex: "1000", +top: "40px", +left: "0", +width: "100%", +height: "0", +textAlign: "center", +".toast": { +display: "inline-block", +maxWidth: "80%" +} +}, +"**self.mobile": { +position: "fixed", +top: "60px" +} +}; +s(t, "meshim_widget_widgets_ChatWindowDisconnectedToast"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, s) { +if (!(this instanceof n)) return new n(t, e, i, r, s); +s = l.extend({}, d, s); +"input" != s.tagName || s.type || (s.type = "text"); +_.call(this, t, e, i, r, s); +this.getValue() || this.showPlaceholder(); +this.on("blur", this.handlePlaceholderBlur); +this.on("focus", this.handlePlaceholderFocus); +this.on("click", this.handleAutoSelect); +var a = this; +this._handlePlaceholder = function() { +a.setPlaceholder(a.getPlaceholder()); +}; +o && o.onLanguage && o.onLanguage(this._handlePlaceholder); +} +var o = i(7), r = i(1), s = i(8), a = i(12), _ = i(43), l = i(65), d = { +tagName: "input", +autoValidate: !0 +}; +n.prototype = r(_.prototype); +n.prototype.getPlaceholder = function() { +return this.internalPlaceholder || ""; +}; +n.prototype.setPlaceholder = function(t) { +"placeholder" in this.dom || (this.emulatePlaceholder = !0); +this.internalPlaceholder = t; +this.emulatePlaceholder || (this.dom.placeholder = t); +this.placeholderActive && this.showPlaceholder(); +return this; +}; +n.prototype.handlePlaceholderFocus = function() { +this.placeholderActive && this.hidePlaceholder(); +}; +n.prototype.handlePlaceholderBlur = function() { +this.getValue() || this.showPlaceholder(); +}; +n.prototype.showPlaceholder = function() { +this.addClass("placeholder"); +this.placeholderActive = !0; +var t = this; +if (this.emulatePlaceholder) { +this._setValueOverride = !0; +this.setValue(this.getPlaceholder()); +this._setValueOverride = !1; +if ("password" == this.getType()) { +this.realTypePassword = !0; +if (s.engineIE < 9) { +if (!this.fakePlaceholderPasswordIE) { +var e = { +class: this.getClass(), +type: "text", +visible: "none", +value: this.getPlaceholder(), +autoValidate: !1, +tabIndex: this.attributes.tabIndex +}; +this.fakePlaceholderPasswordIE = new _(this.parentNode, null, null, null, e); +this.parentNode.insertAfter(this.fakePlaceholderPasswordIE, this); +this.autobind(this.fakePlaceholderPasswordIE, "focus", function() { +t.hidePlaceholder(); +}); +} +"none" != this.getComputedStyle("display") && (this.originalDisplay = this.getComputedStyle("display")); +this.fakePlaceholderPasswordIE.show().setOneStyle("display", this.originalDisplay).setClass(this.getClass()); +this.setVisible("none"); +} else this.setType("text", !0); +} +} +}; +n.prototype.hidePlaceholder = function() { +this.removeClass("placeholder"); +this.placeholderActive = !1; +if (this.emulatePlaceholder) { +this._setValueOverride = !0; +this.setValue(""); +this._setValueOverride = !1; +if (this.realTypePassword) { +this.realTypePassword = !1; +if (s.engineIE < 9) { +this.fakePlaceholderPasswordIE instanceof _ && this.setVisible("block").setOneStyle("display", this.originalDisplay); +this.fakePlaceholderPasswordIE.setVisible("none"); +this.focus(); +} else this.setType("password", !0); +} +} +}; +n.prototype.setValue = function(t) { +var e = 0 === t || !!t; +this._setValueOverride || e && this.hidePlaceholder(); +_.prototype.setValue.call(this, t); +if (!this._setValueOverride) try { +this.doc.activeElement.jx_wrapper != this && (e || this.showPlaceholder()); +} catch (t) {} +return this; +}; +n.prototype.getValue = function() { +return this.placeholderActive && this.emulatePlaceholder ? "" : _.prototype.getValue.call(this); +}; +n.prototype.setAutocomplete = n.prototype.setAutoComplete = function(t) { +if (!("autocomplete" in this.dom)) return this; +if ("on" == t || "off" == t) { +this.dom.autocomplete = t; +return this; +} +t = a(t); +this.dom.autocomplete = t ? "on" : "off"; +return this; +}; +n.prototype.getAutocomplete = n.prototype.getAutoComplete = function() { +return this.dom.autocomplete; +}; +n.prototype.getAutoSelect = function() { +return this.autoSelect; +}; +n.prototype.setAutoSelect = function(t) { +this.autoSelect = a(t); +return this; +}; +n.prototype.handleAutoSelect = function() { +this.autoSelect && this.dom.select(); +}; +n.prototype.destroy = function() { +o && o.unLanguage && o.unLanguage(this._updatePlaceholder); +this.un("blur", this.handlePlaceholderBlur); +this.un("focus", this.handlePlaceholderFocus); +this.un("click", this.handleAutoSelect); +if (this.fakePlaceholderPasswordIE instanceof _) { +this.fakePlaceholderPasswordIE.destroy(); +this.fakePlaceholderPasswordIE = null; +} +_.prototype.destroy.call(this); +}; +n.prototype.reset = function() { +_.prototype.reset.call(this); +this.handlePlaceholderBlur(); +return this; +}; +n.prototype.insertAtCaret = function(t) { +if (t) { +this.placeholderActive && this.hidePlaceholder(); +if (void 0 !== this.dom.selectionStart && 9 != s.engineIE) { +var e = this.dom.selectionStart, i = this.dom.selectionEnd, n = this.getScrollTop(), o = this.getValue(); +this.setValue(o.substring(0, e) + t + o.substring(i, o.length)); +this.focus(); +this.dom.selectionStart = this.dom.selectionEnd = e + t.length; +this.setScrollTop(n); +} else if (document.selection) { +this.focus(); +var r = document.selection.createRange(); +r.text = t; +this.focus(); +} else { +this.setValue(this.getValue() + t); +this.focus(); +} +} +}; +n.prototype.getCaret = function() { +var t = 0; +if (void 0 !== this.dom.selectionStart) t = this.dom.selectionStart; else if (document.selection) { +this.focus(); +var e = document.selection.createRange(); +e.moveStart("character", -this.getValue().length); +t = e.text.length; +} +return t; +}; +n.prototype.setCaret = function(t) { +if (void 0 !== this.dom.selectionStart) { +this.dom.selectionStart = t; +this.dom.selectionEnd = t; +this.focus(); +} else if (document.selection) { +this.focus(); +var e = document.selection.createRange(); +e.moveStart("character", -this.getValue().length); +e.moveEnd("character", -this.getValue().length); +e.moveStart("character", t); +e.moveEnd("character", 0); +e.select(); +} +return this; +}; +t.exports = n; +e(n, "jx_ui_TextField"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(2), o = i(1), r = i(83), s = r, a = i(64); +r = function(t, e, i, o, _) { +if (!(this instanceof r)) return new r(t, e, i, o, _); +if (!r.__jx__jcss_generated) { +n.generate(this, r.prototype.__jx__fqname, r.__jx__jcss, null, r); +r.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, o, _); +a.__constructor.call(this); +}; +r.__jx__jcss = {}; +r.prototype = o(s.prototype); +r.prototype.__jx__super = a; +t.exports = r; +e(r, "meshim_widget_widgets_TextField"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +this.childConstructors = []; +this.childAttributes = []; +this.delimiter = "@"; +_.call(this, t, e, i, o, s); +var a = this; +this._updateContent = function() { +a.updateContent(); +}; +r && r.onLanguage && r.onLanguage(this._updateContent); +this.onDestruction(function() { +r && r.unLanguage && r.unLanguage(a._updateContent); +}); +} +function o(t) { +return t.replace(/&#([0-9]{1,4});/g, function(t, e) { +return String.fromCharCode(e); +}); +} +var r = i(7), s = i(1), a = i(22), _ = (i(24), i(6)); +n.prototype = s(_.prototype); +n.prototype.appendChild = function(t) { +if (a(t)) { +this.childConstructors.push(t[0]); +this.childAttributes.push(t[4]); +this._localizer_appendchild_override || this.updateContent(); +} else _.prototype.appendChild.call(this, t); +}; +n.prototype.updateContent = function() { +this.setContent(this.getContent()); +}; +n.prototype.getContent = function() { +return this.content; +}; +n.prototype.setContent = function(t) { +this.content = t; +this.empty(); +if (t) { +t.toString && (t = t.toString()); +for (var e, i = t, n = i.length, r = 0, s = this.delimiter, a = s.length, l = 0; r < n && -1 != r; ) { +e = i.indexOf(s, r); +-1 == e && (e = n); +if (e > r) { +this._localizer_appendchild_override = !0; +_.prototype.appendChild.call(this, [ _, null, null, [ o(i.slice(r, e)) ], { +tagName: "label", +display: "inline" +} ]); +this._localizer_appendchild_override = !1; +r = e; +} +if (e == r && e != n) { +var d = i.indexOf(s, e + a); +-1 == d && (d = n); +this._localizer_appendchild_override = !0; +_.prototype.appendChild.call(this, [ this.childConstructors[l] || _, null, null, [ o(i.slice(r + a, d)) ], this.childAttributes[l] || { +tagName: "label", +display: "inline" +} ]); +this._localizer_appendchild_override = !1; +r = d + a; +l++; +} +} +return this; +} +}; +n.prototype.setChildProperties = function(t, e, i) { +this.childConstructors[t] = e; +this.childAttributes[t] = i; +}; +n.prototype.clearChildProperties = function() { +this.childConstructors.length = this.childAttributes.length = 0; +}; +n.prototype.getDelimiter = function() { +return this.delimiter; +}; +n.prototype.setDelimiter = function(t) { +this.delimiter = t; +this.updateContent(); +return this; +}; +t.exports = n; +e(n, "jx_ui_Localizer"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +addClass: "border_overlay" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +"top, left": 0, +"width, height": "100%", +borderRadius: "inherit" +} +}; +s(t, "meshim_widget_widgets_BorderOverlay"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +var t = f.getValue(), e = u[t]; +if (e && !(o instanceof e)) { +o && o.destroy(); +o = new e(h); +} +} +function e() { +var t = p.getValue(); +t && r ? h.setDisplay("none") : t || !s ? h.setDisplay("") : h.setDisplay("none"); +} +function n(t) { +h.setVisibility(t ? "hidden" : ""); +} +var o, r, s, a = i(12), _ = i(5), l = i(360), d = i(359), u = { +icon_font_zopim: l, +icon_font_zendesk: d +}, c = _.root.$("livechat"), p = c.$("ui").$("mobile$bool"), f = c.$("settings").$("theme").$("branding").$("type$string"), g = c.$("settings").$("branding").$("hide_branding$bool"); +h.setHideOnMobile = function(t) { +r = a(t); +e(); +}; +h.setHideOnDesktop = function(t) { +s = a(t); +e(); +}; +!function() { +h.autobind(f, "value", t); +h.autobind(p, "value", e); +h.autobind(g, "value", n); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +display: "inline-block", +color: "$$brandingLinkColor" +} +}; +s(t, "meshim_widget_widgets_Branding"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, s, _) { +if (!(this instanceof n)) return new n(t, e, i, s, _); +if (o.bugs.noBoxSizing) { +var l = this.table = new a(t, null, null, null, { +tagName: "table" +}), d = this.tbody = new a(l, null, null, null, { +tagName: "tbody" +}), u = this.tr = new a(d, null, null, null, { +tagName: "tr" +}), c = this.td = new a(u, null, null, null, { +tagName: "td" +}), h = this; +this.table.destroy = function() { +h.destroy(); +}; +this.table.empty = function() { +h.empty(); +}; +this.setPadding = function(t) { +this.td.setPadding(t); +return this; +}; +this.show = function() { +this.table && this.table.show(); +return this; +}; +this.hide = function() { +this.table && this.table.hide(); +return this; +}; +a.call(this, c, e, i, s, _); +l.style.tableLayout = "fixed", l.style.borderCollapse = "collapse"; +d.style.height = d.style.width = this.style.height = this.style.width = "100%"; +l.setTop(0).setLeft(0).setWidth("100%").setHeight("100%").setPosition("absolute").applyConstraints(); +this.style.position = "relative", this.style.overflow = "auto"; +l.defaultPlacement = this; +} else { +this.setPadding = function(t) { +if (!r(t)) return this; +t = t.split(" "); +t[0] = parseInt(t[0], 10); +t[1] = parseInt(t[1], 10); +t[2] = parseInt(t[2], 10); +t[3] = parseInt(t[3], 10); +if (isNaN(t[0])) t[3] = t[2] = t[1] = t[0] = 0; else if (isNaN(t[3])) if (isNaN(t[1])) t[3] = t[2] = t[1] = t[0]; else if (isNaN(t[2])) { +t[3] = t[1]; +t[2] = t[0]; +} else t[3] = t[1]; +this.setTop(parseInt(t[0], 10)).setRight(parseInt(t[1], 10)).setBottom(parseInt(t[2], 10)).setLeft(parseInt(t[3], 10)); +return this; +}; +a.call(this, t, e, i, s, _); +this.setStyle({ +top: 0, +bottom: 0, +left: 0, +right: 0, +overflow: "auto", +position: "absolute" +}); +} +this.setStyle(i); +this.setAttributes(_); +} +var o = i(8), r = i(21), s = i(1), a = i(6); +n.prototype = s(a.prototype); +n.prototype.destroy = function() { +a.prototype.destroy.call(this); +if (this.table) { +a.prototype.empty.call(this.table); +this.table.empty = null; +a.prototype.destroy.call(this.table); +this.table = this.tbody = this.tr = this.td = null; +} +}; +t.exports = n; +e(n, "jx_ui_FullFrame"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +l = C.root; +d = l.$("livechat"); +u = d.$("ui"); +h = u.$("chat_notification").$("display$bool"); +p = u.$("chat_window").$("display$bool"); +f = u.$("chat_button").$("display$bool"); +g = u.$("mobile_notifications$bool"); +c = u.$("mobile_overlay$bool"); +h.on("value", k); +p.on("value", k); +f.on("value", k); +g.on("value", k); +} +function o() { +if (!0 === v) return !0; +v = g.getValue() ? $ && b && m && !y(p.getValue()) && !y(h.getValue()) && !y(f.getValue()) : c.getValue() ? $ && b && !y(p.getValue()) && !y(f.getValue()) : b && !y(f.getValue()); +return v; +} +function r() { +if (w === b && x === $) { +w = $; +$.moveUp(A); +b.moveDown(A); +} else if (w) w.moveDown(function(t) { +if (!t) if (x) { +w = x; +x.moveUp(); +} else w = null; +}); else { +w = x; +x && x.moveUp(); +} +} +function s(t) { +$ = t; +k(); +} +function a(t) { +m = t; +k(); +} +function _(t) { +b = t; +k(); +} +var l, d, u, c, h, p, f, g, m, $, b, w, x, v, y = i(26), j = i(39), C = (i(40), +i(5)), S = { +init: n, +registerChatButton: _, +registerChatNotification: a, +registerChatWindow: s +}, A = function() {}, k = j.debounce(function() { +if (o()) { +var t = p.getValue(), e = h.getValue(), i = f.getValue(), n = t && $ || e && m || i && b || null; +if (!(t + e + i > 1) && x !== n) { +x = n; +r(); +} +} +}); +t.exports = S; +e(S, "meshim_widget_controllers_MobileViewsController"); +return S; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(7), o = { +livechat: { +timestamp$int: +new Date(), +settings: { +file_sending: { +enabled$bool: !0 +}, +behavior: { +do_not_display$bool: !1 +}, +theme: { +name$string: "simple", +message_type$string: "bubble_avatar", +colors: { +placeholder$string: "_" +}, +chat_button: { +position$string: "br", +position_mobile$string: "br" +}, +chat_window: { +position$string: "br", +size$string: "medium", +profile_card: { +display_avatar$bool: !0, +display_rating$bool: !0, +display_title_name$bool: !0 +}, +use_banner$bool: !0, +title_bar: { +hide_minimize$bool: !1, +hide_popout$bool: !1 +} +}, +branding: { +type$string: "icon_font_zopim" +} +}, +greetings: { +online$string: n(80), +offline$string: n(81) +}, +banner: { +enabled$bool: !0, +layout$string: "image_right", +text$string: n(82), +image_path$string: "", +image_data$string: "" +}, +chat_button: { +hide_when_offline$bool: !1 +}, +chat_window: { +mobile_mode$string: "popout", +title_bar: { +title$string: n(83), +status_messages: { +online$string: n(84), +away$string: n(85), +offline$string: n(86) +} +} +}, +login: { +allowed_types: { +email$bool: !0, +facebook$bool: !0, +twitter$bool: !1, +google$bool: !0 +}, +phone_display$bool: !1, +restrict_profile$bool: !1 +}, +concierge: { +display_name$string: n(87), +title$string: n(88), +avatar_path$string: "", +avatar_data$string: "", +greeting: { +enabled$bool: !1, +message$string: n(89) +} +}, +branding: { +hide_branding$bool: !1, +hide_favicon$bool: !1, +custom_favicon_path$string: "" +}, +language: { +language$string: "--" +}, +cookie_law: { +enabled$bool: !1 +}, +sound: { +disabled$bool: !1 +}, +popout: { +enabled$bool: !0 +}, +rating: { +enabled$bool: !0 +}, +end_chat_menu: { +enabled$bool: !0, +message$string: "" +}, +emoticons: { +enabled$bool: !1 +}, +bubble: { +enabled$bool: !0, +title$string: n(90), +text$string: n(91) +}, +forms: { +pre_chat_form: { +required$bool: !1, +profile_required$bool: !1, +message$string: "", +form: { +0: { +name$string: "name", +required$bool: 0 +}, +1: { +name$string: "email", +required$bool: 0 +}, +2: { +label$string: n(92), +name$string: "department", +required$bool: 0, +type$string: "department" +}, +3: { +label$string: n(93), +name$string: "message", +required$bool: 0, +type$string: "textarea" +}, +4: { +label$string: n(94), +name$string: "phone", +required$bool: 0, +type$string: "text", +hidden$bool: !0 +} +} +}, +offline_form: { +message$string: n(95), +message_disabled$string: n(96), +post_submit_message$string: n(97), +profile_required$bool: !0, +form: { +0: { +name$string: "name", +required$bool: 1 +}, +1: { +name$string: "email", +required$bool: 1 +}, +2: { +label$string: n(98), +name$string: "message", +required$bool: 1, +type$string: "textarea" +}, +3: { +label$string: n(99), +name$string: "phone", +required$bool: 0, +type$string: "text", +hidden$bool: !0 +} +} +}, +post_chat_form: { +header$string: n(100), +message$string: n(101), +comments_enabled$bool: !0, +comments_messages: { +good: { +message$string: n(102), +placeholder$string: n(103) +}, +bad: { +message$string: n(104), +placeholder$string: n(105) +} +} +}, +card_form: {} +} +} +} +}; +t.exports = o; +e(o, "meshim_widget_controllers_DefaultDataNode"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +this.name = t; +this.leaf = /\$[a-z]+$/.test(t); +this.parentNode = e; +this.listeners_value = []; +this.listeners_write = []; +if (!this.leaf) { +this.listeners_keys = []; +this.childNodes = {}; +this.keys = {}; +} +} +function o(t, e) { +return Object.prototype.hasOwnProperty.call(t, e); +} +function r(t) { +for (var e = "", i = 0; i < t.length; i++) /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t[i]) ? e += "." + t[i] : e += "[" + JSON.stringify(t[i]) + "]"; +return e.substr(1); +} +var s = i(14); +n.prototype.fqname = function() { +return r(this.path()); +}; +n.prototype.path = function() { +for (var t = this, e = [ this.name ]; t = t.parentNode; ) e.unshift(t.name); +return e; +}; +n.prototype.descend = function(t) { +var e, i, r, s = this; +"string" == typeof t && (t = t.split(".")); +for (i = 0, r = t.length; i < r; i++) { +e = t[i]; +o(s.childNodes, e) || (s.childNodes[e] = new n(e, s)); +s = s.childNodes[e]; +} +return s; +}; +n.prototype.$$ = n.prototype.descend; +n.prototype.$ = function(t) { +return o(this.childNodes, t) ? this.childNodes[t] : this.childNodes[t] = new n(t, this); +}; +n.prototype.update = function(t, e, i) { +var n, o; +if (null !== t) { +delete this.deleted; +o = this.parentNode; +for (;o && o.deleted; ) { +delete o.deleted; +o = o.parentNode; +} +} +if (this.leaf) { +this.value = t; +this.notifyListeners(t, e, i); +} else { +if (null == t) { +this.deleted = !0; +for (n in this.childNodes) this.childNodes.hasOwnProperty(n) && this.childNodes[n].update(null, !0, i); +} else for (n in t) t.hasOwnProperty(n) && this.$(n).update(t[n], !0, i); +this.notifyListeners(t, e, i); +} +}; +n.prototype.write = function(t, e, i) { +if ("function" == typeof e) { +i = e; +e = !1; +} +var n = { +path: this.path(), +value: t +}; +"function" == typeof i && (n.func = i); +this.update(t, e || !1, n); +}; +n.prototype.bindWrite = function(t) { +this.listeners_write.push(t); +}; +n.prototype.bindValue = function(t) { +this.listeners_value.push(t); +try { +t.call(this, this.getValue()); +} catch (t) { +s.fire("error", t); +} +}; +n.prototype.bindKeys = function(t) { +if (!this.leaf) { +this.listeners_keys.push(t); +try { +t.call(this, this.getKeys(), []); +} catch (t) { +s.fire("error", t); +} +} +}; +n.prototype.unbindValue = function(t) { +for (var e = this.listeners_value.length; e--; ) if (this.listeners_value[e] == t) { +this.listeners_value.splice(e, 1); +return; +} +}; +n.prototype.unbindKeys = function(t) { +if (!this.leaf) for (var e = this.listeners_keys.length; e--; ) if (this.listeners_keys[e] == t) { +this.listeners_keys.splice(e, 1); +return; +} +}; +n.prototype.on = function(t, e) { +switch (t) { +case "value": +this.bindValue(e); +break; + +case "keys": +this.bindKeys(e); +} +}; +n.prototype.un = function(t, e) { +switch (t) { +case "value": +this.unbindValue(e); +break; + +case "keys": +this.unbindKeys(e); +} +}; +n.prototype.addListener = function(t, e) { +this.listeners[t].push(e); +}; +n.prototype.removeListener = function(t, e) { +for (var i = this.listeners[t], n = i.length; n--; ) i[n] == e && i.splice(n, 1); +}; +n.prototype.notifyListeners = function(t, e, i) { +var n, r, a; +if (!this.leaf) { +n = []; +r = []; +if (t) { +for (a in t) if (t.hasOwnProperty(a)) if (null !== t[a]) { +if (!o(this.keys, a)) { +this.keys[a] = 1; +n.push(a); +} +} else if (o(this.keys, a)) { +delete this.keys[a]; +r.push(a); +} +} else for (a in this.keys) if (this.keys.hasOwnProperty(a)) { +delete this.keys[a]; +r.push(a); +} +} +for (var _ = 0; _ < this.listeners_value.length; _++) try { +this.listeners_value[_].call(this, t); +} catch (t) { +s.fire("error", t); +} +if (i) for (_ = 0; _ < this.listeners_write.length; _++) try { +this.listeners_write[_].call(this, i); +} catch (t) { +s.fire("error", t); +} +if (!this.leaf) { +for (_ = 0; _ < this.listeners_keys.length; _++) try { +this.listeners_keys[_].call(this, n, r); +} catch (t) { +s.fire("error", t); +} +if (!e && this.parentNode) { +var l = {}; +l[this.name] = t; +this.parentNode.notifyListeners(l, e, i); +} +} +}; +n.prototype.getValue = function(t) { +if (t) return this.descend(t).getValue(); +if (this.leaf) return this.value; +if (this.deleted) return null; +var e, i, n = {}; +for (var o in this.childNodes) if (this.childNodes.hasOwnProperty(o) && null != (i = this.childNodes[o].getValue())) { +n[o] = i; +e = !0; +} +return e ? n : null; +}; +n.prototype.hasKey = function(t) { +return o(this.keys, t); +}; +n.prototype.getKeys = function() { +if (this.leaf) return null; +var t = []; +for (var e in this.keys) this.keys.hasOwnProperty(e) && t.push(e); +return t; +}; +n.prototype.gc = function() { +var t = !0; +for (var e in this.childNodes) if (this.childNodes.hasOwnProperty(e)) { +var i = this.childNodes[e]; +t = i.leaf ? !i.listeners_value.length && null == i.value && (delete this.keys[e], +delete this.childNodes[e]) && t : i.gc() && (delete this.keys[e], delete this.childNodes[e]) && t; +} +return t && this.deleted && !this.listeners_keys.length && !this.listeners_value.length; +}; +n.DataNode = n; +t.exports = n; +e(n, "jx_data_DataNode"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var i = { +cached_fqname: {}, +cache: {}, +cache_replaced: {}, +palettes: {}, +priorities: [] +}; +t.exports = i; +e(i, "jx_core_jcss_modules_JCSSStore"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return t.join(""); +} +var n = { +space: / /g, +repeatingLinearGradient: /^\s*repeating-linear-gradient/, +prependFQName: /^(\*\*self|)(?!.+?keyframes)/, +prePrependFQName: /^(?!\*\*self)/g, +replacePseudo: /\:\:\:([A-Za-z_\-.]+)/g, +replaceAppend: / +?&/g, +placeholder: /::placeholder$/, +replaceVariables: /(?:(?:([A-Za-z\-]+):)??(?:& *:)?\$\$([A-Za-z_\.]+))(?=;)/g, +replaceLeftovers: /(?:(?:[A-Za-z\-]+:)??(?:& *:)?(\$\$[A-Za-z_\.]*?)??)(?=;)/g, +replaceMedia: /(.*)(@media.*)@mediaend(.*)/, +commaStart: /^,/, +selectorCase: /([A-Z]+)/g, +removePrefix: /^\$\$/, +isVariable: /\$\$[A-Za-z_]+/ +}, o = { +REGEX: n, +join: i +}; +t.exports = o; +e(o, "jx_core_jcss_modules_JCSSUtils"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +t || r.log(e); +} +var o = i(20), r = { +ok: n, +isFunction: function(t, e) { +n(o(t), e); +} +}; +r.log = function() {}; +t.exports = r; +e(r, "jx_core_Assert"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e) { +var i; +i = function() { +return this; +}(); +try { +i = i || Function("return this")() || (0, eval)("this"); +} catch (t) { +"object" == typeof window && (i = window); +} +t.exports = i; +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +marginBottom: "$$margin", +color: "$$menuHeaderColor" +}, +"&.item": { +margin: "$$menuItemPadding" +} +}; +s(t, "meshim_widget_widgets_menu_Header"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +if (!s.isWebKit || s.isChrome) return !1; +var t = document.activeElement; +return t && "select" === t.tagName.toLowerCase(); +} +function o() { +if (s.isIE && document.documentMode && !(s.isStrict && document.documentMode > 7)) for (var t = document.getElementsByTagName("select"), e = t.length; e--; ) { +var i = t[e].style, n = i.display; +i.display = "none"; +i.display = n; +} +} +function r() { +o(); +} +var s = i(8), a = { +testSafariFocusBug: n, +ieQuirksModeFix: r +}; +t.exports = a; +e(a, "meshim_widget_utils_BrowserQuirks"); +return a; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_ratingBar_emoticon_Emoticon = i(295); +e.__$$__meshim_widget_widgets_ratingBar_thumb_Thumb = i(291); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_ratingBar_emoticon_Emoticon, "emoticon_rating_options", "", [], { +id: "emoticon_rating_options", +addClass: "button_bar", +visible: "none" +} ], [ e.__$$__meshim_widget_widgets_ratingBar_thumb_Thumb, "thumb_rating_options", "", [], { +id: "thumb_rating_options", +addClass: "button_bar", +visible: "none" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +var h = n.get(s + "__emoticon_rating_options"), p = n.get(s + "__thumb_rating_options"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t(t) { +a && c.autounbind(a, "value", n); +a = t; +a && c.autobind(a, "value", n); +} +function e() { +return d; +} +function i(t) { +d = t; +l.setValue(t); +l.updateTitle(d); +} +function n(t) { +d !== t && i(t); +} +function o() { +var t = l.getValue(); +d === t && (t = null); +i(t); +c.fire("change", t); +} +function r() { +_ = "thumb"; +if ("thumb" === _) { +p.show(); +h.hide(); +l = p; +} else if ("emoticon" === _) { +p.hide(); +h.show(); +l = h; +} else { +p.hide(); +h.hide(); +l = null; +} +} +function s(t) { +l.addClass(t); +} +var a, _, l, d; +!function() { +c.setDataNode = t; +c.getValue = e; +c.setValue = i; +c.setSize = s; +r(); +l.on("change", o); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (c[g] = f[g]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative", +".button_bar": { +width: "100%", +textAlign: "center" +} +} +}; +s(t, "meshim_widget_widgets_RatingBar"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_div = i(13); +e.__$$__meshim_widget_widgets_chatLogRenderer_ChatName = i(323); +e.__$$__meshim_widget_widgets_chatLogRenderer_ChatMessage = i(322); +e.__$$__meshim_widget_widgets_chatLogRenderer_ResendChatMessage = i(319); +e.__$$__jx_ui_html_span = i(31); +e.__$$__meshim_widget_widgets_chatLogRenderer_ChatOption = i(318); +e.__$$__meshim_widget_widgets_chatLogRenderer_TranslationSwitch = i(316); +e.__$$__meshim_widget_widgets_chatLogRenderer_ChatFile = i(315); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__meshim_widget_widgets_chatLogRenderer_ChatName, "chat_name", "", [], { +id: "chat_name", +addClass: "chat_name" +} ], [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__meshim_widget_widgets_chatLogRenderer_ChatMessage, "chat_msg", "", [], { +id: "chat_msg", +addClass: "chat_msg" +} ], [ e.__$$__meshim_widget_widgets_chatLogRenderer_ResendChatMessage, "resend", "", [], { +id: "resend", +addClass: "resend_chat_msg" +} ] ], { +class: "chat_msg_holder" +} ], [ e.__$$__jx_ui_html_span, "", "", [], { +text: " " +} ], [ e.__$$__meshim_widget_widgets_chatLogRenderer_ChatOption, "chat_option", "", [], { +id: "chat_option", +addClass: "chat_option" +} ], [ e.__$$__meshim_widget_widgets_chatLogRenderer_TranslationSwitch, "translation_switch", "", [], { +id: "translation_switch" +} ], [ e.__$$__meshim_widget_widgets_chatLogRenderer_ChatFile, "chat_file", "", [], { +id: "chat_file", +addClass: "chat_file" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:mui": "meshim.ui", +"xmlns:logRenderer": "meshim.widget.widgets.chatLogRenderer" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__chat_name"), f = n.get(s + "__chat_msg"), g = n.get(s + "__resend"), m = n.get(s + "__chat_option"), $ = n.get(s + "__translation_switch"), b = n.get(s + "__chat_file"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var w = function() { +function t(t) { +if (n !== t) { +if (n) { +h.autounbind(n, "value", e); +h.autounbind(o, "value", e); +o = null; +} +n = t; +if (n) { +o = s.$(t.name).$("show_original$bool"); +h.autobind(n, "value", e); +h.autobind(o, "value", e); +} +g.setDataNode(t); +p.setDataNode(t); +b.setDataNode(t); +} +} +function e() { +var t = n.$("msg$string"), e = n.$("options$string"), i = null; +if (n.hasKey("translation")) { +i = o; +if (!i.getValue()) { +t = n.$("translation").$("msg$string"); +e = n.$("translation").$("options$string"); +} +} +f.setDataNode(t); +m.setDataNode(e); +$.setDataNode(i); +} +var n, o, r = i(5), s = r.root.$("livechat").$("ui").$("channel").$("log"); +!function() { +h.setDataNode = t; +}(); +}(); +for (var x in w) w.hasOwnProperty(x) && (h[x] = w[x]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +marginTop: "10px", +".chat_name": { +fontWeight: "bold", +"&": "$$chatLogName" +}, +"&.visitor .chat_name": { +color: "$$chatLogVisitorNameColor" +}, +"&.agent .chat_name": { +color: "$$chatLogAgentNameColor" +}, +".chat_msg_holder": { +whiteSpace: "pre-wrap", +wordWrap: "break-word", +display: "inline", +".chat_msg": { +"&": "$$chatLogMsg" +}, +".resend_chat_msg": { +marginLeft: "6px" +} +}, +".chat_option": { +input: { +margin: "2px 5px" +} +}, +".chat_file": { +"marginTop, marginBottom": "5px", +"&": "$$chatLogFile" +} +}, +"**self.group_children": { +marginTop: "0px", +".chat_name": { +display: "none" +} +} +}; +s(t, "meshim_widget_widgets_chatLogRenderer_BasicRenderer"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatLog = i(147); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatLog, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:jx": "jx.controls", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatPanel": "meshim.widget.components.chatWindow.chatPanel" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(5), e = t.root.$("livechat").$("ui").$("history"), n = e.$("log"), o = e.$("log_length$int"); +!function() { +h.getElement("list").on("jx:list:length", function(t) { +o.update(t); +}); +h.setDataNode(n); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatLog.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatLog; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_chatWindow_chatPanel_HistoryLog"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_ui_html_div = i(13); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_html_div, "inner", "", [], { +id: "inner", +addClass: "inner", +useDisplay: "true" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__inner"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +var t = i(12), e = { +SMALL: 16, +BIG: 30 +}, n = h.setVisible; +h.setVisible = function(e) { +e = t(e); +n.call(h, e); +p.setVisible(e); +}; +h.setSize = function(t) { +var i = "big" === t ? e.BIG : e.SMALL; +h.setWidth(i); +h.setHeight(i); +}; +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"@keyframes": { +spinner: { +to: { +transform: "rotate(360deg)" +} +} +}, +"**self": { +width: "16px", +height: "16px", +margin: "auto" +}, +".inner": { +width: "100%", +height: "100%", +borderRadius: "50%", +border: "2px solid transparent", +borderTopColor: "#ddd", +borderRightColor: "#ddd", +animation: "spinner .6s linear infinite" +} +}; +s(t, "meshim_widget_components_chatWindow_chatPanel_Spinner"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, s) { +if (!(this instanceof n)) return new n(t, e, i, r, s); +s || (s = {}); +s.tagName || (s.tagName = "input"); +s.type || (s.type = "checkbox"); +a.call(this, t, e, i, r, s); +this.on("click", function() { +this.onAutoValidate(); +}); +o.engineIE < 9 && this.on("click", function() { +this.fire("change"); +}); +} +var o = i(8), r = i(1), s = i(12), a = i(43); +n.prototype = r(a.prototype); +n.prototype.getChecked = function() { +return this.dom.checked; +}; +n.prototype.setChecked = function(t) { +this.dom.checked = s(t); +return this; +}; +n.prototype.toggleChecked = function() { +this.setChecked(!this.getChecked()); +return this; +}; +n.prototype.getInitialChecked = function() { +return o.engineIE <= 8 ? this._initialChecked : this.dom.getAttribute("checked"); +}; +n.prototype.setInitialChecked = function(t) { +o.engineIE <= 8 ? this._initialChecked = t : this.setAttribute("checked", t); +return this; +}; +n.prototype.reset = function() { +this.setChecked(this.getInitialChecked()).setValidity(!0); +a.prototype.reset.call(this); +}; +n.prototype.validate = function(t) { +var e = !this.dom.required || this.getChecked(); +!e && t && this.focus(); +this.setValidity(e); +return e; +}; +t.exports = n; +e(n, "jx_ui_CheckBox"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "container", "", [], { +id: "container" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets", +class: "generated_form" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__container"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t() { +var t, i, s, l; +t = e.getValue(); +if (!w.equal(n, t)) { +p.empty(); +S = {}; +A = {}; +n = t; +var d, u, c, h, f; +for (s in t) if (t.hasOwnProperty(s)) { +i = t[s]; +c = null; +if (C[i.name$string]) continue; +if (!j[i.type$string]) continue; +if (!i.name$string) continue; +if (!i.label$string) continue; +if (o && !i.value_user$string || "checkbox" == i.type$string && !i.checked$bool) continue; +d = A[i.name$string] = new _(p, null, null, null, { +className: "field field_" + i.type$string +}); +d.label = u = new v(d, null, null, null, { +className: "label" +}); +d.label_name = new v(u, null, null, [ b.get(e.$$(s + ".label$string")) ]); +d.label_required = new v(u, null, null, [ i.required$bool && !o ? " *" : "" ]); +d.input = S[i.name$string] = c = new j[i.type$string](d, null, null, null, { +name: i.name$string, +required: i.required$bool, +autoValidate: !0, +readOnly: o +}); +(c.container || c).addClass("input input_" + i.type$string); +c && c.setLabelElement(u); +switch (i.type$string) { +case "checkbox_multiple": +case "radio": +i.options && c.setOptions(i.options); +break; + +case "text": +case "email": +case "textarea": +i.placeholder$string && c.setPlaceholder(i.placeholder$string); +if (o) if (r.isIE <= 7) { +c.style.overflow = "visible"; +c.style.height = 0; +} else a(function(t) { +return function() { +t.setMinHeight("0"); +t.setHeight("0"); +t.setHeight(t.getScrollHeight()); +}; +}(c)); +break; + +case "checkbox": +i.checked$bool && c.setChecked(i.checked$bool).setInitialChecked(i.checked$bool); +d.insertBefore(c.container || c, u); +o && c.setDisabled(!0); +break; + +case "select": +for (l in i.options) if (i.options.hasOwnProperty(l)) { +f = new y(c, null, null, [ i.options[l].label$string || i.options[l].value$string ], { +value: i.options[l].value$string +}); +(i.value$string == i.options[l].value$string || i.options[l].checked$bool) && f.setSelected(!0); +} +o && c.setDisabled(!0); +break; + +case "department": +c.setSelectedIndex(0); +} +if (!o) { +d.error_message = h = new $(d, null, null, [ i.error_message$string || b.error_message[i.type$string] || b.error_message.default ], { +className: "error_message" +}); +h.setUseDisplay(!0); +c && c.setErrorMessageElement(h).hideErrorMessage(); +h.setVisible("none"); +} +if (o && i.value_user$string) { +c.setValue && c.setValue(i.value_user$string || ""); +c.setInitialValue && c.setInitialValue(i.value_user$string || ""); +} else if (i.value$string) { +c.setValue && c.setValue(i.value$string); +c.setInitialValue && c.setInitialValue(i.value$string); +} +if (i.hidden$bool) { +d.setDisplay("none"); +d.setRequired(!1); +} +} +var g = p.getLastChild(); +g && g.addClass("last-child"); +} +} +var e, n, o, r = i(8), s = i(12), a = i(16), _ = i(337), l = i(336), d = i(335), u = i(156), c = i(84), f = i(77), g = i(78), m = i(155), $ = i(79), b = i(11), w = i(65), x = i(102), v = i(19), y = i(154), j = { +text: c, +email: g, +textarea: r.isIE < 9 ? c : f, +checkbox: x, +select: m, +checkbox_multiple: l, +radio: d, +department: u +}, C = { +name: 1, +email: 1, +phone: 1 +}, S = {}, A = {}; +h.submitSelf = function() { +if (e) { +var t, i = {}; +for (var o in n) if (n.hasOwnProperty(o)) { +if (n[o].hidden$bool) continue; +t = S[n[o].name$string]; +if (!t) continue; +i[o] = { +value_user$string: t.getValue() +}; +t.getChecked && (i[o].checked_user$bool = t.getChecked()); +!t.getOptions || t instanceof u || (i[o].options = t.getOptions(!0)); +} +e.update(i); +} +}; +h.submit = function(t, e, i, o) { +if (t) { +var r, s, a = {}; +for (s in n) if (n.hasOwnProperty(s)) { +if (n[s].hidden$bool) continue; +if (o && "department_id" == n[s].name$string) continue; +r = S[n[s].name$string]; +if (!r) continue; +if (i) { +a[s] = { +value_user$string: r.getValue() +}; +r.getChecked && (a[s].checked_user$bool = r.getChecked()); +!r.getOptions || r instanceof u || (a[s].options = r.getOptions(!0)); +} else { +a[s] = { +name$string: n[s].name$string, +value$string: r.getValue() +}; +r.getChecked && (a[s].checked$bool = r.getChecked()); +!r.getOptions || r instanceof u || (a[s].options = r.getOptions()); +} +} +if (e) { +var _ = e.getValue(); +for (s in _) if (_.hasOwnProperty(s)) { +if (!_[s] || !C[s]) continue; +a[s] = { +name$string: s, +value$string: _[s] +}; +} +} +t.write(a); +} +}; +h.setReadOnly = function(t) { +o = s(t); +h[o ? "addClass" : "removeClass"]("read_only"); +return h; +}; +h.setDataNode = function(i) { +if (e != i) { +e && h.autounbind(e, "value", t); +e = i; +e && h.autobind(e, "value", t); +} +}; +h.populateSelf = function() { +if (e) { +var t, i = e.getValue(); +for (var o in i) if (i.hasOwnProperty(o)) { +t = S[n[o].name$string]; +if (!t) continue; +t.setValue(i[o].value_user$string); +t.setChecked && t.setChecked(i[o].checked_user$bool); +t.setOptions && t.setOptions(i[o].options, !0); +} +} +}; +h.reset = function() { +if (e) { +var t, i = e.getValue(); +for (var o in i) if (i.hasOwnProperty(o)) { +t = S[n[o].name$string]; +if (!t) continue; +t.reset && t.reset(); +} +} +}; +h.getField = function(t) { +return A[t]; +}; +h.getInput = function(t) { +return S[t]; +}; +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +"*zoom": 1 +}, +".input_text, .input_email, textarea, select": { +width: "100%" +}, +".label, .error_message, .option_label": { +display: "block" +}, +".input_checkbox, .input_input_radio, .input_input_checkbox": { +display: "inline-block", +float: "left", +clear: "both" +}, +".field": { +marginBottom: "15px", +"&.field_radio .input, &.field_department .input": { +input: { +"width, height": "16px" +}, +label: { +paddingLeft: "20px", +lineHeight: "16px" +}, +"label.disabled": { +color: "#ccc", +"&": "$$inputDisabled" +} +}, +"&.field_checkbox, &.field_checkbox_multiple .input": { +input: { +"width, height": "16px" +}, +label: { +paddingLeft: "20px", +lineHeight: "15px" +} +}, +"&.field_checkbox, &.field_checkbox_multiple, &.field_radio": { +"&.invalid": {} +} +}, +".label": { +marginBottom: "5px", +fontWeight: "bold" +}, +textarea: { +"minHeight, *height": "70px", +resize: "vertical" +}, +".option_label": { +marginBottom: "5px", +"&:last-child": { +marginBottom: 0 +} +}, +".error_message": { +paddingBottom: "5px" +}, +"&.read_only": { +".field_radio, .field_checkbox_multiple": { +".input_input_radio, .input_input_checkbox": { +display: "none" +} +}, +textarea: { +overflow: "hidden" +}, +".input_checkbox_multiple": { +label: { +display: "inline", +marginRight: "0.5em", +"&:after": { +content: "','" +}, +"&.last-checked": { +marginRight: 0, +"&:after": { +content: "none" +} +} +} +}, +".field": { +padding: "6px", +marginBottom: 0 +}, +".input_text, .input_email, textarea, .fake_input": { +border: "none", +padding: 0, +resize: "none", +background: "transparent" +}, +select: { +padding: 0, +border: "none", +height: "auto", +background: "transparent" +}, +".option_label": { +marginBottom: 0, +paddingLeft: "0 !important" +}, +".label": { +display: "none" +}, +button: { +position: "relative", +background: "transparent" +} +} +}; +s(t, "meshim_widget_widgets_Form"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_Gravatar = i(81); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_Gravatar, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +r.test(t) ? h.setDataNode(s.$("settings").$("concierge")) : n.test(t) ? h.setDataNode(s.$("ui").$("cache_agents").$(t)) : o.test(t) ? h.setDataNode(s.$("profile")) : h.setDataNode(s.$("settings").$("concierge")); +return h; +} +var e = i(5), n = /^agent/i, o = /^visitor/i, r = /^agent:trigger$/, s = e.root.$("livechat"); +!function() { +h.setMemberId = t; +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_Gravatar.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_Gravatar; +t.__jx__jcss = {}; +s(t, "meshim_widget_widgets_Avatar"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_ui_Label = i(19); +e.__$$__meshim_widget_widgets_FakeInput = i(162); +e.__$$__meshim_widget_widgets_Avatar = i(104); +e.__$$__meshim_widget_widgets_iconFont_Button = i(161); +e.__$$__meshim_widget_widgets_ErrorMessage = i(79); +e.__$$__meshim_widget_widgets_TextField = i(84); +e.__$$__meshim_widget_widgets_EmailField = i(78); +e.__$$__meshim_widget_widgets_PhoneField = i(160); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(151), h = o(152), p = o(153), f = o(154), g = o(155), m = o(156), $ = o(157), b = o(158), w = o(159), x = o(160), v = o(161), y = o(162), j = o(163), C = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "available_types_el", "", [ [ e.__$$__jx_ui_Label, "label_logged_out", "", [ c, [ e.__$$__jx_ui_Label, "label_logged_out_required", "", [], { +id: "label_logged_out_required" +} ] ], { +id: "label_logged_out", +addClass: "label label_logged_out" +} ], [ e.__$$__jx_ui_Label, "label_logged_in", "", [ h ], { +id: "label_logged_in", +addClass: "label label_logged_in" +} ], [ e.__$$__meshim_widget_widgets_FakeInput, "fake_input", "", [ [ e.__$$__meshim_widget_widgets_Avatar, "avatar", "", [], { +id: "avatar", +addClass: "avatar" +} ], [ e.__$$__jx_ui_Label, "internal_placeholder", "", [ p ], { +id: "internal_placeholder", +addClass: "internal_placeholder" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Label, "logged_in_name", "", [], { +id: "logged_in_name", +addClass: "logged_in_name" +} ], [ e.__$$__jx_ui_Label, "logged_in_email", "", [], { +id: "logged_in_email", +addClass: "logged_in_email" +} ], [ e.__$$__jx_ui_Label, "logged_in_phone", "", [], { +id: "logged_in_phone", +addClass: "logged_in_phone" +} ], [ e.__$$__jx_ui_Widget, "logged_in_actions", "", [ [ e.__$$__meshim_widget_widgets_iconFont_Button, "logged_in_edit", "", [], { +id: "logged_in_edit", +icon: "pencil", +title: f +} ], [ e.__$$__meshim_widget_widgets_iconFont_Button, "logged_in_clear", "", [], { +id: "logged_in_clear", +icon: "dustbin", +title: g +} ] ], { +id: "logged_in_actions", +addClass: "logged_in_actions" +} ] ], { +addClass: "floater_inner_seriously" +} ] ], { +addClass: "floater_inner" +} ] ], { +addClass: "floater" +} ] ], { +id: "fake_input", +addClass: "fake_input", +tabIndex: "0" +} ], [ e.__$$__meshim_widget_widgets_ErrorMessage, "error_message", "", [ m ], { +id: "error_message", +addClass: "error_message", +useDisplay: "true" +} ] ], { +id: "available_types_el", +addClass: "field profile_field" +} ], [ e.__$$__jx_ui_Widget, "editing_el", "", [ [ e.__$$__jx_ui_Label, "label_edit_internal", "", [ c, [ e.__$$__jx_ui_Label, "label_edit_internal_required", "", [], { +id: "label_edit_internal_required" +} ] ], { +id: "label_edit_internal", +addClass: "label label_edit_internal" +} ], [ e.__$$__meshim_widget_widgets_TextField, "name", "", [], { +id: "name", +placeholder: $, +maxLength: "255", +addClass: "input_name standalone mobile_error_icon" +} ], [ e.__$$__meshim_widget_widgets_ErrorMessage, "name_error", "", [ b ], { +id: "name_error", +addClass: "error_message", +useDisplay: "true" +} ], [ e.__$$__meshim_widget_widgets_EmailField, "email", "", [], { +id: "email", +placeholder: w, +addClass: "input_email standalone mobile_error_icon" +} ], [ e.__$$__meshim_widget_widgets_ErrorMessage, "email_error", "", [ x ], { +id: "email_error", +addClass: "error_message", +useDisplay: "true" +} ] ], { +id: "editing_el", +addClass: "editing field profile_field" +} ], [ e.__$$__jx_ui_Widget, "edit_external", "", [ [ e.__$$__jx_ui_Label, "", "", [ v ], { +addClass: "edit_external_label" +} ], [ e.__$$__jx_ui_Widget, "edit_external_types", "", [], { +id: "edit_external_types", +addClass: "edit_external_types" +} ] ], { +id: "edit_external", +addClass: "edit_external" +} ], [ e.__$$__jx_ui_Widget, "phone_field", "", [ [ e.__$$__jx_ui_Label, "phone_label", "", [ y, [ e.__$$__jx_ui_Label, "phone_required", "", [], { +id: "phone_required" +} ] ], { +id: "phone_label", +addClass: "label" +} ], [ e.__$$__meshim_widget_widgets_PhoneField, "phone", "", [], { +id: "phone", +addClass: "input_phone mobile_error_icon" +} ], [ e.__$$__meshim_widget_widgets_ErrorMessage, "phone_error", "", [ j ], { +id: "phone_error", +addClass: "error_message", +useDisplay: "true" +} ] ], { +id: "phone_field", +addClass: "field field_phone" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets", +class: "profile_form" +} ], S = C[0].call(this, s, a, null, n.mangleIDs(a, C[3]), C[4]), A = S || this; +n.set(a, A); +var k = n.get(a + "__available_types_el"), I = n.get(a + "__label_logged_out"), T = n.get(a + "__label_logged_out_required"), B = n.get(a + "__label_logged_in"), N = n.get(a + "__fake_input"), D = n.get(a + "__avatar"), E = n.get(a + "__internal_placeholder"), O = n.get(a + "__logged_in_name"), P = n.get(a + "__logged_in_email"), L = n.get(a + "__logged_in_phone"), W = n.get(a + "__logged_in_actions"), R = n.get(a + "__logged_in_edit"), F = n.get(a + "__logged_in_clear"), M = n.get(a + "__error_message"), V = n.get(a + "__editing_el"), H = n.get(a + "__label_edit_internal"), z = n.get(a + "__label_edit_internal_required"), U = n.get(a + "__name"), q = n.get(a + "__name_error"), G = n.get(a + "__email"), Y = n.get(a + "__email_error"), X = n.get(a + "__edit_external"), K = n.get(a + "__edit_external_types"), Z = n.get(a + "__phone_field"), Q = n.get(a + "__phone_label"), J = n.get(a + "__phone_required"), tt = n.get(a + "__phone"), et = n.get(a + "__phone_error"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var it = function() { +function t() { +var t, e, i, n = h.getValue(); +for (e in n) if (n.hasOwnProperty(e)) { +t = n[e]; +i = it[t.name$string]; +if (!i) continue; +i.setRequired(!("required$bool" in t) || t.required$bool); +i.setPlaceholder(t.placeholder$string || S[t.name$string]); +} +} +function e() { +var t = ot.getValue(); +st = 0; +if (t) { +d = t.email$bool; +for (var e in j) if (j.hasOwnProperty(e)) if (t[e + "$bool"]) { +st++; +e; +j[e].setDisplay(""); +} else j[e].setDisplay("none"); +s(); +} +} +function n(t) { +f = t; +s(); +} +function o(t) { +g = t; +s(); +} +function r(t) { +if (t) { +if ("display_name$string" in t) if (w.isDefaultName(t.display_name$string)) { +O.setText(""); +U.setValue(""); +} else { +O.setText(t.display_name$string || ""); +U.setValue(t.display_name$string || ""); +} +if ("email$string" in t) { +P.setText(t.email$string || ""); +G.setValue(t.email$string || ""); +} +if ("phone$string" in t) { +L.setText(t.phone$string || ""); +tt.setValue(t.phone$string || ""); +} +s(); +} +} +function s() { +g && (u = !1); +I.setDisplay(f ? "none" : ""); +B.setDisplay(f ? "" : "none"); +k.setDisplay(u ? "none" : ""); +D.setDisplay(f ? "" : "none"); +E.setDisplay(!f && d ? "" : "none"); +V.setDisplay(u ? "" : "none"); +X.setDisplay(!f && st ? "" : "none"); +if (!f && st) u ? V.addClass("zero_margin") : k.addClass("zero_margin"); else { +k.removeClass("zero_margin"); +V.removeClass("zero_margin"); +} +if (p) { +I.setDisplay("none"); +B.setDisplay("none"); +H.setDisplay("none"); +} +O.setDisplay(f ? "" : "none"); +P.setDisplay(f ? "" : "none"); +L.setDisplay(f && A.disabled ? "" : "none"); +W.setDisplay(!f || A.disabled || ht.getValue() ? "none" : ""); +f && !A.disabled ? O.addClass("buttons_pad") : O.removeClass("buttons_pad"); +R.setDisplay(g ? "none" : ""); +A.setClass("profile_form"); +A.disabled && A.addClass("disabled"); +c && A.addClass("mobile"); +m && m.onLanguage && _(); +A.addClass(f ? "logged_in" : "logged_out"); +A.addClass(d ? "internal_enabled" : "internal_disabled"); +A.addClass(u ? "editing" : "available_types"); +st ? 1 == st ? A.addClass("external_one") : A.addClass("external_many") : A.addClass("external_none"); +} +function a() { +var t = !ht.getValue() && !1 !== rt.getValue() && !A.disabled; +l = t; +Z.setDisplay(t ? "" : "none"); +} +function _() { +A[m.rtl() ? "addClass" : "removeClass"]("rtl"); +} +var l, d, u, c, h, p, f, g, m = i(7), $ = i(12), b = i(5), w = i(10), x = i(11), v = i(159), y = i(158), j = { +facebook: void 0, +twitter: void 0, +google: void 0 +}, C = { +facebook: "facebook", +twitter: "twitter", +google: "google_2016" +}, S = { +name: m(164), +email: m(165) +}, it = { +name: U, +email: G, +phone: tt +}, nt = b.root.$("livechat").$("settings").$("login"), ot = nt.$("allowed_types"), rt = nt.$("phone_display$bool"), st = 0, at = b.root, _t = at.$("livechat").$("ui"), lt = at.$("livechat").$("profile"), dt = lt.$("logged_in$bool"), ut = lt.$("auth").$("type$string"), ct = _t.$("mobile$bool"), ht = _t.$("visitor").$("authenticated$bool"); +A.submit = function() { +var t = U.getValue().trim(), e = G.getValue().trim(), i = tt.getValue().trim(), n = {}; +if (!f || t || e) { +n.name = t; +n.email = e; +} +l && (n.phone = i); +b.livechat.updateProfile(n); +u = !1; +s(); +}; +A.setHideLabel = function() { +p = !0; +s(); +}; +A.setDisabled = function(t) { +t = $(t); +A.disabled = t; +A[t ? "addClass" : "removeClass"]("disabled"); +U.setDisabled(t); +G.setDisabled(t); +a(); +}; +A.validate = function(t) { +for (var e = !0, i = [ U, G ], n = 0, o = i.length; n < o; n++) i[n].validate(!!t && e) || (e = !1); +e ? k.removeClass("invalid") : k.addClass("invalid"); +M.setDisplay(e ? "none" : ""); +l && !tt.validate(!!t && e) && (e = !1); +return e; +}; +A.setDataNode = function(e) { +if (h != e) { +h && A.autounbind(h, "value", t); +h = e; +h && A.autobind(h, "value", t); +} +}; +A.getValue = function() { +var t = {}, e = U.getValue(); +w.isDefaultName(e) || (t.name = e); +t.email = G.getValue(); +t.phone = tt.getValue(); +return t; +}; +A.setRequired = function(t) { +t = $(t); +U.setRequired(t); +G.setRequired(t); +T.setText(t ? " *" : ""); +z.setText(t ? " *" : ""); +if (!t) { +var e = U.validate(!1); +e = G.validate(!1) && e; +M.setDisplay(e ? "none" : ""); +} +}; +A.setPhoneRequired = function(t) { +t = $(t); +tt.setRequired(t); +J.setText(t ? " *" : ""); +t || tt.validate(!1); +}; +!function() { +function t(t) { +if (t && (!t.keyCode || 13 == t.keyCode)) { +var e = t.target.jx_wrapper; +if (e != K) { +for (;e.parentNode != K; ) e = e.parentNode; +var i = e.getName && e.getName(); +i && b.livechat.doExternalLogin(i); +} +} +} +function i(t) { +t && t.preventDefault(); +U.setValidity(!0); +G.setValidity(!0); +u = !0; +s(); +U.focus(); +} +function l(t) { +t && t.preventDefault(); +b.livechat.doExternalLogout(); +N.blur(); +ct.getValue() && i(); +} +var h; +c = ct.getValue(); +c && A.addClass("mobile"); +D.setDataNode(lt); +M.setDisplay("none"); +A.removeClass("editing").addClass("available_types"); +for (h in j) j.hasOwnProperty(h) && (j[h] = new (c ? y : v)(K, null, null, null, c ? { +name: h, +addClass: "float profile_form_edit_external " + h, +icon: C[h] + "_out" +} : { +name: h, +addClass: "profile_form_icon " + h, +icon: C[h], +title: x.external_login[h] || h, +tabIndex: 0 +})); +K.on("keyup", t); +K.on(c ? "touchend" : "click", t); +N.on("focus", function() { +f || A.disabled || d && i(); +}); +R.on("click", i); +F.on("click", l); +tt.setLabelElement(Q); +U.setErrorMessageElement(q).hideErrorMessage(); +G.setErrorMessageElement(Y).hideErrorMessage(); +tt.setErrorMessageElement(et).hideErrorMessage(); +A.autobind(ot, "value", e); +A.autobind(dt, "value", n); +A.autobind(lt, "value", r); +A.autobind(ut, "value", o); +if (m && m.onLanguage) { +m.onLanguage(_); +_(); +} +A.autobind(ht, "value", function() { +a(); +s(); +}); +A.autobind(rt, "value", function() { +a(); +}); +}(); +}(); +for (var nt in it) it.hasOwnProperty(nt) && (A[nt] = it[nt]); +A.fire && A.fire("init"); +A.setStyle && A.setStyle(l); +A.setAttributes && A.setAttributes(u); +"function" == typeof A.addChildren ? A.addChildren(d) : n.addChildren(A, d); +if (A !== this) { +A.__jx__constructor = _; +A.__jx__native = !1; +} +return A; +} +var _; +t.prototype = s(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +".label_logged_out": {}, +".label_logged_in": {}, +".fake_input": { +position: "relative", +overflow: "hidden", +transform: "translateZ(0)", +"*zoom": 1 +}, +".avatar": { +float: "left", +"width, height": "32px", +marginRight: "5px", +"&": "$$profileFormLoggedIn" +}, +"&.rtl .avatar": { +float: "right", +marginRight: 0, +marginLeft: "5px" +}, +".internal_placeholder": { +float: "left", +"vertical-align": "top", +cursor: "pointer" +}, +"&.rtl .internal_placeholder": { +float: "right" +}, +".profile_divider": { +"vertical-align": "top", +marginRight: "5px" +}, +"&.rtl .profile_divider": { +marginRight: 0, +marginLeft: "5px" +}, +".internal_placeholder, .profile_divider": { +lineHeight: "18px", +"*lineHeight": "18px !important" +}, +".editing": { +".input_name": {}, +".input_email": {}, +".input_phone": {} +}, +".edit_external": { +marginTop: "5px", +color: "$$menuHeaderColor", +marginBottom: "15px", +".edit_external_label": { +verticalAlign: "middle" +}, +".edit_external_types": { +display: "inline-block", +verticalAlign: "middle", +".profile_form_edit_external": { +display: "inline-block" +} +} +}, +"&.rtl .edit_external": { +".edit_external_types": { +".profile_form_edit_external": { +marginLeft: 0, +marginRight: "5px" +} +} +}, +".logged_in_name": { +fontWeight: "bold" +}, +".logged_in_name.buttons_pad": { +paddingRight: "40px" +}, +".logged_in_name, .logged_in_email": { +display: "block", +whiteSpace: "nowrap", +overflow: "hidden", +textOverflow: "ellipsis" +}, +"&.rtl .logged_in_name": { +paddingRight: 0 +}, +"&.rtl .logged_in_name.buttons_pad": { +paddingLeft: "40px" +}, +".logged_in_actions": { +position: "absolute", +"top, right": 0, +color: "$$menuHeaderColor", +marginTop: "5px", +marginRight: "5px", +button: { +marginLeft: "5px", +"&:hover, &:focus": { +color: "$$menuColor" +} +}, +".divider": { +fontSize: "$$fontSizeXS", +lineHeight: "1.5", +margin: "0 5px", +cursor: "default", +opacity: .5 +} +}, +"&.rtl .logged_in_actions": { +right: "auto", +left: 0 +}, +".floater": { +display: "block", +overflow: "hidden", +"*position": "relative !important", +".floater_inner": { +display: "table", +".floater_inner_seriously": { +display: "table-cell", +verticalAlign: "middle" +} +} +}, +"&.internal_enabled": { +".floater": { +float: "right", +"*float": "right !important" +} +}, +"&.rtl.internal_enabled": { +".floater": { +float: "left" +} +}, +"&.logged_in, &.internal_disabled": { +".floater": { +".floater_inner": { +tableLayout: "fixed", +width: "100%", +height: "32px" +} +} +}, +"&.logged_in": { +".fake_input": { +background: "$$formSubmittedBg", +borderRadius: "$$formSubmittedRadius", +borderWidth: "$$formSubmittedBorderWidth", +borderStyle: "$$formSubmittedBorderStyle", +borderColor: "$$formSubmittedBorderColor" +}, +".floater": { +float: "none !important" +} +}, +"&.logged_out.internal_disabled, &.logged_in": { +".fake_input": {} +}, +".profile_form_icon": { +cursor: "pointer", +display: "inline-block", +marginLeft: "5px", +"height, fontSize": "17px", +lineHeight: "21px", +"*padding": "0 !important", +"*marginLeft": "5px !important" +}, +"&.rtl .profile_form_icon": { +marginLeft: 0, +marginRight: "5px" +}, +".field": { +marginBottom: "15px", +"&.last-child": { +marginBottom: 0 +}, +"&.profile_field": { +"*padding": "0 !important", +"&.invalid": {}, +"&.zero_margin": { +marginBottom: "0" +} +} +}, +".label": { +display: "block", +marginBottom: "5px", +fontWeight: "bold" +}, +"&.mobile": { +".avatar": { +"width, height": "36px" +}, +"&.available_types": { +".fake_input": { +".internal_placeholder": { +lineHeight: "25px" +}, +".profile_divider": { +lineHeight: "44px", +marginRight: "10px" +} +}, +".floater": { +position: "absolute", +top: 0, +right: "-2px", +height: "100%" +}, +".profile_form_icon": { +"marginLeft, marginRight": 0, +width: "auto", +height: "46px", +padding: "13px 12px 10px", +borderWidth: "0 0 0 1px", +borderRadius: "0", +".icon_font": { +textAlign: "center" +}, +"&.google": { +"paddingLeft, paddingRight": "8px" +} +}, +"&.logged_in": { +".fake_input": {}, +".floater": { +position: "relative", +"top, right, left": 0 +} +} +}, +".logged_in_name, .logged_in_email": { +paddingRight: "80px" +}, +".logged_in_actions": { +margin: "0px", +height: "100%", +button: { +height: "100%", +padding: "0 5px" +} +}, +".editing": { +".name_container, .email_container": { +position: "relative", +"input.invalid ~ .error_icon": { +display: "block" +} +} +}, +".edit_external": { +marginBottom: "15px", +".edit_external_types": { +display: "block", +marginTop: "10px" +} +} +}, +"&.rtl.mobile": { +".floater": { +right: "auto", +left: "-2px" +}, +".profile_divider": { +marginRight: 0, +marginLeft: "10px" +}, +".logged_in_name, .logged_in_email": { +paddingRight: 0, +paddingLeft: "80px" +}, +"&.available_types": { +".profile_form_icon": { +borderWidth: "0 1px 0 0" +} +} +}, +"&.disabled": { +".field": { +marginBottom: 0 +}, +".fake_input": { +border: "none", +background: "transparent" +}, +".field_phone": { +display: "none" +} +} +}; +a(t, "meshim_widget_widgets_form_Profile"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, _) { +if (!(this instanceof n)) return new n(t, e, i, r, _); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +s.call(this, t, e, i, r, _); +var l = this; +this.$connection_message = a.root.$("connection").$("message$string"); +this.connected_submits = []; +this.on("submit", function(t) { +l.handleSubmit(t); +}); +this.onDestruction(function() { +l.connected_submits = null; +}); +} +var o = i(2), r = i(1), s = i(42), a = i(5); +n.__jx__jcss = {}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = s; +n.prototype.onConnectedAndSubmit = function(t) { +this.connected_submits.push(t); +}; +n.prototype.handleSubmit = function(t) { +if (!this.$connection_message.getValue()) for (var e = 0; e < this.connected_submits.length; e++) this.connected_submits[e](t); else t.preventDefault(); +}; +t.exports = n; +e(n, "meshim_widget_widgets_ConnAwareForm"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +selectable: "false" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +color: "$$toastColor", +background: "$$toastBg", +padding: "$$toastPadding", +borderWidth: "$$toastBorderWidth", +borderStyle: "$$toastBorderStyle", +borderColor: "$$toastBorderColor", +borderRadius: "$$toastRadius", +boxShadow: "$$toastShadow" +} +}; +s(t, "meshim_widget_widgets_Toast"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName = "img"; +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(23); +n.prototype = o(r.prototype); +t.exports = n; +e(n, "jx_ui_html_img"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(110), o = i(111), r = i(173), s = {}; +s._super = r; +s.defaults = { +colors: { +primary$string: "#555555", +banner$string: "#EEEEEE", +bubble$string: "#E59341" +} +}; +s.generate = function(t) { +function e(t) { +var e = {}, i = t.luminance(), r = t.darken(10), s = t.lighten(10), a = n.interpolate(t, o.black, .5, "rgb"), d = n.interpolate(t, o.black, .7, "rgb"); +e.color = new n.ColorScale({ +colors: [ o.white, o.white, a.darken(10), a, a ], +positions: [ 0, _ - .001, _ + .001, l, 1 ], +mode: "rgb" +}).get(i).hex(); +e.bg = new n.ColorScale({ +colors: [ t, t, t.darken(10) ], +positions: [ 0, l, 1 ], +mode: "rgb" +}).get(i).hex(); +e.iconColor = new n.ColorScale({ +colors: [ t, t, d, d.lighten(10) ], +positions: [ 0, _ - .001, _ + .001, 1 ], +mode: "rgb" +}).get(i).hex(); +e.borderColor = new n.ColorScale({ +colors: [ r, r, t.darken(20) ], +positions: [ 0, l, 1 ], +mode: "rgb" +}).get(i).hex(); +e.hoverBg = new n.ColorScale({ +colors: [ s, t, t.darken(5) ], +positions: [ 0, l, 1 ], +mode: "rgb" +}).get(i).hex(); +return e; +} +function i(t, e) { +var i = {}, r = t.luminance(), s = n.interpolate(t, o.black, e ? .7 : .5, "rgb"), a = e ? n.color(o.white) : n.interpolate(t, o.white, .5, "rgb"); +i.color = new n.ColorScale({ +colors: [ a, a.lighten(50), s, s.lighten(10) ], +positions: [ 0, h - .001, h + .001, 1 ], +mode: "rgb" +}).get(r).hex(); +i.bg = t.hex(); +return i; +} +var r = n.hex(t.colors.primary$string), s = r.luminance(), a = n.hex(t.colors.banner$string || t.colors.primary$string), _ = 120 / 255, l = 200 / 255, d = e(r), u = e(r.lighten(15)), c = e(a), h = 120 / 255, p = i(r), f = i(a, !0); +return { +standard: { +borderColor: "#DDD", +headColor: p.color, +headBg: r, +contentColor: "#444", +contentBlockBg: "#EEE", +placeholderColor: "#AAA", +inputColor: "#666", +inputBorderColor: "#DDD", +inputFocusBorderColor: o.clampLuminance(r, .2, .4).hex(), +buttonColor: d.color, +buttonBg: d.bg, +buttonBorderColor: d.borderColor, +buttonHoverBg: d.hoverBg, +buttonShadow: "0px 1px 2px rgba(0,0,0,0.1), inset 0px 1px 0px rgba(255,255,255,0.25)", +buttonSecColor: u.color, +buttonSecBg: u.bg, +buttonSecBorderColor: u.borderColor, +buttonSecHoverBg: u.hoverBg, +scrollableFrameTopHeight: "5px", +scrollableFrameTopBackground: "gradient top rgba(0,0,0,0.05) rgba(0,0,0,0)", +scrollableFrameTopBackgroundColor: "transparent", +scrollableFrameBottomHeight: "5px", +scrollableFrameBottomBackground: "gradient top rgba(0,0,0,0) rgba(0,0,0,0.05)", +scrollableFrameBottomBackgroundColor: "transparent", +toastColor: "#666", +toastBg: "rgba(255, 255, 255, 0.9)", +toastBorderColor: "#DDD", +toastShadow: "$$windowShadow", +avatarBorderColor: "#DDD", +profileCardAvatarBorderWidth: 0, +profileCardAvatarShadow: "0px 1px 2px rgba(0,0,0,0.2)", +profileCardNameColor: o.clampLuminance(r, 0, .2).hex(), +profileCardTitleColor: "#AAA", +bottomBorderWidth: "1px 0 0", +bottomBorderColor: "#EEE", +chatMotifHill: "#EEE", +chatMotifBubble: "#BBB", +chatButtonColor: d.color, +chatButtonBg: r.hex(), +chatButtonBorderWidth: s > l ? "" : 0, +chatButtonBorderColor: s > l ? "#DDD" : "", +faviconBg: new n.ColorScale({ +colors: [ r.lighten(15), r.lighten(5), r.darken(5), r.darken(5) ], +positions: [ 0, .05, .0501, 1 ], +mode: "rgb" +}).get(s).hex(), +windowColor: "#666", +windowPadding: "3px", +windowShadow: "0px 0px 3px 2px rgba(0,0,0,0.1)", +windowContentBorderWidth: "0 1px", +windowContentBorderColor: "#DDD", +menuBorderColor: "#DDD", +menuItemHoverBg: "#EEE", +titleBarColor: p.color, +titleBarBg: p.bg, +titleBarBorderWidth: s > 220 / 255 ? "1px" : 0, +titleBarBorderColor: s > 220 / 255 ? "#DDD" : "", +titleBarIconsColor: "", +actionBarColor: "#999", +actionBarBorderWidth: "0 1px 1px 1px", +actionBarBorderColor: "#DDD", +actionBarHoverColor: "#666", +chatPanelProfileCardContainerBorderWidth: "0 0 1px", +chatPanelProfileCardContainerBorderColor: "#EEE", +chatLogVisitorBubbleBg: "#FBFBFB", +chatLogVisitorBubbleBorderColor: "#EEE", +chatLogAgentBubbleBg: n.interpolate(o.clampLuminance(r, .4, .8), o.white, .8, "rgb").hex(), +chatLogAgentBubbleBorderColor: n.interpolate(o.clampLuminance(r, .4, .8), o.white, .4, "rgb").hex(), +chatLogAvatarBorderWidth: "$$borderWidth", +chatLogFileProgressBg: p.bg, +chatLogDateDividerLineHeight: "0.1em", +chatLogDateDividerBorderBottom: "1px solid #DDD", +chatTranslationSwitchColor: "#999", +chatTextAreaBorderWidth: "1px 0 0", +chatTextAreaBorderColor: "#EEE", +chatTextAreaInputShadow: "inset 0px 1px 3px rgba(0,0,0,0.1)", +chatTextAreaInputFocusShadow: "inset 0px 1px 3px " + n.interpolate(o.clampLuminance(r, .2, .4), o.white, .5, "rgb").hex(), +chatTextAreaDropColor: "#444", +chatTextAreaDropBg: "#EEE", +chatTextAreaDropBorderWidth: "1px", +chatTextAreaDropBorderStyle: "dashed", +chatTextAreaDropBorderColor: "#444", +badgeBg: f.bg, +badgeBorderWidth: 0, +badgeContentColor: f.color, +badgeContentBg: f.bg, +badgeContentBorderWidth: 0, +badgeFormBg: o.white, +badgeFormBorderWidth: "1px 0", +badgeFormBorderColor: "#DDD", +badgeIconColor: c.iconColor +}, +mobile: { +authButtonBg: "$$inputBg", +authButtonBorderColor: "$$inputBorderColor", +authButtonShadow: "none", +bottomBorderWidth: 0, +menuBg: "#EEE", +menuHeaderColor: "#999", +menuItemHoverBg: "#DDD", +menuRadius: "0 0 10px 10px", +menuShadow: "none", +actionBarColor: p.color, +actionBarBg: r.darken(10).hex(), +actionBarBorderWidth: 0, +actionBarHoverColor: p.color, +chatPanelProfileCardContainerBorderColor: "#DDD", +chatTextAreaBorderColor: "#DDD", +chatTextAreaInputShadow: "none", +chatTextAreaInputBorderWidth: 0, +chatTextAreaInputRadius: 0, +chatTextAreaInputFocusShadow: "none", +brandingLinkColor: "#999" +} +}; +}; +t.exports = s; +e(s, "meshim_widget_themes_Simple"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var t = {}, i = {}; +(function() { +var e, n, o, r, s, a, _, l, d, u, c, h, p, f, g, m, $, b, w, x, v, y, j, C, S, A, k, I, T, B, N, D, E, O, P, L, W, R, F; +N = void 0 !== t && null !== t ? t : this; +l = null != (L = N.chroma) ? L : N.chroma = {}; +void 0 !== i && null !== i && (i.exports = l); +e = function() { +function t(t, e, i, n) { +var o, r; +o = this; +null == t && null == e && null == i && null == n && (t = [ 255, 0, 255 ]); +if ("array" === D(t) && 3 === t.length) { +null == n && (n = e); +r = t, t = r[0], e = r[1], i = r[2]; +} +"string" === D(t) ? n = "hex" : null == n && (n = "rgb"); +"rgb" === n ? o._rgb = [ t, e, i ] : "hsl" === n ? o._rgb = f(t, e, i) : "hsv" === n ? o._rgb = g(t, e, i) : "hex" === n ? o._rgb = h(t) : "lab" === n ? o._rgb = $(t, e, i) : "lch" === n ? o._rgb = x(t, e, i) : "hsi" === n && (o._rgb = p(t, e, i)); +d(o._rgb); +} +t.prototype.rgb = function() { +return this._rgb; +}; +t.prototype.hex = function() { +return C(this._rgb); +}; +t.prototype.toString = function() { +return this.hex(); +}; +t.prototype.hsl = function() { +return A(this._rgb); +}; +t.prototype.hsv = function() { +return k(this._rgb); +}; +t.prototype.lab = function() { +return I(this._rgb); +}; +t.prototype.lch = function() { +return T(this._rgb); +}; +t.prototype.hsi = function() { +return S(this._rgb); +}; +t.prototype.luminance = function() { +return y(this._rgb); +}; +t.prototype.name = function() { +var t, e; +t = this.hex(); +for (e in l.colors) if (l.colors.hasOwnProperty(e) && t === l.colors[e]) return e; +return t; +}; +t.prototype.interpolate = function(e, i, n) { +var o, r, s, a, _, l, d, u, c, h, p, f, g; +u = this; +null == n && (n = "rgb"); +"string" === D(i) && (i = new t(i)); +if ("hsl" === n || "hsv" === n || "lch" === n || "hsi" === n) { +if ("hsl" === n) { +f = u.hsl(); +g = i.hsl(); +} else if ("hsv" === n) { +f = u.hsv(); +g = i.hsv(); +} else if ("hsi" === n) { +f = u.hsi(); +g = i.hsi(); +} else if ("lch" === n) { +f = u.lch(); +g = i.lch(); +} +if ("h" === n.substr(0, 1)) { +s = f[0], h = f[1], l = f[2]; +a = g[0], p = g[1], d = g[2]; +} else { +l = f[0], h = f[1], s = f[2]; +d = g[0], p = g[1], a = g[2]; +} +if (isNaN(s) || isNaN(a)) if (isNaN(s)) if (isNaN(a)) r = void 0; else { +r = a; +1 !== l && 0 !== l || (c = p); +} else { +r = s; +1 !== d && 0 !== d || (c = h); +} else { +o = a > s && a - s > 180 ? a - (s + 360) : a < s && s - a > 180 ? a + 360 - s : a - s; +r = s + e * o; +} +null == c && (c = h + e * (p - h)); +_ = l + e * (d - l); +return "h" === n.substr(0, 1) ? new t(r, c, _, n) : new t(_, c, r, n); +} +if ("rgb" === n) { +f = u._rgb; +g = i._rgb; +return new t(f[0] + e * (g[0] - f[0]), f[1] + e * (g[1] - f[1]), f[2] + e * (g[2] - f[2]), n); +} +if ("lab" === n) { +f = u.lab(); +g = i.lab(); +return new t(f[0] + e * (g[0] - f[0]), f[1] + e * (g[1] - f[1]), f[2] + e * (g[2] - f[2]), n); +} +throw "color mode " + n + " is not supported"; +}; +t.prototype.darken = function(t) { +var e, i; +null == t && (t = 20); +i = this; +e = i.lch(); +e[0] -= t; +return l.lch(e); +}; +t.prototype.darker = function(t) { +return this.darken(t); +}; +t.prototype.brighten = function(t) { +null == t && (t = 20); +return this.darken(-t); +}; +t.prototype.brighter = function(t) { +return this.brighten(t); +}; +t.prototype.saturate = function(t) { +var e, i; +null == t && (t = 20); +i = this; +e = i.lch(); +e[1] += t; +return l.lch(e); +}; +t.prototype.desaturate = function(t) { +null == t && (t = 20); +return this.saturate(-t); +}; +return t; +}(); +h = function(t) { +var e, i, n, o, r; +if (t.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)) { +4 !== t.length && 7 !== t.length || (t = t.substr(1)); +if (3 === t.length) { +t = t.split(""); +t = t[0] + t[0] + t[1] + t[1] + t[2] + t[2]; +} +r = parseInt(t, 16); +n = r >> 16; +i = r >> 8 & 255; +e = 255 & r; +return [ n, i, e ]; +} +if (o = c(t)) return o; +throw "unknown color: " + t; +}; +c = function(t) { +var e, i, n, o; +if (null != l.colors && l.colors[t]) return h(l.colors[t]); +if (n = t.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)) return n.slice(1, 4); +if (n = t.match(/rgb\(\s*(\-?\d+)%,\s*(\-?\d+)%\s*,\s*(\-?\d+)%\s*\)/)) { +o = n.slice(1, 4); +for (i in o) o.hasOwnProperty(i) && (o[i] = Math.round(2.55 * o[i])); +return o; +} +if (n = t.match(/hsl\(\s*(\-?\d+),\s*(\-?\d+)%\s*,\s*(\-?\d+)%\s*\)/)) { +e = n.slice(1, 4); +e[1] *= .01; +e[2] *= .01; +return f(e); +} +}; +C = function() { +var t, e, i, n, o, r; +r = E(arguments), i = r[0], e = r[1], t = r[2]; +o = i << 16 | e << 8 | t; +n = "000000" + o.toString(16); +return "#" + n.substr(n.length - 6); +}; +g = function() { +var t, e, i, n, o, r, s, a, _, l, d, u, c, h, p, f, g, m; +u = E(arguments), n = u[0], _ = u[1], d = u[2]; +d *= 255; +if (0 === _) a = i = t = d; else { +360 === n && (n = 0); +n > 360 && (n -= 360); +n < 0 && (n += 360); +n /= 60; +o = Math.floor(n); +e = n - o; +r = d * (1 - _); +s = d * (1 - _ * e); +l = d * (1 - _ * (1 - e)); +switch (o) { +case 0: +c = [ d, l, r ], a = c[0], i = c[1], t = c[2]; +break; + +case 1: +h = [ s, d, r ], a = h[0], i = h[1], t = h[2]; +break; + +case 2: +p = [ r, d, l ], a = p[0], i = p[1], t = p[2]; +break; + +case 3: +f = [ r, s, d ], a = f[0], i = f[1], t = f[2]; +break; + +case 4: +g = [ l, r, d ], a = g[0], i = g[1], t = g[2]; +break; + +case 5: +m = [ d, r, s ], a = m[0], i = m[1], t = m[2]; +} +} +a = Math.round(a); +i = Math.round(i); +t = Math.round(t); +return [ a, i, t ]; +}; +k = function() { +var t, e, i, n, o, r, s, a, _, l; +l = E(arguments), s = l[0], i = l[1], t = l[2]; +r = Math.min(s, i, t); +o = Math.max(s, i, t); +e = o - r; +_ = o / 255; +if (0 === o) { +n = void 0; +a = 0; +} else { +a = e / o; +s === o && (n = (i - t) / e); +i === o && (n = 2 + (t - s) / e); +t === o && (n = 4 + (s - i) / e); +n *= 60; +n < 0 && (n += 360); +} +return [ n, a, _ ]; +}; +f = function() { +var t, e, i, n, o, r, s, a, _, l, d, u, c, h; +c = E(arguments), n = c[0], a = c[1], r = c[2]; +if (0 === a) s = i = t = 255 * r; else { +d = [ 0, 0, 0 ]; +e = [ 0, 0, 0 ]; +l = r < .5 ? r * (1 + a) : r + a - r * a; +_ = 2 * r - l; +n /= 360; +d[0] = n + 1 / 3; +d[1] = n; +d[2] = n - 1 / 3; +for (o = u = 0; u <= 2; o = ++u) { +d[o] < 0 && (d[o] += 1); +d[o] > 1 && (d[o] -= 1); +6 * d[o] < 1 ? e[o] = _ + 6 * (l - _) * d[o] : 2 * d[o] < 1 ? e[o] = l : 3 * d[o] < 2 ? e[o] = _ + (l - _) * (2 / 3 - d[o]) * 6 : e[o] = _; +} +h = [ Math.round(255 * e[0]), Math.round(255 * e[1]), Math.round(255 * e[2]) ], +s = h[0], i = h[1], t = h[2]; +} +return [ s, i, t ]; +}; +A = function(t, e, i) { +var n, o, r, s, a, _; +void 0 !== t && 3 === t.length && (_ = t, t = _[0], e = _[1], i = _[2]); +t /= 255; +e /= 255; +i /= 255; +s = Math.min(t, e, i); +r = Math.max(t, e, i); +o = (r + s) / 2; +if (r === s) { +a = 0; +n = void 0; +} else a = o < .5 ? (r - s) / (r + s) : (r - s) / (2 - r - s); +t === r ? n = (e - i) / (r - s) : e === r ? n = 2 + (i - t) / (r - s) : i === r && (n = 4 + (t - e) / (r - s)); +n *= 60; +n < 0 && (n += 360); +return [ n, a, o ]; +}; +18; +s = .95047; +a = 1; +_ = 1.08883; +$ = function(t, e, i) { +var n, o, r, l, d, u, c; +void 0 !== t && 3 === t.length && (u = t, t = u[0], e = u[1], i = u[2]); +void 0 !== t && 3 === t.length && (c = t, t = c[0], e = c[1], i = c[2]); +l = (t + 16) / 116; +r = l + e / 500; +d = l - i / 200; +r = b(r) * s; +l = b(l) * a; +d = b(d) * _; +o = P(3.2404542 * r - 1.5371385 * l - .4985314 * d); +n = P(-.969266 * r + 1.8760108 * l + .041556 * d); +i = P(.0556434 * r - .2040259 * l + 1.0572252 * d); +return [ v(o, 0, 255), v(n, 0, 255), v(i, 0, 255) ]; +}; +I = function() { +var t, e, i, n, o, r, l; +l = E(arguments), i = l[0], e = l[1], t = l[2]; +i = B(i); +e = B(e); +t = B(t); +n = O((.4124564 * i + .3575761 * e + .1804375 * t) / s); +o = O((.2126729 * i + .7151522 * e + .072175 * t) / a); +r = O((.0193339 * i + .119192 * e + .9503041 * t) / _); +return [ 116 * o - 16, 500 * (n - o), 200 * (o - r) ]; +}; +w = function() { +var t, e, i, n; +n = E(arguments), i = n[0], t = n[1], e = n[2]; +e = e * Math.PI / 180; +return [ i, Math.cos(e) * t, Math.sin(e) * t ]; +}; +x = function(t, e, i) { +var n, o, r, s, a, _, l; +_ = w(t, e, i), n = _[0], o = _[1], r = _[2]; +l = $(n, o, r), a = l[0], s = l[1], r = l[2]; +return [ v(a, 0, 255), v(s, 0, 255), v(r, 0, 255) ]; +}; +b = function(t) { +return t > .206893034 ? t * t * t : (t - 4 / 29) / 7.787037; +}; +O = function(t) { +return t > .008856 ? Math.pow(t, 1 / 3) : 7.787037 * t + 4 / 29; +}; +P = function(t) { +return Math.round(255 * (t <= .00304 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - .055)); +}; +B = function(t) { +return (t /= 255) <= .04045 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4); +}; +m = function() { +var t, e, i, n, o, r; +r = E(arguments), o = r[0], t = r[1], e = r[2]; +i = Math.sqrt(t * t + e * e); +n = Math.atan2(e, t) / Math.PI * 180; +return [ o, i, n ]; +}; +T = function() { +var t, e, i, n, o, r, s; +r = E(arguments), o = r[0], i = r[1], e = r[2]; +s = I(o, i, e), n = s[0], t = s[1], e = s[2]; +return m(n, t, e); +}; +S = function() { +var t, e, i, n, o, r, s, a, _; +_ = E(arguments), s = _[0], i = _[1], e = _[2]; +t = 2 * Math.PI; +s /= 255; +i /= 255; +e /= 255; +r = Math.min(s, i, e); +o = (s + i + e) / 3; +a = 1 - r / o; +if (0 === a) n = 0; else { +n = (s - i + (s - e)) / 2; +n /= Math.sqrt((s - i) * (s - i) + (s - e) * (i - e)); +n = Math.acos(n); +e > i && (n = t - n); +n /= t; +} +return [ 360 * n, a, o ]; +}; +p = function(t, e, i) { +var n, s, a, _; +_ = E(arguments), t = _[0], e = _[1], i = _[2]; +t /= 360; +if (t < 1 / 3) { +n = (1 - e) / 3; +a = (1 + e * u(r * t) / u(o - r * t)) / 3; +s = 1 - (n + a); +} else if (t < 2 / 3) { +t -= 1 / 3; +a = (1 - e) / 3; +s = (1 + e * u(r * t) / u(o - r * t)) / 3; +n = 1 - (a + s); +} else { +t -= 2 / 3; +s = (1 - e) / 3; +n = (1 + e * u(r * t) / u(o - r * t)) / 3; +a = 1 - (s + n); +} +a = v(i * a * 3); +s = v(i * s * 3); +n = v(i * n * 3); +return [ 255 * a, 255 * s, 255 * n ]; +}; +d = function(t) { +var e; +for (e in t) if (t.hasOwnProperty(e)) { +t[e] < 0 && (t[e] = 0); +t[e] > 255 && (t[e] = 255); +} +return t; +}; +y = function(t, e, i) { +var n; +n = E(arguments), t = n[0], e = n[1], i = n[2]; +t = j(t); +e = j(e); +i = j(i); +return .2126 * t + .7152 * e + .0722 * i; +}; +j = function(t) { +t /= 255; +return t <= .03928 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4); +}; +l.Color = e; +l.color = function(t, i, n, o) { +return new e(t, i, n, o); +}; +l.hsl = function(t, i, n) { +return new e(t, i, n, "hsl"); +}; +l.hsv = function(t, i, n) { +return new e(t, i, n, "hsv"); +}; +l.rgb = function(t, i, n) { +return new e(t, i, n, "rgb"); +}; +l.hex = function(t) { +return new e(t); +}; +l.css = function(t) { +return new e(t); +}; +l.lab = function(t, i, n) { +return new e(t, i, n, "lab"); +}; +l.lch = function(t, i, n) { +return new e(t, i, n, "lch"); +}; +l.hsi = function(t, i, n) { +return new e(t, i, n, "hsi"); +}; +l.interpolate = function(t, i, n, o) { +if (null == t || null == i) return "#000"; +"string" === D(t) && (t = new e(t)); +"string" === D(i) && (i = new e(i)); +return t.interpolate(n, i, o); +}; +l.contrast = function(t, i) { +var n, o; +"string" === D(t) && (t = new e(t)); +"string" === D(i) && (i = new e(i)); +n = t.luminance(); +o = i.luminance(); +return n > o ? (n + .05) / (o + .05) : (o + .05) / (n + .05); +}; +N = void 0 !== t && null !== t ? t : this; +l = null != (W = N.chroma) ? W : N.chroma = {}; +e = l.Color; +n = function() { +function t(t) { +var e, i, n; +null == t && (t = {}); +e = this; +e.range(t.colors, t.positions); +e._mode = null != (i = t.mode) ? i : "rgb"; +e._nacol = l.hex(null != (n = t.nacol) ? n : l.hex("#ccc")); +e._spread = 0; +e._fixed = !1; +e.domain([ 0, 1 ]); +} +t.prototype.range = function(t, i) { +var n, o, r, s, a, _, d, u; +r = this; +null == t && (t = [ "#ddd", "#222" ]); +null != t && "string" === D(t) && null != (null != (_ = l.brewer) ? _[t] : void 0) && (t = l.brewer[t].slice(0)); +for (n = s = 0, d = t.length - 1; 0 <= d ? s <= d : s >= d; n = 0 <= d ? ++s : --s) { +o = t[n]; +"string" === D(o) && (t[n] = new e(o)); +} +r._colors = t; +if (null != i) r._pos = i; else { +r._pos = []; +for (n = a = 0, u = t.length - 1; 0 <= u ? a <= u : a >= u; n = 0 <= u ? ++a : --a) r._pos.push(n / (t.length - 1)); +} +return r; +}; +t.prototype.domain = function(t) { +var e; +null == t && (t = []); +e = this; +e._domain = t; +e._min = t[0]; +e._max = t[t.length - 1]; +2 === t.length ? e._numClasses = 0 : e._numClasses = t.length - 1; +return e; +}; +t.prototype.get = function(t) { +var e, i, n; +n = this; +if (isNaN(t)) return n._nacol; +if (n._domain.length > 2) { +e = n.getClass(t); +i = e / (n._numClasses - 1); +} else { +i = (t - n._min) / (n._max - n._min); +i = Math.min(1, Math.max(0, i)); +} +return n.fColor(i); +}; +t.prototype.fColor = function(t) { +var e, i, n, o, r, s, a; +o = this; +i = o._colors; +for (n = s = 0, a = o._pos.length - 1; 0 <= a ? s <= a : s >= a; n = 0 <= a ? ++s : --s) { +r = o._pos[n]; +if (t <= r) { +e = i[n]; +break; +} +if (t >= r && n === o._pos.length - 1) { +e = i[n]; +break; +} +if (t > r && t < o._pos[n + 1]) { +t = (t - r) / (o._pos[n + 1] - r); +e = l.interpolate(i[n], i[n + 1], t, o._mode); +break; +} +} +return e; +}; +t.prototype.classifyValue = function(t) { +var e, i, n, o, r, s, a; +o = this; +e = o._domain; +a = t; +if (e.length > 2) { +s = e.length - 1; +i = o.getClass(t); +r = e[0] + (e[1] - e[0]) * (0 + .5 * o._spread); +n = e[s - 1] + (e[s] - e[s - 1]) * (1 - .5 * o._spread); +a = o._min + (e[i] + .5 * (e[i + 1] - e[i]) - r) / (n - r) * (o._max - o._min); +} +return a; +}; +t.prototype.getClass = function(t) { +var e, i, n, o; +o = this; +e = o._domain; +if (null != e) { +n = e.length - 1; +i = 0; +for (;i < n && t >= e[i]; ) i++; +return i - 1; +} +return 0; +}; +t.prototype.validValue = function(t) { +return !isNaN(t); +}; +return t; +}(); +l.ColorScale = n; +l.scale = function(t, e) { +var i, n, o; +i = new l.ColorScale(); +i.range(t, e); +o = !1; +n = function(t) { +var e; +e = i.get(t); +return o && e[o] ? e[o]() : e; +}; +n.domain = function(t, e, o, r) { +var s; +null == o && (o = "e"); +if (!arguments.length) return i._domain; +if (null != e) { +s = l.analyze(t, r); +t = 0 === e ? [ s.min, s.max ] : l.limits(s, o, e); +} +i.domain(t); +return n; +}; +n.mode = function(t) { +if (!arguments.length) return i._mode; +i._mode = t; +return n; +}; +n.range = function(t, e) { +i.range(t, e); +return n; +}; +n.out = function(t) { +o = t; +return n; +}; +n.getColor = function(t) { +return n(t); +}; +n.spread = function(t) { +if (!arguments.length) return i._spread; +i._spread = t; +return n; +}; +return n; +}; +null == l.scales && (l.scales = {}); +l.scales.cool = function() { +return l.scale([ l.hsl(180, 1, .9), l.hsl(250, .7, .4) ]); +}; +l.scales.hot = function() { +return l.scale([ "#000", "#f00", "#ff0", "#fff" ], [ 0, .25, .75, 1 ]).mode("rgb"); +}; +l.analyze = function(t, e, i) { +var n, o, r, s, a, _, d; +r = { +min: Number.MAX_VALUE, +max: -1 * Number.MAX_VALUE, +sum: 0, +values: [], +count: 0 +}; +null == i && (i = function() { +return !0; +}); +n = function(t) { +if (null != t && !isNaN(t)) { +r.values.push(t); +r.sum += t; +t < r.min && (r.min = t); +t > r.max && (r.max = t); +r.count += 1; +} +}; +a = function(t, o) { +if (i(t, o)) return n(null != e && "function" === D(e) ? e(t) : null != e && "string" === D(e) || "number" === D(e) ? t[e] : t); +}; +if ("array" === D(t)) for (_ = 0, d = t.length; _ < d; _++) { +s = t[_]; +a(s); +} else for (o in t) if (t.hasOwnProperty(o)) { +s = t[o]; +a(s, o); +} +r.domain = [ r.min, r.max ]; +r.limits = function(t, e) { +return l.limits(r, t, e); +}; +return r; +}; +l.limits = function(t, e, i) { +var n, o, r, s, a, _, d, u, c, h, p, f, g, m, $, b, w, x, v, y, j, C, S, A, k, I, T, B, N, D, E, O, P, L, W, R, F, M, V, H, z, U, q, G, Y, X, K, Z, Q, J, tt, et, it, nt, ot; +null == e && (e = "equal"); +null == i && (i = 7); +null == t.values && (t = l.analyze(t)); +g = t.min; +p = t.max; +t.sum; +k = t.values.sort(function(t, e) { +return t - e; +}); +h = []; +if ("c" === e.substr(0, 1)) { +h.push(g); +h.push(p); +} +if ("e" === e.substr(0, 1)) { +h.push(g); +for (d = I = 1, G = i - 1; 1 <= G ? I <= G : I >= G; d = 1 <= G ? ++I : --I) h.push(g + d / i * (p - g)); +h.push(p); +} else if ("l" === e.substr(0, 1)) { +if (g <= 0) throw "Logarithmic scales are only possible for values > 0"; +m = Math.LOG10E * Math.log(g); +f = Math.LOG10E * Math.log(p); +h.push(g); +for (d = T = 1, Y = i - 1; 1 <= Y ? T <= Y : T >= Y; d = 1 <= Y ? ++T : --T) h.push(Math.pow(10, m + d / i * (f - m))); +h.push(p); +} else if ("q" === e.substr(0, 1)) { +h.push(g); +for (d = B = 1, X = i - 1; 1 <= X ? B <= X : B >= X; d = 1 <= X ? ++B : --B) { +v = k.length * d / i; +y = Math.floor(v); +if (y === v) h.push(k[y]); else { +j = v - y; +h.push(k[y] * j + k[y + 1] * (1 - j)); +} +} +h.push(p); +} else if ("k" === e.substr(0, 1)) { +b = k.length; +n = new Array(b); +a = new Array(i); +C = !0; +w = 0; +r = null; +r = []; +r.push(g); +for (d = N = 1, K = i - 1; 1 <= K ? N <= K : N >= K; d = 1 <= K ? ++N : --N) r.push(g + d / i * (p - g)); +r.push(p); +for (;C; ) { +for (u = D = 0, Z = i - 1; 0 <= Z ? D <= Z : D >= Z; u = 0 <= Z ? ++D : --D) a[u] = 0; +for (d = E = 0, Q = b - 1; 0 <= Q ? E <= Q : E >= Q; d = 0 <= Q ? ++E : --E) { +A = k[d]; +$ = Number.MAX_VALUE; +for (u = O = 0, J = i - 1; 0 <= J ? O <= J : O >= J; u = 0 <= J ? ++O : --O) { +_ = Math.abs(r[u] - A); +if (_ < $) { +$ = _; +o = u; +} +} +a[o]++; +n[d] = o; +} +x = new Array(i); +for (u = P = 0, R = i - 1; 0 <= R ? P <= R : P >= R; u = 0 <= R ? ++P : --P) x[u] = null; +for (d = L = 0, F = b - 1; 0 <= F ? L <= F : L >= F; d = 0 <= F ? ++L : --L) { +s = n[d]; +null === x[s] ? x[s] = k[d] : x[s] += k[d]; +} +for (u = W = 0, M = i - 1; 0 <= M ? W <= M : W >= M; u = 0 <= M ? ++W : --W) x[u] *= 1 / a[u]; +C = !1; +for (u = tt = 0, V = i - 1; 0 <= V ? tt <= V : tt >= V; u = 0 <= V ? ++tt : --tt) if (x[u] !== r[d]) { +C = !0; +break; +} +r = x; +w++; +w > 200 && (C = !1); +} +c = {}; +for (u = et = 0, H = i - 1; 0 <= H ? et <= H : et >= H; u = 0 <= H ? ++et : --et) c[u] = []; +for (d = it = 0, z = b - 1; 0 <= z ? it <= z : it >= z; d = 0 <= z ? ++it : --it) { +s = n[d]; +c[s].push(k[d]); +} +S = []; +for (u = nt = 0, U = i - 1; 0 <= U ? nt <= U : nt >= U; u = 0 <= U ? ++nt : --nt) { +S.push(c[u][0]); +S.push(c[u][c[u].length - 1]); +} +S = S.sort(function(t, e) { +return t - e; +}); +h.push(S[0]); +for (d = ot = 1, q = S.length - 1; ot <= q; d = ot += 2) isNaN(S[d]) || h.push(S[d]); +} +return h; +}; +N = void 0 !== t && null !== t ? t : this; +D = function() { +var t, e, i, n, o; +t = {}; +o = "Boolean Number String Function Array Date RegExp Undefined Null".split(" "); +for (i = 0, n = o.length; i < n; i++) { +e = o[i]; +t["[object " + e + "]"] = e.toLowerCase(); +} +return function(e) { +var i; +i = Object.prototype.toString.call(e); +return t[i] || "object"; +}; +}(); +null == N.type && (N.type = D); +Array.max = function(t) { +return Math.max.apply(Math, t); +}; +Array.min = function(t) { +return Math.min.apply(Math, t); +}; +v = function(t, e, i) { +null == e && (e = 0); +null == i && (i = 1); +t < e && (t = e); +t > i && (t = i); +return t; +}; +E = function(t) { +return 3 === t.length ? t : t[0]; +}; +r = 2 * Math.PI; +o = Math.PI / 3; +u = Math.cos; +N = void 0 !== t && null !== t ? t : this; +l = null != (R = N.chroma) ? R : N.chroma = {}; +l.brewer = { +OrRd: [ "#fff7ec", "#fee8c8", "#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#b30000", "#7f0000" ], +PuBu: [ "#fff7fb", "#ece7f2", "#d0d1e6", "#a6bddb", "#74a9cf", "#3690c0", "#0570b0", "#045a8d", "#023858" ], +BuPu: [ "#f7fcfd", "#e0ecf4", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d", "#810f7c", "#4d004b" ], +Oranges: [ "#fff5eb", "#fee6ce", "#fdd0a2", "#fdae6b", "#fd8d3c", "#f16913", "#d94801", "#a63603", "#7f2704" ], +BuGn: [ "#f7fcfd", "#e5f5f9", "#ccece6", "#99d8c9", "#66c2a4", "#41ae76", "#238b45", "#006d2c", "#00441b" ], +YlOrBr: [ "#ffffe5", "#fff7bc", "#fee391", "#fec44f", "#fe9929", "#ec7014", "#cc4c02", "#993404", "#662506" ], +YlGn: [ "#ffffe5", "#f7fcb9", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#006837", "#004529" ], +Reds: [ "#fff5f0", "#fee0d2", "#fcbba1", "#fc9272", "#fb6a4a", "#ef3b2c", "#cb181d", "#a50f15", "#67000d" ], +RdPu: [ "#fff7f3", "#fde0dd", "#fcc5c0", "#fa9fb5", "#f768a1", "#dd3497", "#ae017e", "#7a0177", "#49006a" ], +Greens: [ "#f7fcf5", "#e5f5e0", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#006d2c", "#00441b" ], +YlGnBu: [ "#ffffd9", "#edf8b1", "#c7e9b4", "#7fcdbb", "#41b6c4", "#1d91c0", "#225ea8", "#253494", "#081d58" ], +Purples: [ "#fcfbfd", "#efedf5", "#dadaeb", "#bcbddc", "#9e9ac8", "#807dba", "#6a51a3", "#54278f", "#3f007d" ], +GnBu: [ "#f7fcf0", "#e0f3db", "#ccebc5", "#a8ddb5", "#7bccc4", "#4eb3d3", "#2b8cbe", "#0868ac", "#084081" ], +Greys: [ "#ffffff", "#f0f0f0", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525", "#000000" ], +YlOrRd: [ "#ffffcc", "#ffeda0", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c", "#bd0026", "#800026" ], +PuRd: [ "#f7f4f9", "#e7e1ef", "#d4b9da", "#c994c7", "#df65b0", "#e7298a", "#ce1256", "#980043", "#67001f" ], +Blues: [ "#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#08519c", "#08306b" ], +PuBuGn: [ "#fff7fb", "#ece2f0", "#d0d1e6", "#a6bddb", "#67a9cf", "#3690c0", "#02818a", "#016c59", "#014636" ], +Spectral: [ "#9e0142", "#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#e6f598", "#abdda4", "#66c2a5", "#3288bd", "#5e4fa2" ], +RdYlGn: [ "#a50026", "#d73027", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850", "#006837" ], +RdBu: [ "#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#f7f7f7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac", "#053061" ], +PiYG: [ "#8e0152", "#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#f7f7f7", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221", "#276419" ], +PRGn: [ "#40004b", "#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#f7f7f7", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837", "#00441b" ], +RdYlBu: [ "#a50026", "#d73027", "#f46d43", "#fdae61", "#fee090", "#ffffbf", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4", "#313695" ], +BrBG: [ "#543005", "#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#f5f5f5", "#c7eae5", "#80cdc1", "#35978f", "#01665e", "#003c30" ], +RdGy: [ "#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#ffffff", "#e0e0e0", "#bababa", "#878787", "#4d4d4d", "#1a1a1a" ], +PuOr: [ "#7f3b08", "#b35806", "#e08214", "#fdb863", "#fee0b6", "#f7f7f7", "#d8daeb", "#b2abd2", "#8073ac", "#542788", "#2d004b" ], +Set2: [ "#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f", "#e5c494", "#b3b3b3" ], +Accent: [ "#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f", "#bf5b17", "#666666" ], +Set1: [ "#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33", "#a65628", "#f781bf", "#999999" ], +Set3: [ "#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5", "#ffed6f" ], +Dark2: [ "#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e", "#e6ab02", "#a6761d", "#666666" ], +Paired: [ "#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6", "#6a3d9a", "#ffff99", "#b15928" ], +Pastel2: [ "#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9", "#fff2ae", "#f1e2cc", "#cccccc" ], +Pastel1: [ "#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc", "#e5d8bd", "#fddaec", "#f2f2f2" ] +}; +N = void 0 !== t && null !== t ? t : this; +l = null != (F = N.chroma) ? F : N.chroma = {}; +l.colors = { +indigo: "#4b0082", +gold: "#ffd700", +hotpink: "#ff69b4", +firebrick: "#b22222", +indianred: "#cd5c5c", +yellow: "#ffff00", +mistyrose: "#ffe4e1", +darkolivegreen: "#556b2f", +olive: "#808000", +darkseagreen: "#8fbc8f", +pink: "#ffc0cb", +tomato: "#ff6347", +lightcoral: "#f08080", +orangered: "#ff4500", +navajowhite: "#ffdead", +lime: "#00ff00", +palegreen: "#98fb98", +darkslategrey: "#2f4f4f", +greenyellow: "#adff2f", +burlywood: "#deb887", +seashell: "#fff5ee", +mediumspringgreen: "#00fa9a", +fuchsia: "#ff00ff", +papayawhip: "#ffefd5", +blanchedalmond: "#ffebcd", +chartreuse: "#7fff00", +dimgray: "#696969", +black: "#000000", +peachpuff: "#ffdab9", +springgreen: "#00ff7f", +aquamarine: "#7fffd4", +white: "#ffffff", +orange: "#ffa500", +lightsalmon: "#ffa07a", +darkslategray: "#2f4f4f", +brown: "#a52a2a", +ivory: "#fffff0", +dodgerblue: "#1e90ff", +peru: "#cd853f", +lawngreen: "#7cfc00", +chocolate: "#d2691e", +crimson: "#dc143c", +forestgreen: "#228b22", +darkgrey: "#a9a9a9", +lightseagreen: "#20b2aa", +cyan: "#00ffff", +mintcream: "#f5fffa", +silver: "#c0c0c0", +antiquewhite: "#faebd7", +mediumorchid: "#ba55d3", +skyblue: "#87ceeb", +gray: "#808080", +darkturquoise: "#00ced1", +goldenrod: "#daa520", +darkgreen: "#006400", +floralwhite: "#fffaf0", +darkviolet: "#9400d3", +darkgray: "#a9a9a9", +moccasin: "#ffe4b5", +saddlebrown: "#8b4513", +grey: "#808080", +darkslateblue: "#483d8b", +lightskyblue: "#87cefa", +lightpink: "#ffb6c1", +mediumvioletred: "#c71585", +slategrey: "#708090", +red: "#ff0000", +deeppink: "#ff1493", +limegreen: "#32cd32", +darkmagenta: "#8b008b", +palegoldenrod: "#eee8aa", +plum: "#dda0dd", +turquoise: "#40e0d0", +lightgrey: "#d3d3d3", +lightgoldenrodyellow: "#fafad2", +darkgoldenrod: "#b8860b", +lavender: "#e6e6fa", +maroon: "#800000", +yellowgreen: "#9acd32", +sandybrown: "#f4a460", +thistle: "#d8bfd8", +violet: "#ee82ee", +navy: "#000080", +magenta: "#ff00ff", +dimgrey: "#696969", +tan: "#d2b48c", +rosybrown: "#bc8f8f", +olivedrab: "#6b8e23", +blue: "#0000ff", +lightblue: "#add8e6", +ghostwhite: "#f8f8ff", +honeydew: "#f0fff0", +cornflowerblue: "#6495ed", +slateblue: "#6a5acd", +linen: "#faf0e6", +darkblue: "#00008b", +powderblue: "#b0e0e6", +seagreen: "#2e8b57", +darkkhaki: "#bdb76b", +snow: "#fffafa", +sienna: "#a0522d", +mediumblue: "#0000cd", +royalblue: "#4169e1", +lightcyan: "#e0ffff", +green: "#008000", +mediumpurple: "#9370db", +midnightblue: "#191970", +cornsilk: "#fff8dc", +paleturquoise: "#afeeee", +bisque: "#ffe4c4", +slategray: "#708090", +darkcyan: "#008b8b", +khaki: "#f0e68c", +wheat: "#f5deb3", +teal: "#008080", +darkorchid: "#9932cc", +deepskyblue: "#00bfff", +salmon: "#fa8072", +darkred: "#8b0000", +steelblue: "#4682b4", +palevioletred: "#db7093", +lightslategray: "#778899", +aliceblue: "#f0f8ff", +lightslategrey: "#778899", +lightgreen: "#90ee90", +orchid: "#da70d6", +gainsboro: "#dcdcdc", +mediumseagreen: "#3cb371", +lightgray: "#d3d3d3", +mediumturquoise: "#48d1cc", +lemonchiffon: "#fffacd", +cadetblue: "#5f9ea0", +lightyellow: "#ffffe0", +lavenderblush: "#fff0f5", +coral: "#ff7f50", +purple: "#800080", +aqua: "#00ffff", +whitesmoke: "#f5f5f5", +mediumslateblue: "#7b68ee", +darkorange: "#ff8c00", +mediumaquamarine: "#66cdaa", +darksalmon: "#e9967a", +beige: "#f5f5dc", +blueviolet: "#8a2be2", +azure: "#f0ffff", +lightsteelblue: "#b0c4de", +oldlace: "#fdf5e6" +}; +}).call(this); +var n = t.chroma; +n.Color.prototype.lighten = function(t) { +return this.brighten(t); +}; +e(n, "meshim_common_Chroma"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(110), o = { +white: "#FFF", +black: "#000", +grey: "#808080" +}; +o.clampLuminance = function(t, e, i) { +t = o.getChromaObj(t); +if (t) { +e < 0 && (e = 0); +i > 1 && (i = 1); +var n = t.luminance(), r = n < e ? e : n > i ? i : n; +return n === r ? t : o.getColorAtLuminance(t, r); +} +}; +o.lighten = function(t, e, i) { +return n.interpolate(t, o.white, e, i || "rgb"); +}; +o.darken = function(t, e, i) { +return n.interpolate(t, o.black, e, i || "rgb"); +}; +o.getColorAtLuminance = function(t, e) { +if (!(e < 0 || e > 1)) { +t = o.getChromaObj(t); +if (t) { +var i = 0; +if (t.luminance() >= e) for (;;) { +i++; +if (t.luminance() <= e + .05 || i >= 100) return t; +t = o.darken(t, .05); +} else for (;;) { +i++; +if (t.luminance() >= e - .05 || i >= 100) return t; +t = o.lighten(t, .05); +} +} +} +}; +o.getColorAtContrast = function(t, e, i) { +if (!(i < 1)) { +t = o.getChromaObj(t); +e = o.getChromaObj(e); +if (t && e) { +var r = 0; +if (n.contrast(t, e) >= i) for (;;) { +r++; +if (n.contrast(t, e) <= i + .5 || r >= 100) return e; +e = e.luminance() >= t.luminance() ? o.darken(e, .05) : o.lighten(e, .05); +} else for (var s = n.contrast(t, o.white), a = n.contrast(t, o.black); ;) { +r++; +if (n.contrast(t, e) >= i - .5 || r >= 100) return e; +if (e.luminance() >= t.luminance()) if (s >= i - .5) e = o.lighten(e, .05); else { +if (!(a >= i - .5)) return s > a ? o.getChromaObj(o.white) : o.getChromaObj(o.black); +e = o.darken(e, .05); +} else if (a >= i - .5) e = o.darken(e, .05); else { +if (!(s >= i - .5)) return s > a ? o.getChromaObj(o.white) : o.getChromaObj(o.black); +e = o.lighten(e, .05); +} +} +} +} +}; +o.getContrastColor = function(t, e, i, n, r, s, a) { +t = o.getChromaObj(t); +e = o.getChromaObj(e); +i = o.getChromaObj(i); +if (t && e && i) { +var _ = t.luminance(); +return "bright" === r ? _ < n ? e : o.getColorAtContrast(t, i, a || 2.5) : "dark" === r ? _ > n ? i : o.getColorAtContrast(t, e, s || 4.5) : void 0; +} +}; +o.isHexColor = function(t) { +return !("string" != typeof t || !/^#[0-9A-F]{3}([0-9A-F]{3})?$/i.test(t)); +}; +o.getChromaObj = function(t) { +return o.isHexColor(t) ? n.hex(t) : t instanceof n.constructor && t; +}; +o.rgbaColor = function(t, e) { +t = o.getChromaObj(t); +if (t) { +if (void 0 === e) e = 1; else { +e = parseFloat(e); +(isNaN(e) || e > 1) && (e = 1); +e < 0 && (e = 0); +} +return "rgba(" + o.toRGB(t).join(",") + "," + e + ")"; +} +}; +o.toRGB = function(t) { +t = o.getChromaObj(t); +if (t) { +var e = t.rgb(); +e[0] = parseInt(e[0], 10); +e[1] = parseInt(e[1], 10); +e[2] = parseInt(e[2], 10); +return e; +} +}; +t.exports = o; +e(o, "meshim_widget_utils_Color"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +j = x.ACCOUNT_KEY; +} +function o() { +if (x.IS_POPOUT) return w.get(A) || $().get("mid"); +var t = u(); +return t || (w.get(S) || ""); +} +function r(t) { +w.set(S, t, { +path: "/", +ttl: 365, +domain: g +}); +} +function s() { +w.remove(S, { +path: "/", +domain: g +}); +} +function a() { +var t = c(); +if ("boolean" == typeof t) return t; +var e = w.get(k); +e = parseInt(e, 10); +return 0 !== e && (1 === e || void 0); +} +function _() { +w.remove(k, { +path: "/", +domain: g +}); +} +function l(t) { +t = m(t); +t = t ? 1 : 0; +w.set(k, t, { +path: "/", +ttl: 365, +domain: g +}); +} +function d() { +s(); +b.remove(C); +} +function u() { +var t = w.getJSONCookie("__zlcid"); +w.remove("__zlcid", { +path: "/" +}); +if (t.mID) return t.mID; +var e = h("__zlcstore"); +w.remove("__zlcstore", { +path: "/", +domain: g +}); +return e && e.mID ? e.mID : void 0; +} +function c() { +var t, e = h("__zlcprivacy"); +if ("boolean" == typeof e) { +t = e; +l(e); +} +return t; +} +function h(t) { +return w.getJSONCookie(t)[j]; +} +function p(t, e) { +var i = b.get(C) || {}; +i[j] || (i[j] = {}); +var n = i[j]; +n[t] = e; +n.timestamp = +new Date(); +b.set(C, i); +} +function f(t) { +var e = b.get(C) || {}; +if (!e[j]) return {}; +var i = e[j]; +return i.timestamp ? +new Date() - i.timestamp > y ? {} : i[t] : i[t] || {}; +} +var g, m = i(12), $ = i(35), b = i(378), w = i(178), x = i(18), v = i(10), y = 48e4, j = x.ACCOUNT_KEY, C = "__zlcstore", S = "__zlcmid", A = "__zlcpomid", k = "__zlcprivacy", I = window.location.hostname; +g = /\b(?:\d{1,3}\.){3}\d{1,3}/.test(I) ? I : v.getEffectiveTLD(I); +var T = { +init: n, +DOM: { +saveVariable: p, +getVariable: f +}, +Cookie: w, +clearAll: d, +setIdentity: r, +getIdentity: o, +clearIdentity: s, +clearAllowCookieLaw: _, +getAllowCookieLaw: a, +setAllowCookieLaw: l +}; +t.exports = T; +e(T, "meshim_widget_controllers_StorageController"); +return T; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +var e, i, n = r.extend(this); +try { +e = new window.ActiveXObject("htmlfile"); +e.open(); +e.write(""); +e.close(); +i = e.win; +} catch (t) {} +if (!i) { +var o = this.iframe = document.createElement("iframe"), a = o.style; +n.allowTransparency = "true"; +n.frameBorder = "0"; +a.backgroundColor = "transparent"; +a.position = "absolute"; +a.width = a.height = "1px"; +a.left = a.top = "-9999px"; +a.border = 0; +document.body.appendChild(o); +try { +i = o.contentWindow; +e = i.document; +e.open(); +e.close(); +} catch (t) { +n.fire("error"); +n.destroy(); +return; +} +} +n.doc = e; +n.win = i; +n.$Loader = { +cleanup: function() { +s(function() { +n.$Loader.payload ? n.fire("success", n.$Loader.payload) : n.fire("error"); +n.$Loader.payload = null; +t || n.destroy(); +}); +} +}; +n.reusable = t; +} +function o(t) { +return t && t.replace(a, function(t) { +return "&#" + t.charCodeAt(0) + ";"; +}); +} +var r = i(14), s = i(16); +n.prototype.setScope = function(t) { +this.scope = t; +}; +var a = /[&<>"']/g; +n.prototype.load = function(t) { +if (/^(?:https?:)?\/\//i.test(t)) { +t = o(t); +try { +this.doc.open(); +this.win.$Loader = this.$Loader; +this.win.$Loader.scope = this.scope || {}; +this.doc.write(''); +this.doc.close(); +} catch (t) { +this.$Loader.cleanup(); +} +} else this.$Loader.cleanup(); +}; +n.prototype.destroy = function() { +try { +this.iframe && document.body.removeChild(this.iframe); +this.doc = this.win = this.iframe = this.win.$Loader = null; +} catch (t) {} +}; +t.exports = n; +e(n, "jx_io_DataIFrame"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n, o, r, s, a = i(21), _ = i(26), l = i(22), d = i(5), u = i(27), c = {}; +c.init = function(t) { +function e(t, e) { +if (t && u.isHexColor(t)) { +e = e || ""; +var i = {}; +i[e] = t; +c.setColors(i); +} else window.console && window.console.log(u.getPrefix() + ': theme.setColor() Invalid color argument. Color must be in hexadecimal format ("#AABBCC")'); +} +function i(t) { +function e() { +var e, i = {}; +for (var n in t) if (t.hasOwnProperty(n)) { +e = n || "primary"; +if (!d.livechat.getLimit() && "primary" != e) continue; +"badge" == e && (e = "banner"); +e += "$string"; +t[n] && a(t[n]) && u.isHexColor(t[n]) && (i[e] = t[n]); +} +u.saveAPISettings({ +settings: { +theme: { +colors: i +} +} +}); +o.$("livechat").$("settings").$("theme").update({ +colors: i +}); +} +if (t && "object" == typeof t) { +u.savePopoutAPICalls("theme.setColors", [ t ]); +u.callOnFastInit(e, !0); +u.callOnRegistered(e, !0); +u.instrument("theme.setColors"); +} else window.console && window.console.log(u.getPrefix() + ": theme.setColors() Invalid argument. Argument must be an object containing the desired colors in hexadecimal format (#AABBCC)"); +} +function h(t, e) { +function i() { +s.getValue() ? u.saveAPISettings({ +settings: { +theme: { +custom_fonts: { +config$json: t, +font_family$string: e +} +} +} +}) : r(u.getPrefix() + ": theme.setFontConfig() API requires your account to be on the Chat Professional/Enterprise or Advanced/Premium (Legacy) plan. Please upgrade your account."); +} +var n = o.$("connection.status$string").getValue(), r = window.console && window.console.log && window.console.log.bind && window.console.log.bind(window.console) || window.console && window.console.log || function() {}; +if (n) r(u.getPrefix() + ": theme.setFontConfig() must be called immediately after embedding script"); else if (p(t) && "string" == typeof e) if (/[^A-Za-z0-9\'\"\-_, ]/.test(e)) r(u.getPrefix() + ": theme.setFontConfig() error: Invalid characters in font-family."); else if (function(t) { +for (var e, i = [], n = 0, o = t.length; n < o; n++) { +e = t.charAt(n); +"'" !== e && '"' !== e || (i[0] === e ? i.shift() : i.unshift(e)); +} +return 0 === i.length; +}(e)) { +u.callOnFastInit(i); +u.callOnRegistered(i); +u.instrument("theme.setFontConfig"); +} else r(u.getPrefix() + ": theme.setFontConfig() error: Malformed font-family string."); else r(u.getPrefix() + ": theme.setFontConfig() error: Invalid arguments."); +} +function p(t) { +function e(t) { +if (_(t)) return null; +if (!l(t) || 0 === t.length) return "is of invalid type"; +for (var e = 0, i = t.length; e < i; e++) if ("string" != typeof t[e]) return "is of invalid type"; +return null; +} +function i(t) { +return _(t) ? "is required" : null; +} +var n = { +custom: { +urls: [ i, e ] +}, +fontdeck: { +id: [ i, "string" ] +}, +monotype: { +projectId: [ i, "string" ] +}, +google: { +families: [ i, e ], +text: [ "string" ] +}, +typekit: { +id: [ i, "string" ], +api: [ "string" ] +} +}, o = [], r = window.console && window.console.log && window.console.log.bind && window.console.log.bind(window.console) || window.console && window.console.log || function() {}; +for (var s in t) if (t.hasOwnProperty(s)) { +if (!n[s]) { +r(u.getPrefix() + ': theme.setFontConfig() error: unknown font provider "' + s + '"'); +return !1; +} +var a, d = n[s], c = t[s]; +for (a in d) if (d.hasOwnProperty(a)) { +var h = d[a], p = function(t, e, i, n) { +for (var o = 'attribute "' + e + '" of provider "' + t + '" ', r = 0, s = n.length; r < s; r++) { +var a = n[r]; +if ("string" == typeof a) { +if (void 0 !== i && typeof i !== a) return o + "is of invalid type"; +} else { +var _ = a(i); +if (_) return o + _; +} +} +return null; +}(s, a, c[a], h); +if (p) { +r(u.getPrefix() + ": theme.setFontConfig() error: " + p); +return !1; +} +} +for (a in c) c.hasOwnProperty(a) && (d[a] || o.push(s + "." + a)); +} +o.length > 0 && r(u.getPrefix() + ": theme.setFontConfig() warning: unused paths in web_font_config: " + o.join(", ")); +return !0; +} +function f() { +function t() { +u.savePopoutAPICalls("theme.reload", []); +o.$("livechat").$("ui").update({ +theme_reload$bool: !0 +}); +} +u.callOnFastInit(t); +u.callOnRegistered(t); +u.instrument("theme.reload"); +} +function g(t) { +if (m(t)) { +u.instrument("theme.setProfileCardConfig"); +$(t); +} else window.console && window.console.log(u.getPrefix() + ": setProfileCardConfig() Invalid argument. Please refer to the API documentation."); +} +function m(t) { +if (!t || "object" != typeof t) return !1; +for (var e in t) if (t.hasOwnProperty(e) && "boolean" != typeof t[e]) return !1; +return !0; +} +function $(t) { +var e = {}; +"avatar" in t && (e.display_avatar$bool = t.avatar); +"title" in t && (e.display_title_name$bool = t.title); +"rating" in t && (e.display_rating$bool = t.rating); +b(e); +u.savePopoutAPICalls("theme.setProfileCardConfig", [ t ]); +} +function b(t) { +function e() { +u.saveAPISettings({ +settings: { +theme: { +chat_window: { +profile_card: t +} +} +} +}); +r.update(t); +} +u.callOnFastInit(e); +u.callOnRegistered(e); +u.instrument("theme.setProfileCardDisplay"); +} +n = t; +o = d.root; +r = o.$("livechat").$("settings").$("theme").$("chat_window").$("profile_card"); +s = o.$("livechat").$("gates").$("set_font_config$bool"); +c.setTheme = n.generateLimitedFunction("theme.setTheme", 2, function(t) { +function e() { +u.saveAPISettings({ +settings: { +theme: { +name$string: t.toString() +} +} +}); +o.$("livechat").$("settings").$("theme").update({ +name$string: t.toString() +}); +} +u.savePopoutAPICalls("theme.setTheme", [ t.toString() ]); +u.callOnFastInit(e, !0); +u.callOnRegistered(e, !0); +u.instrument("theme.setTheme"); +}); +c.setColor = e; +c.setColors = n.generateLimitedFunction("theme.setColors", 1, i); +c.setFontConfig = h; +c.validateConfig = p; +c.reload = f; +c.setProfileCardConfig = g; +}; +t.exports = c; +e(c, "meshim_widget_controllers_liveChatAPI_Theme"); +return c; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +V = et.root; +if (!V.$("livechat").$("ui").$("mockup$bool").getValue()) { +var t = this; +nt.init(t); +ot.init(t); +rt.init(t); +st.init(t); +at.init(t); +_t.init(t); +lt.init(t); +dt.init(t); +ut.init(t); +ct.init(t); +ht.init(t); +pt.init(t); +O(); +V.$("livechat").$("ui").$("popout$bool").getValue() && L(); +} +} +function o() { +nt.instrument("livechat.getName"); +return V.$("livechat").$("profile").$("display_name$string").getValue() || ""; +} +function r() { +nt.instrument("livechat.getEmail"); +return V.$("livechat").$("profile").$("email$string").getValue() || ""; +} +function s() { +nt.instrument("livechat.getPhone"); +return V.$("livechat").$("profile").$("phone$string").getValue() || ""; +} +function a() { +nt.instrument("livechat.isChatting"); +return V.$("livechat").$("channel").$("chatting$bool").getValue() || !1; +} +function _(t) { +if ("object" == typeof t) { +var e, i, n = this; +for (i in t) if (t.hasOwnProperty(i)) { +e = "set" + F(i); +q(n[e]) && n[e](t[i]); +} +nt.instrument("livechat.set"); +return n; +} +} +function l(t) { +function e() { +U.isAuthenticated() ? window.console && window.console.log(nt.getPrefix() + ": setName API ignored for authenticated visitors.") : et.livechat.updateProfile({ +name: t +}); +} +t = t && t.toString(); +if (V.$("livechat").$("profile").$("display_name$string").getValue() !== t) { +nt.callOnFastInit(e); +nt.callOnReattached(e); +nt.instrument("livechat.setName"); +} +} +function d(t) { +function e() { +U.isAuthenticated() ? window.console && window.console.log(nt.getPrefix() + ": setEmail API ignored for authenticated visitors.") : et.livechat.updateProfile({ +email: t +}); +} +t = t && t.toString().trim(); +if (V.$("livechat").$("profile").$("email$string").getValue() !== t) if (tt.email.test(t)) { +nt.callOnFastInit(e); +nt.callOnReattached(e); +nt.instrument("livechat.setEmail"); +} else window.console && window.console.log(nt.getPrefix() + ": setEmail(): the email provided is not valid: [" + t + "]"); +} +function u(t) { +function e() { +et.livechat.updateProfile({ +phone: t +}); +} +t = t && t.toString(); +if (V.$("livechat").$("profile").$("phone$string").getValue() !== t) { +nt.callOnFastInit(e); +nt.callOnReattached(e); +nt.instrument("livechat.setPhone"); +} +} +function c() { +function t() { +V.$("livechat").$("channel").$("tags").write({ +added$string: n.join(",") +}); +} +if (arguments.length) { +for (var e, i = arguments, n = [], o = 0, r = i.length; o < r; o++) { +e = (i[o] + "").trim(); +e && n.push(e); +} +nt.callOnFastInit(t); +nt.callOnReattached(t); +nt.instrument("livechat.addTags"); +} +} +function h(t) { +function e() { +V.$("livechat").$("session").$("page_path").write({ +url$string: i, +title$string: n +}); +} +var i, n; +if ("object" == typeof t && t && (i = M(t.url))) n = t.title || bt.title || ""; else { +if (!G(t)) { +window.console && window.console.log(nt.getPrefix() + ": sendVisitorPath(): the parameters provided are not valid. Please refer to the API documentation."); +return; +} +i = wt + ""; +n = bt.title || ""; +} +nt.callOnReattached(e); +nt.instrument("livechat.sendVisitorPath"); +} +function p() { +function t() { +V.$("livechat").$("channel").$("tags").write({ +removed$string: n.join(",") +}); +} +if (arguments.length) { +for (var e, i = arguments, n = [], o = 0, r = i.length; o < r; o++) { +e = (i[o] + "").trim(); +e && n.push(e); +} +nt.callOnFastInit(t); +nt.callOnReattached(t); +nt.instrument("livechat.removeTags"); +} else window.console && window.console.log(nt.getPrefix() + ": removeTags(): Please provide at least one tag"); +} +function f(t) { +function e() { +V.$("livechat").$("profile").$("notification").update({ +sound$bool: !t +}); +} +if ("boolean" == typeof t) { +nt.callOnFastInit(e); +nt.callOnRegistered(e); +nt.instrument("livechat.setDisableSound"); +} else window.console && window.console.log(nt.getPrefix() + ": setDisableSound() expects passed argument to be true/false"); +} +function g(t) { +function e() { +z.setDisabled(t); +} +if ("boolean" == typeof t) { +nt.callOnFastInit(e); +nt.callOnRegistered(e); +nt.instrument("livechat.setDisableGoogleAnalytics"); +} else window.console && window.console.log(nt.getPrefix() + ": setDisableGoogleAnalytics() expects passed argument to be true/false"); +} +function m(t) { +function e() { +nt.saveAPISettings({ +settings: { +language: { +language$string: t +} +} +}); +V.$("livechat").$("settings").$("language").update({ +language$string: t +}); +} +if (Y(t) && t) { +nt.callOnFastInit(e); +nt.callOnRegistered(e); +nt.instrument("livechat.setLanguage"); +} else window.console && window.console.log(nt.getPrefix() + ": setLanguage() expects passed argument to be a non-empty string"); +} +function $(t) { +function e(t) { +if (o[t] && Y(o[t])) { +var e = {}; +e[t + "$string"] = o[t]; +nt.saveAPISettings({ +settings: { +greetings: e +} +}); +V.$("livechat").$("settings").$("greetings").update(e); +} else window.console && window.console.log(nt.getPrefix() + ': setGreetings() expects a non-empty string to be provided for "' + t + '"'); +} +function i(t) { +var e = {}; +e[t + "$string"] = null; +nt.resetAPISettings({ +settings: { +greetings: e +} +}); +var i = nt.getServerSettings("settings.greetings." + t + "$string"); +if (i) { +e[t + "$string"] = i; +V.$("livechat").$("settings").$("greetings").update(e); +} +} +function n(t, e) { +if (e in t) return X(t[e]) ? t[e][0] : t[e]; +} +if (t && "object" == typeof t) { +var o = { +online: n(t, "online"), +offline: n(t, "offline") +}, r = function() { +(null === o.online ? i : e)("online"); +(null === o.offline ? i : e)("offline"); +}; +nt.callOnFastInit(r, !0); +nt.callOnReattached(r, !0); +nt.instrument("livechat.setGreetings"); +} +} +function b() { +function t() { +et.livechat.clearAll(); +et.livechat.reconnect(); +} +nt.callOnRegistered(t); +nt.instrument("livechat.clearAll"); +} +function w() { +function t() { +it.hideAll(); +} +var e = J.once(t); +nt.callOnFastInit(e); +nt.callOnRegistered(e); +nt.instrument("livechat.hideAll"); +} +function x(t) { +if (t && "string" == typeof t) { +nt.callOnReattached(function() { +var e = V.$("livechat").$("profile").$("department_id$int").getValue(), i = { +msg: t +}; +e && (i.department = e); +et.livechat.sendChatMsg(i); +$t.window.show(); +}); +nt.instrument("livechat.say"); +} else window.console && window.console.log(nt.getPrefix() + ": say() expects a non-empty string to be provided as an argument"); +} +function v(t) { +if (q(t)) { +nt.callOnReattached(nt.getCallbackCaller(t), !0); +nt.instrument("livechat.setOnConnected"); +} else window.console && window.console.log(nt.getPrefix() + ": setOnConnected() expects a callback function to be provided"); +} +function y(t) { +var e = vt.last_chatting_state, i = K(t); +if (i !== vt.last_chatting_state) { +vt.last_chatting_state = i; +i ? vt.start_ready && vt.fire("chat_start") : e && vt.fire("chat_end"); +} +} +function j() { +if (!vt.listening) { +vt.listening = !0; +V.$("livechat").$("channel").$("chatting$bool").bindValue(y); +} +} +function C(t) { +if (q(t)) { +vt.on("chat_start", nt.getCallbackCaller(t)); +j(); +nt.instrument("livechat.setOnChatStart"); +if (!vt.start_settled) { +vt.start_settled = !0; +nt.callOnReattached(function() { +vt.last_chatting_state = K(V.$("livechat").$("channel").$("chatting$bool").getValue()); +vt.start_ready = !0; +}); +} +} else window.console && window.console.log(nt.getPrefix() + ": setOnChatStart() expects a callback function to be provided"); +} +function S(t) { +if (q(t)) { +vt.on("chat_end", nt.getCallbackCaller(t)); +j(); +nt.instrument("livechat.setOnChatEnd"); +} else window.console && window.console.log(nt.getPrefix() + ": setOnChatEnd() expects a callback function to be provided"); +} +function A(t) { +q(t) ? nt.callOnRegistered(nt.getCallbackCaller(t), !0) : window.console && window.console.log(nt.getPrefix() + ": setOnFlashReady() expects a callback function to be provided"); +} +function k(t) { +function e() { +i(n.getValue()); +} +if (q(t)) { +var i = nt.getCallbackCaller(t), n = V.$("livechat").$("account").$("status$string"), o = V.$("livechat").$("departments"), r = H.debounce(e); +n.bindValue(r); +o.bindValue(r); +nt.instrument("livechat.setOnStatus"); +} else window.console && window.console.log(nt.getPrefix() + ": setOnStatus() expects a callback function to be provided"); +} +function I(t) { +if (q(t)) { +var e; +t = nt.getCallbackCaller(t); +V.$("livechat").$("ui").$("chat_button").$("unread_count$int").bindValue(function(i) { +if (Z(i) && e != i) { +e = i; +nt.callNow(t, e); +} +}); +nt.instrument("livechat.setOnUnreadMsgs"); +} else window.console && window.console.log(nt.getPrefix() + ": setOnUnreadMsgs() expects a callback function to be provided"); +} +function T() { +et.livechat.endChat(); +nt.instrument("livechat.endChat"); +} +function B(t) { +function e() { +if (Y(t) && t) { +t = t.toLowerCase(); +if ("online" === t || "offline" === t) { +nt.saveAPISettings({ +account: { +status$string: t +} +}); +V.$("livechat").$("account").update({ +status$string: t +}); +} else window.console && window.console.log(nt.getPrefix() + ': setStatus() only accepts "online" or "offline" as a valid status'); +} else window.console && window.console.log(nt.getPrefix() + ": setStatus() expects passed argument to be a non-empty string"); +} +function i() { +nt.resetAPISettings({ +account: { +status$string: null +} +}); +var t = nt.getServerSettings("account.status$string"); +t && V.$("livechat").$("account").update({ +status$string: t +}); +} +var n = null === t ? i : e; +nt.savePopoutAPICalls("setStatus", [ t ]); +nt.callOnFastInit(n); +nt.callOnReattached(n); +nt.instrument("livechat.setStatus"); +} +function N(t) { +function e() { +V.$("livechat").$("profile").write({ +notes$string: t +}); +} +if (Y(t)) { +nt.callOnFastInit(e); +nt.callOnReattached(e); +nt.instrument("livechat.setNotes"); +} else window.console && window.console.log(nt.getPrefix() + ": setNotes() expects passed argument to be a string"); +} +function D(t) { +function e() { +V.$("livechat").$("profile").write({ +notes_append$string: t +}); +} +if (Y(t)) { +nt.callOnReattached(e); +nt.instrument("livechat.appendNotes"); +} else window.console && window.console.log(nt.getPrefix() + ": appendNotes() expects passed argument to be a string"); +} +function E(t) { +if ("object" == typeof t && q(t.jwtFn)) { +nt.instrument("livechat.authenticate"); +V.$("connection").$("status$string").getValue() ? window.console && window.console.log(nt.getPrefix() + ": visitor authentication must be initiated immediately after embedding script") : U.setSiteJWTFunc(t.jwtFn); +} else window.console && window.console.log(nt.getPrefix() + ": authenticate(): the parameters provided are not valid. Please refer to the API documentation."); +} +function O() { +var t = window.$zopim; +window.$zopim = nt.callNow; +window.$zopim.livechat = $t; +nt.handleDelayed(t && t._); +} +function P() { +var t = window.$zopim, e = t && t.onError; +if ("function" == typeof e) { +e = nt.getCallbackCaller(e); +nt.callNow(e); +} +} +function L() { +xt = { +"departments.filter": lt.filter, +"departments.setLabel": lt.setLabel, +"prechatForm.setGreetings": ht.setGreetings, +"offlineForm.setGreetings": pt.setGreetings, +"theme.setColors": dt.setColors, +"theme.reload": dt.reload, +"theme.setTheme": dt.setTheme, +"theme.setProfileCardConfig": dt.setProfileCardConfig, +"concierge.setName": at.setName, +"concierge.setTitle": at.setTitle, +"concierge.setAvatar": at.setAvatar, +"window.setTitle": ut.setTitle, +setStatus: $t.setStatus +}; +for (var t = nt.parseAPIFromQuery(), e = this, i = 0, n = t.length; i < n; i++) { +var o = t[i][0], r = t[i][1]; +o in xt && xt[o].apply(e, r); +} +} +function W(t, e, i) { +return function() { +window.console && window.console.log(nt.getPrefix() + ': LiveChatAPI call "' + t + '" is deprecated and may be removed in the future. ' + (e ? 'Use "' + e + '" instead.' : "Refer to http://api.zopim.com/ for the latest API documentation.")); +return i.apply(this, arguments); +}; +} +function R(t, e, i) { +return function() { +var t = Array.prototype.slice.call(arguments, 0); +return i.apply(this, t); +}; +} +function F(t) { +t += ""; +return t.charAt(0).toUpperCase() + t.substring(1); +} +function M(t) { +if ("string" != typeof t) return ""; +var e, i = tt.search.hurl; +i.lastIndex = 0; +e = i.exec(t); +i.lastIndex = 0; +return e ? e[0].trim() : ""; +} +var V, H = i(39), z = i(50), U = i(45), q = i(20), G = i(26), Y = i(21), X = i(22), K = i(12), Z = i(28), Q = i(14), J = i(40), tt = i(59), et = i(5), it = i(25), nt = i(27), ot = i(206), rt = i(205), st = i(204), at = i(203), _t = i(202), lt = i(201), dt = i(114), ut = i(200), ct = i(199), ht = i(198), pt = i(197), ft = i(196), gt = { +interval: 500, +limit: 10 +}, mt = nt.rateLimit(B, "setStatus", gt), $t = { +badge: ot, +bubble: rt, +button: st, +concierge: at, +cookieLaw: _t, +departments: lt, +theme: dt, +window: ut, +debug: ct, +prechatForm: ht, +offlineForm: pt, +mobileNotifications: ft, +generateDeprecatedFunction: W, +generateLimitedFunction: R, +authenticate: E, +init: n, +handleInitError: P, +isChatting: a, +set: _, +getName: o, +getEmail: r, +getPhone: s, +setName: l, +setEmail: d, +setPhone: u, +addTags: c, +sendVisitorPath: h, +removeTags: p, +setDisableSound: f, +setLanguage: m, +setGreetings: $, +clearAll: b, +hideAll: w, +say: x, +setOnConnected: v, +setOnChatStart: C, +setOnChatEnd: S, +setOnFlashReady: A, +setOnStatus: k, +setOnUnreadMsgs: I, +endChat: T, +setStatus: mt, +setNotes: N, +appendNotes: D, +setDisableGoogleAnalytics: g +}, bt = document, wt = window.location, xt = {}, vt = { +listening: !1, +last_chatting_state: null, +start_settled: !1, +start_ready: !1 +}; +Q.extend(vt); +var yt = { +global: "fire freeze setOnGreeting".split(" "), +bubble: "setImage".split(" "), +button: "setImage setTheme useFavicon".split(" "), +window: "getSettings setBg".split(" "), +cookieLaw: "showPrivacyPanel".split(" "), +unreadflag: "disable enable".split(" ") +}; +for (var jt in yt) if (yt.hasOwnProperty(jt)) { +var Ct, St = yt[jt]; +if ("global" == jt) Ct = $t; else { +$t[jt] || ($t[jt] = {}); +Ct = $t[jt]; +} +for (var At = 0; At < St.length; At++) { +var kt = St[At]; +Ct[kt] = function(t) { +return function() { +window.console && window.console.log(nt.getPrefix() + ': LiveChatAPI call "' + t + '" is obsolete. Refer to http://api.zopim.com/ for the latest API documentation.'); +}; +}(kt); +} +} +t.exports = $t; +e($t, "meshim_widget_controllers_LiveChatAPI"); +return $t; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_chatWindow_MenuStack = i(124); +e.__$$__meshim_widget_widgets_ViewStack = i(55); +e.__$$__meshim_widget_components_chatWindow_NewChatForm = i(170); +e.__$$__meshim_widget_components_chatWindow_PreChatOfflineForm = i(163); +e.__$$__meshim_widget_components_mobileChatWindow_ChatPanel = i(219); +e.__$$__meshim_widget_components_chatWindow_PostChatForm = i(131); +e.__$$__meshim_widget_components_chatWindow_CookieForm = i(129); +e.__$$__meshim_widget_components_chatWindow_CardForm = i(128); +e.__$$__meshim_widget_components_chatWindow_AgentList = i(127); +e.__$$__meshim_widget_components_chatWindow_AboutPanel = i(126); +e.__$$__meshim_widget_components_chatWindow_RatingPanel = i(125); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatWindow_MenuStack, "menu_stack", "", [], { +id: "menu_stack", +addClass: "popout" +} ], [ e.__$$__meshim_widget_widgets_ViewStack, "main_stack", "", [ [ e.__$$__meshim_widget_components_chatWindow_NewChatForm, "", "", [], { +name: "new_chat_form" +} ], [ e.__$$__meshim_widget_components_chatWindow_PreChatOfflineForm, "", "", [], { +name: "pre_chat_offline_form" +} ], [ e.__$$__meshim_widget_components_mobileChatWindow_ChatPanel, "", "", [], { +name: "chat_panel" +} ], [ e.__$$__meshim_widget_components_chatWindow_PostChatForm, "", "", [], { +name: "post_chat_form" +} ], [ e.__$$__meshim_widget_components_chatWindow_CookieForm, "", "", [], { +name: "cookie_form" +} ], [ e.__$$__meshim_widget_components_chatWindow_CardForm, "", "", [], { +name: "card_form" +} ], [ e.__$$__meshim_widget_components_chatWindow_AgentList, "", "", [], { +name: "agent_list" +} ], [ e.__$$__meshim_widget_components_chatWindow_AboutPanel, "", "", [], { +name: "about_panel" +} ], [ e.__$$__meshim_widget_components_chatWindow_RatingPanel, "", "", [], { +name: "rating_panel" +} ] ], { +id: "main_stack", +onChildHide: "-1" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:chatWindow": "meshim.widget.components.chatWindow", +"xmlns:mobileChatWindow": "meshim.widget.components.mobileChatWindow", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__menu_stack"), f = n.get(s + "__main_stack"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t() { +s.update(""); +} +var e = i(5), n = e.root.$("livechat"), o = n.$("ui").$("chat_window"), r = o.$("main_stack_name$string"), s = o.$("menu_stack_name$string"); +!function() { +t(); +f.on("click", t); +f.on("indexChange", t); +h.autobind(r, "value", function() { +f.setName(r.getValue()); +}); +h.autobind(s, "value", function() { +p.setName(s.getValue()); +}); +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (h[m] = g[m]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +"top, left, right, bottom": 0, +backgroundColor: "$$windowBg", +boxShadow: "$$windowShadow", +"-webkit-text-size-adjust, -moz-text-size-adjust, -ms-text-size-adjust, text-size-adjust": "100%" +} +}; +s(t, "meshim_widget_components_mobileChatWindow_MainScreen"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_a = i(44); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_a, "", "", [], { +xmlns: "jx.ui.html", +position: "absolute", +top: "0", +left: "0", +width: "100%", +height: "100%" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +o.trackEvent("Button Clicked"); +u.write({ +button_clicked$bool: !0 +}); +if (c.getValue()) r.userShowWindow(); else if (_.requestPermission()) if (l.isIEMobile) { +h.setAttribute("href", a.getPopoutURL()); +h.setAttribute("target", e.POPOUT_WINDOW_PREFIX + p.getValue()); +} else { +s.resetUnreadCount(); +a.openPopout(!0); +} +} +var e = i(18), n = i(5), o = i(50), r = i(25), s = i(33), a = i(72), _ = i(41), l = i(34), d = n.root.$("livechat").$("ui"), u = d.$("chat_button"), c = d.$("mobile_overlay$bool"), p = n.root.$("livechat").$("account").$("key$string"); +!function() { +h.on("click", t); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_a.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_a; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_mobileChatButton_TappingScreen"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_ui_Image = i(231); +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Image, "image", "", [], { +id: "image", +addClass: "custom_icon" +} ], [ e.__$$__meshim_widget_widgets_IconFont, "icon", "", [], { +id: "icon", +addClass: "default_icon" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "dots", "", [], { +id: "dots", +addClass: "dots", +selectable: "false" +} ] ], { +addClass: "dots_container" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__image"), f = n.get(s + "__icon"), g = n.get(s + "__dots"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var m = function() { +function t() { +function t(t) { +d = !t; +if (t) { +p.setDisplay("none"); +f.setDisplay(""); +} else { +p.setDisplay(""); +f.setDisplay("none"); +} +e(); +} +if (l) try { +l.abort(); +} catch (t) {} +l = null; +if (s) { +if (a) { +p.setSrc(a); +t(!1); +return; +} +var i = function() { +for (var t = window.document.getElementsByTagName("head")[0], e = t.getElementsByTagName("link"), i = 0, n = e.length; i < n; i++) if ("icon" == e[i].rel || "shortcut icon" == e[i].rel) return e[i].href; +}(); +if (i) { +p.setSrc(i); +t(!1); +return; +} +l = function(t) { +var e, i = window.location.protocol + "//" + window.location.host + "/favicon.ico"; +try { +if (window.ActiveXObject) { +e = new window.ActiveXObject("Msxml2.XMLHTTP"); +e || (e = new window.ActiveXObject("Microsoft.XMLHTTP")); +} +} catch (t) {} +e || void 0 === window.XMLHttpRequest || (e = new window.XMLHttpRequest()); +if (e) { +e.onreadystatechange = function() { +4 === e.readyState && (200 === e.status || e.status >= 300 && e.status < 400 ? t(i) : t()); +}; +e.open("HEAD", i, !0); +e.send(null); +} +return e; +}(function(e) { +if (e) { +p.setSrc(e); +t(!1); +} else t(!0); +}); +} else t(!0); +} +function e() { +if (r || "offline" != o) { +f.setIcon("message"); +f.removeClass("default_icon_offline"); +f.addClass("default_icon_online"); +} else { +f.setIcon("email"); +f.removeClass("default_icon_online"); +f.addClass("default_icon_offline"); +} +if (_ && r && !d) { +if (!u) { +n(); +u = window.setInterval(n, m); +} +g.setDisplay(""); +} else { +if (u) { +window.clearInterval(u); +u = null; +} +g.setDisplay("none"); +} +} +function n() { +var t = g.getText(); +g.setText(t.length == $ ? "" : t + "."); +} +var o, r, s, a, _, l, d, u, c = i(5), m = 1e3, $ = 3, b = c.root.$("livechat").$("account"), w = c.root.$("livechat").$("settings").$("branding"), x = b.$("status$string"), v = c.root.$("livechat").$("channel").$("chatting$bool"), y = w.$("hide_favicon$bool"), j = w.$("custom_favicon_path$string"), C = c.root.$("livechat").$("ui").$("chat_button").$("unread_count$int"); +!function() { +h.autobind(y, "value", function(e) { +s = e; +t(); +}); +h.autobind(j, "value", function(e) { +a = e; +t(); +}); +h.autobind(v, "value", function(t) { +if (r !== t) { +r = t; +e(); +} +}); +h.autobind(x, "value", function(t) { +if (t != o) { +o = t; +e(); +} +}); +h.autobind(C, "value", function(t) { +if (t != _) { +_ = t; +e(); +} +}); +}(); +}(); +for (var $ in m) m.hasOwnProperty($) && (h[$] = m[$]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +".custom_icon": { +"width, height": "16px" +}, +".default_icon": { +fontSize: "16px", +width: "16px", +display: "inline-block", +"&.default_icon_online": { +lineHeight: "20px", +verticalAlign: "top", +color: "$$faviconOnlineColor" +}, +"&.default_icon_offline": { +lineHeight: "18px", +verticalAlign: "top", +color: "$$faviconOfflineColor" +} +}, +".dots_container": { +fontFamily: "Arial", +position: "absolute", +width: "100%", +textAlign: "center", +fontSize: "20px", +letterSpacing: "-2px", +top: "-3px", +left: "-1px", +lineHeight: "24px" +}, +".dots": { +display: "inline-block", +width: "12px", +lineHeight: "22px", +textAlign: "left", +color: [ "$$chatButtonBg", "$$faviconBg", "$$faviconDotsColor" ], +background: "transparent" +} +}; +s(t, "meshim_widget_widgets_Favicon"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +if (!(this instanceof i)) return new i(t); +var e = ""; +"object" == typeof t ? e = "object" : /#/.test(t) ? e = "hex" : /hsl\(.+\)/.test(t) ? e = "hsl" : /hsv\(.+\)/.test(t) ? e = "hsv" : /rgba\(.+\)/.test(t) && (e = "rgba"); +switch (e) { +case "object": +o.call(this, t); +break; + +case "hex": +n.call(this, t); +break; + +case "hsl": +r.call(this, t); +break; + +case "hsv": +_.call(this, t); +break; + +case "rgba": +a.call(this, t); +} +"number" != typeof this.alpha && (this.alpha = 1); +} +function n(t) { +t = t.replace(/#/g, "").replace(/\s+/g, " ").replace(/^\s|\s$/g, ""); +/^\w{3}/.test(t) && (t = t.replace(/^(\w)(\w)(\w)$/, "$1$1$2$2$3$3")); +this.red = parseInt(t.substr(0, 2), 16); +this.green = parseInt(t.substr(2, 2), 16); +this.blue = parseInt(t.substr(4, 2), 16); +} +function o(t) { +if ("red" in t && "green" in t && "blue" in t) { +this.red = t.red; +this.green = t.green; +this.blue = t.blue; +this.alpha = t.alpha; +} else "h" in t && "s" in t && "l" in t ? s.call(this, t) : "h" in t && "s" in t && "v" in t && l.call(this, t); +} +function r(t) { +t = t.replace(/[A-Za-z]+|\(|\)/g, "").replace(/,/g, " ").replace(/\s+/g, " ").replace(/^\s|\s$/g, ""); +var e = t.split(" "), i = { +h: parseFloat(e[0]) < 0 ? 360 + parseFloat(e[0]) % 360 : parseFloat(e[0]) % 360, +s: e[1].indexOf("%") < 0 ? parseFloat(e[1]) : parseInt(e[1], 10) / 100, +l: e[2].indexOf("%") < 0 ? parseFloat(e[2]) : parseInt(e[2], 10) / 100 +}; +s.call(this, i); +} +function s(t) { +var e, i = t.h, n = t.s, o = t.l, r = (1 - Math.abs(2 * o - 1)) * n, s = i / 60, a = r * (1 - Math.abs(s % 2 - 1)), _ = o - .5 * r; +switch (Math.floor(s)) { +case 0: +e = [ r, a, 0 ]; +break; + +case 1: +e = [ a, r, 0 ]; +break; + +case 2: +e = [ 0, r, a ]; +break; + +case 3: +e = [ 0, a, r ]; +break; + +case 4: +e = [ a, 0, r ]; +break; + +case 5: +e = [ r, 0, a ]; +} +this.red = Math.round(255 * (e[0] + _)); +this.green = Math.round(255 * (e[1] + _)); +this.blue = Math.round(255 * (e[2] + _)); +} +function a(t) { +t = t.replace(/[A-Za-z(,]+/g, " ").replace(/\s+/g, " ").replace(/^\s|\s$/g, ""); +var e = t.split(" "); +this.red = parseInt(e[0], 10); +this.green = parseInt(e[1], 10); +this.blue = parseInt(e[2], 10); +this.alpha = parseFloat(e[3]); +} +function _(t) { +t = t.replace(/[A-Za-z%]+|\(|\)/g, "").replace(/,/g, " ").replace(/\s+/g, " ").replace(/^\s|\s$/g, ""); +var e = t.split(" "), i = { +h: parseFloat(e[0]) < 0 ? (360 + parseFloat(e[0])) % 360 : parseFloat(e[0]) % 360, +s: e[1].indexOf("%") < 0 ? parseFloat(e[1]) : parseInt(e[1], 10) / 100, +v: e[2].indexOf("%") < 0 ? parseFloat(e[2]) : parseInt(e[2], 10) / 100 +}; +l.call(this, i); +} +function l(t) { +var e, i = t.h, n = t.s, o = t.v, r = o * n, s = i / 60, a = r * (1 - Math.abs(s % 2 - 1)), _ = o - r; +switch (Math.floor(s)) { +case 0: +e = [ r, a, 0 ]; +break; + +case 1: +e = [ a, r, 0 ]; +break; + +case 2: +e = [ 0, r, a ]; +break; + +case 3: +e = [ 0, a, r ]; +break; + +case 4: +e = [ a, 0, r ]; +break; + +case 5: +e = [ r, 0, a ]; +} +this.red = Math.round(255 * (e[0] + _)); +this.green = Math.round(255 * (e[1] + _)); +this.blue = Math.round(255 * (e[2] + _)); +} +var d = [ "red", "green", "blue" ]; +i.prototype.lighten = function(t) { +var e = this.toHSL(); +e.l = e.l + (1 - e.l) * t; +return new i(e); +}; +i.prototype.darken = function(t) { +var e = this.toHSL(); +e.l = e.l - e.l * t; +return new i(e); +}; +i.prototype.blend = function(t, e) { +t instanceof i || (t = new i(t)); +for (var n = {}, o = 0; o < 3; o++) { +var r = this[d[o]], s = t[d[o]]; +n[d[o]] = Math.round(r + (s - r) * e); +} +return new i(n); +}; +i.prototype.complement = function() { +var t = this.red, e = this.blue, n = this.green, o = Math.max(t, e, n), r = Math.min(t, e, n), s = {}; +s.red = o + r - t; +s.green = o + r - n; +s.blue = o + r - e; +return new i(s); +}; +i.prototype.toStrRGB = i.prototype.toRGB = function() { +for (var t = [], e = 0; e < 3; e++) { +var i = this[d[e]].toString(16); +t[e] = i.length < 2 ? "0" + i : i; +} +return "#" + t.join(""); +}; +i.prototype.toStrRGBA = function() { +return "rgba(" + [ this.red, this.green, this.blue, this.alpha ].join(",") + ")"; +}; +i.prototype.toHSL = function() { +var t, e, i, n, o = this.red / 255, r = this.green / 255, s = this.blue / 255, a = Math.max(o, r, s), _ = Math.min(o, r, s), l = a - _; +0 === l ? n = 0 : a == o ? n = (r - s) / l % 6 : a == r ? n = (s - o) / l + 2 : a == s && (n = (o - r) / l + 4); +t = 60 * n; +t = t < 0 ? 360 + t % 360 : t % 360; +i = .5 * (a + _); +e = 0 === l ? 0 : l / (1 - Math.abs(2 * i - 1)); +return { +h: t, +s: e, +l: i +}; +}; +i.prototype.toHSV = function() { +var t, e, i, n, o = this.red / 255, r = this.green / 255, s = this.blue / 255, a = Math.max(o, r, s), _ = Math.min(o, r, s), l = a - _; +0 === l ? n = 0 : a == o ? n = (r - s) / l % 6 : a == r ? n = (s - o) / l + 2 : a == s && (n = (o - r) / l + 4); +t = 60 * n; +t = t < 0 ? 360 + t % 360 : t % 360; +i = a; +e = 0 === l ? 0 : l / i; +return { +h: t, +s: e, +v: i +}; +}; +i.prototype.toArray = function() { +return [ this.red, this.green, this.blue ]; +}; +i.prototype.clone = function() { +return new i(this); +}; +i.prototype.validate = function() { +for (var t = 0; t < 3; t++) { +var e = this[d[t]]; +if (!("number" == typeof e && e >= 0 && e <= 255)) return !1; +} +return "number" == typeof this.alpha && this.alpha >= 0 && this.alpha <= 1; +}; +t.exports = i; +e(i, "meshim_common_Color"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +"use strict"; +function n(t) { +return "object" == typeof t && null !== t; +} +function o(t) { +switch ({}.toString.call(t)) { +case "[object Error]": +case "[object Exception]": +case "[object DOMException]": +return !0; + +default: +return t instanceof Error; +} +} +function r(t) { +function e(e, i) { +var n = t(e) || e; +return i ? i(n) || n : n; +} +return e; +} +t.exports = { +isObject: n, +isError: o, +wrappedCallback: r +}; +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_FileUploader = i(266); +e.__$$__jx_ui_Input = i(43); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_FileUploader, "file_form", "", [ [ e.__$$__jx_ui_Input, "file_input", "", [], { +id: "file_input", +name: "file[]", +type: "file", +multiple: "true", +addClass: "file_input" +} ] ], { +id: "file_form" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__file_form"), f = n.get(s + "__file_input"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t() { +if (s && f.getValue()) { +var t = [], i = [], n = 0, o = f.dom.files, a = u.getHost(); +if (a) { +if (o) { +for (var m = 0, $ = o.length; m < $; m++) { +if (!l.isValidType(o[m].name, r)) { +C.update({ +error$string: "type" +}); +f.setValue(""); +return; +} +t.push(o[m].name); +i.push(o[m].type); +n += o[m].size || 0; +} +if (n > _.FILE_UPLOAD_MAX) { +C.update({ +error$string: "size" +}); +f.setValue(""); +return; +} +t = t.join(", "); +i = i.join(", "); +} else { +o = f.dom.value || ""; +if (!o) return; +t = o.substr(o.lastIndexOf("\\") + 1); +i = t.substr(t.lastIndexOf(".") + 1); +if (!l.isValidType(t, r)) { +C.update({ +error$string: "type" +}); +f.setValue(""); +return; +} +} +var x = c.livechat.sendFile({ +file_name: t, +file_type: i, +file_size: n +}), v = { +ts: x, +mid: b.getValue(), +uid: w.getValue() +}, y = "https://" + a + _.FILE_UPLOAD_PATH + "?" + d.buildQuery(v); +p.setPath(y); +h.fire("before_submit"); +o && "FormData" in window ? e(a, x, o) : p.submit(); +g.increment("file_upload"); +f.setValue(""); +} +} +} +function e(t, e, i) { +for (var n = new window.XMLHttpRequest(), o = new window.FormData(), r = { +ts: e +}, s = "https://" + t + _.FILE_UPLOAD_PATH + "?" + d.buildQuery(r), a = 0, l = i.length; a < l; a++) o.append("file_" + i[a].name, i[a]); +n.open("POST", s, !0); +n.setRequestHeader("X-Zopim-MID", b.getValue()); +n.setRequestHeader("X-Zopim-UID", w.getValue()); +n.send(o); +} +function n() { +var t = v.getValue(), e = S.getValue("color_customization_enabled$int") || S.getValue("widget_customization_enabled$int"); +s = !!e && !1 !== t; +} +function o() { +var t = y.getValue() || ""; +r = t.trim().replace(/\s*,\s*/g, ",").split(","); +} +var r, s, a, _ = i(18), l = i(66), d = i(35), u = i(57), c = i(5), g = i(56), m = c.root, $ = m.$("livechat"), b = $.$("profile").$("mid$string"), w = $.$("profile").$("uid$string"), x = $.$("settings").$("file_sending"), v = x.$("enabled$bool"), y = x.$("allowed_extensions$string"), j = $.$("ui").$("chat_window"), C = j.$("chat_panel").$("file_toast"), S = $.$("settings").$("package"); +!function() { +f.on("change", function() { +if (!a) { +a = !0; +u.reconnectIfServerRetired(function() { +a = !1; +t(); +}); +} +}); +h.autobind(v, "value", n); +h.autobind(S, "value", n); +h.autobind(y, "value", o); +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (h[m] = g[m]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +".file_input": { +fontSize: "1000px", +outline: "none", +opacity: "0" +} +}; +s(t, "meshim_widget_widgets_SendFile"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +s = f.root.$$("livechat.settings.sound.disabled$bool"); +a = f.root.$$("livechat.profile.notification.sound$bool"); +_ = f.root.$$("connection.reattached_timestamp$int"); +d = f.root.$$("livechat.ui.sounds"); +c = f.root.$("livechat").$("ui").$("mobile$bool"); +c.getValue() && a.update(!1); +h.runAfterFirstChildReady(function() { +if (!u) { +u = new g(m); +d.bindValue(o); +} +}); +} +function o(t) { +if (t && r()) { +l = _.getValue() || 0; +if (0 !== l) for (var e in t) if (t.hasOwnProperty(e)) { +if (!t[e] || t[e] < l) continue; +e = e.substring(0, e.indexOf("$")); +u.hasSound(e) || u.create(e, $[e]); +u.play(e, 1); +} +} +} +function r() { +var t = s.getValue(), e = a.getValue(); +return "boolean" == typeof e ? e : "boolean" != typeof t || !t; +} +var s, a, _, l, d, u, c, h = i(14), p = i(18), f = i(5), g = i(273), m = p.SOUNDS_URL, $ = { +new_message: "triad_gbd" +}, b = { +init: n, +isSoundEnabled: r, +play: function() {} +}; +t.exports = b; +e(b, "meshim_widget_controllers_SoundController"); +return b; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_IconFont, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(12), e = i(9), n = { +true: "tick", +false: "cross" +}, o = h.setIcon; +h.setIcon = function(e, i) { +i || (e = t(e).toString()); +return o.call(h, n[e] || e); +}; +!function() { +e.rtl(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_IconFont.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_IconFont; +t.__jx__jcss = { +"**self": { +float: "right", +lineHeight: 1, +position: "relative", +top: "3px", +verticalAlign: "middle", +"&.rtl": { +float: "left" +} +}, +"&.left": { +float: "left", +"&.rtl": { +float: "right" +} +} +}; +s(t, "meshim_widget_widgets_menu_IconFont"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_ViewStack = i(55); +e.__$$__meshim_widget_components_chatWindow_SettingsMenu = i(276); +e.__$$__meshim_widget_components_chatWindow_ProfileMenu = i(263); +e.__$$__meshim_widget_components_chatWindow_EndChatMenu = i(258); +e.__$$__meshim_widget_components_chatWindow_EmailTranscriptMenu = i(257); +e.__$$__meshim_widget_components_chatWindow_EmailTranscriptNotification = i(256); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_ViewStack, "", "", [ [ e.__$$__meshim_widget_components_chatWindow_SettingsMenu, "", "", [], { +name: "settings_menu" +} ], [ e.__$$__meshim_widget_components_chatWindow_ProfileMenu, "", "", [], { +name: "profile_menu" +} ], [ e.__$$__meshim_widget_components_chatWindow_EndChatMenu, "", "", [], { +name: "end_chat_menu" +} ], [ e.__$$__meshim_widget_components_chatWindow_EmailTranscriptMenu, "", "", [], { +name: "email_transcript_menu" +} ], [ e.__$$__meshim_widget_components_chatWindow_EmailTranscriptNotification, "", "", [], { +name: "email_transcript_notification" +} ] ], { +"xmlns:ui": "jx.ui", +"xmlns:chatWindow": "meshim.widget.components.chatWindow", +"xmlns:widgets": "meshim.widget.widgets", +onChildHide: "-1" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +i(9).popout(h); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_ViewStack.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ViewStack; +t.__jx__jcss = { +"**self": { +overflow: "visible" +}, +"&.popout": { +position: "absolute" +}, +"&.mobile": {} +}; +s(t, "meshim_widget_components_chatWindow_MenuStack"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast = i(82); +e.__$$__meshim_widget_widgets_ChatWindowContent = i(29); +e.__$$__meshim_widget_widgets_ScrollableFrame = i(30); +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_RatingBar = i(98); +e.__$$__meshim_widget_widgets_TextArea = i(77); +e.__$$__meshim_widget_widgets_Bottom = i(32); +e.__$$__meshim_widget_widgets_Controls = i(49); +e.__$$__meshim_widget_widgets_ConnAwareSubmit = i(76); +e.__$$__meshim_widget_widgets_Button = i(17); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(120), h = o(121), p = o(122), f = o(123), g = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast, "", "", [], {} ], [ e.__$$__meshim_widget_widgets_ChatWindowContent, "", "", [ [ e.__$$__meshim_widget_widgets_ScrollableFrame, "", "", [ [ e.__$$__jx_ui_Widget, "rating_desc", "", [], { +id: "rating_desc", +addClass: "rating_desc" +} ], [ e.__$$__meshim_widget_widgets_RatingBar, "rating_bar", "", [], { +id: "rating_bar", +addClass: "rating_bar" +} ], [ e.__$$__jx_ui_Widget, "", "", [ c ], { +addClass: "comment_intro" +} ], [ e.__$$__meshim_widget_widgets_TextArea, "comment_area", "", [], { +id: "comment_area", +addClass: "comment_area", +rows: "4", +placeholder: h +} ] ], {} ], [ e.__$$__meshim_widget_widgets_Bottom, "", "", [ [ e.__$$__meshim_widget_widgets_Controls, "", "", [ [ e.__$$__meshim_widget_widgets_ConnAwareSubmit, "send", "", [], { +placement: "primary", +id: "send", +addClass: "send wide", +value: p +} ], [ e.__$$__meshim_widget_widgets_Button, "cancel", "", [ f ], { +placement: "secondary", +id: "cancel", +addClass: "cancel secondary wide" +} ] ], {} ] ], {} ] ], { +absPaddingBottom: "bottomHeight" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +titleBar: "hidePopout", +actionBar: "" +} ], m = g[0].call(this, s, a, null, n.mangleIDs(a, g[3]), g[4]), $ = m || this; +n.set(a, $); +var b = n.get(a + "__rating_desc"), w = n.get(a + "__rating_bar"), x = n.get(a + "__comment_area"), v = n.get(a + "__send"), y = n.get(a + "__cancel"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var j = function() { +function t(t) { +_ = t; +y.setText(t ? f.END_CHAT : f.DURING_CHAT); +} +function e(t) { +t ? o(t) : b.setText(p.NOT_RATED); +} +function n() { +var t = w.getValue(); +t ? o(t) : b.setText(p.UNRATED); +} +function o(t) { +b.setText("good" == t ? p.RATED_GOOD : p.RATED_BAD); +} +function r() { +var t, e = { +good: "Good", +bad: "Bad" +}, i = "rating_panel" + (_ ? "_end_chat" : "_during_chat"), n = w.getValue(), o = j && j.getValue(); +if (n !== o) { +j && c.writeNode(j, n); +u.trackEvent("Chat_Rating_" + (e[n] || "Removed"), i); +t = !0; +} +var r = x.getValue().trim(); +if (r) { +m.write({ +comment$string: r +}); +u.trackEvent("Chat_Comment_Submitted", i); +t = !0; +} +s(!t); +} +function s(t) { +S.update("chat_panel"); +window.setTimeout(function() { +if (_) { +d.livechat.endChat(); +A.update(null); +} +}, t ? 0 : 2e3); +} +function a() { +w.setValue(j.getValue()); +e(j.getValue()); +x.setValue(C.getValue() || "").focus(); +} +var _, l = i(7), d = i(5), u = i(50), c = i(10), h = l(124), p = { +NOT_RATED: h, +RATED_GOOD: l(125), +RATED_BAD: l(126), +UNRATED: l(127) +}, f = { +DURING_CHAT: l(128), +END_CHAT: l(129) +}, g = d.root.$("livechat"), m = g.$("channel"), j = m.$("rating$string"), C = m.$("comment$string"), S = g.$("ui").$("chat_window").$("main_stack_name$string"), A = g.$("ui").$("chat_window").$("rating_panel").$("end_chat$bool"); +!function() { +b.setText(p.NOT_RATED); +$.autobind(A, "value", t); +w.setDataNode(j); +w.setSize("big"); +v.on("click", r); +y.on("click", function() { +s(!0); +}); +$.on("show", a); +$.autobind(j, "value", e); +w.on("change", n); +}(); +}(); +for (var C in j) j.hasOwnProperty(C) && ($[C] = j[C]); +$.fire && $.fire("init"); +$.setStyle && $.setStyle(l); +$.setAttributes && $.setAttributes(u); +"function" == typeof $.addChildren ? $.addChildren(d) : n.addChildren($, d); +if ($ !== this) { +$.__jx__constructor = _; +$.__jx__native = !1; +} +return $; +} +var _; +t.prototype = s(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = { +".rating_desc": { +textAlign: "center", +marginBottom: "15px" +}, +".rating_bar": { +marginBottom: "25px" +}, +".comment_intro": { +fontWeight: "700" +}, +".comment_area": { +overflow: "auto", +marginTop: "15px" +} +}; +a(t, "meshim_widget_components_chatWindow_RatingPanel"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_ChatWindowContent = i(29); +e.__$$__meshim_widget_widgets_ScrollableFrame = i(30); +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_Header = i(63); +e.__$$__meshim_widget_widgets_Body = i(37); +e.__$$__meshim_widget_widgets_Button = i(17); +e.__$$__meshim_widget_widgets_Bottom = i(32); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(132), h = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_ChatWindowContent, "", "", [ [ e.__$$__meshim_widget_widgets_ScrollableFrame, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Header, "", "", [], { +text: "Zendesk Chat" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Copyright © 2016 Zendesk, Inc. All Rights Reserved." +} ], [ e.__$$__meshim_widget_widgets_Button, "back_top", "", [ c ], { +id: "back_top", +addClass: "back_top wide" +} ], [ e.__$$__meshim_widget_widgets_Header, "", "", [], { +text: "Open Source Licenses" +} ] ], {} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Header, "", "", [], { +text: "chroma.js - JavaScript library for color conversions" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Copyright © 2011-2013, Gregor Aisch. All rights reserved." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "3. The name Gregor Aisch may not be used to endorse or promote products derived from this software without specific prior written permission." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: 'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.' +} ] ], { +class: "break_top" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Header, "", "", [], { +text: "store.js" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Copyright © 2010-2013 Marcus Westin" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: 'Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:' +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: 'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.' +} ] ], { +class: "break_top" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Header, "", "", [], { +text: "d3-timer, d3-interpolate" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Copyright 2010-2015 Mike Bostock" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "All rights reserved." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "* Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: 'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.' +} ] ], { +class: "break_top" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Header, "", "", [], { +text: "d3-ease" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Copyright 2010-2015 Mike Bostock" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Copyright 2001 Robert Penner" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "All rights reserved." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:" +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: "* Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission." +} ], [ e.__$$__meshim_widget_widgets_Body, "", "", [], { +text: 'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.' +} ] ], { +class: "break_top" +} ] ], { +addClass: "ltr" +} ], [ e.__$$__meshim_widget_widgets_Bottom, "", "", [ [ e.__$$__meshim_widget_widgets_Button, "back", "", [ c ], { +id: "back", +addClass: "back wide" +} ] ], {} ] ], { +absPaddingBottom: "bottomHeight" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +titleBar: "hidePopout", +actionBar: "" +} ], p = h[0].call(this, s, a, null, n.mangleIDs(a, h[3]), h[4]), f = p || this; +n.set(a, f); +var g = n.get(a + "__back_top"), m = n.get(a + "__back"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var $ = function() { +var t = i(5), e = i(9), n = t.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string"); +!function() { +e.mobile(f); +m.on("click", function() { +n.update("chat_panel"); +}); +g.on("click", function() { +n.update("chat_panel"); +}); +}(); +}(); +for (var b in $) $.hasOwnProperty(b) && (f[b] = $[b]); +f.fire && f.fire("init"); +f.setStyle && f.setStyle(l); +f.setAttributes && f.setAttributes(u); +"function" == typeof f.addChildren ? f.addChildren(d) : n.addChildren(f, d); +if (f !== this) { +f.__jx__constructor = _; +f.__jx__native = !1; +} +return f; +} +var _; +t.prototype = s(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = { +".break_top": { +padding: "10px 0", +borderTop: "1px solid", +borderColor: "$$inputColor", +fontSize: "$$fontSizeXS", +".meshim_widget_widgets_Body": { +color: "$$inputColor", +marginBottom: "$$marginS" +} +}, +".back_top": { +display: "none", +"&.mobile": { +marginBottom: "18px", +display: "block" +} +}, +".ltr": { +direction: "ltr" +} +}; +a(t, "meshim_widget_components_chatWindow_AboutPanel"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_ChatWindowContent = i(29); +e.__$$__meshim_widget_widgets_ScrollableFrame = i(30); +e.__$$__jx_controls_List = i(146); +e.__$$__meshim_widget_widgets_motif_Chat = i(130); +e.__$$__meshim_widget_widgets_Bottom = i(32); +e.__$$__meshim_widget_widgets_Button = i(17); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(119), h = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_ChatWindowContent, "", "", [ [ e.__$$__meshim_widget_widgets_ScrollableFrame, "scrollable_frame", "", [ [ e.__$$__jx_controls_List, "list", "", [], { +id: "list", +addClass: "list" +} ], [ e.__$$__meshim_widget_widgets_motif_Chat, "chat_motif", "", [], { +id: "chat_motif", +addClass: "chat_motif" +} ] ], { +id: "scrollable_frame" +} ], [ e.__$$__meshim_widget_widgets_Bottom, "", "", [ [ e.__$$__meshim_widget_widgets_Button, "back", "", [ c ], { +id: "back", +addClass: "back wide" +} ] ], { +addClass: "padding_bottom" +} ] ], { +absPaddingBottom: "bottomHeightBottomPadding" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:jx": "jx.controls", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatWindow": "meshim.widget.components.chatWindow", +titleBar: "hidePopout", +actionBar: "none" +} ], p = h[0].call(this, s, a, null, n.mangleIDs(a, h[3]), h[4]), f = p || this; +n.set(a, f); +var g = n.get(a + "__scrollable_frame"), m = n.get(a + "__list"), $ = n.get(a + "__chat_motif"), b = n.get(a + "__back"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var w = function() { +var t = i(16), e = i(5), n = i(277), o = e.root.$("livechat").$("agents"), r = e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string"); +!function() { +m.setRenderer(n); +m.setDataNode(o); +f.autobind(o, "keys", function() { +t(function() { +if (f.dom) { +var t = m.offsetHeight, e = g.getHeight(), i = $.getHeight(); +t <= e && e - t > i ? f.removeClass("many_agents") : f.addClass("many_agents"); +} +}); +}); +b.on("click", function() { +r.update("chat_panel"); +}); +}(); +}(); +for (var x in w) w.hasOwnProperty(x) && (f[x] = w[x]); +f.fire && f.fire("init"); +f.setStyle && f.setStyle(l); +f.setAttributes && f.setAttributes(u); +"function" == typeof f.addChildren ? f.addChildren(d) : n.addChildren(f, d); +if (f !== this) { +f.__jx__constructor = _; +f.__jx__native = !1; +} +return f; +} +var _; +t.prototype = s(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = { +"**self": {}, +".list": { +position: "relative", +"width, height": "100%" +}, +".chat_motif": { +position: "absolute", +"bottom, left": 0, +transition: "opacity 0.5s", +opacity: 1 +}, +"&.many_agents .chat_motif": { +opacity: 0 +} +}; +a(t, "meshim_widget_components_chatWindow_AgentList"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__jx_ui_Form = i(42); +e.__$$__meshim_widget_widgets_ChatWindowContent = i(29); +e.__$$__meshim_widget_widgets_ScrollableFrame = i(30); +e.__$$__meshim_widget_widgets_Body = i(37); +e.__$$__meshim_widget_widgets_form_Profile = i(105); +e.__$$__meshim_widget_widgets_Form = i(103); +e.__$$__meshim_widget_widgets_Bottom = i(32); +e.__$$__meshim_widget_widgets_Controls = i(49); +e.__$$__meshim_widget_widgets_Submit = i(70); +e.__$$__meshim_widget_widgets_Button = i(17); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(130), h = o(131), p = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__jx_ui_Form, "form", "", [ [ e.__$$__meshim_widget_widgets_ChatWindowContent, "", "", [ [ e.__$$__meshim_widget_widgets_ScrollableFrame, "", "", [ [ e.__$$__meshim_widget_widgets_Body, "message", "", [], { +id: "message" +} ], [ e.__$$__meshim_widget_widgets_form_Profile, "profile", "", [], { +id: "profile" +} ], [ e.__$$__meshim_widget_widgets_Form, "form_generator", "", [], { +id: "form_generator" +} ] ], {} ], [ e.__$$__meshim_widget_widgets_Bottom, "", "", [ [ e.__$$__meshim_widget_widgets_Controls, "", "", [ [ e.__$$__meshim_widget_widgets_Submit, "", "", [], { +placement: "primary", +addClass: "wide", +value: c +} ], [ e.__$$__meshim_widget_widgets_Button, "cancel", "", [ h ], { +placement: "secondary", +id: "cancel", +addClass: "secondary wide" +} ] ], {} ] ], {} ] ], { +absPaddingBottom: "bottomHeight" +} ] ], { +id: "form", +noValidate: "true" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:components": "meshim.widget.components", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatWindow": "meshim.widget.components.chatWindow", +titleBar: "hidePopout", +actionBar: "" +} ], f = p[0].call(this, s, a, null, n.mangleIDs(a, p[3]), p[4]), g = f || this; +n.set(a, g); +var m = n.get(a + "__form"), $ = n.get(a + "__message"), b = n.get(a + "__profile"), w = n.get(a + "__form_generator"), x = n.get(a + "__cancel"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var v = function() { +var t, e = i(5), n = e.root.$("livechat").$("settings").$("forms").$("card_form"), o = n.$("message$string"), r = n.$("form"), s = n.$("form_submitted"), a = n.$("profile_required$bool"), _ = e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string"); +!function() { +w.setDataNode(r); +b.setDataNode(r); +g.autobind(o, "value", function(t) { +$.setText(t || ""); +}); +g.autobind(a, "value", function(e) { +t = e; +b.setDisplay(e ? "" : "none"); +b.setDisabled(e); +}); +m.on("submit", function(t) { +t.preventDefault(); +if (m.validate(!0)) { +b.submit(); +w.submit(s, b); +_.update("chat_panel"); +} +}); +x.on("click", function() { +_.update("chat_panel"); +}); +}(); +}(); +for (var y in v) v.hasOwnProperty(y) && (g[y] = v[y]); +g.fire && g.fire("init"); +g.setStyle && g.setStyle(l); +g.setAttributes && g.setAttributes(u); +"function" == typeof g.addChildren ? g.addChildren(d) : n.addChildren(g, d); +if (g !== this) { +g.__jx__constructor = _; +g.__jx__native = !1; +} +return g; +} +var _; +t.prototype = s(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = {}; +a(t, "meshim_widget_components_chatWindow_CardForm"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_ViewStack = i(55); +e.__$$__meshim_widget_components_chatWindow_cookieForm_Accept = i(279); +e.__$$__meshim_widget_components_chatWindow_cookieForm_Decline = i(278); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_ViewStack, "vs", "", [ [ e.__$$__meshim_widget_components_chatWindow_cookieForm_Accept, "", "", [], {} ], [ e.__$$__meshim_widget_components_chatWindow_cookieForm_Decline, "", "", [], {} ] ], { +id: "vs" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:cookieForm": "meshim.widget.components.chatWindow.cookieForm", +titleBar: "hidePopout", +actionBar: "" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__vs"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +var t = i(5), e = t.root.$("livechat").$("profile").$("allow_cookies$bool"); +!function() { +h.autobind(e, "value", function(t) { +p.setIndex(!1 === t ? 0 : 1); +}); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = { +a: { +color: "inherit" +} +}; +s(t, "meshim_widget_components_chatWindow_CookieForm"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_Motif = i(281); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_Motif, "", "", [], { +"xmlns:widgets": "meshim.widget.widgets", +items: "hill, bubble b1, bubble b2, bubble b3, bubble b4, bubble b5" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +var e = h.dom.getElementsByClassName(t)[0]; +if (e) { +e.style.OTransform = "none"; +e.style.transform = "none"; +} +} +var e = i(8); +if (e.isOpera) { +t("b3"); +t("b4"); +t("b5"); +} +e.isIE8 && h.setDisplay("none"); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_Motif.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_Motif; +t.__jx__jcss = { +"**self": { +width: "100%", +height: "50px", +fontFamily: 'zopim, "Segoe UI Symbol", "Arial Unicode MS", "Lucida Sans Unicode", sans-serif', +"*display": "none" +}, +"*": { +position: "absolute" +}, +".hill": { +width: "95%", +height: "20px", +bottom: 0, +left: "2.5%", +borderTopLeftRadius: "50% 100%", +borderTopRightRadius: "50% 100%", +background: "$$chatMotifHill" +}, +".bubble": { +top: 0, +color: "$$chatMotifBubble", +"&:before": { +content: "'\\1f4ac'" +} +}, +".b1": { +fontSize: "24px", +top: "12px", +left: "10%", +opacity: .4 +}, +".b2": { +fontSize: "16px", +top: "16px", +left: "21%" +}, +".b3": { +fontSize: "16px", +top: "13px", +right: "33.5%", +opacity: .4 +}, +".b4": { +fontSize: "16px", +top: "14px", +right: "26%" +}, +".b5": { +fontSize: "35px", +top: 0, +right: "11%", +opacity: .2 +}, +".b3, .b4, .b5": { +transform: "scale(-1, 1)" +} +}; +s(t, "meshim_widget_widgets_motif_Chat"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_ViewStack = i(55); +e.__$$__meshim_widget_components_chatWindow_postChatForm_RatingForm = i(282); +e.__$$__meshim_widget_components_chatWindow_postChatForm_CommentsForm = i(280); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_ViewStack, "vs", "", [ [ e.__$$__meshim_widget_components_chatWindow_postChatForm_RatingForm, "", "", [], {} ], [ e.__$$__meshim_widget_components_chatWindow_postChatForm_CommentsForm, "", "", [], {} ] ], { +id: "vs" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:postChatForm": "meshim.widget.components.chatWindow.postChatForm", +titleBar: "hidePopout", +actionBar: "none" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__vs"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +var t, e = i(5), n = e.root.$("livechat").$("ui").$("chat_window").$("post_chat_form").$("stack_index$int"), o = e.root.$$("livechat.channel.rating$string"); +!function() { +h.autobind(n, "value", function(e) { +0 == e && t ? n.update(1) : 1 != e || t ? p.setIndex(e || 0) : n.update(0); +}); +h.autobind(o, "value", function(e) { +t = e; +}); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_chatWindow_PostChatForm"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_html_div = i(13); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(201), h = [ e.__$$__jx_ui_html_div, "", "", [ " {str_queue_position} " ], { +xmlns: "jx.ui.html" +} ], p = h[0].call(this, s, a, null, n.mangleIDs(a, h[3]), h[4]), f = p || this; +n.set(a, f); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t() { +var t = r.getValue(), e = !0; +if (t && t > 0) { +t > 99 && (t = 99); +f.setText(c.replace("", t)); +} else e = !1; +f[e ? "removeClass" : "addClass"]("hidden"); +} +var e = i(7), n = i(5), o = n.root.$("livechat"), r = o.$("channel").$("queue_position$int"); +o.$("ui").$("mobile$bool").getValue(); +!function() { +f.autobind(r, "value", t); +if (e && e.onLanguage) { +e.onLanguage(t); +f.onDestruction(function() { +e.unLanguage(t); +}); +} +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (f[m] = g[m]); +f.fire && f.fire("init"); +f.setStyle && f.setStyle(l); +f.setAttributes && f.setAttributes(u); +"function" == typeof f.addChildren ? f.addChildren(d) : n.addChildren(f, d); +if (f !== this) { +f.__jx__constructor = _; +f.__jx__native = !1; +} +return f; +} +var _; +t.prototype = s(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +fontSize: "$$fontSizeS", +color: "$$chatLogSystemMsgColor", +background: "$$chatLogSystemMsgBg", +borderWidth: "$$chatLogSystemMsgBorderWidth", +borderStyle: "$$chatLogSystemMsgBorderStyle", +borderColor: "$$chatLogSystemMsgBorderColor", +padding: "$$chatLogSystemMsgPadding", +textAlign: "center" +}, +"&.hidden": { +display: "none" +} +}; +a(t, "meshim_widget_components_chatWindow_chatPanel_QueueMessage"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:jx": "jx.controls" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +if ("fast_init" == n) { +if (!r) { +r = new _(h); +r.setDataNode(u); +h.autobind(d, "value", e); +h.fire("fast_log_appended"); +} +} else if ("registered" == o || "reattached" == o) { +if (r instanceof _) { +h.autounbind(d, "value", e); +r.destroy(); +} +r = !0; +if (!s) { +s = new _(h); +s.setDataNode(d); +h.fire("chat_log_appended"); +} +} +} +function e(t) { +if (t) { +var e; +for (var i in t) if (t.hasOwnProperty(i)) { +e = t[i]; +if (!e) continue; +if (e.unverified$bool && !e.nick$string) { +e.nick$string = "visitor:local"; +u.$(i).update(e); +} +} +} +} +var n, o, r, s, a = i(5), _ = i(147), l = a.root.$("livechat"), d = l.$("channel").$("log"), u = l.$("temp").$("prev_log"), c = a.root.$("connection"), p = c.$("message$string"), f = c.$("status$string"); +!function() { +h.autobind(p, "value", function(e) { +if (n != e) { +n = e; +t(); +} +}); +h.autobind(f, "value", function(e) { +if (o != e) { +o = e; +t(); +} +}); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_chatWindow_chatPanel_FastInitChatLog"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_span = i(31); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_span, "", "", [ [ e.__$$__jx_ui_html_span, "", "", [], { +class: "default_value", +container: "default_value" +} ], [ e.__$$__jx_ui_html_span, "", "", [], { +class: "selected_value", +container: "selected_value" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(10), e = i(5); +t.hoverFix(h); +!function() { +var t = e.root.$("livechat").$("ui").$("mobile$bool"); +h.autobind(t, "value", function(t) { +t || h.addClass("desktop"); +}); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_span.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_span; +t.__jx__jcss = { +"**self": { +width: "50%", +display: "inline-block", +".default_value": { +display: "inline" +}, +".selected_value": { +display: "none" +}, +"&.desktop.hover, &.desktop:hover, &.active": { +".default_value": { +display: "none" +}, +".selected_value": { +display: "inline" +} +} +} +}; +s(t, "meshim_widget_widgets_ratingBar_emoticon_Button"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_ButtonBar = i(294); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_ButtonBar, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +selectable: "false" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_ButtonBar.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_ButtonBar; +t.__jx__jcss = { +".option": { +cursor: "pointer", +display: "inline-block", +textAlign: "center", +"&:first-child": {}, +"&:last-child": {}, +"&.active": { +cursor: "default" +}, +"&:hover": {}, +"&.disabled": { +cursor: "default", +"&.active": { +cursor: "default" +}, +"&:hover": { +cursor: "default" +} +} +} +}; +s(t, "meshim_widget_widgets_ButtonBar"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_div = i(13); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_div, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:widget": "meshim.widget", +"xmlns:mui": "meshim.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +h.setText(o.get(n)); +} +function e(e) { +if (n !== e) { +n && h.autounbind(n, "value", t); +n = e; +n && h.autobind(n, "value", t); +} +} +var n, o = i(11); +h.setDataNode = e; +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +whiteSpace: "inherit", +overflow: "hidden", +textOverflow: "ellipsis", +fontWeight: "bold", +lineHeight: "1.2", +paddingBottom: "2px" +} +}; +s(t, "meshim_widget_widgets_profileCard_MemberName"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_div = i(13); +e.__$$__jx_ui_html_table = i(54); +e.__$$__jx_ui_html_tbody = i(53); +e.__$$__jx_ui_html_tr = i(52); +e.__$$__jx_ui_html_td = i(51); +e.__$$__meshim_widget_widgets_Gravatar = i(81); +e.__$$__meshim_widget_widgets_profileCard_MemberName = i(136); +e.__$$__meshim_widget_widgets_profileCard_TitleHolder = i(298); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__jx_ui_html_table, "", "", [ [ e.__$$__jx_ui_html_tbody, "", "", [ [ e.__$$__jx_ui_html_tr, "", "", [ [ e.__$$__jx_ui_html_td, "", "", [ [ e.__$$__meshim_widget_widgets_Gravatar, "gravatar", "", [], { +id: "gravatar", +addClass: "profile_avatar" +} ] ], { +class: "avatar_cell" +} ], [ e.__$$__jx_ui_html_td, "content_cell", "", [ [ e.__$$__meshim_widget_widgets_profileCard_MemberName, "name_holder", "", [], { +id: "name_holder", +addClass: "profile_name" +} ], [ e.__$$__meshim_widget_widgets_profileCard_TitleHolder, "title_holder", "", [], { +id: "title_holder", +addClass: "profile_title" +} ] ], { +pseudo: "content_cell", +id: "content_cell" +} ] ], {} ] ], {} ] ], { +class: "profile_table" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:widget": "meshim.widget" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__gravatar"), f = n.get(s + "__content_cell"), g = n.get(s + "__name_holder"), m = n.get(s + "__title_holder"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var $ = function() { +function t(t) { +p.setMemberNode(t); +if (t) { +n = t.$("display_name$string"); +g.setDataNode(n); +o = t.$("title$string"); +e(o); +} else { +g.setDataNode(null); +e(null); +} +} +function e(t) { +o = t; +m.setDataNode(o); +} +var n, o, r = i(5), s = r.root.$("livechat"), a = s.$("settings").$("theme").$("chat_window").$("profile_card").$("display_avatar$bool"), _ = s.$("settings").$("theme").$("chat_window").$("profile_card").$("display_title_name$bool"), l = s.$("ui").$("mobile$bool"); +!function() { +p.on("click", function() { +h.onGravatarClick && h.onGravatarClick(); +}); +f.on("click", function() { +h.onContentClick && h.onContentClick(); +}); +l.getValue() && h.addClass("mobile"); +h.autobind(a, "value", function(t) { +h[t ? "removeClass" : "addClass"]("no_avatar"); +}); +h.autobind(_, "value", function(t) { +h[t ? "removeClass" : "addClass"]("no_title_name"); +}); +h.setDataNode = t; +h.setTitleNode = e; +}(); +}(); +for (var b in $) $.hasOwnProperty(b) && (h[b] = $[b]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +width: "100%", +position: "relative", +".profile_table": { +width: "100%", +tableLayout: "fixed", +fontSize: "100%", +borderSpacing: "0px", +borderCollapse: "collapse", +td: { +padding: "0px" +} +}, +".profile_avatar": { +width: "32px", +height: "32px", +borderWidth: "$$profileCardAvatarBorderWidth", +borderStyle: "$$profileCardAvatarBorderStyle", +borderColor: "$$profileCardAvatarBorderColor", +borderRadius: "$$profileCardAvatarRadius", +boxShadow: "$$profileCardAvatarShadow" +}, +".profile_name": { +fontWeight: "bold", +color: "$$profileCardNameColor" +}, +".profile_title": { +color: "$$profileCardTitleColor" +}, +".profile_name, .profile_title": { +lineHeight: "1.2" +} +}, +"**self.no_avatar .profile_table": { +".avatar_cell": { +display: "none" +}, +".content_cell": { +paddingLeft: "0px" +} +}, +"**self.no_title_name .profile_table": { +".content_cell": { +visibility: "hidden" +} +}, +"**self.mobile": { +".profile_table": { +height: "100%" +} +} +}; +s(t, "meshim_widget_widgets_ProfileCard"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_ProfileCard = i(137); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_ProfileCard, "", "", [], { +xmlns: "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +e.call(h, t); +if (t && t !== _) { +var i = t.$("title$string"), n = new s(i, l); +h.setTitleNode(n); +} +} +var e, n = i(7), o = n(208), r = i(5), s = i(297), a = i(91), _ = r.root.$$("livechat.settings.concierge"), l = new a("title$string"); +l.update(o); +!function() { +e = h.setDataNode || function() {}; +h.setDataNode = t; +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_ProfileCard.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ProfileCard; +t.__jx__jcss = {}; +s(t, "meshim_widget_widgets_AgentProfileCard"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_div = i(13); +e.__$$__jx_ui_html_table = i(54); +e.__$$__jx_ui_html_tbody = i(53); +e.__$$__jx_ui_html_tr = i(52); +e.__$$__jx_ui_html_td = i(51); +e.__$$__jx_ui_ViewStack = i(171); +e.__$$__meshim_widget_widgets_AgentProfileCard = i(138); +e.__$$__meshim_widget_widgets_MultiProfilesCard = i(296); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__jx_ui_html_table, "", "", [ [ e.__$$__jx_ui_html_tbody, "", "", [ [ e.__$$__jx_ui_html_tr, "", "", [ [ e.__$$__jx_ui_html_td, "", "", [ [ e.__$$__jx_ui_ViewStack, "stack", "", [ [ e.__$$__meshim_widget_widgets_AgentProfileCard, "agent_card", "", [], { +id: "agent_card", +addClass: "card" +} ], [ e.__$$__meshim_widget_widgets_MultiProfilesCard, "multi_agents_card", "", [], { +id: "multi_agents_card", +addClass: "card cursor_pointer" +} ] ], { +id: "stack" +} ] ], { +pseudo: "served_by_cell" +} ], [ e.__$$__jx_ui_html_td, "rating_cell", "", [], { +pseudo: "rating_cell", +id: "rating_cell", +class: "display_none" +} ] ], {} ] ], {} ] ], { +class: "profile_table" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__stack"), f = n.get(s + "__agent_card"), g = n.get(s + "__multi_agents_card"), m = n.get(s + "__rating_cell"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var $ = function() { +function t() { +var t = v.getKeys().length; +if (t > 1) { +if (1 === p.getIndex()) return; +p.setIndex(1); +f.setDataNode(null); +g.setDataNode(v); +} else { +if (0 !== p.getIndex()) { +p.setIndex(0); +g.setDataNode(null); +} +var e; +if (1 === t) { +e = v.$(v.getKeys()[0]); +f.addClass("cursor_pointer"); +} else { +e = C; +f.removeClass("cursor_pointer"); +} +f.setDataNode(e); +} +} +function e() { +I.getValue() && _.resetUnreadCount(); +v.getKeys().length && k.update("agent_list"); +} +function n() { +var t = a(S.getValue()), e = a(y.getValue()), i = a(A.getValue()); +o(t && e && i); +} +function o(t) { +if (t) { +b || r(); +m.removeClass("display_none"); +} else m.addClass("display_none"); +} +function r() { +b = new $(m).setPseudo("rating_bar"); +b.setDataNode(j); +b.setSize("small"); +b.on("change", s); +} +function s(t) { +B && l.scrollToBottom(); +j && c.writeNode(j, t); +var e = { +good: "Good", +bad: "Bad" +}; +u.trackEvent("Chat_Rating_" + (e[t] || "Removed"), "chat_panel"); +} +var a = i(12), _ = i(33), l = i(62), d = i(5), u = i(50), c = i(10), $ = i(98), b = null, w = d.root.$("livechat"), x = w.$("channel"), v = w.$("agents"), y = x.$("served$bool"), j = x.$("rating$string"), C = w.$("settings").$("concierge"), S = w.$("settings").$("rating").$("enabled$bool"), A = w.$("settings").$("theme").$("chat_window").$("profile_card").$("display_rating$bool"), k = w.$("ui").$("chat_window").$("main_stack_name$string"), I = w.$("ui").$("popout$bool"), T = w.$("ui").$("mobile$bool").getValue(), B = w.$("ui").$("mobile_overlay$bool").getValue(); +!function() { +p.on("instantiate", function(t) { +var i = p.children[t]; +i.onGravatarClick = e; +i.onContentClick = e; +0 === t ? f = i : g = i; +}); +p.setIndex(0); +h.autobind(v, "keys", t); +h.autobind(S, "value", n); +h.autobind(y, "value", n); +h.autobind(A, "value", n); +T && h.addClass("mobile"); +}(); +}(); +for (var b in $) $.hasOwnProperty(b) && (h[b] = $[b]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +height: "100%", +".profile_table": { +width: "100%" +}, +".card": { +".avatar_cell": { +width: "50px", +verticalAlign: "bottom", +".profile_avatar": { +position: "absolute", +bottom: "0", +"width, height": "50px", +borderWidth: "$$chatPanelProfileCardAvatarBorderWidth", +borderStyle: "$$chatPanelProfileCardAvatarBorderStyle", +borderColor: "$$chatPanelProfileCardAvatarBorderColor", +borderRadius: "$$chatPanelProfileCardAvatarRadius", +boxShadow: "$$chatPanelProfileCardAvatarShadow" +} +}, +".content_cell": { +padding: "0 10px", +verticalAlign: "middle", +width: "100%", +height: "32px", +".profile_name, .profile_title": { +overflow: "hidden", +width: "100%", +whiteSpace: "nowrap" +} +} +}, +".rating_cell": { +width: "52px", +verticalAlign: "middle" +}, +".cursor_pointer": { +cursor: "pointer" +}, +".display_none": { +display: "none" +} +}, +"&.mobile": { +".card": { +".avatar_cell": { +width: "40px", +verticalAlign: "middle", +".profile_avatar": { +position: "relative", +"width, height": "40px" +} +}, +".content_cell": { +verticalAlign: "middle", +".profile_name": { +marginTop: "3px" +} +} +}, +".rating_cell": { +width: "88px" +} +} +}; +s(t, "meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_Toast = i(107); +e.__$$__jx_ui_html_div = i(13); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_Toast, "", "", [ [ e.__$$__jx_ui_html_div, "message", "", [], { +id: "message" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__message"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t() { +h.setDisplay("none"); +} +var e = i(8), n = i(14), o = i(16), r = i(5), s = i(66), a = i(18), _ = i(10), l = i(11), d = l.file_upload.error, u = s.prettySize(a.FILE_UPLOAD_MAX, { +base2: !0 +}), c = 3100, f = _.isStyleSupported("transition"); +e.isFF && (f = !1); +var g, m = r.root.$("livechat").$("ui").$("chat_window").$("chat_panel").$("file_toast").$("error$string"), $ = r.root.$("livechat").$("ui").$("popout$bool"); +!function() { +_.onTransitionEnd(h, h, t); +$ && n.window.on("click", t); +h.onDestruction(function() { +$ && n.window.un("click", t); +}); +h.autobind(m, "value", function(e) { +if (e) { +"size" == e ? p.setText(d[e].replace("", u)) : p.setText(d[e] || d.default); +g && window.clearTimeout(g); +f && h.removeClass("fade_out"); +h.setDisplay(""); +f && h.dom.offsetHeight; +f && o(function() { +h.addClass("fade_out"); +}); +g = window.setTimeout(t, c); +} else t(); +}); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_Toast.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_Toast; +t.__jx__jcss = { +"**self": { +position: "absolute", +zIndex: "1000", +top: "50%", +left: "50%", +width: "160px", +height: "auto", +marginTop: "-32px", +marginLeft: "-80px", +padding: "10px", +textAlign: "center", +fontWeight: "bold", +transition: "opacity 0.5s linear 2.5s", +opacity: 1, +"&": "$$fileToast", +"&.fade_out": { +opacity: 0 +} +} +}; +s(t, "meshim_widget_components_chatWindow_chatPanel_File"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_div = i(13); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_div, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +r && h.autounbind(r, "value", e); +s = t; +r = s.$("type$string"); +h.autobind(r, "value", e); +} +function e(t) { +if (t && !a) { +switch (t) { +case "chat.memberjoin": +a = new d(h); +break; + +case "chat.memberleave": +a = new d(h); +_ = new f(h); +_.setDataNode(s); +break; + +case "chat.changename": +a = new u(h); +break; + +case "chat.rating": +a = new c(h); +break; + +case "chat.comment": +a = new p(h); +} +n(); +} +} +function n() { +if (s) { +a && a.setDataNode(s); +_ && _.setDataNode(s); +} +} +function o() { +l.unLanguage && l.unLanguage(n); +} +var r, s, a, _, l = i(7), d = i(306), u = i(305), c = i(304), p = i(303), f = i(302); +!function() { +h.setDataNode = t; +h.onDestruction(o); +l.onLanguage && l.onLanguage(n); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +fontSize: "$$fontSizeS", +color: "$$chatLogSystemMsgColor", +background: "$$chatLogSystemMsgBg", +borderWidth: "$$chatLogSystemMsgBorderWidth", +borderStyle: "$$chatLogSystemMsgBorderStyle", +borderColor: "$$chatLogSystemMsgBorderColor", +padding: "$$chatLogSystemMsgPadding", +textAlign: "center" +} +}; +s(t, "meshim_widget_widgets_chatLogRenderer_SystemLogRenderer"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_Button = i(17); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__meshim_widget_widgets_Button, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:widgets": "meshim.widget.widgets", +addClass: "secondary chat_log_button" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__meshim_widget_widgets_Button.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_Button; +t.__jx__jcss = { +"**self.chat_log_button": { +width: "auto", +maxWidth: "100%", +padding: "6px" +} +}; +s(t, "meshim_widget_widgets_chatLogRenderer_Button"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_html_div = i(13); +e.__$$__meshim_widget_widgets_chatLogRenderer_Button = i(142); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(221), h = [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__meshim_widget_widgets_chatLogRenderer_Button, "rate_this_chat", "", [ c ], { +id: "rate_this_chat" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], p = h[0].call(this, s, a, null, n.mangleIDs(a, h[3]), h[4]), f = p || this; +n.set(a, f); +var g = n.get(a + "__rate_this_chat"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var m = function() { +function e() { +o.update("rating_panel"); +} +var n = i(5), o = n.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string"); +!function() { +t.last_instance && t.last_instance.destroy(); +t.last_instance = f; +f.autobind(g, "click", e); +}(); +}(); +for (var $ in m) m.hasOwnProperty($) && (f[$] = m[$]); +f.fire && f.fire("init"); +f.setStyle && f.setStyle(l); +f.setAttributes && f.setAttributes(u); +"function" == typeof f.addChildren ? f.addChildren(d) : n.addChildren(f, d); +if (f !== this) { +f.__jx__constructor = _; +f.__jx__native = !1; +} +return f; +} +var _; +t.prototype = s(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +"**self": { +marginTop: "5px", +marginBottom: "5px" +} +}; +a(t, "meshim_widget_widgets_chatLogRenderer_RatingPrompt"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble = i(310); +e.__$$__meshim_widget_widgets_chatLogRenderer_BasicRenderer = i(99); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble, "", "", [ [ e.__$$__meshim_widget_widgets_chatLogRenderer_BasicRenderer, "content", "", [], { +id: "content", +class: "content" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:logRenderer": "meshim.widget.widgets.chatLogRenderer", +addClass: "chat_bubble" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +var h = n.get(s + "__content"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +i || h.setDataNode(t); +i && c.autounbind(i, "value", e); +i = t.$("nick$string"); +c.autobind(i, "value", e); +} +function e(t) { +if (t) if (n.test(t)) { +c.setArrowPointing("left"); +c.setFloat("left"); +} else if (o.test(t)) { +c.setArrowPointing("right"); +c.setFloat("right"); +} +} +var i, n = /^agent/, o = /^visitor:/; +!function() { +c.setDataNode = t; +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (c[f] = p[f]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble; +t.__jx__jcss = { +"**self": { +maxWidth: "90%", +clear: "both", +padding: "5px 10px", +margin: "0px 5px", +borderRadius: "4px", +".arrow_border": {}, +".arrow_background": {}, +".arrow_border": { +top: "auto !important", +bottom: "5px", +marginTop: "0px", +borderWidth: "6px" +}, +".arrow_background": { +top: "auto !important", +bottom: "6px", +marginTop: "0px", +borderWidth: "5px" +}, +".content": { +marginTop: "0px" +} +} +}; +s(t, "meshim_widget_widgets_chatLogRenderer_ChatBubble"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(3), o = n.nativeGenerator("div"); +t.exports = o; +e(o, "div"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__div = i(145); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = [ e.__$$__div, "", "", [ [ e.__$$__div, "template", "", [ [ e.__$$__div, "", "", [], {} ] ], { +id: "template", +container: "default", +display: "none" +} ], [ e.__$$__div, "content", "", [], { +id: "content" +} ] ], {} ], h = c[0].call(this, s, a, null, n.mangleIDs(a, c[3]), c[4]), p = h || this; +n.set(a, p); +var f = n.get(a + "__template"), g = n.get(a + "__content"); +if (!t.__jx__jcss_generated) { +o.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +p.defaultPlacement = f; +var m = function() { +function t(t) { +S && p.autounbind(S, "keys", o); +S = t; +e(); +p.autobind(S, "keys", o); +} +function e() { +g.empty(); +I = {}; +N = []; +if (D) { +D = 0; +p.fire("jx:list:length", D); +} +} +function o(t, e) { +var i = t.length + e.length > 2; +i && p.removeChild(g); +var n, o, r, a, _ = D; +for (o = 0; o < t.length; o++) { +n = t[o]; +if (!(n in I)) { +var l = O(g), d = S.$(n); +I[n] = l; +D++; +C.applySetDataNode(l); +r = A ? w(n) : n; +a = y(r, l); +l.setAttribute("jx:list:rowID", n); +l.setDataNode(d); +s(a); +} +} +for (o = 0; o < e.length; o++) { +n = e[o]; +if (n in I) { +r = A ? w(n, !0) : n; +a = v(r); +delete T[r]; +I[n] === P && (P = null); +I[n].destroy(); +delete I[n]; +s(a); +D--; +} +} +i && p.appendChild(g); +_ != D && p.fire("jx:list:length", D); +t.length && p.fire("jx:list:added", t); +} +function s(t) { +if (!(t < 0) && N[t]) { +var e, i, n = N[t], o = I[n]; +if (o) { +if (N[t + 1]) { +o.setAttribute("jx:list:nextID", N[t + 1]); +e = I[N[t + 1]]; +e.setAttribute("jx:list:prevID", n); +o.fire("update.neighbour", { +next: N[t + 1] +}); +e.fire("update.neighbour", { +prev: n +}); +} else { +o.removeAttribute("jx:list:nextID"); +o.fire("update.neighbour", { +next: null +}); +} +if (N[t - 1]) { +o.setAttribute("jx:list:prevID", N[t - 1]); +i = I[N[t - 1]]; +i.setAttribute("jx:list:nextID", n); +o.fire("update.neighbour", { +prev: N[t - 1] +}); +i.fire("update.neighbour", { +next: n +}); +} else { +o.removeAttribute("jx:list:prevID"); +o.fire("update.neighbour", { +prev: null +}); +} +} +} +} +function a(t) { +for (;t.parentNode && t != p; ) { +var e = t.getAttribute("jx:list:nextID"); +if (e) return e; +t = t.parentNode; +} +} +function _(t) { +for (;t.parentNode && t != p; ) { +var e = t.getAttribute("jx:list:prevID"); +if (e) return e; +t = t.parentNode; +} +} +function l(t) { +for (;t.parentNode && t != p; ) { +var e = t.getAttribute("jx:list:rowID"); +if (e) return e; +t = t.parentNode; +} +} +function d() { +var t, e, i = []; +for (t in I) if (I.hasOwnProperty(t)) { +e = I[t].getAttribute("jx:list:rowID"); +e && i.push(e); +} +return i; +} +function u(t) { +var e = I[t]; +if (e) return e.jx_wrapper || e; +} +function c(t) { +h(t.target); +} +function h(t) { +var e, i; +if (r(t)) { +i = t; +e = I[i]; +} else if ("number" == typeof t) { +e = g.childNodes[t]; +e && (i = e.getAttribute("jx:list:rowID")); +} else { +e = t; +for (;e.parentNode && e != g; ) { +i = e.getAttribute("jx:list:rowID"); +if (i) { +e.jx_wrapper && (e = e.jx_wrapper); +break; +} +e = e.parentNode; +} +} +if (e && e != P) { +m(); +P = e.jx_wrapper || e; +P.addClass("active"); +P.fire("jx:list:selected"); +p.fire("jx:list:select", i); +} +} +function m() { +P && P.removeClass("active"); +P && P.fire("jx:list:deselected"); +P = null; +} +function $(t, e) { +if (A != t || k != e) { +k = e; +A = t; +if (A) { +if (!E) { +p.autobind(S, "value", x); +E = !0; +} +} else { +if (E) { +p.autounbind(S, "value", x); +E = !1; +} +k = !1; +} +T = {}; +B = {}; +D > 1 && b(); +} +} +function b() { +var t, e, i; +g.innerHTML = ""; +N = []; +for (e in I) if (I.hasOwnProperty(e)) { +t = A ? w(e) : e; +i = y(t, I[e]); +B[e] = t; +T[t] = e; +s(i); +} +} +function w(t, e) { +return e ? B[t] : (S.$(t).getValue(A) + "\0" + t).replace(/ /g, "").toLowerCase(); +} +function x(t) { +if (A) { +var e, i, n, o, r, a; +for (n in t) if (t.hasOwnProperty(n)) { +i = t[n]; +if (B[n] && i && i[A]) { +e = I[n]; +g.removeChild(e); +r = B[n]; +o = w(n); +delete T[r]; +a = v(r); +s(a); +T[o] = n; +B[n] = o; +a = y(o, e, i[A]); +s(a); +} +} +} +} +function v(t) { +var e = j(N, t); +if (e < 0) { +console.log("Could not find " + t + " in List"); +return e; +} +N.splice(e, 1); +return e; +} +function y(t, e) { +var i = (-j(N, t) >> 0) - 1; +i < 0 && "undefined" != typeof console && "log" in console && console.log(t + " is already in List"); +N.splice(i, 0, t); +k && (i = N.length - i - 1); +g.insertBefore(e.dom || e, g.childNodes[i] || null); +return i; +} +function j(t, e) { +for (var i, n, o = t.length, r = 0, s = o - 1; r <= s; ) { +i = (r + s) / 2 >> 0; +n = t[i]; +if (n < e) r = i + 1; else { +if (!(n > e)) return i; +s = i - 1; +} +} +return -(r + 1); +} +var C = i(325); +p.setDataNode = t; +p.setRenderer = function(t) { +O = t; +}; +p.getID = l; +p.getNextID = a; +p.getPrevID = _; +p.getRowIDs = d; +p.getByID = u; +p.clearList = e; +p.select = h; +p.deselect = m; +p.setSort = $; +var S, A, k, I = {}, T = {}, B = {}, N = [], D = 0, E = !1, O = function(t) { +if (f.lastChild.__jx__native) { +var e = f.lastChild.cloneNode(!0); +n.extend(e, !0); +return e; +} +return f.lastChild.__jx__constructor(t); +}, P = null; +g.on("click", c); +}(); +for (var $ in m) m.hasOwnProperty($) && (p[$] = m[$]); +p.fire && p.fire("init"); +p.setStyle && p.setStyle(l); +p.setAttributes && p.setAttributes(u); +"function" == typeof p.addChildren ? p.addChildren(d) : n.addChildren(p, d); +if (p !== this) { +p.__jx__constructor = _; +p.__jx__native = !1; +} +return p; +} +var _; +t.prototype = s(e.__$$__div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__div; +t.__jx__jcss = {}; +a(t, "jx_controls_List"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(21), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_controls_List = i(146); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_controls_List, "list", "", [], { +id: "list" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:jx": "jx.controls", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:renderer": "meshim.widget.widgets.chatLogRenderer" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__list"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +var t, e, n, o = i(5), r = i(324), s = o.root.$("livechat"), a = s.$("settings").$("theme").$("chat_window").$("size$string"), _ = s.$("settings").$("theme").$("message_type$string"); +h.setDataNode = function(e) { +if (e) { +t = e; +p.setDataNode(t); +} +}; +!function() { +h.autobind(a, "value", function(t) { +e && h.removeClass("chat_log_" + e); +e = t; +e && h.addClass("chat_log_" + e); +}); +h.autobind(_, "value", function(e) { +if (e && n != e) { +n = e; +h.setDataNode(t); +} +}); +p.setRenderer(r); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative" +}, +".visitor .chat_bubble": { +background: "$$chatLogVisitorBubbleBg", +borderWidth: "$$chatLogVisitorBubbleBorderWidth", +borderStyle: "$$chatLogVisitorBubbleBorderStyle", +borderColor: "$$chatLogVisitorBubbleBorderColor", +".arrow_border": { +borderColor: "$$chatLogVisitorBubbleBorderColor" +}, +".arrow_background": { +borderColor: "$$chatLogVisitorBubbleBg" +}, +".image_file_border": { +borderColor: "$$chatLogVisitorBubbleBorderColor" +}, +".generic_file_border": { +borderColor: "$$chatLogVisitorBubbleBorderColor" +} +}, +".agent .chat_bubble": { +background: "$$chatLogAgentBubbleBg", +borderWidth: "$$chatLogAgentBubbleBorderWidth", +borderStyle: "$$chatLogAgentBubbleBorderStyle", +borderColor: "$$chatLogAgentBubbleBorderColor", +".arrow_border": { +borderColor: "$$chatLogAgentBubbleBorderColor" +}, +".arrow_background": { +borderColor: "$$chatLogAgentBubbleBg" +}, +".image_file_border": { +borderColor: "$$chatLogAgentBubbleBorderColor" +}, +".generic_file_border": { +borderColor: "$$chatLogAgentBubbleBorderColor" +} +}, +".log_avatar": { +borderWidth: "$$chatLogAvatarBorderWidth", +borderStyle: "$$chatLogAvatarBorderStyle", +borderColor: "$$chatLogAvatarBorderColor", +borderRadius: "$$chatLogAvatarRadius", +boxShadow: "$$chatLogAvatarShadow" +}, +".group_head, .card, .group_children.bubble_avatar, .group_children.bubble": { +marginTop: "$$margin" +}, +a: { +color: "inherit" +}, +".card": { +"marginLeft, marginRight": "auto" +}, +"&.chat_log_small": { +".card": {} +}, +"&.chat_log_medium": { +".card": { +maxWidth: "220px" +} +}, +"&.chat_log_large": { +".card": { +maxWidth: "260px" +} +} +}; +s(t, "meshim_widget_components_chatWindow_chatPanel_ChatLog"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +for (var e, i, n = o.search.url, l = 0, d = []; null !== (i = n.exec(t)); ) { +var u = i[0].trim(), c = i[2], h = n.lastIndex - u.length; +if (o.tld.test(c)) { +h > l && d.push(t.substring(l, h)); +e = r.parseURL("//" + u).hostname === a ? _ : "http://"; +d.push({ +jxmlConstructor: s, +attributes: { +href: e + u +}, +children: [ u ] +}); +l = n.lastIndex; +} +} +l < t.length && d.push(t.substring(l)); +return d; +} +var o = i(59), r = i(331), s = i(149), a = window.location.hostname, _ = window.location.protocol + "//"; +t.exports = n; +e(n, "meshim_common_stringParser_URLWithoutProtocolParser"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_a = i(44); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_a, "", "", [], { +xmlns: "jx.ui.html" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +t && t.preventDefault(); +var e, i; +e = h.getAttribute("href"); +if (e) { +i = window.open(); +i.opener = null; +i.location.href = e; +} +} +var e = i(8); +!function() { +h.setAttribute("rel", "noreferrer"); +h.setAttribute("target", "_blank"); +e.isIE && h.on("click", t); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_a.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_a; +t.__jx__jcss = {}; +s(t, "meshim_common_stringParser_SafeAnchor"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +for (var e, i = o.search.hurl, n = 0, s = []; null !== (e = i.exec(t)); ) { +var a = e[0].trim(), _ = i.lastIndex - a.length; +_ > n && s.push(t.substring(n, _)); +s.push({ +jxmlConstructor: r, +attributes: { +href: a +}, +children: [ a ] +}); +n = i.lastIndex; +} +n < t.length && s.push(t.substring(n)); +return s; +} +var o = i(59), r = i(149); +t.exports = n; +e(n, "meshim_common_stringParser_URLWithProtocolParser"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +for (var e, i = /\r?\n/g, n = 0, o = []; null !== (e = i.exec(t)); ) { +var r = e[0], s = i.lastIndex - r.length; +s > n && o.push(t.substring(n, s)); +o.push({ +tagName: "br" +}); +n = i.lastIndex; +} +n < t.length && o.push(t.substring(n)); +return o; +} +t.exports = i; +e(i, "meshim_common_stringParser_BRParser"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i) { +var n = o(e, i); +t.addChildren(n); +} +function o(t, e) { +t += ""; +a(e) || (e = [ e ]); +var i, n, o = [], _ = [ t ]; +for (i = 0, n = e.length; i < n; i++) _ = s(_, e[i]); +for (i = 0, n = _.length; i < n; i++) o[i] = r(_[i]); +return o; +} +function r(t) { +if ("string" == typeof t) return t; +var e, i = t.children, n = []; +e = l.extend({}, t.attributes, t.tagName ? { +tagName: t.tagName +} : null); +if (i) for (var o = 0, s = i.length; o < s; o++) n[o] = r(i[o]); else n = null; +return [ t.jxmlConstructor || _, null, null, n, e ]; +} +function s(t, e) { +var i = []; +t = t.slice(); +for (var n = 0; n < t.length; n++) { +var o, r = t[n]; +if ("string" == typeof r) { +o = e(r); +a(o) ? i = i.concat(o) : i.push(o); +} else { +r.children && (r.children = s(r.children, e)); +i.push(r); +} +} +return i; +} +var a = i(22), _ = i(6), l = i(65), d = { +appendTo: n, +toJXMLElements: o, +parseChildrenText: s +}; +t.exports = d; +e(d, "meshim_common_StringParser"); +return d; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName || (s.tagName = "textarea"); +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(83); +n.prototype = o(r.prototype); +n.prototype.setCols = function(t) { +this.dom.cols = t; +return this; +}; +n.prototype.getCols = function() { +return this.dom.cols; +}; +n.prototype.setRows = function(t) { +this.dom.rows = t; +return this; +}; +n.prototype.getRows = function() { +return this.dom.rows; +}; +n.prototype.setResize = function(t) { +"resize" in this.style && (this.style.resize = t); +}; +n.prototype.getInitialValue = function() { +return this._initialValue; +}; +n.prototype.setInitialValue = function(t) { +this._initialValue = t && (t.toString ? t.toString() : t); +return this; +}; +t.exports = n; +e(n, "jx_ui_TextArea"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, r) { +if (!(this instanceof n)) return new n(t, e, i, o, r); +r || (r = {}); +r.tagName || (r.tagName = "option"); +s.call(this, t, e, i, o, r); +} +var o = i(1), r = i(12), s = i(43); +n.prototype = o(s.prototype); +n.prototype.getLabel = function() { +return this.dom.label; +}; +n.prototype.setLabel = function(t) { +this.dom.label = t; +return this; +}; +n.prototype.getSelected = function() { +return this.dom.defaultSelected; +}; +n.prototype.setSelected = function(t) { +this.dom.defaultSelected = r(t); +return this; +}; +n.prototype.getPlaceholder = function() { +return this.placeholder; +}; +n.prototype.setPlaceholder = function(t) { +this.placeholder = t; +return this; +}; +t.exports = n; +e(n, "jx_ui_Option"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, s) { +if (!(this instanceof n)) return new n(t, e, i, r, s); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +s || (s = {}); +s.tagName || (s.tagName = "select"); +a.call(this, t, e, i, r, s); +if (this.container) { +this.container.addClass(this.__jx__fqname); +this.iconFont = new l(this.container, null, null, null, { +addClass: "select_icon", +icon: "arrow_down" +}); +this.container.insertBefore(this.iconFont, this.container.getFirstChild()); +d.mobile(this.container); +d.rtl(this.container); +} +_.__constructor.call(this); +} +var o = i(2), r = i(1), s = i(12), a = i(333), _ = i(64), l = i(15), d = i(9); +n.__jx__jcss = { +"&.mobile.invalid, &.rtl.mobile.invalid": { +"paddingRight, paddingLeft": "$$inputPadding" +}, +".select_placeholder": { +overflow: "hidden", +whiteSpace: "nowrap", +textOverflow: "ellipsis" +}, +".select_icon": { +float: "right", +marginTop: "3px" +}, +"&.rtl .select_icon": { +float: "left" +}, +"&.mobile": { +".select_placeholder": { +lineHeight: "26px" +}, +".select_icon": { +marginTop: "8px" +} +} +}; +n.prototype = r(a.prototype); +n.prototype.__jx__super = _; +n.prototype.setValidity = function(t) { +if (this.container) { +t = s(t); +this.container[t ? "removeClass" : "addClass"]("invalid"); +} +return a.prototype.setValidity.apply(this, arguments); +}; +t.exports = n; +e(n, "meshim_widget_widgets_Select"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, a) { +if (!(this instanceof n)) return new n(t, e, i, r, a); +if (!n.__jx__jcss_generated) { +s.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +a || (a = {}); +a.prompt = a.prompt || String.fromCharCode(160); +c.call(this, t, e, i, r, a); +this.inputSuffix = "select"; +this.departments_label_path = "livechat.settings.forms.pre_chat_form.form.2.label$string"; +this.default_departments_label = h.descendsObj(u, this.departments_label_path); +this.$departments = d.root.$("livechat").$("departments"); +this.$departments_ui = d.root.$("livechat").$("ui").$("departments").$("options"); +this.$profile_department_id = d.root.$("livechat").$("profile").$("department_id$int"); +this.$departments_label = d.root.$$(this.departments_label_path); +this.$filter_enabled = d.root.$("livechat").$("ui").$("departments").$("filter_enabled$bool"); +this.$hide_when_offline = d.root.$("livechat").$("settings").$("chat_button").$("hide_when_offline$bool"); +this.prev_value = null; +this.avail_departments = {}; +var _ = this; +this.autobind(this.$departments, "value", function() { +_.setOptions(); +}); +this.autobind(this.$departments_ui, "value", function() { +_.setOptions(); +}); +this.autobind(this.$filter_enabled, "value", function() { +_.setOptions(); +}); +this.autobind(this.$hide_when_offline, "value", function() { +_.setOptions(); +}); +this.autobind(this.$profile_department_id, "value", function(t) { +o.call(_, t); +}); +this.autobind(this.$departments_label, "value", function() { +_.updateBlankOption(); +}); +this.onDestruction(function() { +if (_.blank_option) { +_.blank_option.destroy(); +_.blank_option = null; +} +}); +this.on("change", function() { +this.userSelected = !0; +}); +this.reset(); +} +function o(t) { +this.profile_department = t; +this.updateSelectedDepartment(); +} +function r(t) { +function e(t, e) { +return t.name$string < e.name$string ? -1 : t.name$string > e.name$string ? 1 : 0; +} +var i = [], n = []; +for (var o in t) t.hasOwnProperty(o) && t.hasOwnProperty(o) && ("offline" == t[o].status$string ? n.push({ +id$int: o, +name$string: t[o].name$string, +status$string: "offline" +}) : i.push({ +id$int: o, +name$string: t[o].name$string, +status$string: "online" +})); +i.sort(e); +n.sort(e); +return i.concat(n); +} +var s = i(2), a = i(1), _ = i(12), l = i(7), d = i(5), u = i(90), c = i(155), h = i(10), p = i(11), f = i(154); +n.__jx__jcss = {}; +n.prototype = a(c.prototype); +n.prototype.__jx__super = c; +n.prototype.validate = function() { +if (this.isBlank) { +this.setValidity(!0); +return !0; +} +return c.prototype.validate.call(this); +}; +n.prototype.reset = function() { +var t = this.$profile_department_id.getValue(); +t && this.avail_departments[t] ? this.setValue(t) : this.setSelectedIndex(0); +this.userSelected = !1; +}; +n.prototype.setHide = function(t) { +this.isHide = _(t); +this.setOptions(); +}; +n.prototype.setDisableWhenOffline = function(t) { +this.overrideDisable = !_(t); +this.setOptions(); +}; +n.prototype.isHidden = function() { +return this.isBlank || this.isHide; +}; +n.prototype.setRequired = function() { +var t = c.prototype.setRequired.apply(this, arguments); +this.updateBlankOption(); +return t; +}; +n.prototype.updateBlankOption = function() { +if (this.blank_option) if (this.getRequired()) this.children[0] == this.blank_option && this.removeChild(this.blank_option); else { +this.blank_option.setText(p.get(this.$departments_label) == this.default_departments_label ? p.pre_chat_offline_form.department_any : "—"); +this.children[0] !== this.blank_option && this.insertBefore(this.blank_option, this.children[0]); +} +}; +n.prototype.setOptions = function() { +if (this.$departments) { +var t = this.$departments.getValue(), e = this.$departments_ui.getValue(), i = this.$filter_enabled.getValue(), n = this.$hide_when_offline.getValue(), o = {}, s = ""; +if (t) if (null !== this.prev_value) { +s = this.prev_value; +this.prev_value = null; +} else s = this.getValue(); else this.prev_value = this.getValue(); +this.isBlank = !0; +for (var a in t) if (t.hasOwnProperty(a)) { +if (i && !(e && e[a] && e[a].display$bool)) continue; +if (t[a]) { +this.isBlank = !1; +o[a] = t[a]; +} +} +if (this.isBlank || this.isHide) (this.container || this).parentNode.setDisplay("none"); else { +(this.container || this).parentNode.setDisplay(""); +this.empty(); +var _, d = this.getName(); +this.blank_option = _ = new f(this, null, null, null, { +name: "", +value: "", +className: "input_input_" + this.inputSuffix +}); +(_.container || _).addClass("input"); +this.avail_departments = o; +o = r(o); +for (var u = 0, c = o.length; u < c; u++) { +var h = "online" == o[u].status$string; +_ = new f(this, null, null, [ o[u].name$string + (h ? "" : " (" + l(203) + ")") ], { +name: d, +value: o[u].id$int, +disabled: !this.overrideDisable && n && !h, +className: "input_input_" + this.inputSuffix +}); +(_.container || _).addClass("input"); +s != _.getValue() || _.getDisabled() || this.setValue(s); +} +this.updateBlankOption(); +this.updateSelectedDepartment(); +} +} +}; +n.prototype.updateSelectedDepartment = function() { +var t = this.profile_department; +t && parseInt(this.getValue(), 10) !== t && (this.userSelected || this.avail_departments[t] && this.setValue(t)); +}; +t.exports = n; +e(n, "meshim_widget_widgets_form_DepartmentSelect"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, r) { +if (!(this instanceof n)) return new n(t, e, i, o, r); +r || (r = {}); +r.tagName = "div"; +this.options = []; +this.labels = []; +a.call(this, t, e, i, o, r); +this.on("click", function() { +this.validate(); +}); +} +var o = i(1), r = i(12), s = i(19), a = i(43); +n.prototype = o(a.prototype); +n.prototype.getRequired = function() { +return this.required; +}; +n.prototype.setRequired = function(t) { +this.required = r(t); +return this; +}; +n.prototype.setReadOnly = function(t) { +this.readOnly = r(t); +return a.prototype.setReadOnly.call(this, t); +}; +n.prototype.setOptions = function(t, e) { +this.empty(); +this.options.length = this.labels.length = 0; +var i, n, o = this.getName(); +for (var r in t) if (t.hasOwnProperty(r)) { +i = new this.optionConstructor(this, null, null, null, { +name: o, +value: t[r].value$string, +checked: t[r].checked$bool, +initialChecked: t[r].checked$bool, +disabled: this.readOnly, +display: this.readOnly && !t[r].checked$bool ? "none" : "", +className: "input_input_" + this.inputSuffix +}); +(i.container || i).addClass("input"); +n = new s(this, null, null, [ t[r].label$string || t[r].value$string ], { +className: "option_label", +display: this.readOnly && !t[r].checked$bool ? "none" : "" +}); +e && i.setChecked(t[r].checked_user$bool); +i.setLabelElement(n); +this.options.push(i); +this.labels.push(n); +} +return this; +}; +n.prototype.getOptions = function(t) { +for (var e = {}, i = t ? "checked_user$bool" : "checked$bool", n = 0, o = this.options.length; n < o; n++) { +e[n] = {}; +e[n][i] = this.options[n].getChecked(); +} +return e; +}; +n.prototype.focus = function() { +this.options[0] && this.options[0].focus(); +return this; +}; +n.prototype.validate = function(t) { +if (this.required) { +for (var e = 0, i = this.options.length; e < i; e++) if (this.options[e].getChecked()) { +this.hideErrorMessage(); +return !0; +} +t && this.options[0] && this.options[0].focus(); +this.showErrorMessage(); +return !1; +} +this.hideErrorMessage(); +return !0; +}; +n.prototype.reset = function() { +for (var t = 0, e = this.options.length; t < e; t++) this.options[t].reset(); +}; +t.exports = n; +e(n, "meshim_widget_widgets_form_InputMultiple"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_Button = i(17); +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__meshim_widget_widgets_Button, "", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "i", "", [], { +id: "i", +addClass: "auth_icon_font" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +var h = n.get(s + "__i"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +c.setIcon = function() { +h.setIcon.apply(h, arguments); +}; +}(); +for (var f in p) p.hasOwnProperty(f) && (c[f] = p[f]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__meshim_widget_widgets_Button.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_Button; +t.__jx__jcss = { +"**self": { +overflow: "hidden", +paddingTop: "10px", +paddingBottom: "6px", +background: "$$authButtonBg", +borderColor: "$$authButtonBorderColor", +boxShadow: "$$authButtonShadow", +"&.facebook": { +color: "$$facebook" +}, +"&.twitter": { +color: "$$twitter" +}, +"&.google": { +color: "$$google" +} +}, +"&:hover, &:focus, &:active": { +".auth_icon_font": { +color: "#FFFFFF" +}, +"&.facebook": { +background: "$$facebook" +}, +"&.twitter": { +background: "$$twitter" +}, +"&.google": { +background: "$$google" +} +}, +"&.float": { +width: "30%", +margin: "0 3% 0 0" +}, +"&.mobile": { +".auth_icon_font": { +textAlign: "center", +fontSize: "22px" +} +} +}; +s(t, "meshim_widget_widgets_iconFont_AuthButton"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__meshim_widget_widgets_IconFont, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var h = void 0; +for (var p in h) h.hasOwnProperty(p) && (c[p] = h[p]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__meshim_widget_widgets_IconFont.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_IconFont; +t.__jx__jcss = { +"&.facebook": { +color: "$$facebook" +}, +"&.twitter": { +color: "$$twitter" +}, +"&.google": { +color: "$$google" +}, +"&:hover, &:focus, &:active": { +"&.facebook": { +color: "$$facebookActive" +}, +"&.twitter": { +color: "$$twitterActive" +}, +"&.google": { +color: "$$googleActive" +} +} +}; +s(t, "meshim_widget_widgets_iconFont_Auth"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, _) { +if (!(this instanceof n)) return new n(t, e, i, r, _); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +_ || (_ = {}); +_.pattern || (_.pattern = "(^$|[0-9]+)"); +_.type || (_.type = "tel"); +s.call(this, t, e, i, r, _); +a.__constructor.call(this); +} +var o = i(2), r = i(1), s = i(83), a = i(64); +n.__jx__jcss = {}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = a; +t.exports = n; +e(n, "meshim_widget_widgets_PhoneField"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Button = i(71); +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Button, "", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "i", "", [], { +id: "i" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__i"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +i(9).mobile(h); +var t; +h.setIcon = function(e) { +t && p.removeClass(t); +t = e; +t && p.addClass(t); +return p.setIcon.apply(p, arguments); +}; +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Button.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Button; +t.__jx__jcss = { +"**self": { +background: "transparent", +border: "none", +color: "inherit", +".icon_font": { +display: "inline", +lineHeight: "inherit", +verticalAlign: "middle", +fontSize: "$$fontSizeL" +} +}, +"&.mobile": { +".icon_font": { +position: "relative", +fontSize: "$$fontSizeXXL" +} +} +}; +s(t, "meshim_widget_widgets_iconFont_Button"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, r, _) { +if (!(this instanceof n)) return new n(t, e, i, r, _); +if (!n.__jx__jcss_generated) { +o.generate(this, n.prototype.__jx__fqname, n.__jx__jcss, null, n); +n.__jx__jcss_generated = !0; +} +_ || (_ = {}); +_.tagName || (_.tagName = "div"); +s.call(this, t, e, i, r, _); +a.__constructor.call(this); +} +var o = i(2), r = i(1), s = i(6), a = i(64); +n.__jx__jcss = {}; +n.prototype = r(s.prototype); +n.prototype.__jx__super = a; +t.exports = n; +e(n, "meshim_widget_widgets_FakeInput"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast = i(82); +e.__$$__meshim_widget_widgets_ViewStack = i(55); +e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_Form = i(345); +e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_PostSubmit = i(330); +e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_OperatingHours = i(329); +e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_HistoryPanel = i(326); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast, "disconnected_toast", "", [], { +id: "disconnected_toast", +addClass: "disconnected_toast hide" +} ], [ e.__$$__meshim_widget_widgets_ViewStack, "vs", "", [ [ e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_Form, "", "", [], { +name: "form" +} ], [ e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_PostSubmit, "", "", [], { +name: "post_submit" +} ], [ e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_OperatingHours, "", "", [], { +name: "operating_hours" +} ], [ e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_HistoryPanel, "", "", [], { +name: "history_panel" +} ] ], { +id: "vs" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:preChatOfflineForm": "meshim.widget.components.chatWindow.preChatOfflineForm", +titleBar: "hidePopout", +actionBar: "" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__disconnected_toast"), f = n.get(s + "__vs"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t(t) { +t && p.removeClass("hide"); +} +var e = i(5), n = i(9), o = e.root, r = o.$("livechat").$("ui").$("chat_window").$("pre_chat_offline_form"), s = o.$("connection").$("reattached_timestamp$int"), a = r.$("stack_index$int"), _ = 8e3; +!function() { +n.mobile(h); +h.autobind(a, "value", function(t) { +f.setIndex(t || 0); +r.write({ +name$string: f.getName() +}); +}); +h.autobind(s, "value", t); +setTimeout(function() { +t(!0); +}, _); +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (h[m] = g[m]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = { +".disconnected_toast.hide": { +display: "none" +} +}; +s(t, "meshim_widget_components_chatWindow_PreChatOfflineForm"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +var t = r.getVariable(n); +h.setStyle("padding-top", n && t || ""); +} +function e() { +var t = r.getVariable(o); +h.setStyle("padding-bottom", o && t || ""); +} +var n, o, r = i(2), s = i(5), a = s.root.$("livechat").$("ui").$("theme_loaded$bool"); +h.setAbsPaddingTop = function(e) { +n = e; +t(); +}; +h.setAbsPaddingBottom = function(t) { +o = t; +e(); +}; +!function() { +h.autobind(a, "value", function(i) { +if (i) { +t(); +e(); +} +}); +h.updatePaddingTop = t; +h.updatePaddingBottom = e; +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative", +"*overflow": "visible", +width: "100%", +height: "100%" +} +}; +s(t, "meshim_widget_widgets_AbsolutePaddingContainer"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_html_div = i(13); +e.__$$__jx_ui_Localizer = i(85); +e.__$$__jx_ui_html_a = i(44); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(202), h = [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__jx_ui_Localizer, "localizer", "", [ [ e.__$$__jx_ui_html_a, "", "", [], { +class: "cookie_link" +} ] ], { +id: "localizer", +content: c +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], p = h[0].call(this, s, a, null, n.mangleIDs(a, h[3]), h[4]), f = p || this; +n.set(a, f); +var g = n.get(a + "__localizer"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var m = function() { +var t = i(5), e = t.root.$$("livechat.ui.chat_window"); +!function() { +g.on("click", function(t) { +t.target.jx_wrapper.hasClass("cookie_link") && e.update({ +main_stack_name$string: "cookie_form" +}); +}); +}(); +}(); +for (var $ in m) m.hasOwnProperty($) && (f[$] = m[$]); +f.fire && f.fire("init"); +f.setStyle && f.setStyle(l); +f.setAttributes && f.setAttributes(u); +"function" == typeof f.addChildren ? f.addChildren(d) : n.addChildren(f, d); +if (f !== this) { +f.__jx__constructor = _; +f.__jx__native = !1; +} +return f; +} +var _; +t.prototype = s(e.__$$__jx_ui_html_div.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_div; +t.__jx__jcss = { +".cookie_link": { +textDecoration: "underline", +cursor: "pointer" +} +}; +a(t, "meshim_widget_widgets_CookieLawNotice"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_ui_Label = i(19); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Label, "", "", [], { +text: "≡" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +t ? h.addClass("isActive") : h.removeClass("isActive"); +} +function e(t) { +t.stopPropagation(); +o.update("settings_menu" === o.getValue() ? "" : "settings_menu"); +} +var n = i(5), o = n.root.$("livechat").$("ui").$("chat_window").$("menu_stack_name$string"); +!function() { +h.autobind(o, "value", t); +h.on("click", e); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +"width, height": "$$titleBarHeight", +lineHeight: "$$titleBarHeight", +textAlign: "center", +color: "$$actionBarColor", +fontSize: "30px", +"&.isActive": { +backgroundColor: "$$actionBarBg" +} +} +}; +s(t, "meshim_widget_widgets_MobileOptionsMenuIcon"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_BorderOverlay = i(86); +e.__$$__meshim_widget_widgets_Branding = i(87); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_BorderOverlay, "", "", [], {} ], [ e.__$$__jx_ui_Widget, "$$defaultplacement$$", "", [], { +addClass: "actions", +container: "default", +id: "$$defaultplacement$$" +} ], [ e.__$$__meshim_widget_widgets_Branding, "", "", [], { +addClass: "branding", +hideOnMobile: "true" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +class: "action_bar", +selectable: "false" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__$$defaultplacement$$"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +h.defaultPlacement = p; +var f = function() { +var t = i(9); +!function() { +t.mobile(h); +t.rtl(h); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +"bottom, left": 0, +overflow: "hidden", +zIndex: 10, +width: "$$actionBarWidth", +height: "$$actionBarHeight", +color: "$$actionBarColor", +background: "$$actionBarBg", +"paddingLeft, paddingRight": "$$actionBarPadding" +}, +".border_overlay": { +borderWidth: "$$actionBarBorderWidth", +borderStyle: "$$actionBarBorderStyle", +borderColor: "$$actionBarBorderColor" +}, +".actions": { +float: "left" +}, +".branding": { +position: "relative", +float: "right", +color: "$$actionBarColor", +lineHeight: "$$actionBarHeight", +".meshim_widget_widgets_IconFont": { +"*color": "$$actionBarColor", +"*lineHeight": "$$actionBarHeight", +"*textDecoration": "none" +}, +"&:hover": { +color: "$$actionBarHoverColor" +} +}, +"&.rtl": { +".actions": { +float: "right" +}, +".branding": { +float: "left" +} +} +}; +s(t, "meshim_widget_widgets_ActionBar"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_BorderOverlay = i(86); +e.__$$__jx_ui_Label = i(19); +e.__$$__meshim_widget_widgets_IconFont = i(15); +e.__$$__meshim_widget_widgets_titleBar_MinimizeButton = i(357); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(199), h = o(200), p = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_BorderOverlay, "", "", [], {} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Label, "title_text", "", [], { +id: "title_text", +addClass: "title_text" +} ], [ e.__$$__jx_ui_Label, "status_text", "", [], { +id: "status_text", +addClass: "status_text", +display: "none" +} ] ], { +addClass: "title" +} ], [ e.__$$__jx_ui_Widget, "icons", "", [ [ e.__$$__jx_ui_Widget, "popout_container", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "popout_button", "", [], { +id: "popout_button", +icon: "popout", +title: c +} ] ], { +id: "popout_container", +addClass: "button_container" +} ], [ e.__$$__jx_ui_Widget, "minimize_container", "", [ [ e.__$$__meshim_widget_widgets_titleBar_MinimizeButton, "minimize_button", "", [], { +id: "minimize_button" +} ] ], { +id: "minimize_container", +addClass: "button_container last_child", +title: h +} ] ], { +id: "icons", +addClass: "icons" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:titleBar": "meshim.widget.widgets.titleBar", +class: "title_bar", +selectable: "false" +} ], f = p[0].call(this, s, a, null, n.mangleIDs(a, p[3]), p[4]), g = f || this; +n.set(a, g); +var m = n.get(a + "__title_text"), $ = n.get(a + "__status_text"), b = n.get(a + "__icons"), w = n.get(a + "__popout_container"), x = n.get(a + "__popout_button"), v = n.get(a + "__minimize_container"), y = n.get(a + "__minimize_button"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var j = function() { +function t() { +var t = r && !s && !a && !d && !c.bugs.noBoxSizing; +x.setDisplay(t ? "" : "none"); +} +function e() { +var t = l || a; +v.setDisplay(t ? "none" : ""); +t ? w.addClass("last_child") : w.removeClass("last_child"); +} +function n() { +o && $.setText(j.get(I.$$(_ + "$string"))); +} +var o, r, s, a, _, l, d, u = i(12), c = i(8), h = i(5), p = i(72), f = i(25), j = i(11), C = i(9), S = h.root.$("livechat"), A = S.$("settings").$("chat_window").$("title_bar").$("title$string"), k = S.$("ui").$("theme_loaded$bool"), I = S.$("settings").$("chat_window").$("title_bar").$("status_messages"), T = S.$("settings").$("popout").$("enabled$bool"), B = S.$("ui").$("popout$bool"), N = S.$("ui").$("mobile$bool").getValue(), D = S.$("account").$("status$string"), E = S.$("settings").$("theme").$("chat_window").$("title_bar").$("hide_minimize$bool"), O = S.$("settings").$("theme").$("chat_window").$("title_bar").$("hide_popout$bool"); +g.setHidePopout = function(e) { +s = u(e); +t(); +}; +!function() { +C.mobile(g); +C.rtl(g); +C.windowPosition(g); +g.autobind(B, "value", function(i) { +a = i; +t(); +e(); +g[i ? "addClass" : "removeClass"]("title_bar_popout"); +}); +g.autobind(A, "value", function() { +m.setText(j.get(A)); +}); +N && g.autobind(k, "value", function(t) { +t && y.setMobile(!0); +}); +g.autobind(I, "value", function() { +o = I.getValue(); +n(); +}); +g.autobind(D, "value", function(t) { +_ = t; +n(); +}); +g.autobind(T, "value", function(e) { +r = e; +t(); +}); +g.autobind(E, "value", function(t) { +l = t; +e(); +}); +g.autobind(O, "value", function(e) { +d = e; +t(); +}); +b.on("mousedown", function(t) { +t.stopPropagation(); +}); +w.on("click", function() { +p.openPopout(!0); +f.userHideWindow(); +}); +v.on("click", function() { +f.userHideWindow(); +}); +}(); +}(); +for (var C in j) j.hasOwnProperty(C) && (g[C] = j[C]); +g.fire && g.fire("init"); +g.setStyle && g.setStyle(l); +g.setAttributes && g.setAttributes(u); +"function" == typeof g.addChildren ? g.addChildren(d) : n.addChildren(g, d); +if (g !== this) { +g.__jx__constructor = _; +g.__jx__native = !1; +} +return g; +} +var _; +t.prototype = s(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +"top, left": 0, +width: "100%", +overflow: "hidden", +zIndex: 10, +height: "$$titleBarHeight", +color: "$$titleBarColor", +background: "$$titleBarBg", +"&.title_bar_popout": { +cursor: "default" +} +}, +".border_overlay": { +borderWidth: "$$titleBarBorderWidth", +borderStyle: "$$titleBarBorderStyle", +borderColor: "$$titleBarBorderColor" +}, +".title": { +whiteSpace: "nowrap", +overflow: "hidden", +textOverflow: "ellipsis", +cursor: "inherit", +textAlign: "$$titleBarTextAlign", +fontSize: "$$titleBarFontSize", +lineHeight: "$$titleBarHeight", +fontWeight: "$$titleBarFontWeight", +".title_text, .status_text": { +cursor: "inherit" +}, +".title_text": { +display: [ "inline", "$$titleBarTitleDisplay" ] +}, +".status_text": { +display: [ "none", "$$titleBarStatusDisplay" ] +} +}, +"&.ltr .title": { +paddingLeft: "$$titleBarPaddingBefore", +paddingRight: "$$titleBarPaddingAfter" +}, +"&.rtl .title": { +paddingLeft: "$$titleBarPaddingAfter", +paddingRight: "$$titleBarPaddingBefore" +}, +".icons": { +position: "absolute", +cursor: "default", +color: "$$titleBarIconsColor", +fontSize: "$$fontSizeXS", +".icon_font": { +display: "inline-block", +textAlign: "center", +"paddingRight, paddingLeft": "6px", +lineHeight: "$$titleBarHeight", +"&:hover": { +"&": "$$titleBarItemHover" +} +}, +".button_container": { +display: "inline-block", +verticalAlign: "middle", +cursor: "pointer", +paddingTop: "2px" +} +}, +"&.ltr .icons": { +"top, right": 0, +".button_container": { +"&.last_child": { +paddingRight: "3px" +} +} +}, +"&.rtl .icons": { +"top, left": 0, +".button_container": { +"&.last_child": { +paddingLeft: "3px" +} +} +}, +"&.br, &.bm, &.bl": { +"borderTopLeftRadius, borderTopRightRadius": "$$windowRadius" +}, +"&.tr, &.tm, &.tl": {}, +"&.mobile": { +zIndex: 101, +borderRadius: "0", +".title": { +fontSize: "$$fontSizeXL" +}, +"&.ltr .icons, &.rtl .icons": { +".button_container": { +padding: 0, +"&.last_child": { +padding: 0 +} +} +} +} +}; +a(t, "meshim_widget_widgets_TitleBar"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_html_a = i(44); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_html_a, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +target: "_blank" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(5), e = i(9), n = t.root.$("livechat"), o = n.$("ui").$("mobile$bool"); +!function() { +e.mobile(h); +o.getValue() && h.on("click", function(t) { +t.preventDefault(); +window.open(h.getAttribute("href")); +}); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_html_a.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_html_a; +t.__jx__jcss = { +"**self": { +color: "inherit", +textDecoration: "inherit" +}, +"&.mobile": {} +}; +s(t, "meshim_widget_widgets_branding_Link"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__meshim_widget_widgets_ChatWindowPanel = i(38); +e.__$$__meshim_widget_widgets_AbsolutePaddingContainer = i(164); +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_chatWindow_newChatForm_Banner = i(352); +e.__$$__meshim_widget_components_chatWindow_newChatForm_Branding = i(351); +e.__$$__meshim_widget_widgets_IconFont = i(15); +e.__$$__jx_ui_Form = i(42); +e.__$$__meshim_widget_components_chatWindow_newChatForm_TextField = i(350); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(116), h = o(117), p = o(118), f = [ e.__$$__meshim_widget_widgets_ChatWindowPanel, "", "", [ [ e.__$$__meshim_widget_widgets_AbsolutePaddingContainer, "", "", [ [ e.__$$__jx_ui_Widget, "content", "", [ [ e.__$$__meshim_widget_components_chatWindow_newChatForm_Banner, "banner", "", [], { +id: "banner", +addClass: "banner" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatWindow_newChatForm_Branding, "", "", [], { +addClass: "branding" +} ] ], { +addClass: "branding_container" +} ], [ e.__$$__meshim_widget_widgets_IconFont, "close", "", [], { +id: "close", +addClass: "close", +icon: "minimize", +title: c +} ] ], { +id: "content", +addClass: "content" +} ], [ e.__$$__jx_ui_Form, "form", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "submit", "", [], { +id: "submit", +icon: "send", +addClass: "send", +title: h +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatWindow_newChatForm_TextField, "input", "", [], { +id: "input", +addClass: "input", +autocomplete: "false", +placeholder: p, +tabIndex: "10" +} ] ], { +class: "input_wrapper" +} ] ], { +id: "form", +addClass: "form", +noValidate: "true" +} ], [ e.__$$__jx_ui_Widget, "disabled_overlay", "", [], { +id: "disabled_overlay", +class: "disabled_overlay", +visible: "none" +} ] ], { +absPaddingBottom: "badgeFormHeight" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:components": "meshim.widget.components", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatWindow": "meshim.widget.components.chatWindow", +"xmlns:newChatForm": "meshim.widget.components.chatWindow.newChatForm", +miniSize: "true", +titleBar: "none", +actionBar: "none", +addClass: "mini" +} ], g = f[0].call(this, s, a, null, n.mangleIDs(a, f[3]), f[4]), m = g || this; +n.set(a, m); +var $ = n.get(a + "__content"), b = n.get(a + "__banner"), w = n.get(a + "__close"), x = n.get(a + "__form"), v = n.get(a + "__submit"), y = n.get(a + "__input"), j = n.get(a + "__disabled_overlay"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var C = function() { +function t() { +if (!x.getDisabled()) { +var t = y.getValue().trim(); +if (t) { +y.reset(); +n(t); +} else y.focus(); +} +} +function e() { +var t = y.getValue().trim(); +t && (o ? g : h).update(t); +y.reset(); +p.write({ +button_clicked$bool: !0 +}); +n(); +} +function n(t) { +t && h.update(""); +a.setBannerUserHidden(); +if (o && !r) { +t && g.update(t); +S.update(!0); +c.update("pre_chat_offline_form"); +} else { +t && s.livechat.sendChatMsg({ +msg: t +}); +c.update("chat_panel"); +} +} +var o, r, s = i(5), a = i(25), _ = i(10), l = i(9), d = s.root, u = d.$("livechat"), c = u.$("ui").$("chat_window").$("main_stack_name$string"), h = u.$("ui").$("chat_window").$("chat_panel").$("textarea").$("value$string"), p = u.$("ui").$("chat_button"), f = u.$("settings").$("forms").$("pre_chat_form").$("required$bool"), g = u.$("settings").$("forms").$("pre_chat_form").$("form").$("3").$("value_user$string"), C = u.$("ui").$("chat_window").$("pre_chat_form").$("submitted$bool"), S = u.$("ui").$("chat_window").$("pre_chat_form").$("form_populate$bool"), A = u.$("settings").$("branding").$("hide_branding$bool"), k = u.$("settings").$("banner").$("layout$string"), I = d.$("connection").$("status$string"); +!function() { +l.rtl(m); +l.windowPosition(m); +_.hoverFix(m); +m.autobind(f, "value", function(t) { +o = t; +}); +m.autobind(C, "value", function(t) { +r = t; +}); +m.autobind(A, "value", function(t) { +b[t ? "addClass" : "removeClass"]("hide_branding"); +}); +m.autobind(k, "value", function(t) { +"image_only" == t ? b.addClass("image_only") : b.removeClass("image_only"); +}); +y.on("input", function() { +h.update(y.getValue().trim()); +}); +x.on("submit", function(e) { +e.preventDefault(); +t(); +}); +v.on("click", function() { +t(); +}); +w.on("click", function(t) { +t.stopPropagation(); +a.userHideBanner(); +}); +$.on("click", e); +j.on("click", e); +m.autobind(I, "value", function(t) { +if ("idle_disconnect" === t) { +x.setDisabled(!0); +j.show(); +} else { +x.setDisabled(!1); +j.hide(); +} +}); +}(); +}(); +for (var S in C) C.hasOwnProperty(S) && (m[S] = C[S]); +m.fire && m.fire("init"); +m.setStyle && m.setStyle(l); +m.setAttributes && m.setAttributes(u); +"function" == typeof m.addChildren ? m.addChildren(d) : n.addChildren(m, d); +if (m !== this) { +m.__jx__constructor = _; +m.__jx__native = !1; +} +return m; +} +var _; +t.prototype = s(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_ChatWindowPanel; +t.__jx__jcss = { +".container": { +background: "$$badgeBg", +borderWidth: "$$badgeBorderWidth", +borderStyle: "$$badgeBorderStyle", +borderColor: "$$badgeBorderColor" +}, +".content": { +width: "100%", +height: "100%", +overflow: "hidden", +color: "$$badgeContentColor", +background: "$$badgeContentBg", +borderWidth: "$$badgeContentBorderWidth", +borderStyle: "$$badgeContentBorderStyle", +borderColor: "$$badgeContentBorderColor" +}, +".banner": { +width: "100%", +height: "100%", +position: "relative", +cursor: "pointer", +fontSize: "1.5em", +padding: "20px 10px 10px", +"&.hide_branding": { +paddingTop: "10px" +}, +"&.image_only": { +padding: "0" +} +}, +".branding_container": { +position: "absolute", +top: "6px", +left: 0, +width: "100%", +textAlign: "center", +cursor: "pointer", +".branding": { +cursor: "pointer" +} +}, +".close": { +position: "absolute", +cursor: "pointer", +opacity: 0, +transition: "opacity 0.2s", +"top, right": 0, +padding: "9px 10px 2px 2px" +}, +"&.rtl .close": { +left: "6px", +right: "auto", +padding: "3px 2px 2px 4px" +}, +"&.hover, &:hover": { +".close": { +opacity: 1 +} +}, +".send": { +float: "right", +fontSize: "$$fontSizeXXL", +padding: "5px", +margin: "5px", +color: "$$badgeIconColor", +opacity: "0.8", +cursor: "pointer", +"&:hover": { +opacity: "1" +}, +"&.disabled": { +cursor: "default", +"&:hover": { +opacity: "0.8" +} +} +}, +".form, .disabled_overlay": { +position: "absolute", +"bottom, left": "0", +width: "100%", +height: "$$badgeFormHeight" +}, +".disabled_overlay": { +cursor: "pointer" +}, +".form": { +overflow: "hidden", +"*zoom": 1, +background: "$$badgeFormBg", +borderWidth: "$$badgeFormBorderWidth", +borderStyle: "$$badgeFormBorderStyle", +borderColor: "$$badgeFormBorderColor", +"&.disabled": { +opacity: "0.5" +}, +".input_wrapper": { +display: "block", +overflow: "hidden", +"*width": "165px", +".input": { +width: "100%", +height: "100%", +position: "relative", +"*width": "165px", +"*overflow": "hidden" +} +}, +".button": { +"*width": "60px" +} +}, +"&.ltr .form": { +".input": { +paddingRight: 0 +}, +".button": { +float: "right" +} +}, +"&.rtl .form": { +".input": { +paddingLeft: 0 +}, +".button": { +float: "left" +} +}, +"&.br, &.bm, &.bl": { +".content": { +"borderTopLeftRadius, borderTopRightRadius": "$$windowRadius" +} +}, +"&.tr, &.tm, &.tl": {} +}; +a(t, "meshim_widget_components_chatWindow_NewChatForm"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, r) { +if (!(this instanceof n)) return new n(t, e, i, o, r); +l.call(this, t, e, i, o, r); +this.index = void 0; +this.length = 0; +this.currentChild = null; +var s = this; +this._onChildHide = function() { +switch (s.onChildHide) { +case "next": +s.next(!0); +break; + +case "prev": +s.prev(!0); +break; + +case "first": +s.first(!0); +break; + +case "last": +s.last(!0); +break; + +default: +var t = parseInt(s.onChildHide, 10); +if (isNaN(t)) break; +s.setIndex(t, !0); +} +}; +this.onDestruction(function() { +s.currentChild = null; +}); +} +var o = i(1), r = i(22), s = i(12), a = i(24), _ = i(26), l = i(6); +n.prototype = o(l.prototype); +n.prototype.addChildren = function(t) { +var e = t && t.length; +if (t && e) for (var i = 0; i < e; i++) r(t[i]) && this.appendChild(t[i]); +}; +n.prototype.appendChild = function(t) { +var e = !1; +if (r(t)) { +this.children.push(t); +t[4] && (e = s(t[4].forceInstantiate)); +} else if (t.dom) { +l.prototype.appendChild.call(this, t); +t.setVisible("none"); +} else this.dom.appendChild(t); +e && this.instantiateChild(t); +return t; +}; +n.prototype.removeChild = function(t) { +try { +if (r(t)) ; else if (t.dom) { +this.dom.removeChild(t.dom); +t.parentNode = null; +} else this.dom.removeChild(t); +var e = a(t, this.children); +-1 != e && this.children.splice(e, 1); +} catch (t) {} +}; +n.prototype.setIndex = function(t, e) { +t = parseInt(t, 10); +if (this.validIndex(t) && t != this.index) { +var i, n = this.currentChild; +if (!e && (n ? n.fire("beforeIndexChange", t) : 1) + this.fire("beforeIndexChange", t) < 2) return !1; +if (n) { +this.autounbind(n, "hide", this._onChildHide); +n.setVisible("none"); +} +this.fire("indexChanging", t); +if (-1 == t) { +this.currentChild = null; +this.index = t; +this.fire("indexChange", t); +return !0; +} +n = this.children[t]; +if (r(n)) { +n = this.instantiateChild(n); +i = !0; +} +n.setVisible("block"); +this.autobind(n, "hide", this._onChildHide); +this.currentChild = n; +this.index = t; +i && this.fire("instantiate", t); +this.fire("indexChange", t); +return !0; +} +}; +n.prototype.instantiateChild = function(t) { +if (r(t)) { +var e = a(t, this.children); +if (-1 != e) { +t = new t[0](this, t[1], t[2], t[3], t[4]); +this.children[e] = t; +this.children.pop(); +return t; +} +} +}; +n.prototype.validIndex = function(t) { +return null != t && t < this.getLength() && t >= -1; +}; +n.prototype.next = function(t) { +return _(this.index, !0) ? this.setIndex(0, t) : this.setIndex(this.index + 1, t); +}; +n.prototype.prev = function(t) { +return _(this.index, !0) ? this.setIndex(this.getLength() - 1, t) : this.setIndex(Math.max(this.index - 1, 0), t); +}; +n.prototype.first = function(t) { +return this.setIndex(0, t); +}; +n.prototype.last = function(t) { +return this.setIndex(this.getLength() - 1, t); +}; +n.prototype.getName = function() { +return this.currentChild && this.currentChild.getName(); +}; +n.prototype.setName = function(t) { +if (!t) return this.setIndex(-1); +for (var e = 0, i = this.children.length; e < i; e++) if (r(this.children[e])) { +if (this.children[e][4] && this.children[e][4].name === t) return this.setIndex(e); +} else if (this.children[e].getName && this.children[e].getName() === t) return this.setIndex(e); +}; +n.prototype.isFirst = function() { +return this.index <= 0; +}; +n.prototype.isLast = function() { +return this.index >= this.getLength() - 1; +}; +n.prototype.getLength = function() { +return this.children.length; +}; +n.prototype.getChildren = function() { +return this.children; +}; +n.prototype.getCurrentChild = function() { +return this.currentChild; +}; +n.prototype.getIndex = function() { +return this.index; +}; +n.prototype.getOnChildHide = function() { +return this.onChildHide; +}; +n.prototype.setOnChildHide = function(t) { +this.onChildHide = t; +return this; +}; +t.exports = n; +e(n, "jx_ui_ViewStack"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, _, h) { +function p(t) { +$.parentNode.setAttribute("lang", t); +$.parentNode.setAttribute("dir", a.flip("ltr")); +} +if (!(this instanceof n)) return new n(t, e, i, _, h); +h || (h = {}); +h.tagName || (h.tagName = "iframe"); +this._top = this._bottom = this._left = this._right = this._width = this._height = NaN; +this._position = null; +this.pos = ""; +this.offsetx = 0; +this.offsety = 0; +this._snaps = [ 0, 0, 0, 0 ]; +this.useDisplay = !1; +this.doc = this.ownerDocument = t.ownerDocument; +this.parentNode = t; +this.attributes = h; +this.tagName = h.tagName; +this.isNew = !0; +this.dom = this.doc.createElement(this.tagName); +this.dom.jx_wrapper = this; +this.style = this.dom.style; +this.children = []; +this._autobinds = []; +u.call(this); +void 0 !== this.dom.seamless && (this.dom.seamless = !0); +this.dom.allowTransparency = "true"; +this.dom.frameBorder = "0"; +this.style.backgroundColor = "transparent"; +this.style.verticalAlign = "text-bottom"; +this.style.visibility = "hidden"; +t.appendChild(t instanceof c ? this : this.dom); +e && o.set(e, this); +var f; +f = r.bugs.noBoxSizing ? "" : ""; +this.dom.src = "about:blank"; +this.appendToParent(!0); +var g = this.iwin = this.dom.contentWindow, m = this.idoc = s.extend(g.document); +m.write(f); +m.close(); +this.ihead = m.getElementsByTagName("head")[0]; +var $ = this.ibody = s.extend(m.body); +a && a.onLanguage && a.onLanguage(p); +a && a.language && p(a.language); +$.style.position = "relative"; +$.parentNode.style.overflowY = $.style.overflowY = "hidden"; +var b, w; +if (r.bugs.noBoxSizing) { +b = new d($, null, null, null, { +position: "relative", +width: "100%", +height: "100%", +overflow: "hidden" +}); +b.applyConstraints(); +b.setPadding = function(t) { +$.style.padding = t; +}; +} else { +b = new d($, null, null, null, { +position: "absolute", +top: 0, +right: 0, +bottom: 0, +left: 0, +overflow: "hidden" +}); +b.applyConstraints(); +} +for (var x = "Background BackgroundImage Border BorderColor BorderStyle BorderWidth Color Cursor FontFamily FontSize FontWeight LetterSpacing LineHeight Opacity Padding Selectable TextAlign".split(" "); w = x.pop(); ) this["set" + w] = function(t) { +return function(e) { +b["set" + t](e); +return this; +}; +}(w); +this.defaultPlacement = b; +this.addChildren(_); +this.style.visibility = ""; +this.setStyle(i); +this.setAttributes(h); +l.bindIFrame(this); +} +var o = i(3), r = i(8), s = i(14), a = i(7), _ = i(1), l = i(2), d = i(6), u = i(185), c = i(23); +n.prototype = _(d.prototype); +n.prototype.destroy = function() { +l.unbindIFrame(this); +this.defaultPlacement && this.defaultPlacement.destroy(); +d.prototype.destroy.call(this); +}; +t.exports = n; +e(n, "jx_ui_IFrame"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(18), o = i(111), r = {}; +r._super = null; +r.defaults = { +colors: { +primary$string: "#000000", +banner$string: "#000000", +bubble$string: "#000000" +} +}; +r.overrides = { +avatars: { +concierge$string: n.IMAGES_URL + "/avatar_simple_agent.png", +agent$string: n.IMAGES_URL + "/avatar_simple_agent.png", +visitor$string: n.IMAGES_URL + "/avatar_simple_visitor.png" +}, +chat_button: { +display_status$bool: !1, +use_bubble$bool: !1 +}, +chat_window: { +profile_card: { +display_avatar$bool: !0 +}, +use_banner$bool: !0 +} +}; +r.generate = function(t) { +var e = t.custom_fonts && t.custom_fonts.font_family$string || ""; +return { +standard: { +fontFamily: "Verdana, Geneva, sans-serif", +customFontFamily: e ? e + ", Verdana, Geneva, sans-serif" : "Verdana, Geneva, sans-serif", +fontSizeXS: "10px", +fontSizeS: "11px", +fontSize: "12px", +fontSizeL: "14px", +fontSizeXL: "16px", +fontSizeXXL: "18px", +marginXS: "3px", +marginS: "5px", +margin: "10px", +marginL: "15px", +marginXL: "20px", +paddingS: "3px", +padding: "6px", +paddingL: "8px", +paddingXL: "10px", +borderWidth: "1px", +borderStyle: "solid", +borderColor: o.black, +radiusS: "3px", +radius: "5px", +headColor: o.white, +headBg: o.black, +headLowContrastColor: o.grey, +contentColor: o.black, +contentHeaderColor: o.black, +contentBg: o.white, +contentBlockBg: o.grey, +contentBlockRadius: "$$radius", +placeholderColor: o.grey, +inputMenuBg: o.white, +errorColor: "#CC0000", +dividerColor: o.grey, +inputColor: o.black, +inputBg: "$$inputMenuBg", +inputBorderWidth: "$$borderWidth", +inputBorderStyle: "$$borderStyle", +inputBorderColor: "$$borderColor", +inputPadding: "$$padding", +inputRadius: "$$radius", +inputShadow: "", +inputFocusColor: "", +inputFocusBg: "", +inputFocusBorderColor: "", +inputFocusShadow: "", +inputPlaceholderColor: "$$placeholderColor", +inputPlaceholderFontStyle: "italic", +inputInvalidColor: "", +inputInvalidBg: "", +inputInvalidBorderColor: "$$errorColor", +inputInvalidShadow: "", +buttonColor: o.white, +buttonBg: o.black, +buttonBorderWidth: "$$borderWidth", +buttonBorderStyle: "$$borderStyle", +buttonBorderColor: "", +buttonPadding: "$$padding", +buttonPaddingHorizontal: "$$paddingS", +buttonRadius: "$$radiusS", +buttonShadow: "", +buttonFontWeight: "bold", +buttonHoverColor: "", +buttonHoverBg: "", +buttonHoverBorderColor: "", +buttonHoverShadow: "", +buttonActiveColor: "", +buttonActiveBg: "", +buttonActiveBorderColor: "", +buttonActiveShadow: "", +buttonSecColor: o.white, +buttonSecBg: o.grey, +buttonSecBorderColor: "", +buttonSecShadow: "", +buttonSecHoverColor: "", +buttonSecHoverBg: "", +buttonSecHoverBorderColor: "", +buttonSecHoverShadow: "", +buttonSecActiveColor: "", +buttonSecActiveBg: "", +buttonSecActiveBorderColor: "", +buttonSecActiveShadow: "", +buttonShortPadding: "$$paddingS", +formSubmittedBg: "$$contentBlockBg", +formSubmittedRadius: "$$radius", +formSubmittedBorderWidth: 0, +formSubmittedBorderStyle: "", +formSubmittedBorderColor: "", +errorMessageColor: "$$errorColor", +errorMessageFontWeight: "bold", +errorMessageFontStyle: "italic", +scrollableFrameInnerPaddingSmall: "$$margin", +scrollableFrameInnerPaddingMedium: "$$marginXL", +scrollableFrameInnerPaddingLarge: "$$marginXL", +scrollableFrameTopHeight: "", +scrollableFrameTopBackground: "", +scrollableFrameTopBackgroundColor: "", +scrollableFrameBottomHeight: "", +scrollableFrameBottomBackground: "", +scrollableFrameBottomBackgroundColor: "", +toastColor: o.white, +toastBg: o.black, +toastPadding: "$$paddingXL", +toastBorderWidth: "$$borderWidth", +toastBorderStyle: "$$borderStyle", +toastBorderColor: "$$borderColor", +toastRadius: "$$radius", +toastShadow: "", +avatarBorderWidth: 0, +avatarBorderStyle: "$$borderStyle", +avatarBorderColor: "$$borderColor", +avatarRadius: "$$radiusS", +avatarShadow: "", +profileCardAvatarBorderWidth: "", +profileCardAvatarBorderStyle: "", +profileCardAvatarBorderColor: "", +profileCardAvatarRadius: "", +profileCardAvatarShadow: "", +profileCardNameColor: o.black, +profileCardTitleColor: o.grey, +bottomHeight: "40px", +bottomHeightBottomPadding: "50px", +bottomBorderWidth: "", +bottomBorderStyle: "$$borderStyle", +bottomBorderColor: "$$borderColor", +bottomNoteBorderWidth: 0, +bottomNoteBorderStyle: "$$borderStyle", +bottomNoteBorderColor: "$$borderColor", +brandingLinkColor: "$$actionBarColor", +chatMotifHill: "", +chatMotifBubble: "", +facebook: "#3B5998", +facebookActive: "#637BAD", +twitter: "#00ACEE", +twitterActive: "#7EB2D4", +google: "#DD4B39", +googleActive: "#E0736F", +externalIconColor: "$$placeholderColor", +authButtonBg: "", +authButtonBorderColor: "", +authButtonShadow: "", +chatRatingsEmoticonColor: "#999", +chatRatingsEmoticonActive: "#DDD", +chatRatingsEmoticonHover: "#EEE", +chatRatingsThumbLight: "#999", +chatRatingsThumbDark: "#666", +chatRatingsThumbActive: "#EEE", +chatRatingsThumbBGHover: "#DDD", +chatButtonMinWidth: "180px", +chatButtonMaxWidth: "300px", +chatButtonHeight: "30px", +chatButtonColor: "$$headColor", +chatButtonBg: "$$headBg", +chatButtonBorderWidth: "$$borderWidth", +chatButtonBorderStyle: "$$borderStyle", +chatButtonBorderColor: "$$dividerColor", +chatButtonRadius: "$$radius", +chatButtonShadow: "", +chatButtonPadding: "$$paddingXL", +chatButtonPaddingFavicon: "$$chatButtonPadding", +chatButtonFontWeight: "bold", +chatButtonStatusFontWeight: "bold", +faviconWidth: "36px", +faviconColor: "$$chatButtonColor", +faviconOnlineColor: "", +faviconOfflineColor: "", +faviconBg: "$$chatButtonBg", +faviconDotsColor: "", +chatBubbleTitle: "", +chatBubbleText: "", +chatBubbleClose: "", +windowMiniWidth: "240px", +windowMiniHeight: "200px", +windowSmallWidth: "240px", +windowSmallHeight: "335px", +windowMediumWidth: "290px", +windowMediumHeight: "400px", +windowLargeWidth: "350px", +windowLargeHeight: "450px", +windowColor: "$$contentColor", +windowBg: "$$contentBg", +windowPadding: "", +windowRadius: "$$radius", +windowShadow: "", +windowContentBg: "$$contentBg", +windowContentBorderWidth: "$$borderWidth", +windowContentBorderStyle: "$$borderStyle", +windowContentBorderColor: "$$dividerColor", +historyClockColor: "#999", +historyClockHoverColor: "#666", +menuColor: "$$contentColor", +menuBg: "$$inputMenuBg", +menuBorderWidth: "$$borderWidth", +menuBorderStyle: "$$borderStyle", +menuBorderColor: "$$dividerColor", +menuRadius: "$$radius", +menuShadow: "$$windowShadow", +menuHeaderColor: "$$placeholderColor", +menuItemPadding: "3px 20px", +menuItemHoverBg: o.grey, +titleBarHeight: "24px", +titleBarPaddingBefore: "60px", +titleBarPaddingAfter: "60px", +titleBarFontSize: "$$fontSizeS", +titleBarColor: "$$headLowContrastColor", +titleBarBg: "$$headBg", +titleBarBorderWidth: "", +titleBarBorderStyle: "$$borderStyle", +titleBarBorderColor: "$$borderColor", +titleBarFontWeight: "bold", +titleBarTextAlign: "center", +actionBarWidth: "100%", +actionBarHeight: "24px", +actionBarColor: o.grey, +actionBarColorDiabled: "#AAA", +actionBarBg: "$$windowContentBg", +actionBarBorderWidth: "", +actionBarBorderStyle: "$$borderStyle", +actionBarBorderColor: "$$borderColor", +actionBarPadding: "10px", +actionBarHoverColor: "", +chatPanelProfileCardContainerHeight: "50px", +chatPanelProfileCardContainerBackground: "", +chatPanelProfileCardContainerBorderWidth: "", +chatPanelProfileCardContainerBorderStyle: "$$borderStyle", +chatPanelProfileCardContainerBorderColor: "$$borderColor", +chatPanelProfileCardAvatarBorderWidth: "", +chatPanelProfileCardAvatarBorderStyle: "", +chatPanelProfileCardAvatarBorderColor: "", +chatPanelProfileCardAvatarRadius: "", +chatPanelProfileCardAvatarShadow: "", +chatLogMargin: "$$margin", +chatLogVisitorNameColor: "$$contentHeaderColor", +chatLogVisitorBubbleBg: "", +chatLogVisitorBubbleBorderWidth: "$$borderWidth", +chatLogVisitorBubbleBorderStyle: "$$borderStyle", +chatLogVisitorBubbleBorderColor: "$$borderColor", +chatLogAgentNameColor: "$$contentHeaderColor", +chatLogAgentBubbleBg: "", +chatLogAgentBubbleBorderWidth: "$$borderWidth", +chatLogAgentBubbleBorderStyle: "$$borderStyle", +chatLogAgentBubbleBorderColor: "$$borderColor", +chatLogAvatarBorderWidth: "", +chatLogAvatarBorderStyle: "", +chatLogAvatarBorderColor: "", +chatLogAvatarRadius: "", +chatLogAvatarShadow: "", +chatLogSystemMsgColor: "$$placeholderColor", +chatLogSystemMsgBg: "", +chatLogSystemMsgBorderWidth: 0, +chatLogSystemMsgBorderStyle: "$$borderStyle", +chatLogSystemMsgBorderColor: "$$borderColor", +chatLogSystemMsgPadding: "", +chatLogDateDividerColor: "$$placeholderColor", +chatLogDateDividerFontWeight: "", +chatLogFileProgressBg: "$$headBg", +chatTextAreaBorderWidth: "", +chatTextAreaBorderStyle: "$$borderStyle", +chatTextAreaBorderColor: "$$borderColor", +chatTextAreaPadding: "10px 10px 0", +chatTextAreaInputFontSize: "", +chatTextAreaInputMinHeight: "42px", +chatTextAreaInputMaxHeight: "64px", +chatTextAreaInputLineHeight: "", +chatTextAreaInputColor: "", +chatTextAreaInputBg: "", +chatTextAreaInputBorderWidth: "", +chatTextAreaInputBorderStyle: "", +chatTextAreaInputBorderColor: "", +chatTextAreaInputPadding: "", +chatTextAreaInputRadius: "", +chatTextAreaInputShadow: "", +chatTextAreaInputFocusColor: "", +chatTextAreaInputFocusBg: "", +chatTextAreaInputFocusBorderColor: "", +chatTextAreaInputFocusShadow: "", +chatTextAreaSubmitMargin: "6px", +chatTextAreaSubmitPadding: "5px 10px", +chatTranslationSwitchColor: o.grey, +chatTextAreaDropColor: "", +chatTextAreaDropBg: "", +chatTextAreaDropBorderWidth: "", +chatTextAreaDropBorderStyle: "", +chatTextAreaDropBorderColor: "", +agentBubbleBg: "", +visitorBubbleBg: "", +badgeBg: "", +badgeBorderWidth: "", +badgeBorderStyle: "$$borderStyle", +badgeBorderColor: "$$borderColor", +badgeContentColor: "$$headColor", +badgeContentBg: "", +badgeContentBorderWidth: "$$borderWidth", +badgeContentBorderStyle: "$$borderStyle", +badgeContentBorderColor: "$$borderColor", +badgeFormHeight: "36px", +badgeFormBg: "", +badgeFormBorderWidth: "$$borderWidth", +badgeFormBorderStyle: "$$borderStyle", +badgeFormBorderColor: "$$borderColor", +badgeInputColor: "", +badgeInputBorderWidth: "", +badgeInputBorderStyle: "", +badgeInputBorderColor: "", +badgeInputPadding: "$$paddingXL", +badgeInputRadius: "$$radius", +badgeInputShadow: "", +badgeInputFocusColor: "", +badgeInputFocusBg: "", +badgeInputFocusBorderColor: "", +badgeInputFocusShadow: "", +badgeInputPlaceholderColor: "", +badgeIconColor: "" +}, +popout: { +windowRadius: 0 +}, +mobile: { +fontSizeXS: "12px", +fontSizeS: "13px", +fontSize: "14px", +fontSizeL: "16px", +fontSizeXL: "18px", +fontSizeXXL: "20px", +mobileMaxWidthS: "360px", +mobileMaxWidth: "480px", +mobileMaxWidthL: "640px", +inputPadding: "$$paddingXL", +buttonPadding: "$$paddingXL", +menuItemPadding: "14px", +titleBarHeight: "44px", +actionBarWidth: "$$titleBarHeight", +actionBarHeight: "$$titleBarHeight", +menuRadius: 0, +brandingLinkColor: o.grey +} +}; +}; +t.exports = r; +e(r, "meshim_widget_themes_Base"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var i = {}; +i.SECOND = 1e3; +i.MINUTE = 60 * i.SECOND; +i.HOUR = 60 * i.MINUTE; +i.DAY = 24 * i.HOUR; +i.WEEK = 7 * i.DAY; +t.exports = i; +e(i, "meshim_common_Time"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +var t = +new Date(), e = t - h; +Math.abs(e - d) > u && r(); +h = t; +} +function o() { +for (var t = f.length; t--; ) { +for (var e = f[t], i = e.queue.length; i--; ) { +"histogram" === e.queue[i].method && e.queue.splice(i, 1); +} +e.start_ts = {}; +} +} +function r() { +p = clearInterval(p); +c = !1; +o(); +} +function s() { +this.ref_ts = null; +this.from_ref_ts = {}; +this.start_ts = {}; +this.tags = []; +this.queue = []; +f.push(this); +} +var a = i(22), _ = i(21), l = i(28), d = 15e3, u = .2 * d, c = !0, h = +new Date(), p = setInterval(n, d), f = [], g = s.prototype; +g.flush = function() {}; +g.setTags = function(t) { +a(t) && (this.tags = t.concat()); +}; +g.addTag = function(t) { +_(t) && t && this.tags.push(t); +}; +g.setRefTime = function(t) { +l(this.ref_ts) || l(t) && (this.ref_ts = t); +}; +g.fromRefTime = function(t, e, i) { +if (c && l(this.ref_ts) && _(t) && t && !this.from_ref_ts[t]) { +this.from_ref_ts[t] = !0; +var n = +new Date(); +n < this.ref_ts ? r() : this.histogram(t, (n - this.ref_ts) / 1e3, e, i); +} +}; +g.start = function(t, e) { +c && _(t) && t && (t in this.start_ts || (this.start_ts[t] = l(e) ? e : +new Date())); +}; +g.end = function(t, e, i) { +if (c && _(t) && t && t in this.start_ts) { +var n = +new Date(); +if (n < this.start_ts[t]) r(); else { +this.histogram(t, (n - this.start_ts[t]) / 1e3, e, i); +delete this.start_ts[t]; +} +} +}; +g.restart = function(t, e) { +delete this.start_ts[t]; +this.start(t, e); +}; +g.increment = function(t, e, i) { +this._queue("increment", t, 1, e, i); +this.flush(); +}; +g.histogram = function(t, e, i, n) { +this._queue("histogram", t, e, i, n); +this.flush(); +}; +g._queue = function(t, e, i, n, o) { +if (a(n)) { +o = n; +n = void 0; +} +var r = { +method: t, +name: e, +value: i, +tags: this.tags.concat(o || []) +}; +l(n) && (r.sample_rate = n); +this.queue.push(r); +}; +t.exports = s; +e(s, "meshim_common_Instrumentation"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +return window[t]; +} +var n = { +getVariable: i +}; +t.exports = n; +e(n, "meshim_widget_utils_BrowserGlobals"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +u = t; +c = e; +u.$("livechat").$("channel").$("department_id$int").on("value", function(t) { +t && (h = t); +}); +} +function o(t, e, i) { +var n = parseInt(e, 10) || parseInt(c.getServerTime().toFixed(0), 10), o = n + "", r = u.$("livechat").$("profile"), s = h, a = (t.msg || "") + ""; +"department" in t && (s = t.department); +u.$("livechat").$("channel").$("log").$(o).write({ +timestamp$int: n, +type$string: "chat.msg", +msg$string: a, +nick$string: r.$("nick$string").getValue() || "", +display_name$string: r.$("display_name$string").getValue() || "", +department_id$int: s, +unverified$bool: !0, +__client$bool: !0 +}, i); +} +function r(t, e) { +var i = parseInt(e, 10) || parseInt(c.getServerTime().toFixed(0), 10), n = i + ""; +u.$("livechat").$("channel").$("log").$(n).write({ +timestamp$int: i, +nick$string: u.$("livechat").$("profile").$("nick$string").getValue() || "", +display_name$string: u.$("livechat").$("profile").$("display_name$string").getValue() || "", +type$string: "chat.file.upload", +file_name$string: t.file_name || "", +file_type$string: t.file_type || "", +file_size$int: t.file_size || 0, +unverified$bool: !0, +__client$bool: !0 +}); +return i; +} +function s(t, e) { +function i(t) { +if ("ok" !== t.raw.__status) return e(new window.Error(d(t.raw.error))); +if (!t.raw.data || "chat.file" !== t.raw.data.type) return e(new window.Error("INTERNAL_ERROR")); +e(null, w.pick(t.raw.data, [ "mime_type", "name", "size", "url", "metadata" ])); +} +var n = y._validateAndPrepareData([ t ]); +e = g.once(e); +if (p(n)) f(function() { +e(new window.Error(n)); +}); else { +var o = c.registerCallback(i), r = "https://" + n.host + m.CALLBACK_FILE_UPLOAD_PATH, s = { +ts: parseInt(c.getServerTime().toFixed(0), 10), +__messageID: o +}, a = { +"X-Zopim-MID": n.mid, +"X-Zopim-UID": n.uid +}, _ = { +error: function() { +e(new window.Error("CONN_ERROR")); +}, +load: function() { +if (200 !== this.status) { +var t; +try { +t = JSON.parse(this.responseText); +} catch (t) {} +e(t && t.error ? new window.Error(d(t.error)) : new window.Error("INTERNAL_ERROR")); +} +} +}; +y._uploadFiles(n.form_data, r, s, a, _); +} +} +function a(t, e) { +var i = y._validateAndPrepareData(t); +if (p(i)) return i; +var n = r({ +file_name: i.name, +file_type: i.type, +file_size: i.size +}, e), o = "https://" + i.host + m.FILE_UPLOAD_PATH, s = { +ts: n +}, a = { +"X-Zopim-MID": i.mid, +"X-Zopim-UID": i.uid +}; +y._uploadFiles(i.form_data, o, s, a); +} +function _(t) { +if (!window.FormData) return "NOT_SUPPORTED"; +var e = u.$("livechat"), i = e.$("settings").$("file_sending"), n = e.$("settings").$("package"), o = i.$("enabled$bool").getValue(), r = (i.$("allowed_extensions$string").getValue() || "").trim().replace(/\s*,\s*/g, ",").split(","), s = n.$("color_customization_enabled$int").getValue() || n.$("widget_customization_enabled$int").getValue(), a = e.$("profile").$("mid$string").getValue(), _ = e.$("profile").$("uid$string").getValue(), l = c.getHost(), d = new window.FormData(), h = [], p = [], f = 0; +if (!l) return "CONN_ERROR"; +if (!s) return "INVALID_PLAN"; +if (!o) return "NOT_ALLOWED"; +for (var g = 0, b = t.length; g < b; g++) { +if (!$.isValidType(t[g].name, r)) return "INVALID_EXTENSION"; +h.push(t[g].name); +p.push(t[g].type); +f += t[g].size || 0; +d.append("file_" + t[g].name, t[g]); +} +return f > m.FILE_UPLOAD_MAX ? "EXCEED_SIZE_LIMIT" : { +form_data: d, +name: h.join(", "), +type: p.join(", "), +size: f, +host: l, +mid: a, +uid: _ +}; +} +function l(t, e, i, n, o) { +var r = new window.XMLHttpRequest(), s = e + (Object.keys(i).length ? "?" + b.buildQuery(i) : ""); +if (r.upload) { +r.open("POST", s, !0); +for (var a in n) n.hasOwnProperty(a) && r.setRequestHeader(a, n[a]); +for (var _ in o) o.hasOwnProperty(_) && r.addEventListener(_, o[_]); +r.send(t); +} +} +function d(t) { +return v[t] || "UNKNOWN_ERROR"; +} +var u, c, h, p = i(21), f = i(16), g = i(40), m = i(18), $ = i(66), b = i(35), w = i(10), x = { +NOT_SUPPORTED: "NOT_SUPPORTED", +NOT_ALLOWED: "NOT_ALLOWED", +CONN_ERROR: "CONN_ERROR", +INVALID_EXTENSION: "INVALID_EXTENSION", +INVALID_PLAN: "INVALID_PLAN", +EXCEED_SIZE_LIMIT: "EXCEED_SIZE_LIMIT", +INTERNAL_ERROR: "INTERNAL_ERROR", +UNKNOWN_ERROR: "UNKNOWN_ERROR" +}, v = { +TOO_LARGE: "EXCEED_SIZE_LIMIT", +ILLEGAL_TYPE: "INVALID_EXTENSION", +NO_SESSION: "INTERNAL_ERROR", +UNEXPECTED_ERROR: "INTERNAL_ERROR", +UNABLE_TO_GET_SETTINGS: "INTERNAL_ERROR", +S3_UPLOAD_ERROR: "INTERNAL_ERROR", +NO_GATES: "INTERNAL_ERROR", +FILE_UPLOADS_DISABLED: "NOT_ALLOWED", +FILE_UPLOADS_TEMPORARILY_DISABLED: "INVALID_PLAN" +}, y = { +FILE_SENDING_ERRORS: x, +init: n, +sendChatMsg: o, +sendFiles: a, +sendFileWithCallback: s, +_validateAndPrepareData: _, +_uploadFiles: l +}; +t.exports = y; +e(y, "meshim_widget_controllers_ChatUtils"); +return y; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +return "string" == typeof t && "" != t; +} +function o() { +var t, e, i, n, o = document.cookie, r = {}; +if (!o || "string" != typeof o) return {}; +o = o.split(/;\s/); +for (t = o.length; t--; ) try { +e = o[t].match(/^([^=]+)(=(.*))?$/); +if (!e) continue; +i = h(e[1]); +n = h(e[3] || ""); +r[i] = n; +} catch (t) {} +return r; +} +function r(t) { +return n(t) ? o()[t] || null : null; +} +function s(t) { +var e = r(t), i = {}; +try { +i = d.parse(e); +} catch (t) {} +return i && "object" == typeof i ? i : {}; +} +function a(t, e, i) { +i = i || {}; +var n = c(t) + "=" + c(e); +if ("ttl" in i) { +var o = new Date(), r = 24 * i.ttl * 60 * 60 * 1e3; +o.setTime(o.getTime() + r); +n += "; expires=" + o.toGMTString(); +} +"path" in i && (n += "; path=" + i.path); +"domain" in i && (n += "; domain=" + i.domain); +i.secure && (n += "; secure"); +document.cookie = n; +} +function _(t, e, i) { +"object" != typeof e && (e = {}); +a(t, d.stringify(e), i); +} +function l(t, e) { +e = e || {}; +e.ttl = -1; +a(t, "", e); +} +var d = i(58), u = { +set: a, +get: r, +getJSONCookie: s, +setJSONCookie: _, +remove: l +}, c = window.encodeURIComponent, h = window.decodeURIComponent; +t.exports = u; +e(u, "meshim_common_Cookie"); +return u; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +return e ? s(t, e) : o(t); +} +function o(t) { +for (var e, i, n = t.length; n > 1; ) { +e = Math.floor(n-- * Math.random()); +i = t[e]; +t[e] = t[n]; +t[n] = i; +} +return t; +} +function r(t, e) { +if (!t || t.length <= 0) return -1; +if (!e) return Math.floor(Math.random() * t.length); +e = a(t, e); +var i, n = 0; +for (i = e.length; i--; ) n += e[i]; +var o = Math.random() * n, r = 0, s = e.length; +for (i = 0; i < s - 1; i++) { +r += e[i]; +if (o <= r) return i; +} +return i; +} +function s(t, e) { +var i, n, o, r, s, _ = t.concat(); +e = a(t, e); +t.length = 0; +s = 0; +for (i = e.length; i--; ) s += e[i]; +o = Math.random() * s; +r = 0; +i = 0; +for (;_.length; ) { +r += e[i]; +if (o <= r) { +s -= e[i]; +n = _.splice(i, 1)[0]; +e.splice(i, 1); +t.push(n); +o = Math.random() * s; +r = 0; +i = 0; +} else i++; +} +return t; +} +function a(t, e) { +if (l(e)) { +if (e.length === t.length) return e.concat(); +throw new window.Error("Invalid weights array: length does not match"); +} +if (d(e)) return _(t, e); +throw new window.Error("Invalid weights supplied"); +} +function _(t, e, i) { +var n, o, r; +if (!l(t)) throw new TypeError(" arr is not an array"); +var s = Object(t), a = s.length >>> 0; +if (!d(e)) throw new TypeError(e + " is not a function"); +arguments.length > 2 && (n = i); +o = new Array(a); +r = 0; +for (;r < a; ) { +var _, u; +if (r in s) { +_ = s[r]; +u = e.call(n, _, r, s); +o[r] = u; +} +r++; +} +return o; +} +var l = i(22), d = i(20), u = { +shuffle: n, +random_index: r, +map: _ +}; +t.exports = u; +e(u, "meshim_common_ArrayUtils"); +return u; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, u) { +var c, h, p, f, g, m, $ = [], b = []; +for (c in t) if (t.hasOwnProperty(c)) { +h = t[c]; +p = void 0; +if ("@keyframes" == c) { +for (var w in h) if (h.hasOwnProperty(w)) { +m = w + " { " + n(h[w]).join(" ") + " } "; +b.push("@-webkit-keyframes " + m, "@-moz-keyframes " + m, "@-ms-keyframes " + m, "@-o-keyframes " + m, "@keyframes " + m); +} +continue; +} +"@media" == c.slice(0, 6) && (c = [ c, "@mediaend" ].join("")); +switch (typeof h) { +case "boolean": +case "number": +case "string": +p = c.split(","); +for (f = 0, g = p.length; f < g; f++) $.push(r.toStyle(p[f], h)); +break; + +default: +if (s(h)) { +for (f = 0, g = h.length; f < g; f++) $.push(r.toStyle(c, h[f])); +break; +} +if (_.placeholder.test(c)) { +m = c.replace(_.placeholder, ""); +p = []; +for (f = 0, g = l.placeholder.length; f < g; f++) p.push(d([ m, l.placeholder[f] ])); +} +s(p) || (p = c.split(",")); +for (f = 0, g = p.length; f < g; f++) b = b.concat(n(h, p[f].trim())); +} +} +if ($.length) { +if (!u) { +$.unshift("{"); +$.push("}"); +} +b.push($.join("")); +} +if (e || i || o && !(a.isIE < 9)) for (f = 0, g = b.length; f < g; f++) { +e && (b[f] = [ e.replace(_.replacePseudo, ".$1"), " ", b[f] ].join("")); +i && (b[f] = b[f].replace(_.prePrependFQName, " ").replace(_.prependFQName, i)); +o && (b[f] = b[f].replace(_.replaceAppend, "")); +o && -1 !== b[f].indexOf("@media") && (b[f] = b[f].replace(_.replaceMedia, "$2 { $1 $3 }")); +} +return b; +} +var o = i(93), r = i(181), s = i(22), a = i(8), _ = (i(24), o.REGEX), l = { +placeholder: [ "::-webkit-input-placeholder", ":-moz-placeholder", "::-moz-placeholder", ":-ms-input-placeholder", ".placeholder" ] +}, d = o.join; +t.exports = n; +e(n, "jx_core_jcss_modules_transform2CSS"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +n = function() {}; +for (var t = [ "Moz", "webkit", "ms" ], e = document.createElement("div").style, i = g.length; i--; ) { +var r = g[i]; +m[r] = function(i) { +if (i in e) return i; +for (var n = i.charAt(0).toUpperCase() + i.slice(1), r = t.length; r--; ) { +if (t[r] + n in e) return "-" + t[r].toLowerCase() + "-" + o(i); +} +return i; +}(r); +} +} +function o(t) { +return t.replace(p.selectorCase, "-$1").replace(p.commaStart, "").toLowerCase(); +} +function r(t, e) { +n(); +var i; +e += ""; +if (p.isVariable.test(e)) return t + ":" + e + ";"; +if ("!important" === e.substr(-10)) { +i = !0; +e = e.substr(0, e.length - 10).trim(); +} +switch (!0) { +case "background" === t: +return a(e, i); + +case "display" === t: +return h.bugs.noBoxSizing && "inline-block" == e ? "" + s("display", "inline", i) + s("zoom", "1", i) : s("display", e, i); + +case t in m: +return s(m[t], e, i); + +default: +return s(o(t), e, i); +} +} +function s(t, e, i) { +return t + ":" + e + (i ? "!important;" : ";"); +} +function a(t, e) { +var i, n = []; +i = t.split(" "); +switch (i[0]) { +case "linear-gradient": +i.splice(0, 1); +t = i.join(" "); +n.push(s("background", "-webkit-linear-gradient" + t, e), s("background", "-o-linear-gradient" + t, e), s("background", "-moz-linear-gradient" + t, e), s("background", "-ms-linear-gradient" + t, e), s("background", "-linear-gradient" + t, e)); +break; + +case "gradient": +var o, r; +n.push(s("background", _(i[2], i[3]), e)); +"top" == i[1] && (o = "bottom"); +"left" == i[1] && (o = "right"); +"right" == i[1] && (o = "left"); +"bottom" == i[1] && (o = "top"); +r = $([ "(", i[1], ",", i[2], ",", i[3], ")" ]); +n.push(s("background", "-o-linear-gradient" + r, e), s("background", "-moz-linear-gradient" + r, e), s("background", "-ms-linear-gradient" + r, e), s("background", "linear-gradient" + r, e)); +if ("left" == i[1] || "right" == i[1]) { +n.push(s("background", $([ "-webkit-gradient(linear,", i[1], " center,", o, " center,", "from(", i[2], "),to(", i[3], "))" ]))); +r = $([ "progid:DXImageTransform.Microsoft.gradient(startColorstr=", l(i[2]), ", endColorstr=", l(i[3]), ", GradientType=1)" ]); +n.push(s("filter", r, e), s("-ms-filter", r, e)); +} else { +n.push(s("background", $([ "-webkit-gradient(linear,", "center ", i[1], ",", "center ", o, ",", "from(", i[2], "),to(", i[3], "))" ]))); +r = $([ "progid:DXImageTransform.Microsoft.gradient(startColorstr=", l(i[2]), ", endColorstr=", l(i[3]), ")" ]); +n.push(s("filter", r, e), s("-ms-filter", r, e)); +} +break; + +default: +n.push(s("background", t, e)); +} +return n.join(""); +} +function _(t, e) { +function i(i) { +return (16 * Math.round((parseInt(t.substring(i, i + 2), 16) + parseInt(e.substring(i, i + 2), 16)) / 32)).toString(16); +} +"rgb" == t.slice(0, 3) && (t = d(t, !0)); +"rgb" == e.slice(0, 3) && (e = d(e, !0)); +t = l(t).substring(1); +e = l(e).substring(1); +return "#" + i(0) + i(2) + i(4); +} +function l(t) { +if ("string" != typeof t) return ""; +var e; +e = "#" == t.charAt(0) ? t.substring(1) : t; +if ("rgb" == e.slice(0, 3)) return d(e); +3 == e.length && (e = e.charAt(0) + e.charAt(0) + e.charAt(1) + e.charAt(1) + e.charAt(2) + e.charAt(2)); +return "#" + e; +} +function d(t, e) { +t = t.slice(5, -1); +t = t.split(","); +if (3 == t.length || e) return "#" + u(t[0]) + u(t[1]) + u(t[2]); +t[3] = (255 * parseFloat(t[3], 10)).toFixed(); +return "#" + u(t[3]) + u(t[0]) + u(t[1]) + u(t[2]); +} +function u(t) { +t = parseInt(t, 10).toString(16); +1 == t.length && (t = "0" + t); +return t; +} +var c = i(93), h = i(8), p = c.REGEX, f = { +toStyle: r +}, g = [ "animation", "userSelect", "appearance", "transform", "transformOrigin" ], m = {}, $ = c.join; +t.exports = f; +e(f, "jx_core_jcss_modules_JCSSConverter"); +return f; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, n) { +t || (t = document); +var r = o(t, e); +if (r) if (n) r.styleSheet ? r.styleSheet.cssText = i : r[a ? "textContent" : "innerText"] = i; else if (r.styleSheet) r.styleSheet.cssText = [ r.styleSheet.cssText, i ].join(""); else { +var s = t.createTextNode(i); +r.appendChild(s); +} else { +r = t.createElement("style"); +t.getElementsByTagName("head")[0].appendChild(r); +r.type = "text/css"; +e && r.setAttribute("__jx__stylesheet_id", e); +if (void 0 !== r.styleSheet) { +if (!r.styleSheet) { +t.getElementsByTagName("head")[0].removeChild(r); +r = null; +return; +} +r.styleSheet.cssText = i; +} else r[a ? "textContent" : "innerText"] = i; +} +} +function o(t, e) { +if (e) { +t || (t = document); +for (var i = 0, n = t.styleSheets.length; i < n; i++) if ((t.styleSheets[i].ownerNode && t.styleSheets[i].ownerNode.getAttribute("__jx__stylesheet_id") || t.styleSheets[i].owningElement && t.styleSheets[i].owningElement.getAttribute("__jx__stylesheet_id")) == e) return t.styleSheets[i].ownerNode && t.styleSheets[i].ownerNode || t.styleSheets[i].owningElement && t.styleSheets[i].owningElement; +} +} +var r = i(8), s = { +setStyleSheet: n +}, a = r.isTextContent; +t.exports = s; +e(s, "jx_core_jcss_modules_JCSSStyleSheet"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +for (var e = 0, i = h.length; e < i; e++) if (t === h[e]) return; +h.push(t); +for (var n in l.cache) l.cache.hasOwnProperty(n) && d.setStyleSheet(t.idoc, "jcss" + n, l.cache_replaced[n]); +} +function o(t) { +for (var e = 0, i = h.length; e < i; e++) t === h[e] && h.splice(e, 1); +} +function r(t) { +_ = u(t); +} +function s() { +return _; +} +function a() { +return h; +} +var _, l = i(92), d = i(182), u = i(12), c = { +bindIFrame: n, +unbindIFrame: o, +setIFrameOnly: r, +getIFrameOnly: s, +getIFrames: a +}, h = []; +t.exports = c; +e(c, "jx_core_jcss_modules_JCSSIFrame"); +return c; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +var a = t.ownerDocument; +s || (s = {}); +s.tagName || (s.tagName = "style"); +r.call(this, a.getElementsByTagName("head")[0], e, i, null, s); +this.dom.type = "text/css"; +this.addChildren(o); +} +var o = i(1), r = i(6); +n.prototype = o(r.prototype); +n.prototype.getText = function() { +return this.dom.styleSheet ? this.dom.styleSheet.cssText : r.prototype.getText.call(this); +}; +n.prototype.addChildren = function(t) { +if (t && t.length) if ("styleSheet" in this.dom) { +if (!this.dom.styleSheet) { +this.destroy(); +return; +} +this.dom.styleSheet.cssText += t.join(""); +} else r.prototype.addChildren.call(this, [ t.join("") ]); +}; +t.exports = n; +e(n, "jx_ui_StyleSheet"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +t.preventDefault = n.preventDefault; +t.stopPropagation = n.stopPropagation; +t.target = t.srcElement; +} +function o() { +this.allCallbacks = {}; +this.nativeHandlers = {}; +} +var r = i(8), s = i(14); +n.preventDefault = function() { +this.returnValue = !1; +}; +n.stopPropagation = function() { +this.cancelBubble = !0; +}; +o.prototype.useCustomHandling = function(t) { +return !this.dom.nodeType && this.dom != window && this.dom != document || ("form" != this.tagName.toLowerCase() || "submit" != t) && (!r.isCustomEvents && (r.isFF && r.isFF < 9 ? !document.createEvent("event")[t.toUpperCase()] : void 0 === this.dom["on" + t])); +}; +o.prototype.addEventListener = function(t, e) { +if (!t && "function" != typeof e) throw "bad arguments to on / addEventListener"; +if (!(t in this.allCallbacks)) { +this.allCallbacks[t] = []; +this.useCustomHandling(t) || this.setupNativeEventListener(t); +} +this.allCallbacks[t].push(e); +return this; +}; +o.prototype.setupNativeEventListener = function(t) { +if (!(t in this.nativeHandlers)) { +var e = this; +this.nativeHandlers[t] = function(i) { +i && (i.stopPropagation || n(i)); +var o, a = e.allCallbacks[t], _ = a.length, l = !0; +a._active = !0; +for (o = 0; o < _; o++) try { +if (!a[o]) continue; +!1 === a[o].call(e, r.isCustomEvents && i instanceof r.CustomEvent ? i.detail : i) && (l = !1); +} catch (t) { +s.fire("error", t); +} +a._active = !1; +if (a._dirty) { +for (o = 0; o < _; o++) if (!a[o]) { +o == _ - 1 ? a.pop() : a[o--] = a.pop(); +_--; +} +a._dirty = !1; +} +if (!1 === l) { +if (i) { +i.preventDefault(); +i.returnValue = !1; +} +return !1; +} +}; +this.dom.attachEvent ? this.dom.attachEvent("on" + t, this.nativeHandlers[t]) : this.dom.addEventListener && this.dom.addEventListener(t, this.nativeHandlers[t], !1); +} +}; +o.prototype.teardownNativeEventListener = function(t) { +var e = this.nativeHandlers[t]; +if (e) { +this.dom.attachEvent ? this.dom.detachEvent("on" + t, e) : this.dom.addEventListener && this.dom.removeEventListener(t, e, !1); +delete this.nativeHandlers[t]; +delete this.allCallbacks[t]; +} +}; +o.prototype.removeEventListener = function(t, e) { +var i = this.allCallbacks[t]; +if (i) { +for (var n = 0, o = i.length; n < o; n++) if (i[n] === e) { +1 == i.length ? this.nativeHandlers[t] ? this.teardownNativeEventListener(t) : delete this.allCallbacks[t] : i._active ? (i[n] = null, +i._dirty = !0) : n == o - 1 ? i.pop() : i[n] = i.pop(); +break; +} +return this; +} +}; +o.prototype.unextendEvents = function() { +if (this.allCallbacks && this.nativeHandlers) { +for (var t in this.nativeHandlers) this.nativeHandlers.hasOwnProperty(t) && this.teardownNativeEventListener(t); +this.allCallbacks = this.nativeHandlers = null; +} +}; +o.prototype.fireCustomEvent = function(t, e) { +if (!r.isCustomEvents || this.useCustomHandling(t)) { +var i = this.allCallbacks[t], n = !0; +if (i && i.length) { +i._active = !0; +var o, a, _; +for (o = 0, a = i.length; o < a; o++) try { +if (!i[o]) continue; +_ = i[o].call(this, e); +!1 === _ && (n = !1); +} catch (t) { +s.fire("error", t); +} +i._active = !1; +if (i._dirty) { +for (o = 0; o < a; o++) if (!i[o]) { +o == a - 1 ? i.pop() : i[o--] = i.pop(); +a--; +} +i._dirty = !1; +} +} +return n; +} +return this.dom.dispatchEvent(new r.CustomEvent(t, { +bubbles: !1, +cancelable: !0, +detail: e +})); +}; +o.prototype.fire = o.prototype.fireCustomEvent; +o.prototype.on = o.prototype.addEventListener; +o.prototype.un = o.prototype.removeEventListener; +o.__jx__no_fqname = !0; +t.exports = o; +e(o, "jx_ui_HTMLEvent"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +t = t.split(/[^a-zA-Z0-9]/); +for (var e = 1; e < t.length; e++) t[e].length && (t[e] = t[e].substr(0, 1).toUpperCase() + t[e].substr(1)); +return t.join(""); +} +var n = { +toCamelCase: i +}; +t.exports = n; +e(n, "jx_core_StringUtils"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +var i = a[t]; +i.module_function = new Function("$Modules", e.toString().replace(u, "$1")); +i.ready(); +} +function o(t) { +var e, i, n, o; +for (e = d.length - 1; e >= 0; e--) { +n = d[e]; +o = n.dependencies; +for (i = o.length - 1; i >= 0; i--) if (o[i] == t) { +o.splice(i, 1); +break; +} +n.ready(); +} +} +function r() { +var t = Array.prototype.slice.call(arguments), e = t.shift(); +this.fqname = e; +this.name = e.split(".").pop(); +this.callbacks = []; +this.dependencies = t; +d.push(this); +} +function s(t) { +t(); +} +var a = i(4), _ = i(46), l = i(386), d = [], u = /^function *\( *\) *{ *([\s\S]*) *}$/; +r.ensureLoaded = function(t, e) { +t instanceof r ? t.ensureLoaded(e) : e(); +}; +r.prototype.ensureLoaded = function(t) { +this.ifLoaded(t); +this.load(); +}; +r.prototype.ifLoaded = function(t) { +this.callbacks.push(t); +}; +r.prototype.load = function() { +function t(t) { +n(t[0], t[1]); +} +var e, i, o = this.getDependencies(); +for (e = 0; e < o.length; e++) { +i = o[e]; +i.loader || (i.loader = new l(_.baseURL + "/lib/" + _.build_number + "/" + i.fqname + ".js", a, t)); +} +}; +r.prototype.getDependencies = function() { +var t, e = this.dependencies, i = [ this ]; +for (t = 0; t < e.length; t++) { +var n = a[e[t]]; +i = i.concat(n.getDependencies()); +} +return i; +}; +r.prototype.ready = function() { +if (!this.dependencies.length && this.module_function) { +for (t = d.length - 1; t >= 0; t--) if (d[t] == this) { +d.splice(t, 1); +break; +} +this.module_function(a); +var t, e = a[this.fqname]; +e.ifLoaded = e.ensureLoaded = s; +for (t = 0; t < this.callbacks.length; t++) this.callbacks[t](e); +o(this.fqname); +delete this.callbacks; +delete this.fqname; +delete this.name; +delete this.dependencies; +delete this.loader; +} +}; +a.Module = r; +t.exports = r; +e(r, "jx_core_Module"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +if (!d) { +s = c.root.$("livechat"); +a = s.$("settings").$("theme").$("chat_window").$("profile_card"); +_ = s.$("ui").$("chat_window").$("display_profile_card$bool"); +l = s.$("settings").$("rating").$("enabled$bool"); +a.bindValue(o); +l.bindValue(o); +d = !0; +} +} +function o() { +var t = u(a.getValue("display_avatar$bool")), e = u(a.getValue("display_title_name$bool")), i = u(a.getValue("display_rating$bool")) && u(l.getValue()), n = t || i || e; +_.update(n); +} +function r() { +d = !1; +} +var s, a, _, l, d, u = i(12), c = i(5), h = { +init: n, +resetState: r +}; +t.exports = h; +e(h, "meshim_widget_controllers_ChatPanelProfileCardController"); +return h; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +d = y.root; +u = d.$("livechat").$("gates").$("premium_support$bool"); +h = d.$("tmp").$("package_name$string"); +f = d.$("livechat").$("ui").$("chat_window").$("offline_form"); +g = d.$("livechat").$("ui").$("mockup$bool"); +if (!g.getValue()) { +m = d.$("livechat").$("settings").$("forms").$("offline_form"); +$ = d.$("tmp").$("api_settings").$("settings").$("forms").$("offline_form").$("message$string"); +b = d.$("tmp").$("server_settings").$("settings").$("forms").$("offline_form").$("message$string"); +h.update(window.sessionStorage ? window.sessionStorage.getItem("$zchat_package_name") : ""); +h.bindValue(o); +u.bindValue(r); +} +} +function o() { +p = h.getValue(); +s(); +} +function r() { +c = u.getValue(); +c ? s() : _(); +} +function s() { +if (c) { +if (S.indexOf(p) > -1) { +_(); +l(null); +} else { +var t, e = new Date(j.getServerTime()), i = (e.getUTCDay() + 1) % 7 * v.DAY + e.getUTCHours() * v.HOUR + e.getUTCMinutes() * v.MINUTE + e.getUTCSeconds() * v.SECOND, n = i < A; +l(n ? "offline" : null); +t = (n ? 2 : 7) * v.DAY - i; +a(t + v.SECOND); +} +} +} +function a(t) { +_(); +w = window.setTimeout(s, t); +} +function _() { +w && (w = window.clearTimeout(w)); +} +function l(t) { +C.setStatus(t); +var e = $.getValue() || ("offline" === t ? k.toString() : b.getValue()); +m.update({ +message$string: e +}); +f.update({ +upgrade_link_display$bool: "offline" === t +}); +} +var d, u, c, h, p, f, g, m, $, b, w, x = i(7), v = i(174), y = i(5), j = i(57), C = i(115), S = [ "premium", "enterprise", "master" ], A = 2 * v.DAY, k = x(3), I = { +init: n +}; +t.exports = I; +e(I, "meshim_widget_controllers_PremiumSupportController"); +return I; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t, e) { +var i = e.match(t); +return i ? i.length : 0; +} +function n(t, e, n, o) { +return Math.pow(i(t, e) / n, 1 / o); +} +function o(t) { +var e, i = 1 - t[0]; +for (e = 1; e < t.length; e++) i *= 1 - t[e]; +return 1 - i; +} +function r(t, e, r) { +r || (r = i(/ /g, e)); +for (var s, a, _, d, u = e.length, c = [], h = 0; h < l[t].length; h += 2) { +s = l[t][h]; +a = l[t][h + 1]; +_ = "\\\\b" == s.toString().substr(1, 2) ? r : u; +d = n(s, e, _, a); +c.push(d); +} +"en" == t && c.push(.6 / e.length); +return o(c); +} +function s(t, e) { +var n = document.body.getAttribute("lang") || document.documentElement.getAttribute("lang"); +if (n) return n; +t || (t = _); +e || (e = document.body.innerHTML.replace(/\s+/g, " ").replace(/]*?>.*?<\/script>/gi, " ").replace(/]*?>.*?<\/style>/gi, " ").replace(//g, " ").replace(/<\/?[^>]+?>/g, " ").replace(/[-_a-z0-9.@]+[.@][-_a-z0-9.@]+/gi, "").replace(/[\s\d!'#$%&'()*+,-.\/:;<=>?@^_{|}~\[\]\/]+/g, " ")); +e = e.replace(/\s+/g, " "); +var o, s, a = i(/ +/g, e), l = []; +for (o = 0; o < t.length; o++) l.push([ t[o], r(t[o], e, a) ]); +l.sort(function(t, e) { +return e[1] - t[1]; +}); +s = l[0][0]; +s.scores = l; +window.__$z_results = a + " " + e.length + " " + e.length / a + "\n" + l.join("\n"); +window.__$z_innerText = e; +return s; +} +var a = { +guess: s +}, _ = [], l = { +en: [ /\b(up|me|submit|offers?|about|rights?|more|contact|all|downloads?|how|search|to|do|i[nst]?|your?|that|was|one?|are|with|[bw]e|have|this|f?or|had|by|[hn]ot?|[bo]ut|so|some|what|can|[tw]here|why|other|over|die|ten)\b/gi, 4, /\b(inn|set|end|about|pro|the|of|from|and|a|as|at)\b/gi, 6 ], +cs: [ /[\u00e1\u010d\u010f\u00e9\u011b\u00ed\u0148\u00f3\u0159\u0161\u0165\u00fa\u016f\u00fd\u017e]/gi, 5, /\b(by|do|to|[aikosvz])\b/gi, 3, /\b(na|za|se|je|\u017ee|ve|jako|jsem|pro|tak|po|u\u017e|jsou|byl)\b/gi, 6 ], +de: [ /[\u00df]/g, 10, /[\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc]/g, 7, /\b(de[mrs]|vo[nm]|zu[mr]?|da[s\u00df]?|eine[mnrs]?|a[lu]s|wir|[sw]ie|n[ao]ch|vor[ms]?|(\u00fcb|od|ab)er|und|im|mit|sich|auf|f\u00fcr|nicht|auch|es|bei|nur|bis|mehr|durch)\b/gi, 6 ], +es: [ /[\u00f1]/g, 10, /[\xE1\xE9\xED\xF3\xFA]/gi, 6, /\b(que|nuestro|ingresar|inicio|qu[e\u00e9]|[dt]e|ser?|[ms]i|l?a|e[lns]|y|tu|los?|una?|por|con|para|est(\u00e1|ar))\b/gi, 6 ], +fr: [ /[\u0153]/gi, 15, /[\u00e0\u00e2\u00e7\u00e9\u00e8\u00ea\u00eb\u00ee\u00ef\u00f4\u00fb\u00f9\u00fc\u00ff]/gi, 7, /\b(son)\b/gi, 4, /\b(en)\b/gi, 5, /\b([ado]u|aux?|[do]u|la|[cdls]es|es?t|une?|ne|qu[ei]|sur|dans|pa[rs]|il|sont|avec|voir)\b/gi, 6 ], +hr: [ /[\u010d\u0107\u0111\u0161\u017e]/gi, 10, /d\u017e|lj|nj/gi, 3, /\b(ali|ja|je|mene|na|ne|od|ovo|se|sve|ti|u|za|znati)\b/gi, 6 ], +ms: [ /\b(and)\b/gi, 4, /\b((se)?(biji|buah|orang)|ada|anda|atau|boleh|bukan|dalam|dan|dari|di|ini|kami|ke|lagi|sila|tidak|tinggi|telah|untuk)\b/gi, 6 ], +da: [ /[\u00c6\u00e6\u00d8\u00f8\u00c5\u00e5]/g, 10, /\b(de)\b/gi, 5, /\b(ind|l\u00e6s|nyheder|[vt]il|s?om|og|[mv]ed|kan|har|var|tager|af|d?et|de[tn]{2}e|skal|den|set|noget|nogle|mange|hadde|eller|efter|end|blive|er|sekund|viser|ud|(a|vi|sku)lle)\b/gi, 6 ], +nb: [ /[\u00c6\u00e6\u00d8\u00f8\u00c5\u00e5]/g, 10, /\b(de)\b/gi, 5, /\b(passord|nyheter|inn|[vt]il|s?om|og|[mv]ed|kan|[htv]ar|av|d?et|de[tn]{2}e|skal|se(g|tt)|noen?|mange|hadde|e[lt]{2}er|enn|blir?|ble|andre|viser|ut|(a|vi|sku)lle)\b/gi, 6 ], +nl: [ /\b(in|die)\b/gi, 4, /\b(de|en)\b/gi, 5, /\b(het|dat|van|ik|te|een|hij|niet|zijn)\b/gi, 6 ], +pt: [ /[\u00e1\u00e2\u00e3\u00e0\u00e7\u00e9\u00ea\u00ed\u00f3\u00f4\u00f5\u00fa]/gi, 7, /\b(gr\u00e1fico|ao|como|das?|de|dos|ele|em?|mai?s|na|n\u00e3o|os?|para|por|que|se|uma?)\b/gi, 6 ], +sk: [ /\u00e1\u00e4\u010d\u010f\u00e9\u00ed\u013e\u013a\u0148\u00f3\u00f4\u0155\u0161\u0165\u00fa\u00fd\u017e/gi, 10, /dz|d\u017e/gi, 5, /\b(ten|to|do|so)\b/gi, 4, /\b(ja|na|za|c\u030co|t\u00e1|po|vo|zo|n\u00e1[s\u030cs])\b/gi, 6 ], +tr: [ /[\u00c7\u011e\u0130\u00d6\u015e\u00dc\u00e7\u011f\u0131\u00f6\u015f\u00fc]/g, 7, /\b(son)\b/gi, 4, /\b(formu|bir|ve|ne|bu|i\u00e7in|o|b?en|\u00e7ok|(al|\u00e7\u0131k|ol|yap)mak|(de|gel|git|g\u00f6r|iste|ver)mek|gibi|daha|kendi|ile|ama|sonra|kadar|yer|insan|de\u011fil|y\u0131l|g\u00fcn|biz)\b/gi, 6 ], +vi: [ /[\u00e0\u1ea3\u00e3\u00e1\u1ea1\u0103\u1eb1\u1eb3\u1eb5\u1eaf\u1eb7\u00e2\u1ea7\u1ea9\u1eab\u1ea5\u1ead\u0111\u00e8\u1ebb\u1ebd\u00e9\u1eb9\u00ea\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\u00ec\u1ec9\u0129\u00ed\u1ecb\u00f2\u1ecf\u00f5\u00f3\u1ecd\u00f4\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u01a1\u1edd\u1edf\u1ee1\u1edb\u1ee3\u00f9\u1ee7\u0169\u00fa\u1ee5\u01b0\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\u00fd\u1ef5]/gi, 8, /\b(v\u00e0|c\u00e1c|c\u1ee7a|c\u00f3|\u0111\u0103ng|\u0111\u00e2y|ho\u1eb7c|kh\u1ea9u|k\u00fd|m\u1ed9t|ng\u00e0y|l\u00e0|trong|cho)\b/gi, 6 ], +ja: [ /[\u3041-\u30ff]/g, 10 ], +ko: [ /[\uAC00-\uD7A3\u1100-\u11FF\u3131-\u318E\uFFA1-\uFFDC]/g, 10 ], +th: [ /[\u0E00-\u0E7F]/g, 10 ], +zh_CN: [ /[\u4e00-\u9fb4]/g, 1, /[\u7684\u662f\u8fd9\u6709\u5728\u4e0d\u4e86\u6765\u4e2a\u5230\u4e3a\u548c\u9053\u4e5f\u65f6\u5f97\u5c31\u90a3\u8981\u4ee5\u7740\u53bb\u4e4b\u8fc7\u5bb6\u5bf9\u53ef\u91cc\u540e\u4e48\u591a\u800c\u80fd\u90fd\u7136\u6ca1\u8d77\u8fd8]/g, 7 ], +ru: [ /[\u0410-\u042f\u0430-\u044f\u0401\u0451]/g, 3 ], +ar: [ /[\u0600-\u06FF\u0750-\u077F\uFB50-\uFDFF\uFE70-\uFEFF]/g, 1 ] +}; +for (var d in l) l.hasOwnProperty(d) && _.push(d); +t.exports = a; +e(a, "jx_language_Detect"); +return a; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +"string" != typeof t && (t = ""); +return t.replace(/^[A-Za-z]{4}$/, function(t) { +return t.slice(0, 2).toLowerCase() + "_" + t.slice(2).toUpperCase(); +}); +} +var n = { +"en-US": "en", +"en-ca": "en", +"en-GB": "en", +"es-419": "es", +"es-es": "es", +fil: "tl", +"fr-ca": "fr", +no: "nb", +pt: "pt_BR", +"pt-BR": "pt_BR", +uk: "ru", +"zh-cn": "zh_CN", +"zh-tw": "zh_TW" +}, o = [ "pt", "uk" ], r = {}; +r.zendeskToZopim = function(t, e) { +if (!e || -1 === o.indexOf(t)) { +var r = n[t]; +if (r) return r; +} +return i(t); +}; +t.exports = r; +e(r, "meshim_common_LocaleMapper"); +return r; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +"--" !== t && t || (t = _.guess()); +return a.zendeskToZopim(t, !0); +} +var o = i(7), r = i(5), s = i(35), a = i(191), _ = i(190), l = {}; +l.init = function() { +var t, e = r.root.$("livechat").$("ui").$("mockup$bool"), i = r.root.$("livechat").$("ui").$("popout$bool"), a = r.root.$("livechat").$("ui").$("lang_dir$string"), _ = r.root.$("livechat").$("settings").$("language").$("language$string"); +if (!e.getValue()) if (i.getValue()) { +t = s().get("lang"); +t = n(t); +_.update(t); +o && o.update && o.update(t); +o && o.rtl && a.update(o.rtl() ? "rtl" : "ltr"); +} else _.bindValue(function(t) { +if ("--" !== t && t) { +t = n(t); +o && o.update && o.update(t); +o && o.rtl && a.update(o.rtl() ? "rtl" : "ltr"); +} else { +t = n(t); +_.update(t); +} +}); +}; +t.exports = l; +e(l, "meshim_widget_controllers_LanguageController"); +return l; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +var t = c.root; +u = t.$("connection").$("status$string"); +s = t.$("livechat"); +a = s.$("agents"); +_ = s.$("channel").$("chatting$bool"); +l = s.$("account").$("status$string"); +d = s.$("ui").$("mockup$bool"); +a.bindKeys(r); +} +function o() { +a.unbindKeys(r); +s = a = _ = null; +l = d = u = null; +} +function r() { +if (!d.getValue() && "reattached" === u.getValue()) { +var t = l.getValue(), e = a.getKeys().length; +_.getValue() && !e && "offline" == t && c.livechat.endChat(); +} +} +var s, a, _, l, d, u, c = i(5), h = { +init: n, +reset: o +}; +t.exports = h; +e(h, "meshim_widget_controllers_OfflineAndNoAgentEndChat"); +return h; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e) { +e = e || window; +s = t.$("livechat").$("profile"); +var i = { +window: a.extend(e, !0), +document: a.extend(e.document, !0) +}; +i.document.on("mousemove", o); +i.window.on("click", o); +i.window.on("scroll", o); +i.window.on("keypress", o); +r(); +} +function o() { +l++; +} +function r() { +l && s.write({ +active$int: +new Date() +}); +l = 0; +window.setTimeout(r, d); +} +var s, a = i(14), _ = { +init: n +}, l = 1, d = 2e4; +t.exports = _; +e(_, "meshim_widget_controllers_Tracker"); +return _; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +s = m.root.$("livechat").$("profile"); +a = s.$("display_name$string"); +l = s.$("email$string"); +u = s.$("auth").$("type$string"); +h = s.$("logged_in$bool"); +a.on("value", function(t) { +_ = t; +o(); +}); +l.on("value", function(t) { +d = t; +o(); +}); +u.on("value", function(t) { +c = t; +o(); +}); +p = m.root.$("livechat").$("settings"); +f = p.$("login").$("allowed_types"); +g = p.$("login").$("allowed_types_count$int"); +f.on("value", function() { +var t = f.getValue(), e = 0; +for (var i in t) if (t.hasOwnProperty(i)) { +if ("email$bool" == i) continue; +t[i] && e++; +} +e != g.getValue() && g.update(e); +}); +} +function o() { +h.update(r()); +} +function r() { +return !!c || (!(!d || !(d + "").trim()) || (!(!_ || !(_ + "").trim() || $.isDefaultName(_)) || void 0)); +} +var s, a, _, l, d, u, c, h, p, f, g, m = i(5), $ = i(10), b = { +init: n +}; +t.exports = b; +e(b, "meshim_widget_controllers_ProfileListener"); +return b; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +function e() { +s.disableMobileNotifications(t); +} +if ("boolean" == typeof t) { +r.callOnFastInit(e); +r.callOnRegistered(e); +r.instrument("mobileNotifications.setDisabled"); +} else window.console && window.console.log(r.getPrefix() + ": mobileNotifications.setDisabled() expects argument passed to be a boolean"); +} +function o(t) { +function e() { +s.mobileNotificationsIgnoreChatButtonVisibility(t); +} +if ("boolean" == typeof t) { +r.callOnFastInit(e); +r.callOnRegistered(e); +r.instrument("mobileNotifications.setIgnoreChatButtonVisibility"); +} else window.console && window.console.log(r.getPrefix() + ": mobileNotifications.setIgnoreChatButtonVisibility() expects argument passed to be a boolean"); +} +var r = i(27), s = i(25), a = {}; +a.setDisabled = n; +a.setIgnoreChatButtonVisibility = o; +t.exports = a; +e(a, "meshim_widget_controllers_liveChatAPI_MobileNotifications"); +return a; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +function e() { +if (r(t)) { +a.saveAPISettings({ +settings: { +forms: { +offline_form: { +message$string: t +} +} +} +}); +o.$("livechat").$("settings").$("forms").$("offline_form").update({ +message$string: t +}); +} else window.console && window.console.log(a.getPrefix() + ": offlineForm.setGreetings() expects passed argument to be a string"); +} +function i() { +a.resetAPISettings({ +settings: { +forms: { +offline_form: { +message$string: null +} +} +} +}); +var t = a.getServerSettings("settings.forms.offline_form.message$string"); +t && o.$("livechat").$("settings").$("forms").$("offline_form").update({ +message$string: t +}); +} +var n = null === t ? i : e; +a.savePopoutAPICalls("offlineForm.setGreetings", [ t ]); +a.callOnFastInit(n, !0); +a.callOnRegistered(n, !0); +a.instrument("offlineForm.setGreetings"); +} +var o, r = i(21), s = i(5), a = i(27), _ = {}; +_.init = function() { +o = s.root; +}; +_.setGreetings = n; +t.exports = _; +e(_, "meshim_widget_controllers_liveChatAPI_OfflineForm"); +return _; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +function e() { +a.saveAPISettings({ +settings: { +forms: { +pre_chat_form: { +message$string: t +} +} +} +}); +o.$("livechat").$("settings").$("forms").$("pre_chat_form").update({ +message$string: t +}); +} +if (r(t)) { +a.savePopoutAPICalls("prechatForm.setGreetings", [ t ]); +a.callOnFastInit(e, !0); +a.callOnRegistered(e, !0); +a.instrument("prechatForm.setGreetings"); +} else window.console && window.console.log(a.getPrefix() + ": prechatForm.setGreetings() expects passed argument to be a string"); +} +var o, r = i(21), s = i(5), a = i(27), _ = {}; +_.init = function() { +o = s.root; +}; +_.setGreetings = n; +t.exports = _; +e(_, "meshim_widget_controllers_liveChatAPI_PreChatForm"); +return _; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +var n = i(8), o = i(58), r = i(5), s = {}; +s.init = function() { +function t(t) { +window.console && window.console.log(i ? o.stringify(t) : t); +} +var e = r.root, i = n.isIE || n.isNewIE; +s.connection = function() { +t(e.$("connection").getValue()); +}; +s.livechat = function() { +t(e.$("livechat").getValue()); +}; +s.all = function() { +t(e.getValue()); +}; +}; +t.exports = s; +e(s, "meshim_widget_controllers_liveChatAPI_Debug"); +return s; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +if (f(t)) { +v.instrument("window.onShow"); +var e = v.getCallbackCaller(t); +x.on("API:window:show", e); +} else window.console && window.console.log(v.getPrefix() + ": window.onShow() expects a callback function to be provided"); +} +function o(t) { +if (f(t)) { +v.instrument("window.onHide"); +var e = v.getCallbackCaller(t); +x.on("API:window:hide", e); +} else window.console && window.console.log(v.getPrefix() + ": window.onHide() expects a callback function to be provided"); +} +function r(t) { +function e() { +v.saveAPISettings({ +settings: { +chat_window: { +title_bar: { +title$string: t +} +} +} +}); +h.$("livechat").$("settings").$("chat_window").$("title_bar").update({ +title$string: t +}); +} +t = t && t.toString(); +if (p(t)) { +v.savePopoutAPICalls("window.setTitle", [ t ]); +v.callOnFastInit(e); +v.callOnRegistered(e); +v.instrument("window.setTitle"); +} else window.console && window.console.log(v.getPrefix() + ": window.setTitle expects passed argument to be a string"); +} +function s() { +v.callOnRegistered(function() { +x.toggleWindow(); +}); +v.instrument("window.toggle"); +} +function a() { +v.instrument("window.getDisplay"); +return h.$("livechat").$("ui").$("chat_window").$("display$bool").getValue(); +} +function _(t) { +function e() { +v.saveAPISettings({ +settings: { +theme: { +chat_window: { +v_offset$int: t +} +} +} +}); +h.$("livechat").$("settings").$("theme").$("chat_window").update({ +v_offset$int: t +}); +} +t = parseInt(t, 10); +if (isNaN(t) || t < 0) window.console && window.console.log(v.getPrefix() + ': window.setOffsetVertical() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0'); else { +v.callOnFastInit(e, !0); +v.callOnRegistered(e, !0); +v.instrument("window.setOffsetVertical"); +} +} +function l(t) { +function e() { +v.saveAPISettings({ +settings: { +theme: { +chat_window: { +h_offset$int: t +} +} +} +}); +h.$("livechat").$("settings").$("theme").$("chat_window").update({ +h_offset$int: t +}); +} +t = parseInt(t, 10); +if (isNaN(t) || t < 0) window.console && window.console.log(v.getPrefix() + ': window.setOffsetHorizontal() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0'); else { +v.callOnFastInit(e, !0); +v.callOnRegistered(e, !0); +v.instrument("window.setOffsetHorizontal"); +} +} +function d(t) { +function e() { +v.saveAPISettings({ +settings: { +theme: { +chat_window: { +position$string: t +} +} +} +}); +h.$("livechat").$("settings").$("theme").$("chat_window").update({ +position$string: t +}); +} +if (p(t)) { +v.callOnFastInit(e, !0); +v.callOnRegistered(e, !0); +v.instrument("window.setPosition"); +} else window.console && window.console.log(v.getPrefix() + ": window.setPosition() expects passed argument to be a string"); +} +function u() { +if (b.isAuthenticated()) { +window.console && window.console.log(v.getPrefix() + ": openPopout API ignored for authenticated visitors. Falling back to window.show()..."); +y.show(); +return !1; +} +if (f(w.isReady) && w.isReady() && m.requestPermission()) { +v.instrument("window.openPopout"); +return w.openPopout(!0); +} +return !1; +} +var c, h, p = i(21), f = i(20), g = i(40), m = i(41), $ = i(5), b = i(45), w = i(72), x = i(25), v = i(27), y = {}; +y.init = function(t) { +function e() { +function t() { +x.showWindow(); +} +var e = g.once(t); +v.callOnFastInit(e); +v.callOnRegistered(e); +v.instrument("window.show"); +} +function i() { +function t() { +x.hideWindow(); +} +var e = g.once(t); +v.callOnFastInit(e); +v.callOnRegistered(e); +v.instrument("window.hide"); +} +c = t; +h = $.root; +y.setColor = c.generateDeprecatedFunction("window.setColor", "$zopim.livechat.theme.setColor", function() { +v.instrument("window.setColor"); +return c.theme.setColor.apply(this, arguments); +}); +y.setSize = c.generateLimitedFunction("window.setSize", 1, function(t) { +function e() { +v.saveAPISettings({ +settings: { +theme: { +chat_window: { +size$string: t +} +} +} +}); +h.$("livechat").$("settings").$("theme").$("chat_window").update({ +size$string: t +}); +} +if (p(t) && t) { +v.callOnFastInit(e); +v.callOnRegistered(e); +v.instrument("window.setSize"); +} else window.console && window.console.log(v.getPrefix() + ": window.setSize expects passed argument to be a non-empty string"); +}); +y.show = e; +y.hide = i; +}; +y.onShow = n; +y.onHide = o; +y.setTitle = r; +y.toggle = s; +y.getDisplay = a; +y.setOffsetBottom = y.setOffsetVertical = _; +y.setOffsetHorizontal = l; +y.setPosition = d; +y.openPopout = u; +t.exports = y; +e(y, "meshim_widget_controllers_liveChatAPI_Window"); +return y; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +var t = Array.prototype.slice.call(arguments); +v.savePopoutAPICalls("departments.filter", t); +v.instrument("departments.filter"); +if (arguments.length) { +b = t; +if (j) r(); else { +$.update(!0); +f.bindValue(r); +j = !0; +} +} else { +$.update(!1); +f.unbindValue(r); +j = !1; +} +} +function o(t) { +var e, i = {}, n = f.getValue(); +if (!n) return i; +for (var o = t.length; o--; ) { +e = t[o]; +"number" != typeof e && (e = c(e)); +n[e] && (i[e] = !0); +} +return i; +} +function r() { +if (!w && b) { +var t = {}, e = f.getValue(), i = o(b); +if (e) { +for (var n in e) e.hasOwnProperty(n) && (t[n] = { +display$bool: n in i +}); +w = !0; +g.update(t); +w = !1; +} +} +} +function s(t) { +function e() { +a(t); +} +v.callOnFastInit(e); +v.callOnRegistered(e, !0); +v.instrument("departments.setVisitorDepartment"); +} +function a(t) { +"number" != typeof t && (t = c(t)); +t && m.parentNode.write({ +department_id$int: t +}); +} +function _() { +v.callOnFastInit(l); +v.callOnRegistered(l, !0); +v.instrument("departments.clearVisitorDepartment"); +} +function l() { +m.parentNode.write({ +department_id$int: null +}); +} +function d(t) { +"number" != typeof t && (t = c(t)); +if (t) { +var e = f.$(t).getValue(); +if (e) { +v.instrument("departments.getDepartment"); +return { +id: t, +name: e.name$string, +status: e.status$string +}; +} +} +} +function u() { +var t = f.getValue(), e = []; +for (var i in t) t.hasOwnProperty(i) && e.push({ +id: parseInt(i, 10), +name: t[i].name$string, +status: t[i].status$string +}); +v.instrument("departments.getAllDepartments"); +return e; +} +function c(t) { +t = t && t.toString(); +if (t) { +var e = f.getValue(); +for (var i in e) if (e.hasOwnProperty(i) && e[i].name$string == t) return parseInt(i, 10); +} +} +function h(t) { +function e() { +v.saveAPISettings({ +settings: { +forms: { +pre_chat_form: { +form: { +2: { +label$string: t +} +} +} +} +} +}); +p.$("livechat").$("settings").$("forms").$("pre_chat_form").$("form").$("2").update({ +label$string: t +}); +} +if (t && "string" == typeof t) { +v.savePopoutAPICalls("departments.setLabel", [ t ]); +v.callOnFastInit(e, !0); +v.callOnRegistered(e, !0); +v.instrument("departments.setLabel"); +} else window.console && window.console.log(v.getPrefix() + ": departments.setLabel() expects passed argument to be a non-empty string"); +} +var p, f, g, m, $, b, w, x = i(5), v = i(27), y = {}; +y.init = function() { +p = x.root; +f = p.$("livechat").$("departments"); +g = p.$("livechat").$("ui").$("departments").$("options"); +m = p.$("livechat").$("profile").$("department_id$int"); +$ = p.$("livechat").$("ui").$("departments").$("filter_enabled$bool"); +}; +var j; +y.filter = n; +y.setVisitorDepartment = s; +y.clearVisitorDepartment = _; +y.getDepartment = d; +y.getAllDepartments = u; +y.setLabel = h; +t.exports = y; +e(y, "meshim_widget_controllers_liveChatAPI_Departments"); +return y; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +a.enableCookieLaw(); +_.instrument("cookieLaw.comply"); +} +function o() { +a.setDefaultImplicitConsent(); +_.instrument("cookieLaw.setDefaultImplicitConsent"); +} +var r, s = i(5), a = i(41), _ = i(27), l = {}; +l.init = function() { +r = s.root; +}; +l.comply = n; +l.setDefaultImplicitConsent = o; +t.exports = l; +e(l, "meshim_widget_controllers_liveChatAPI_CookieLawAPI"); +return l; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +function e() { +_.saveAPISettings({ +settings: { +concierge: t +} +}); +r.$("livechat").$("settings").$("concierge").update(t); +} +_.callOnFastInit(e, !0); +_.callOnRegistered(e, !0); +} +var o, r, s = i(21), a = i(5), _ = i(27), l = {}; +l.init = function(t) { +function e(t) { +t = t || ""; +if (s(t)) { +n({ +display_name$string: t +}); +_.savePopoutAPICalls("concierge.setName", [ t ]); +_.instrument("concierge.setName"); +} else window.console && window.console.log(_.getPrefix() + ": concierge.setName() expects passed argument to be a string"); +} +function i(t) { +t = t || ""; +if (s(t)) { +n({ +title$string: t +}); +_.savePopoutAPICalls("concierge.setTitle", [ t ]); +_.instrument("concierge.setTitle"); +} else window.console && window.console.log(_.getPrefix() + ": concierge.setTitle() expects passed argument to be a string"); +} +o = t; +r = a.root; +l.setAvatar = o.generateLimitedFunction("concierge.setAvatar", 1, function(t) { +t = t || ""; +if (s(t)) { +n({ +avatar_path$string: t +}); +_.savePopoutAPICalls("concierge.setAvatar", [ t ]); +_.instrument("concierge.setAvatar"); +} else window.console && window.console.log(_.getPrefix() + ": concierge.setAvatar() expects passed argument to be a string"); +}); +l.setName = e; +l.setTitle = i; +}; +t.exports = l; +e(l, "meshim_widget_controllers_liveChatAPI_Concierge"); +return l; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +function t() { +$.hideButton(); +} +var e = g.once(t); +w.callOnFastInit(e); +w.callOnRegistered(e); +w.instrument("button.hide"); +} +function o() { +function t() { +$.showButton(); +} +var e = g.once(t); +w.callOnFastInit(e); +w.callOnRegistered(e); +w.instrument("button.show"); +} +function r(t) { +function e() { +w.saveAPISettings({ +settings: { +theme: { +chat_button: { +v_offset$int: t +} +} +} +}); +c.$("livechat").$("settings").$("theme").$("chat_button").update({ +v_offset$int: t +}); +} +t = parseInt(t, 10); +if (isNaN(t) || t < 0) window.console && window.console.log(w.getPrefix() + ': button.setOffsetVertical() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0'); else { +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setOffsetVertical"); +} +} +function s(t) { +function e() { +w.saveAPISettings({ +settings: { +theme: { +chat_button: { +v_offset_mobile$int: t +} +} +} +}); +c.$("livechat").$("settings").$("theme").$("chat_button").update({ +v_offset_mobile$int: t +}); +} +t = parseInt(t, 10); +if (isNaN(t) || t < 0) window.console && window.console.log(w.getPrefix() + ': button.setOffsetVerticalMobile() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0'); else { +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setOffsetVerticalMobile"); +} +} +function a(t) { +function e() { +w.saveAPISettings({ +settings: { +theme: { +chat_button: { +h_offset$int: t +} +} +} +}); +c.$("livechat").$("settings").$("theme").$("chat_button").update({ +h_offset$int: t +}); +} +t = parseInt(t, 10); +if (isNaN(t) || t < 0) window.console && window.console.log(w.getPrefix() + ': button.setOffsetHorizontal() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0'); else { +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setOffsetHorizontal"); +} +} +function _(t) { +function e() { +w.saveAPISettings({ +settings: { +theme: { +chat_button: { +h_offset_mobile$int: t +} +} +} +}); +c.$("livechat").$("settings").$("theme").$("chat_button").update({ +h_offset_mobile$int: t +}); +} +t = parseInt(t, 10); +if (isNaN(t) || t < 0) window.console && window.console.log(w.getPrefix() + ': button.setOffsetHorizontalMobile() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0'); else { +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setOffsetHorizontalMobile"); +} +} +function l(t) { +function e() { +w.saveAPISettings({ +settings: { +theme: { +chat_button: { +position$string: t +} +} +} +}); +c.$("livechat").$("settings").$("theme").$("chat_button").update({ +position$string: t +}); +} +if (!h) if (f(t)) { +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setPosition"); +} else window.console && window.console.log(w.getPrefix() + ": button.setPosition() expects passed argument to be a string"); +} +function d(t) { +function e() { +w.saveAPISettings({ +settings: { +theme: { +chat_button: { +position_mobile$string: t +} +} +} +}); +c.$("livechat").$("settings").$("theme").$("chat_button").update({ +position_mobile$string: t +}); +} +if (f(t)) { +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setPositionMobile"); +} else window.console && window.console.log(w.getPrefix() + ": button.setPositionMobile() expects passed argument to be a string"); +} +var u, c, h, p = i(12), f = i(21), g = i(40), m = i(5), $ = i(25), b = i(114), w = i(27), x = {}; +x.init = function(t) { +function e(t) { +function e() { +$.setHideWhenOffline(t); +} +t = p(t); +w.callOnFastInit(e, !0); +w.callOnRegistered(e, !0); +w.instrument("button.setHideWhenOffline"); +} +u = t; +c = m.root; +h = c.$("livechat").$("ui").$("mobile$bool").getValue(); +x.setColor = u.generateDeprecatedFunction("button.setColor", "$zopim.livechat.theme.setColor", function() { +w.instrument("button.setColor"); +return b.setColor.apply(this, arguments); +}); +x.setHideWhenOffline = u.generateLimitedFunction("button.setHideWhenOffline", 1, e); +}; +x.hide = n; +x.show = o; +x.setOffsetBottom = x.setOffsetVertical = r; +x.setOffsetVerticalMobile = s; +x.setOffsetHorizontal = a; +x.setOffsetHorizontalMobile = _; +x.setPosition = l; +x.setPositionMobile = d; +t.exports = x; +e(x, "meshim_widget_controllers_liveChatAPI_Button"); +return x; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +function t() { +c.showBubble(); +} +h.callOnFastInit(t); +h.callOnRegistered(t); +h.instrument("bubble.show"); +} +function o() { +function t() { +c.hideBubble(); +} +h.callOnFastInit(t); +h.callOnRegistered(t); +h.instrument("bubble.hide"); +} +function r() { +function t() { +c.resetBubble(); +} +h.callOnFastInit(t); +h.callOnRegistered(t); +h.instrument("bubble.reset"); +} +function s(t) { +function e() { +h.saveAPISettings({ +settings: { +bubble: { +title$string: t +} +} +}); +l.$("livechat").$("settings").$("bubble").update({ +title$string: t +}); +} +if (t && d(t)) { +h.callOnFastInit(e, !0); +h.callOnRegistered(e, !0); +h.instrument("bubble.setTitle"); +} else window.console && window.console.log(h.getPrefix() + ": bubble.setTitle() expects passed argument to be a non-empty string"); +} +function a(t) { +function e() { +h.saveAPISettings({ +settings: { +bubble: { +text$string: t +} +} +}); +l.$("livechat").$("settings").$("bubble").update({ +text$string: t +}); +} +if (t && d(t)) { +h.callOnFastInit(e, !0); +h.callOnRegistered(e, !0); +h.instrument("bubble.setText"); +} else window.console && window.console.log(h.getPrefix() + ": bubble.setText() expects passed argument to be a non-empty string"); +} +var _, l, d = i(21), u = i(5), c = i(25), h = i(27), p = {}; +p.init = function(t) { +_ = t; +l = u.root; +p.setColor = _.generateLimitedFunction("bubble.setColor", 1, function(t) { +h.instrument("bubble.setColor"); +return _.theme.setColor(t, "bubble"); +}); +}; +p.show = n; +p.hide = o; +p.reset = r; +p.setTitle = s; +p.setText = a; +t.exports = p; +e(p, "meshim_widget_controllers_liveChatAPI_Bubble"); +return p; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +function e() { +d.saveAPISettings({ +settings: { +banner: t +} +}); +r.$("livechat").$("settings").$("banner").update(t); +} +d.callOnFastInit(e, !0); +d.callOnRegistered(e, !0); +} +var o, r, s = i(24), a = i(21), _ = i(5), l = i(25), d = i(27), u = {}; +u.init = function(t) { +function e(t) { +function e() { +t = t || ""; +a(t) ? n({ +text$string: t +}) : window.console && window.console.log(d.getPrefix() + ": badge.setText() expects passed argument to be a string"); +} +d.callOnFastInit(e, !0); +d.callOnRegistered(e, !0); +d.instrument("badge.setText"); +} +function i() { +function t() { +l.showBanner(); +} +d.callOnFastInit(t); +d.callOnRegistered(t); +d.instrument("badge.show"); +} +function c() { +function t() { +l.hideBanner(); +} +d.callOnFastInit(t); +d.callOnRegistered(t); +d.instrument("badge.hide"); +} +o = t; +r = _.root; +u.setLayout = function() { +var t = [ "image_right", "image_left", "text_only", "image_only" ], e = t.join(", "); +return o.generateLimitedFunction("badge.setLayout", 1, function(i) { +function o() { +i && -1 != s(i, t) ? n({ +layout$string: i +}) : window.console && window.console.log("Invalid layout. Valid layouts: " + e); +} +d.callOnFastInit(o, !0); +d.callOnRegistered(o, !0); +d.instrument("badge.setLayout"); +}); +}(); +u.setImage = o.generateLimitedFunction("badge.setImage", 1, function(t) { +function e() { +t = t || ""; +a(t) ? n({ +image_path$string: t +}) : window.console && window.console.log(d.getPrefix() + ": badge.setImage() expects passed argument to be a string"); +} +d.callOnFastInit(e, !0); +d.callOnRegistered(e, !0); +d.instrument("badge.setImage"); +}); +u.setColor = o.generateLimitedFunction("badge.setColor", 1, function(t) { +d.instrument("badge.setColor"); +return o.theme.setColor(t, "badge"); +}); +u.setText = e; +u.show = i; +u.hide = o.generateLimitedFunction("badge.hide", 1, c); +}; +t.exports = u; +e(u, "meshim_widget_controllers_liveChatAPI_Badge"); +return u; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +a = d.root.$("livechat"); +_ = a.$("agents"); +l = a.$("ui").$("cache_agents"); +_.bindValue(r); +} +function o() { +_.unbindValue(r); +a = _ = l = null; +} +function r(t) { +t && l.update(s(t)); +} +function s(t) { +var e, i, n = {}; +if (!t) return {}; +for (e in t) if (t.hasOwnProperty(e)) { +i = t[e]; +if (null === i) continue; +n[e] = "object" == typeof i ? s(i) : i; +} +return n; +} +var a, _, l, d = i(5), u = { +init: n, +reset: o +}; +t.exports = u; +e(u, "meshim_widget_controllers_AgentDataController"); +return u; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +s = d.root.$("livechat"); +a = s.$("agents"); +_ = s.$("triggers").$("agents"); +l = s.$("ui").$("chat_window").$("typing_info"); +a.on("value", o); +_.on("value", o); +} +function o() { +var t, e = a.getValue(), i = _.getValue(), n = []; +if (e) for (t in e) e.hasOwnProperty(t) && e[t].typing$bool && n.push(e[t].display_name$string); +if (i) for (t in i) i.hasOwnProperty(t) && i[t].typing$bool && n.push(t); +l.update({ +agent_typing$bool: n.length > 0, +agent_names$string: n.join(u), +num_typing_agents$int: n.length +}); +} +function r() { +_.un("value", o); +a.un("value", o); +s = a = _ = l = void 0; +} +var s, a, _, l, d = i(5), u = ", ", c = { +SEPARATOR: u, +init: n, +resetState: r +}; +t.exports = c; +e(c, "meshim_widget_controllers_AgentTypingController"); +return c; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_Gravatar = i(81); +e.__$$__meshim_widget_widgets_Controls = i(49); +e.__$$__meshim_widget_widgets_Button = i(17); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(113), h = o(114), p = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [], { +addClass: "paper" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Gravatar, "gravatar", "", [], { +id: "gravatar", +addClass: "rounded_avatar" +} ], [ e.__$$__jx_ui_Widget, "", "", [], { +addClass: "agent_profile_spacer" +} ], [ e.__$$__jx_ui_Widget, "agent_name", "", [], { +id: "agent_name", +addClass: "agent_name" +} ] ], { +addClass: "agent_profile" +} ], [ e.__$$__jx_ui_Widget, "chat_msg", "", [], { +id: "chat_msg", +addClass: "text_container" +} ], [ e.__$$__meshim_widget_widgets_Controls, "", "", [ [ e.__$$__meshim_widget_widgets_Button, "reply_btn", "", [ c ], { +placement: "primary", +id: "reply_btn", +addClass: "wide" +} ], [ e.__$$__meshim_widget_widgets_Button, "dismiss_btn", "", [ h ], { +placement: "secondary", +id: "dismiss_btn", +addClass: "wide secondary" +} ] ], { +addClass: "controls_container" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileChatNotification": "meshim.widget.components.mobileChatNotification" +} ], f = p[0].call(this, s, a, null, n.mangleIDs(a, p[3]), p[4]), g = f || this; +n.set(a, g); +var m = n.get(a + "__gravatar"), $ = n.get(a + "__agent_name"), b = n.get(a + "__chat_msg"), w = n.get(a + "__reply_btn"), x = n.get(a + "__dismiss_btn"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var v = function() { +function t(t) { +m.setMemberNode(t); +} +function e(t) { +o && g.autounbind(o, "value", n); +o = t; +o && g.autobind(o, "value", n); +} +function n(t) { +if (t) { +"attachment" in t ? b.setText(r.chat_notification.attachment) : "msg$string" in t && b.setText(t.msg$string); +"display_name$string" in t && $.setText(t.display_name$string); +} +} +var o, r = i(11), s = i(5), a = i(25), _ = s.root.$("livechat").$("ui").$("chat_notification"); +g.setAgentDataNode = t; +g.setLogDataNode = e; +!function() { +x.on("click", function() { +a.userDismissMobileNotification(); +_.write({ +dismiss_clicked$bool: !0 +}); +}); +w.on("click", function() { +a.userReplyMobileNotification(); +_.write({ +reply_clicked$bool: !0 +}); +}); +}(); +}(); +for (var y in v) v.hasOwnProperty(y) && (g[y] = v[y]); +g.fire && g.fire("init"); +g.setStyle && g.setStyle(l); +g.setAttributes && g.setAttributes(u); +"function" == typeof g.addChildren ? g.addChildren(d) : n.addChildren(g, d); +if (g !== this) { +g.__jx__constructor = _; +g.__jx__native = !1; +} +return g; +} +var _; +t.prototype = s(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +".paper": { +position: "absolute", +top: "14px", +"bottom, left, right": 0, +backgroundColor: "white", +opacity: "0.9", +zIndex: "-1", +boxShadow: "0 0 2px rgba(0, 0, 0, 0.5);", +borderRadius: "5px", +margin: "0 2px 2px" +}, +".agent_profile": { +width: "100%", +display: [ "flex", "-webkit-flex" ], +"alignItems, -webkit-align-items": "flex-end", +position: "relative", +padding: "0 14px" +}, +".rounded_avatar": { +"flexShrink, -webkit-flex-shrink": "0", +borderRadius: "50%", +"width, height": "40px", +border: "1px solid #ddd" +}, +".agent_profile_spacer": { +"flexShrink, -webkit-flex-shrink": "0", +width: "8px" +}, +".agent_name": { +"flexGrow, -webkit-flex-grow": "1", +position: "relative", +bottom: "4px", +color: "$$profileCardNameColor", +fontWeight: "bold", +overflow: "hidden", +textOverflow: "ellipsis", +whiteSpace: "nowrap" +}, +".controls_container": { +position: "absolute", +"bottom, left, right": 0, +padding: "10px" +}, +".text_container": { +width: "100%", +padding: "10px", +paddingTop: "6px", +overflow: "hidden", +textOverflow: "ellipsis", +whiteSpace: "nowrap" +} +}; +a(t, "meshim_widget_components_mobileChatNotification_NotificationCard"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_FloatingFrame = i(73); +e.__$$__jx_ui_FullFrame = i(88); +e.__$$__meshim_widget_components_mobileChatNotification_NotificationCard = i(209); +e.__$$__meshim_widget_widgets_fontLoader_ZopimFont = i(61); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_FloatingFrame, "", "", [ [ e.__$$__jx_ui_FullFrame, "notification_card_container", "", [ [ e.__$$__meshim_widget_components_mobileChatNotification_NotificationCard, "notification_card", "", [], { +id: "notification_card", +addClass: "notification_card" +} ] ], { +id: "notification_card_container", +addClass: "notification_card_container", +overflow: "hidden" +} ], [ e.__$$__meshim_widget_widgets_fontLoader_ZopimFont, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileChatNotification": "meshim.widget.components.mobileChatNotification", +position: "fixed", +bottom: "0", +left: "0", +right: "0", +width: "100%", +height: "132px", +minWidth: "220px", +maxWidth: "350px", +marginLeft: "auto", +marginRight: "auto", +zIndex: "16000004", +useDisplay: "true", +visible: "false", +addClass: "zopim" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__notification_card_container"), f = n.get(s + "__notification_card"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +function t() { +var t = window.innerWidth; +if (!(t < b)) { +var e = parseFloat(B.getValue()), i = e * u.MOBILE_ZOOM_ADDITIONAL; +$ / i > t && (i = ($ + 4) / t); +h.setStyle({ +maxWidth: $ / i + "px", +height: m / i + "px" +}); +p.setStyle({ +transform: "scale(" + 1 / i + ")", +"-webkit-transform": "scale(" + 1 / i + ")", +transformOrigin: "top left", +"-webkit-transform-origin": "top left", +width: $ + "px", +height: m + "px" +}); +} +} +function e(e) { +if (e && !(parseFloat(B.getValue()) > 1)) { +var i = S.getValue(); +if (!(i > e || void 0 === i) && (e < A.getValue() || !A.getValue())) { +var n = I.getValue(), o = j.$("log").$(n), r = o.getValue(), s = r.nick$string, a = y.$("agents").$(s); +null === a.getValue() && (a = y.$("settings").$("concierge")); +t(); +f.setAgentDataNode(a); +f.setLogDataNode(o); +l.showMobileNotification(); +} +} +} +function n(t) { +h.setVisible(!0); +r = clearTimeout(r); +s.animate({ +endStyle: x, +duration: 200 +}, function(e) { +if (!e) { +T.write({ +shown$bool: !0 +}); +r = setTimeout(l.hideMobileNotification, g); +} +t && t(e); +}); +} +function o(t) { +r = clearTimeout(r); +s.animate({ +endStyle: w, +duration: 200 +}, function(e) { +e || h.setVisible(!1); +t && t(e); +}); +} +var r, s, a = i(5), _ = i(89), l = i(25), d = i(67), u = i(34), c = i(47), g = 7200, m = 132, $ = 350, b = 980, w = { +opacity: 0, +translateY: "100%" +}, x = { +opacity: 1, +translateY: "0%" +}, v = a.root, y = v.$("livechat"), j = y.$("channel"), C = y.$("ui"), S = v.$("connection").$("reattached_timestamp$int"), A = j.$("first_visitor_msg_ts$int"), k = j.$("first_account_msg_ts$int"), I = j.$("first_account_msg_id$string"), T = C.$("chat_notification"), B = C.$("chat_button").$("mobile").$("calculated_styles").$("zoom$string"); +!function() { +h.defaultPlacement.addClass(h.__jx__fqname); +h.defaultPlacement.addClass("meshim_widget_Widget"); +h.setCSSStyle("willChange", "transform"); +c(h.ibody); +s = new d(h, w); +h.autobind(k, "value", e); +h.moveDown = o; +h.moveUp = n; +_.registerChatNotification(h); +}(); +}(); +for (var m in g) g.hasOwnProperty(m) && (h[m] = g[m]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_FloatingFrame.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_FloatingFrame; +t.__jx__jcss = { +".notification_card": { +position: "relative", +height: "122px", +width: "100%" +}, +".notification_card_container": { +paddingLeft: "5px", +paddingRight: "5px" +} +}; +s(t, "meshim_widget_components_MobileChatNotification"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_FullFrame = i(88); +e.__$$__meshim_widget_components_mobileChatWindow_MainScreen = i(116); +e.__$$__meshim_widget_widgets_fontLoader_ZopimFont = i(61); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_FullFrame, "", "", [ [ e.__$$__meshim_widget_components_mobileChatWindow_MainScreen, "", "", [], {} ], [ e.__$$__meshim_widget_widgets_fontLoader_ZopimFont, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileWindow": "meshim.widget.components.mobileChatWindow" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(62), e = i(47); +!function() { +e(h); +t.init(); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_FullFrame.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_FullFrame; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_PopoutMobileChatWindow"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +var t = u.getDocumentScrollElement(); +_ = t.scrollTop; +l = t.scrollLeft; +} +function o() { +if (void 0 !== _) { +var t = u.getDocumentScrollElement(); +t.scrollTop = _; +t.scrollLeft = l; +} +} +function r() { +if (a) return a; +a = document.scrollingElement ? document.scrollingElement : !d.isWebKit && d.isStrict ? document.documentElement : document.body || document.documentElement; +return a; +} +function s() { +_ = l = a = void 0; +} +var a, _, l, d = i(8), u = { +store: n, +restore: o, +resetState: s, +getDocumentScrollElement: r +}; +t.exports = u; +e(u, "meshim_widget_components_mobileChatWindow_utils_storePageScrolling"); +return u; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +var e, i, a; +if (document.body && document.body.style) { +n = document.body.style, t = !!t; +if (t && !o) { +for (e = 0, i = r.length; e < i; e++) { +a = r[e]; +s[a] = n[a]; +} +n.position = "fixed"; +n.overflowY = "hidden"; +n.webkitTextSizeAdjust = "100%"; +n.width = "100%"; +n.minHeight = "100%"; +n.margin = "0px"; +o = !0; +} else if (!t && o) { +for (e = 0, i = r.length; e < i; e++) { +a = r[e]; +n[a] = s[a]; +} +o = !1; +} +} +} +var n, o, r = [ "position", "overflowY", "webkitTextSizeAdjust", "width", "minHeight", "margin" ], s = {}; +i.resetState = function() { +o = void 0; +s = {}; +}; +t.exports = i; +e(i, "meshim_widget_components_mobileChatWindow_utils_disablePageScrolling"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function i(t) { +var e; +if (t && !a) { +e = n(); +r = e.getAttribute("content") || ""; +e.setAttribute("content", _); +a = !0; +} else if (!t && a) { +e = n(); +e.setAttribute("content", r); +a = !1; +} +} +function n() { +if (s) return s; +var t = document.head.querySelectorAll("meta[name=viewport]"); +s = t[t.length - 1] || o(); +return s; +} +function o() { +var t = document.createElement("meta"); +t.setAttribute("name", "viewport"); +document.head.appendChild(t); +return t; +} +var r, s, a, _ = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"; +i.resetState = function() { +s && s.parentNode.removeChild(s); +r = s = a = void 0; +}; +t.exports = i; +e(i, "meshim_widget_components_mobileChatWindow_utils_disablePageZooming"); +return i; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_Toast = i(107); +e.__$$__jx_ui_html_div = i(13); +e.__$$__meshim_widget_widgets_IconFont = i(15); +e.__$$__jx_ui_html_span = i(31); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_Toast, "", "", [ [ e.__$$__jx_ui_html_div, "", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "", "", [], { +icon: "arrow_down_long", +addClass: "arrow_down_long" +} ] ], { +addClass: "arrow_container" +} ], [ e.__$$__jx_ui_html_span, "message", "", [], { +id: "message" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +display: "inline-block", +useDisplay: "true", +visible: "false" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__message"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t(t) { +t && n(); +} +function e() { +r = !0; +h.setVisible(!0); +o.animate({ +endStyle: c, +duration: 300, +delay: 500 +}); +} +function n() { +if (r) { +r = !1; +o.animate({ +endStyle: u, +duration: 100 +}, function(t) { +t || h.setVisible(!1); +}); +} +} +var o, r, s = i(33), a = i(62), _ = i(5), l = i(67), d = i(11), u = { +opacity: 0 +}, c = { +opacity: 1 +}, f = _.root.$("livechat").$("ui"), g = f.$("chat_button").$("unread_count$int"), m = f.$("chat_window").$("chat_panel").$("scrollable"), $ = m.$("scrolled_to_bottom$bool"), b = m.$("smooth_scroll_count$int"); +!function() { +o = new l(h, u); +h.autobind($, "value", t); +h.autobind(b, "value", t); +h.autobind(g, "value", function(t) { +if (t > 0) { +e(); +p.setText(d.chat_panel[1 == t ? "new_message_below" : "new_messages_below"].replace("", t)); +} else n(); +}); +h.on("click", function() { +s.resetUnreadCount(); +a.scrollToBottom(); +}); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_Toast.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_Toast; +t.__jx__jcss = { +"**self": { +fontWeight: "bold" +}, +".arrow_container": { +display: "inline-block", +paddingRight: "4px", +verticalAlign: "bottom" +} +}; +s(t, "meshim_widget_components_mobileChatWindow_chatPanel_NewMessagesToast"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_widget_widgets_TextArea = i(77); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_widget_widgets_TextArea, "", "", [], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +addClass: "unstyled" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +t = n(t, "checkNull") ? "" : t; +t !== h.getValue() && s.call(h, t); +e(); +} +function e() { +h.setHeight(0).setHeight(h.getScrollHeight()); +} +var n = i(26), o = i(5), r = o.root.$("livechat").$("ui").$("theme_loaded$bool"), s = h.setValue; +!function() { +h.setValue = t; +h.autobind(r, "value", function(t) { +t && e(); +}); +h.on("input", e); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_widget_widgets_TextArea.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_widget_widgets_TextArea; +t.__jx__jcss = { +"**self": { +overflowX: "hidden" +} +}; +s(t, "meshim_widget_components_mobileChatWindow_chatPanel_AutoResizeTextArea"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_Button = i(17); +e.__$$__meshim_widget_widgets_IconFont = i(15); +e.__$$__meshim_widget_widgets_SendFile = i(121); +e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AutoResizeTextArea = i(216); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Button, "send", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "", "", [], { +icon: "send", +addClass: "send" +} ] ], { +id: "send", +addClass: "send_button primary fit" +} ], [ e.__$$__meshim_widget_widgets_Button, "upload", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "", "", [], { +icon: "upload", +addClass: "upload" +} ], [ e.__$$__meshim_widget_widgets_SendFile, "", "", [], { +addClass: "send_file" +} ] ], { +id: "upload", +addClass: "upload_button primary fit" +} ] ], { +addClass: "send_wrapper" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AutoResizeTextArea, "textarea", "", [], { +id: "textarea", +addClass: "textarea" +} ] ], { +addClass: "textarea_wrapper" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mui": "meshim.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileChatWindow": "meshim.widget.components.mobileChatWindow" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__send"), f = n.get(s + "__upload"), g = n.get(s + "__textarea"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var m = function() { +function t() { +v.$("chat_window").update({ +menu_stack_name$string: "" +}); +} +function e() { +u.resetUnreadCount(); +} +function n() { +d.isIOS && "ja" === a && _ && g.dom.scrollIntoViewIfNeeded(); +c.userInputValue(g.getValue()); +} +function o(t, e) { +if (s !== t || l !== e) { +s = t; +l = e; +if (l && s === I.FILE) { +p.setDisplay("none"); +f.setDisplay(""); +} else { +p.setDisplay(""); +f.setDisplay("none"); +} +} +} +function r() { +var t = A.getValue(), e = j.getValue("color_customization_enabled$int") || j.getValue("widget_customization_enabled$int"), i = !0; +e ? !1 === t && (i = !1) : i = !1; +o(s, i); +} +var s, a, _, l, d = i(8), u = i(33), c = i(62), m = i(5), $ = i(11), b = i(34), w = m.root, x = w.$("livechat"), v = x.$("ui"), y = v.$("chat_window").$("chat_panel").$("textarea").$("value$string"), j = x.$("settings").$("package"), C = x.$("settings").$("language").$("language$string"), S = x.$("settings").$("file_sending"), A = S.$("enabled$bool"), k = w.$("connection").$("status$string"), I = { +TEXT: 0, +FILE: 1 +}; +!function() { +g.setPlaceholder($.chat_panel.chattextarea_placeholder); +_ = !!g.dom.scrollIntoViewIfNeeded; +h.autobind(C, "value", function(t) { +a = t; +}); +h.autobind(y, "value", function(t) { +g.setValue(t); +o(t ? I.TEXT : I.FILE, l); +}); +h.autobind(A, "value", r); +h.autobind(j, "value", r); +g.on("input", n); +g.on("focus", function() { +e(); +t(); +c.userFocusTextArea(); +}); +g.on("keydown", function(t) { +if (13 === t.keyCode && !t.shiftKey && !t.ctrlKey && !t.altKey) { +t.preventDefault(); +c.userSendMessage(g.getValue()); +} +}); +p.on("mousedown", function(i) { +b.isChromeIOSMobile || d.isIOS && "ja" === a || i.preventDefault(); +d.isAndroid && g.dom.setSelectionRange && g.dom.setSelectionRange(0, 1); +c.userSendMessage(g.getValue()); +e(); +t(); +}); +h.autobind(k, "value", function(t) { +h.setDisabled("idle_disconnect" === t); +}); +}(); +}(); +for (var $ in m) m.hasOwnProperty($) && (h[$] = m[$]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +width: "100%", +display: [ "flex", "-webkit-flex" ], +borderWidth: "$$chatTextAreaBorderWidth", +borderStyle: "$$chatTextAreaBorderStyle", +borderColor: "$$chatTextAreaBorderColor", +"&.disabled": { +opacity: "0.5" +} +}, +".textarea": { +width: "100%", +lineHeight: "1.3em", +maxHeight: "3.9em", +minHeight: "2em", +padding: "10px", +paddingBottom: "0px", +resize: "none" +}, +".textarea_wrapper": { +"flexGrow, -webkit-flex-grow": "1", +"order, -webkit-order": "1" +}, +".send_button, .upload_button": { +fontSize: "$$fontSizeXXL", +margin: "$$chatTextAreaSubmitMargin", +padding: "$$chatTextAreaSubmitPadding", +width: "44px", +height: "32px", +boxShadow: "inset 0px 2px 0px 0px rgba(255,255,255,0.30)", +borderRadius: "4px", +".send": { +paddingLeft: "3px", +paddingTop: "4px" +}, +".upload": { +paddingTop: "3px" +} +}, +".send_button.rtl .send": { +direction: "ltr" +}, +".upload_button": { +position: "relative" +}, +".send_file": { +position: "absolute", +"top, left": 0 +}, +".send_wrapper": { +"flexShrink, -webkit-flex-shrink": "0", +"order, -webkit-order": "2", +marginTop: "auto" +} +}; +s(t, "meshim_widget_components_mobileChatWindow_chatPanel_ChatTextArea"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [], { +"xmlns:ui": "jx.ui" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +var t = s.$("num_typing_agents$int").getValue(); +if (t >= 1) { +h.setText((1 == t ? o.chat_panel.name_is_typing : o.chat_panel.agents_are_typing).replace("", s.$("agent_names$string").getValue())); +h.setDisplay(""); +} else h.setDisplay("none"); +} +var e = i(7), n = i(5), o = i(11), r = n.root.$("livechat"), s = r.$("ui").$("chat_window").$("typing_info"); +!function() { +h.autobind(s.$("num_typing_agents$int"), "value", t); +if (e && e.onLanguage) { +e.onLanguage(t); +h.onDestruction(function() { +e.unLanguage(t); +}); +} +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +fontSize: "$$fontSizeS", +color: "$$chatLogSystemMsgColor", +background: "$$chatLogSystemMsgBg", +textAlign: "center" +} +}; +s(t, "meshim_widget_components_mobileChatWindow_chatPanel_AgentTypingStatus"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader = i(139); +e.__$$__meshim_widget_components_chatWindow_chatPanel_Spinner = i(101); +e.__$$__meshim_widget_components_chatWindow_chatPanel_HistoryLog = i(100); +e.__$$__meshim_widget_components_chatWindow_chatPanel_FastInitChatLog = i(133); +e.__$$__meshim_widget_widgets_Branding = i(87); +e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AgentTypingStatus = i(218); +e.__$$__meshim_widget_widgets_CookieLawNotice = i(165); +e.__$$__meshim_widget_components_chatWindow_chatPanel_QueueMessage = i(132); +e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_ChatTextArea = i(217); +e.__$$__meshim_widget_widgets_TitleBar = i(168); +e.__$$__meshim_widget_widgets_MobileOptionsMenuIcon = i(166); +e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast = i(82); +e.__$$__meshim_widget_components_chatWindow_chatPanel_File = i(140); +e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_NewMessagesToast = i(215); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "served_by_container", "", [ [ e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader, "", "", [], {} ] ], { +id: "served_by_container", +addClass: "served_by_container" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "scrollable", "", [ [ e.__$$__meshim_widget_components_chatWindow_chatPanel_Spinner, "large_spinner", "", [], { +id: "large_spinner", +addClass: "large_spinner", +size: "big", +visible: "false" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatWindow_chatPanel_Spinner, "small_spinner", "", [], { +id: "small_spinner", +visible: "false" +} ], [ e.__$$__meshim_widget_components_chatWindow_chatPanel_HistoryLog, "", "", [], {} ], [ e.__$$__meshim_widget_components_chatWindow_chatPanel_FastInitChatLog, "", "", [], {} ] ], { +addClass: "chat_log_wrapper" +} ] ], { +addClass: "chatlog_container" +} ], [ e.__$$__jx_ui_Widget, "branding_and_agent_typing_container", "", [ [ e.__$$__meshim_widget_widgets_Branding, "chatpanel_branding", "", [], { +id: "chatpanel_branding", +addClass: "chatpanel_branding" +} ], [ e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AgentTypingStatus, "agent_typing", "", [], { +id: "agent_typing", +class: "agent_typing" +} ] ], { +id: "branding_and_agent_typing_container", +addClass: "branding_and_agent_typing_container" +} ], [ e.__$$__meshim_widget_widgets_CookieLawNotice, "cookie_law_notice", "", [], { +id: "cookie_law_notice", +addClass: "cookie_law_notice" +} ] ], { +id: "scrollable", +addClass: "scrollable" +} ], [ e.__$$__meshim_widget_components_chatWindow_chatPanel_QueueMessage, "queue_message", "", [], { +id: "queue_message", +addClass: "queue_message" +} ] ], { +addClass: "scrollable_container" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_ChatTextArea, "", "", [], {} ] ], { +addClass: "textarea_container" +} ] ], { +addClass: "main_flexbox" +} ], [ e.__$$__meshim_widget_widgets_TitleBar, "", "", [], {} ], [ e.__$$__meshim_widget_widgets_MobileOptionsMenuIcon, "", "", [], { +addClass: "mobile_options_menu_icon" +} ], [ e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast, "", "", [], {} ], [ e.__$$__meshim_widget_components_chatWindow_chatPanel_File, "", "", [], {} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_NewMessagesToast, "", "", [], { +addClass: "new_messages_toast" +} ] ], { +addClass: "new_messages_toast_parent" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatPanel": "meshim.widget.components.chatWindow.chatPanel", +"xmlns:mobileChatPanel": "meshim.widget.components.mobileChatWindow.chatPanel" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__served_by_container"), f = n.get(s + "__scrollable"), g = n.get(s + "__large_spinner"), m = n.get(s + "__small_spinner"), $ = n.get(s + "__branding_and_agent_typing_container"), b = n.get(s + "__chatpanel_branding"), w = (n.get(s + "__agent_typing"), +n.get(s + "__cookie_law_notice")), x = n.get(s + "__queue_message"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var v = function() { +function t() { +if (R.getValue() && !W.getValue()) { +$.setDisplay("none"); +w.setDisplay(""); +x.setDisplay("none"); +} else { +$.setDisplay(""); +w.setDisplay("none"); +x.setDisplay(""); +} +} +function e(t) { +b[t ? "addClass" : "removeClass"]("hide"); +} +function n(t) { +p[t ? "removeClass" : "addClass"]("hide"); +} +function o() { +F.getValue() > 0 ? b.setDisplay("none") : b.setDisplay(""); +} +function r(t) { +if (!V || !0 === t) { +var e = _(); +if (e <= I) V = !1; else { +var i = Math.floor(Math.max(e * A, k)); +M.scrollTop = M.scrollTop + i; +if (e - i > 0) { +V = !0; +H(function() { +r(!0); +}); +} else V = !1; +} +} +} +function s() { +M.scrollTop = 99999999999; +c.userDistFromBottom(0); +} +function a() { +return M.scrollHeight - M.offsetHeight - M.scrollTop; +} +function _() { +var t = a(); +c.userDistFromBottom(t); +d && z(t); +return t; +} +function l() { +function t() { +var t = O.getValue(), i = E.getValue(); +"chat_panel" === t && !0 === i && e(); +} +function e() { +f.setCSSStyle("webkitOverflowScrolling", "auto"); +setTimeout(function() { +f.setCSSStyle("webkitOverflowScrolling", "touch"); +}, 50); +} +h.autobind(E, "value", t); +h.autobind(O, "value", t); +} +var d, u = i(16), c = i(62), v = i(69), y = i(5), j = i(9), C = i(10), S = i(39), A = .25, k = 5, I = 1, T = y.root.$("livechat"), B = T.$("ui").$("chat_window").$("chat_panel").$("scrollable"), N = T.$("ui").$("chat_window").$("typing_info").$("agent_typing$bool"), D = T.$("ui").$("chat_window"), E = D.$("display$bool"), O = D.$("main_stack_name$string"), P = D.$("display_profile_card$bool"), L = D.$("chat_panel").$("served_by").$("visible$bool"), W = T.$("profile").$("allow_cookies$bool"), R = T.$("settings").$("cookie_law").$("enabled$bool"), F = T.$("channel").$("queue_position$int"), M = (T.$("ui").$("history").$("spinner_visibility"), +f.dom), V = !1, H = window.requestAnimationFrame || u, z = S.debounce(function(t) { +M.scrollHeight - M.offsetHeight != 1 && (0 === t ? M.scrollTop = M.scrollHeight - M.offsetHeight - I : 0 === M.scrollTop && (M.scrollTop = I)); +}, 50); +!function() { +j.rtl(h); +v.setupScrollListener(f, 60); +v.bindSpinnerUI(h, m, g); +f.on("scroll", _); +h.on("touchstart", c.userTouchStart); +h.on("touchmove", c.userTouchMove); +h.on("touchend", c.userTouchEnd); +h.autobind(N, "value", e); +h.autobind(F, "value", o); +h.autobind(B.$("smooth_scroll_count$int"), "value", r); +h.autobind(B.$("instant_scroll_count$int"), "value", s); +h.autobind(R, "value", t); +h.autobind(W, "value", t); +h.autobind(L, "value", n); +d = C.isStyleSupported("overflow-scrolling"); +d && l(); +h.autobind(P, "value", function(t) { +p.setDisplay(t ? "block" : "none"); +}); +}(); +}(); +for (var y in v) v.hasOwnProperty(y) && (h[y] = v[y]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +height: "100%" +}, +".mobile_options_menu_icon": { +position: "absolute", +zIndex: "102" +}, +"&.ltr": { +".mobile_options_menu_icon": { +"top, left": 0 +} +}, +"&.rtl": { +".mobile_options_menu_icon": { +"top, right": 0 +} +}, +".main_flexbox": { +paddingTop: "$$titleBarHeight", +position: "relative", +height: "100%", +display: [ "flex", "-webkit-flex" ], +"flexDirection, -webkit-flex-direction": "column" +}, +".scrollable_container": { +position: "relative", +"flexGrow, -webkit-flex-grow": "1", +display: [ "flex", "-webkit-flex" ] +}, +".scrollable": { +"flexGrow, -webkit-flex-grow": "1", +display: [ "flex", "-webkit-flex" ], +"flexDirection, -webkit-flex-direction": "column", +overflowY: "auto", +"-webkit-overflow-scrolling": "touch" +}, +".served_by_container": { +"flexShrink, -webkit-flex-shrink": "0", +transition: "transform 0.3s", +position: "absolute", +zIndex: 1, +width: "100%", +padding: "10px", +background: "white", +borderWidth: "$$chatPanelProfileCardContainerBorderWidth", +borderStyle: "$$chatPanelProfileCardContainerBorderStyle", +borderColor: "$$chatPanelProfileCardContainerBorderColor", +"&.hide": { +transform: "translateY(-60px)" +} +}, +".chatlog_container": { +position: "relative", +marginTop: "auto", +"flexShrink, -webkit-flex-shrink": "0" +}, +".chat_log_wrapper": { +paddingTop: "60px", +margin: "$$chatLogMargin" +}, +".branding_and_agent_typing_container": { +position: "relative", +"flexShrink, -webkit-flex-shrink": "0", +height: "1.5em", +width: "100%" +}, +".chatpanel_branding": { +position: "absolute", +transition: "opacity 2.5s 0.5s", +padding: "0px 15px 5px" +}, +".chatpanel_branding.hide": { +visibility: "hidden", +transition: "none", +opacity: 0 +}, +".agent_typing": { +paddingTop: "2px", +width: "100%", +whiteSpace: "nowrap", +overflow: "hidden", +textOverflow: "ellipsis" +}, +".cookie_law_notice": { +"flexShrink, -webkit-flex-shrink": "0", +fontSize: "$$fontSizeS", +color: "$$chatLogSystemMsgColor", +textAlign: "center", +height: "21px" +}, +".textarea_container": { +position: "relative", +"flexShrink, -webkit-flex-shrink": "0" +}, +".new_messages_toast_parent": { +position: "absolute", +bottom: "115px", +width: "100%", +height: "0px", +textAlign: "center" +}, +".new_messages_toast": { +maxWidth: "80%" +}, +".large_spinner": { +position: "absolute", +margin: "auto", +"top, left, right": "0", +bottom: "40px" +}, +".queue_message": { +position: "absolute", +bottom: "0px", +left: "10px", +right: "10px", +background: "white", +height: "30px", +padding: "7px 0" +} +}; +s(t, "meshim_widget_components_mobileChatWindow_ChatPanel"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_IFrame = i(172); +e.__$$__meshim_widget_components_mobileChatWindow_MainScreen = i(116); +e.__$$__meshim_widget_widgets_fontLoader_ZopimFont = i(61); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_IFrame, "", "", [ [ e.__$$__meshim_widget_components_mobileChatWindow_MainScreen, "", "", [], {} ], [ e.__$$__meshim_widget_widgets_fontLoader_ZopimFont, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileWindow": "meshim.widget.components.mobileChatWindow", +top: "0", +left: "0", +width: "100%", +height: "100%", +position: "fixed", +zIndex: "16000003", +minWidth: "100%", +maxWidth: "100%", +minHeight: "100%", +maxHeight: "100%", +useDisplay: "true", +visible: "false" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +h.setVisible(!0); +l.store(); +a(!0); +o.animate({ +endStyle: p, +duration: 500 +}, function(e) { +e || _(!0); +t && t(e); +}); +} +function e(t) { +_(!1); +a(!1); +l.restore(); +o.animate({ +endStyle: c, +duration: 300 +}, function(e) { +e || h.setVisible(!1); +t && t(e); +}); +} +function n() { +var t = h.idoc.createElement("meta"); +t.setAttribute("name", "viewport"); +t.setAttribute("content", "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"); +h.idoc.head.appendChild(t); +} +var o, r = i(62), s = i(89), a = i(214), _ = i(213), l = i(212), d = i(67), u = i(47), c = { +opacity: 0, +translateY: "100%" +}, p = { +opacity: 1, +translateY: "0%" +}; +!function() { +h.defaultPlacement.addClass(h.__jx__fqname); +h.defaultPlacement.addClass("meshim_widget_Widget"); +u(h.ibody); +r.init(); +n(); +o = new d(h, c); +h.moveDown = e; +h.moveUp = t; +s.registerChatWindow(h); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_IFrame.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_IFrame; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_MobileChatWindow"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__jx_ui_Label = i(19); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [], { +addClass: "unread_badge" +} ], [ e.__$$__jx_ui_Label, "unread_badge_text", "", [], { +id: "unread_badge_text", +addClass: "unread_badge_text" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +var h = n.get(s + "__unread_badge_text"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = 0; +c.updateUnread = function(e) { +var i = Math.min(e, 99); +if (i !== t) { +t = i; +if (t) { +h.setText(t); +c.setOpacity(1); +} else c.setOpacity(0); +} +}; +}(); +for (var f in p) p.hasOwnProperty(f) && (c[f] = p[f]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative", +width: "22px", +height: "22px" +}, +".unread_badge": { +position: "absolute", +top: "0", +left: "0", +height: "100%", +width: "100%", +background: "#EF4444", +border: "1px solid #AF1E1E", +boxShadow: "0px 0px 3px 0px rgba(0,0,0,0.6)", +borderRadius: "50%" +}, +".unread_badge_text": { +position: "absolute", +top: "0", +left: "0", +width: "100%", +height: "100%", +fontWeight: "700", +fontSize: "12px", +color: "#FFF", +lineHeight: "22px", +textAlign: "center" +} +}; +s(t, "meshim_widget_components_mobileChatUnreadCountBadge_UnreadCount"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_FloatingFrame = i(73); +e.__$$__meshim_widget_components_mobileChatUnreadCountBadge_UnreadCount = i(221); +e.__$$__meshim_widget_components_mobileChatButton_TappingScreen = i(117); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_FloatingFrame, "", "", [ [ e.__$$__meshim_widget_components_mobileChatUnreadCountBadge_UnreadCount, "mobile_unread", "", [], { +id: "mobile_unread", +opacity: "0" +} ], [ e.__$$__meshim_widget_components_mobileChatButton_TappingScreen, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mui": "meshim.ui", +"xmlns:components": "meshim.widget.components", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileChatButton": "meshim.widget.components.mobileChatButton", +"xmlns:mobileChatUnreadCountBadge": "meshim.widget.components.mobileChatUnreadCountBadge", +useDisplay: "true", +visible: "false", +cursor: "pointer" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__mobile_unread"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t() { +if (x && n && b > 0 && o) { +h.setDisplay(""); +r.animate({ +endStyle: d, +duration: 200 +}); +} else r.animate({ +endStyle: l, +duration: 200 +}, function(t) { +t || h.setDisplay("none"); +}); +} +function e() { +var t = f.getValue(); +if (t && 0 != t.width$string && 0 != t.height$string) { +for (var e, i, n, o, r = t.zoom$string, s = t.scale$string, a = 0, l = _.cssom_prefixes.length; a < l; a++) { +h.wrapper.setStyle(_.cssom_prefixes[a] + "Transform", "scale(" + s + ")"); +h.wrapper.setStyle(_.cssom_prefixes[a] + "TransformOrigin", "0 0"); +} +if ("auto" === t.left$string) { +e = "auto"; +i = parseFloat(t.right$string) - 14 * s; +} else { +i = "auto"; +e = parseFloat(t.left$string) + parseFloat(t.width$string) - 14 * s; +} +if ("auto" === t.bottom$string) { +o = "auto"; +n = parseFloat(t.top$string) - 14 * s; +} else { +n = "auto"; +o = parseFloat(t.bottom$string) + parseFloat(t.height$string) - 14 * s; +} +h.setStyle({ +top: "", +right: "", +bottom: "", +left: "" +}); +h.setStyle({ +position: t.position$string, +top: n, +right: i, +left: e, +bottom: o, +height: h.wrapper.getHeight() / r, +width: h.wrapper.getWidth() / r +}); +} +} +var n, o, r, s = i(5), a = i(67), _ = i(10), l = { +opacity: 0 +}, d = { +opacity: 1 +}, u = s.root.$("livechat"), c = u.$("ui").$("chat_button"), f = c.$("mobile").$("calculated_styles"), g = u.$("settings").$("theme").$("chat_button").$("position_mobile$string"), m = c.$("fully_visible$bool"), $ = c.$("unread_count$int"), b = 0, w = u.$("channel").$("chatting$bool"), x = u.$("ui").$("mobile$bool").getValue(); +!function() { +if (x) { +r = new a(h, l); +h.dom.className = "zopim"; +h.content.setStyle("textAlign", "left"); +h.content.addClass("meshim_widget_Widget"); +h.wrapper.addClass(h.__jx__fqname); +h.iframe.style.verticalAlign = "top"; +h.autobind(f, "value", e); +h.autobind(g, "value", e); +h.autobind(m, "value", function(e) { +if (n !== e) { +n = e; +t(); +} +}); +h.autobind($, "value", function(i) { +if (b !== i) { +b = i; +t(); +e(); +p.updateUnread(b); +} +}); +h.autobind(w, "value", function(e) { +if (o !== e) { +o = e; +t(); +} +}); +} +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_FloatingFrame.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_FloatingFrame; +t.__jx__jcss = { +"**self": { +padding: "3px" +} +}; +s(t, "meshim_widget_components_MobileChatUnreadCountBadge"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t) { +t = s.shallowExtend({}, t); +for (var e in t) if (t.hasOwnProperty(e) && o(e, r) > -1) { +for (var i = "", n = 0, a = r.length; n < a; n++) { +var _ = r[n]; +if (_ in t) { +i += _ + "(" + t[_] + ")"; +delete t[_]; +} +} +t.transform = i; +t.webkitTransform = i; +} +return t; +} +var o = i(24), r = [ "matrix", "translate", "translateX", "translateY", "scale", "scaleX", "scaleY", "rotate", "skew", "skewX", "skewY", "matrix3d", "translate3d", "translateZ", "scale3d", "scaleZ", "rotate3d", "rotateX", "rotateY", "rotateZ", "perspective" ], s = i(10); +t.exports = n; +e(n, "meshim_widget_utils_propsToCSSStyle"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +!function(t, i) { +!function(t) { +"use strict"; +function e() {} +function i(t) { +var e; +t = (t + "").trim().toLowerCase(); +return (e = b.exec(t)) ? (e = parseInt(e[1], 16), new r(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | 240 & e, (15 & e) << 4 | 15 & e)) : (e = w.exec(t)) ? n(parseInt(e[1], 16)) : (e = x.exec(t)) ? new r(e[1], e[2], e[3]) : (e = v.exec(t)) ? new r(255 * e[1] / 100, 255 * e[2] / 100, 255 * e[3] / 100) : (e = y.exec(t)) ? new a(e[1], e[2] / 100, e[3] / 100) : j.hasOwnProperty(t) ? n(j[t]) : null; +} +function n(t) { +return new r(t >> 16 & 255, t >> 8 & 255, 255 & t); +} +function o(t, n, o) { +if (1 === arguments.length) { +t instanceof e || (t = i(t)); +if (t) { +t = t.rgb(); +o = t.b; +n = t.g; +t = t.r; +} else t = n = o = NaN; +} +return new r(t, n, o); +} +function r(t, e, i) { +this.r = +t; +this.g = +e; +this.b = +i; +} +function s(t, n, o) { +if (1 === arguments.length) if (t instanceof a) { +o = t.l; +n = t.s; +t = t.h; +} else { +t instanceof e || (t = i(t)); +if (t) { +if (t instanceof a) return t; +t = t.rgb(); +var r = t.r / 255, s = t.g / 255, _ = t.b / 255, l = Math.min(r, s, _), d = Math.max(r, s, _), u = d - l; +o = (d + l) / 2; +if (u) { +n = o < .5 ? u / (d + l) : u / (2 - d - l); +t = r === d ? (s - _) / u + 6 * (s < _) : s === d ? (_ - r) / u + 2 : (r - s) / u + 4; +t *= 60; +} else { +t = NaN; +n = o > 0 && o < 1 ? 0 : t; +} +} else t = n = o = NaN; +} +return new a(t, n, o); +} +function a(t, e, i) { +this.h = +t; +this.s = +e; +this.l = +i; +} +function _(t, e, i) { +return 255 * (t < 60 ? e + (i - e) * t / 60 : t < 180 ? i : t < 240 ? e + (i - e) * (240 - t) / 60 : e); +} +function l(t, e, i) { +if (1 === arguments.length) if (t instanceof d) { +i = t.b; +e = t.a; +t = t.l; +} else if (t instanceof g) { +var n = t.h * A; +i = Math.sin(n) * t.c; +e = Math.cos(n) * t.c; +t = t.l; +} else { +t instanceof r || (t = o(t)); +i = p(t.r); +e = p(t.g); +t = p(t.b); +var s = u((.4124564 * i + .3575761 * e + .1804375 * t) / I), a = u((.2126729 * i + .7151522 * e + .072175 * t) / T), _ = u((.0193339 * i + .119192 * e + .9503041 * t) / B); +i = 200 * (a - _); +e = 500 * (s - a); +t = 116 * a - 16; +} +return new d(t, e, i); +} +function d(t, e, i) { +this.l = +t; +this.a = +e; +this.b = +i; +} +function u(t) { +return t > O ? Math.pow(t, 1 / 3) : t / E + N; +} +function c(t) { +return t > D ? t * t * t : E * (t - N); +} +function h(t) { +return 255 * (t <= .0031308 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - .055); +} +function p(t) { +return (t /= 255) <= .04045 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4); +} +function f(t, e, i) { +if (1 === arguments.length) if (t instanceof g) { +i = t.l; +e = t.c; +t = t.h; +} else { +t instanceof d || (t = l(t)); +i = t.l; +e = Math.sqrt(t.a * t.a + t.b * t.b); +t = Math.atan2(t.b, t.a) * k; +t < 0 && (t += 360); +} +return new g(t, e, i); +} +function g(t, e, i) { +this.h = +t; +this.c = +e; +this.l = +i; +} +function m(t, e, i) { +if (1 === arguments.length) if (t instanceof $) { +i = t.l; +e = t.s; +t = t.h; +} else { +t instanceof r || (t = o(t)); +var n = t.r / 255, s = t.g / 255, a = t.b / 255; +i = (U * a + H * n - z * s) / (U + H - z); +var _ = a - i, l = (V * (s - i) - F * _) / M; +e = Math.sqrt(l * l + _ * _) / (V * i * (1 - i)); +t = e ? Math.atan2(l, _) * k - 120 : NaN; +t < 0 && (t += 360); +} +return new $(t, e, i); +} +function $(t, e, i) { +this.h = +t; +this.s = +e; +this.l = +i; +} +var b = /^#([0-9a-f]{3})$/, w = /^#([0-9a-f]{6})$/, x = /^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/, v = /^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/, y = /^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/, j = { +aliceblue: 15792383, +antiquewhite: 16444375, +aqua: 65535, +aquamarine: 8388564, +azure: 15794175, +beige: 16119260, +bisque: 16770244, +black: 0, +blanchedalmond: 16772045, +blue: 255, +blueviolet: 9055202, +brown: 10824234, +burlywood: 14596231, +cadetblue: 6266528, +chartreuse: 8388352, +chocolate: 13789470, +coral: 16744272, +cornflowerblue: 6591981, +cornsilk: 16775388, +crimson: 14423100, +cyan: 65535, +darkblue: 139, +darkcyan: 35723, +darkgoldenrod: 12092939, +darkgray: 11119017, +darkgreen: 25600, +darkgrey: 11119017, +darkkhaki: 12433259, +darkmagenta: 9109643, +darkolivegreen: 5597999, +darkorange: 16747520, +darkorchid: 10040012, +darkred: 9109504, +darksalmon: 15308410, +darkseagreen: 9419919, +darkslateblue: 4734347, +darkslategray: 3100495, +darkslategrey: 3100495, +darkturquoise: 52945, +darkviolet: 9699539, +deeppink: 16716947, +deepskyblue: 49151, +dimgray: 6908265, +dimgrey: 6908265, +dodgerblue: 2003199, +firebrick: 11674146, +floralwhite: 16775920, +forestgreen: 2263842, +fuchsia: 16711935, +gainsboro: 14474460, +ghostwhite: 16316671, +gold: 16766720, +goldenrod: 14329120, +gray: 8421504, +green: 32768, +greenyellow: 11403055, +grey: 8421504, +honeydew: 15794160, +hotpink: 16738740, +indianred: 13458524, +indigo: 4915330, +ivory: 16777200, +khaki: 15787660, +lavender: 15132410, +lavenderblush: 16773365, +lawngreen: 8190976, +lemonchiffon: 16775885, +lightblue: 11393254, +lightcoral: 15761536, +lightcyan: 14745599, +lightgoldenrodyellow: 16448210, +lightgray: 13882323, +lightgreen: 9498256, +lightgrey: 13882323, +lightpink: 16758465, +lightsalmon: 16752762, +lightseagreen: 2142890, +lightskyblue: 8900346, +lightslategray: 7833753, +lightslategrey: 7833753, +lightsteelblue: 11584734, +lightyellow: 16777184, +lime: 65280, +limegreen: 3329330, +linen: 16445670, +magenta: 16711935, +maroon: 8388608, +mediumaquamarine: 6737322, +mediumblue: 205, +mediumorchid: 12211667, +mediumpurple: 9662683, +mediumseagreen: 3978097, +mediumslateblue: 8087790, +mediumspringgreen: 64154, +mediumturquoise: 4772300, +mediumvioletred: 13047173, +midnightblue: 1644912, +mintcream: 16121850, +mistyrose: 16770273, +moccasin: 16770229, +navajowhite: 16768685, +navy: 128, +oldlace: 16643558, +olive: 8421376, +olivedrab: 7048739, +orange: 16753920, +orangered: 16729344, +orchid: 14315734, +palegoldenrod: 15657130, +palegreen: 10025880, +paleturquoise: 11529966, +palevioletred: 14381203, +papayawhip: 16773077, +peachpuff: 16767673, +peru: 13468991, +pink: 16761035, +plum: 14524637, +powderblue: 11591910, +purple: 8388736, +rebeccapurple: 6697881, +red: 16711680, +rosybrown: 12357519, +royalblue: 4286945, +saddlebrown: 9127187, +salmon: 16416882, +sandybrown: 16032864, +seagreen: 3050327, +seashell: 16774638, +sienna: 10506797, +silver: 12632256, +skyblue: 8900331, +slateblue: 6970061, +slategray: 7372944, +slategrey: 7372944, +snow: 16775930, +springgreen: 65407, +steelblue: 4620980, +tan: 13808780, +teal: 32896, +thistle: 14204888, +tomato: 16737095, +turquoise: 4251856, +violet: 15631086, +wheat: 16113331, +white: 16777215, +whitesmoke: 16119285, +yellow: 16776960, +yellowgreen: 10145074 +}; +i.prototype = e.prototype = { +displayable: function() { +return this.rgb().displayable(); +}, +toString: function() { +return this.rgb() + ""; +} +}; +var C = o.prototype = r.prototype = new e(); +C.brighter = function(t) { +t = null == t ? 1 / .7 : Math.pow(1 / .7, t); +return new r(this.r * t, this.g * t, this.b * t); +}; +C.darker = function(t) { +t = null == t ? .7 : Math.pow(.7, t); +return new r(this.r * t, this.g * t, this.b * t); +}; +C.rgb = function() { +return this; +}; +C.displayable = function() { +return 0 <= this.r && this.r <= 255 && 0 <= this.g && this.g <= 255 && 0 <= this.b && this.b <= 255; +}; +C.toString = function() { +var t = Math.round(this.r), e = Math.round(this.g), i = Math.round(this.b); +return "#" + (isNaN(t) || t <= 0 ? "00" : t < 16 ? "0" + t.toString(16) : t >= 255 ? "ff" : t.toString(16)) + (isNaN(e) || e <= 0 ? "00" : e < 16 ? "0" + e.toString(16) : e >= 255 ? "ff" : e.toString(16)) + (isNaN(i) || i <= 0 ? "00" : i < 16 ? "0" + i.toString(16) : i >= 255 ? "ff" : i.toString(16)); +}; +var S = s.prototype = a.prototype = new e(); +S.brighter = function(t) { +t = null == t ? 1 / .7 : Math.pow(1 / .7, t); +return new a(this.h, this.s, this.l * t); +}; +S.darker = function(t) { +t = null == t ? .7 : Math.pow(.7, t); +return new a(this.h, this.s, this.l * t); +}; +S.rgb = function() { +var t = this.h % 360 + 360 * (this.h < 0), e = isNaN(t) || isNaN(this.s) ? 0 : this.s, i = this.l, n = i + (i < .5 ? i : 1 - i) * e, o = 2 * i - n; +return new r(_(t >= 240 ? t - 240 : t + 120, o, n), _(t, o, n), _(t < 120 ? t + 240 : t - 120, o, n)); +}; +S.displayable = function() { +return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1; +}; +var A = Math.PI / 180, k = 180 / Math.PI, I = .95047, T = 1, B = 1.08883, N = 4 / 29, D = 6 / 29, E = 3 * D * D, O = D * D * D, P = l.prototype = d.prototype = new e(); +P.brighter = function(t) { +return new d(this.l + 18 * (null == t ? 1 : t), this.a, this.b); +}; +P.darker = function(t) { +return new d(this.l - 18 * (null == t ? 1 : t), this.a, this.b); +}; +P.rgb = function() { +var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, i = isNaN(this.b) ? t : t - this.b / 200; +t = T * c(t); +e = I * c(e); +i = B * c(i); +return new r(h(3.2404542 * e - 1.5371385 * t - .4985314 * i), h(-.969266 * e + 1.8760108 * t + .041556 * i), h(.0556434 * e - .2040259 * t + 1.0572252 * i)); +}; +var L = f.prototype = g.prototype = new e(); +L.brighter = function(t) { +return new g(this.h, this.c, this.l + 18 * (null == t ? 1 : t)); +}; +L.darker = function(t) { +return new g(this.h, this.c, this.l - 18 * (null == t ? 1 : t)); +}; +L.rgb = function() { +return l(this).rgb(); +}; +var W = -.14861, R = 1.78277, F = -.29227, M = -.90649, V = 1.97294, H = V * M, z = V * R, U = R * F - M * W, q = m.prototype = $.prototype = new e(); +q.brighter = function(t) { +t = null == t ? 1 / .7 : Math.pow(1 / .7, t); +return new $(this.h, this.s, this.l * t); +}; +q.darker = function(t) { +t = null == t ? .7 : Math.pow(.7, t); +return new $(this.h, this.s, this.l * t); +}; +q.rgb = function() { +var t = isNaN(this.h) ? 0 : (this.h + 120) * A, e = +this.l, i = isNaN(this.s) ? 0 : this.s * e * (1 - e), n = Math.cos(t), o = Math.sin(t); +return new r(255 * (e + i * (W * n + R * o)), 255 * (e + i * (F * n + M * o)), 255 * (e + i * (V * n))); +}; +t.version = "0.3.4"; +t.color = i; +t.rgb = o; +t.hsl = s; +t.lab = l; +t.hcl = f; +t.cubehelix = m; +}(e); +}(); +}, function(t, e, i) { +!function(t, n) { +!function(t, e) { +"use strict"; +function i(t, i) { +t = e.rgb(t); +i = e.rgb(i); +var n = t.r, o = t.g, r = t.b, s = i.r - n, a = i.g - o, _ = i.b - r; +return function(e) { +t.r = n + s * e; +t.g = o + a * e; +t.b = r + _ * e; +return t + ""; +}; +} +function n(t, e) { +var i, n = [], o = [], r = t ? t.length : 0, s = e ? e.length : 0, a = Math.min(r, s); +for (i = 0; i < a; ++i) n.push(l(t[i], e[i])); +for (;i < r; ++i) o[i] = t[i]; +for (;i < s; ++i) o[i] = e[i]; +return function(t) { +for (i = 0; i < a; ++i) o[i] = n[i](t); +return o; +}; +} +function o(t, e) { +return t = +t, e -= t, function(i) { +return t + e * i; +}; +} +function r(t, e) { +var i, n = {}, o = {}; +null !== t && "object" == typeof t || (t = {}); +null !== e && "object" == typeof e || (e = {}); +for (i in t) i in e ? n[i] = l(t[i], e[i]) : o[i] = t[i]; +for (i in e) i in t || (o[i] = e[i]); +return function(t) { +for (i in n) o[i] = n[i](t); +return o; +}; +} +function s(t) { +return function() { +return t; +}; +} +function a(t) { +return function(e) { +return t(e) + ""; +}; +} +function _(t, e) { +var i, n, r, _ = P.lastIndex = L.lastIndex = 0, l = -1, d = [], u = []; +t += "", e += ""; +for (;(i = P.exec(t)) && (n = L.exec(e)); ) { +if ((r = n.index) > _) { +r = e.slice(_, r); +d[l] ? d[l] += r : d[++l] = r; +} +if ((i = i[0]) === (n = n[0])) d[l] ? d[l] += n : d[++l] = n; else { +d[++l] = null; +u.push({ +i: l, +x: o(i, n) +}); +} +_ = L.lastIndex; +} +if (_ < e.length) { +r = e.slice(_); +d[l] ? d[l] += r : d[++l] = r; +} +return d.length < 2 ? u[0] ? a(u[0].x) : s(e) : (e = u.length, function(t) { +for (var i, n = 0; n < e; ++n) d[(i = u[n]).i] = i.x(t); +return d.join(""); +}); +} +function l(t, e) { +for (var i, n = W.length; --n >= 0 && !(i = W[n](t, e)); ) ; +return i; +} +function d(t, e) { +return t = +t, e -= t, function(i) { +return Math.round(t + e * i); +}; +} +function u(t) { +O || (O = document.createElementNS("http://www.w3.org/2000/svg", "g")); +t && (O.setAttribute("transform", t), e = O.transform.baseVal.consolidate()); +var e, i = e ? e.matrix : F, n = [ i.a, i.b ], o = [ i.c, i.d ], r = h(n), s = c(n, o), a = h(p(o, n, -s)) || 0; +if (n[0] * o[1] < o[0] * n[1]) { +n[0] *= -1; +n[1] *= -1; +r *= -1; +s *= -1; +} +this.rotate = (r ? Math.atan2(n[1], n[0]) : Math.atan2(-o[0], o[1])) * R; +this.translate = [ i.e, i.f ]; +this.scale = [ r, a ]; +this.skew = a ? Math.atan2(s, a) * R : 0; +} +function c(t, e) { +return t[0] * e[0] + t[1] * e[1]; +} +function h(t) { +var e = Math.sqrt(c(t, t)); +e && (t[0] /= e, t[1] /= e); +return e; +} +function p(t, e, i) { +t[0] += i * e[0]; +t[1] += i * e[1]; +return t; +} +function f(t) { +return t.length ? t.pop() + "," : ""; +} +function g(t, e, i, n) { +if (t[0] !== e[0] || t[1] !== e[1]) { +var r = i.push("translate(", null, ",", null, ")"); +n.push({ +i: r - 4, +x: o(t[0], e[0]) +}, { +i: r - 2, +x: o(t[1], e[1]) +}); +} else (e[0] || e[1]) && i.push("translate(" + e + ")"); +} +function m(t, e, i, n) { +if (t !== e) { +t - e > 180 ? e += 360 : e - t > 180 && (t += 360); +n.push({ +i: i.push(f(i) + "rotate(", null, ")") - 2, +x: o(t, e) +}); +} else e && i.push(f(i) + "rotate(" + e + ")"); +} +function $(t, e, i, n) { +t !== e ? n.push({ +i: i.push(f(i) + "skewX(", null, ")") - 2, +x: o(t, e) +}) : e && i.push(f(i) + "skewX(" + e + ")"); +} +function b(t, e, i, n) { +if (t[0] !== e[0] || t[1] !== e[1]) { +var r = i.push(f(i) + "scale(", null, ",", null, ")"); +n.push({ +i: r - 4, +x: o(t[0], e[0]) +}, { +i: r - 2, +x: o(t[1], e[1]) +}); +} else 1 === e[0] && 1 === e[1] || i.push(f(i) + "scale(" + e + ")"); +} +function w(t, e) { +var i = [], n = []; +t = new u(t), e = new u(e); +g(t.translate, e.translate, i, n); +m(t.rotate, e.rotate, i, n); +$(t.skew, e.skew, i, n); +b(t.scale, e.scale, i, n); +t = e = null; +return function(t) { +for (var e, o = -1, r = n.length; ++o < r; ) i[(e = n[o]).i] = e.x(t); +return i.join(""); +}; +} +function x(t) { +return ((t = Math.exp(t)) + 1 / t) / 2; +} +function v(t) { +return ((t = Math.exp(t)) - 1 / t) / 2; +} +function y(t) { +return ((t = Math.exp(2 * t)) - 1) / (t + 1); +} +function j(t, e) { +var i, n, o = t[0], r = t[1], s = t[2], a = e[0], _ = e[1], l = e[2], d = a - o, u = _ - r, c = d * d + u * u; +if (c < z) { +n = Math.log(l / s) / M; +i = function(t) { +return [ o + t * d, r + t * u, s * Math.exp(M * t * n) ]; +}; +} else { +var h = Math.sqrt(c), p = (l * l - s * s + H * c) / (2 * s * V * h), f = (l * l - s * s - H * c) / (2 * l * V * h), g = Math.log(Math.sqrt(p * p + 1) - p), m = Math.log(Math.sqrt(f * f + 1) - f); +n = (m - g) / M; +i = function(t) { +var e = t * n, i = x(g), a = s / (V * h) * (i * y(M * e + g) - v(g)); +return [ o + a * d, r + a * u, s * i / x(M * e + g) ]; +}; +} +i.duration = 1e3 * n; +return i; +} +function C(t, e) { +var i = t - e; +return i > 180 || i < -180 ? i - 360 * Math.round(i / 360) : i; +} +function S(t, i) { +t = e.hsl(t); +i = e.hsl(i); +var n = isNaN(t.h) ? i.h : t.h, o = isNaN(t.s) ? i.s : t.s, r = t.l, s = isNaN(i.h) ? 0 : C(i.h, n), a = isNaN(i.s) ? 0 : i.s - o, _ = i.l - r; +return function(e) { +t.h = n + s * e; +t.s = o + a * e; +t.l = r + _ * e; +return t + ""; +}; +} +function A(t, i) { +t = e.hsl(t); +i = e.hsl(i); +var n = isNaN(t.h) ? i.h : t.h, o = isNaN(t.s) ? i.s : t.s, r = t.l, s = isNaN(i.h) ? 0 : i.h - n, a = isNaN(i.s) ? 0 : i.s - o, _ = i.l - r; +return function(e) { +t.h = n + s * e; +t.s = o + a * e; +t.l = r + _ * e; +return t + ""; +}; +} +function k(t, i) { +t = e.lab(t); +i = e.lab(i); +var n = t.l, o = t.a, r = t.b, s = i.l - n, a = i.a - o, _ = i.b - r; +return function(e) { +t.l = n + s * e; +t.a = o + a * e; +t.b = r + _ * e; +return t + ""; +}; +} +function I(t, i) { +t = e.hcl(t); +i = e.hcl(i); +var n = isNaN(t.h) ? i.h : t.h, o = isNaN(t.c) ? i.c : t.c, r = t.l, s = isNaN(i.h) ? 0 : C(i.h, n), a = isNaN(i.c) ? 0 : i.c - o, _ = i.l - r; +return function(e) { +t.h = n + s * e; +t.c = o + a * e; +t.l = r + _ * e; +return t + ""; +}; +} +function T(t, i) { +t = e.hcl(t); +i = e.hcl(i); +var n = isNaN(t.h) ? i.h : t.h, o = isNaN(t.c) ? i.c : t.c, r = t.l, s = isNaN(i.h) ? 0 : i.h - n, a = isNaN(i.c) ? 0 : i.c - o, _ = i.l - r; +return function(e) { +t.h = n + s * e; +t.c = o + a * e; +t.l = r + _ * e; +return t + ""; +}; +} +function B(t, i, n) { +arguments.length < 3 && (n = 1); +t = e.cubehelix(t); +i = e.cubehelix(i); +var o = isNaN(t.h) ? i.h : t.h, r = isNaN(t.s) ? i.s : t.s, s = t.l, a = isNaN(i.h) ? 0 : C(i.h, o), _ = isNaN(i.s) ? 0 : i.s - r, l = i.l - s; +return function(e) { +t.h = o + a * e; +t.s = r + _ * e; +t.l = s + l * Math.pow(e, n); +return t + ""; +}; +} +function N(t, i, n) { +arguments.length < 3 && (n = 1); +t = e.cubehelix(t); +i = e.cubehelix(i); +var o = isNaN(t.h) ? i.h : t.h, r = isNaN(t.s) ? i.s : t.s, s = t.l, a = isNaN(i.h) ? 0 : i.h - o, _ = isNaN(i.s) ? 0 : i.s - r, l = i.l - s; +return function(e) { +t.h = o + a * e; +t.s = r + _ * e; +t.l = s + l * Math.pow(e, n); +return t + ""; +}; +} +function D(t, e) { +e = U.call(e); +e[0] = null; +e.unshift(null); +return function(i, n) { +e[0] = i; +e[1] = n; +return t.apply(null, e); +}; +} +function E(t) { +return 1 === arguments.length ? t : D(t, arguments); +} +var O, P = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, L = new RegExp(P.source, "g"), W = [ function(t, s) { +var a, l = typeof s; +return ("string" === l ? (a = e.color(s)) ? (s = a, i) : _ : s instanceof e.color ? i : Array.isArray(s) ? n : "object" === l && isNaN(s) ? r : o)(t, s); +} ], R = 180 / Math.PI, F = { +a: 1, +b: 0, +c: 0, +d: 1, +e: 0, +f: 0 +}, M = Math.SQRT2, V = 2, H = 4, z = 1e-12, U = Array.prototype.slice; +t.version = "0.4.0"; +t.interpolate = l; +t.interpolators = W; +t.interpolateArray = n; +t.interpolateNumber = o; +t.interpolateObject = r; +t.interpolateRound = d; +t.interpolateString = _; +t.interpolateTransform = w; +t.interpolateZoom = j; +t.interpolateRgb = i; +t.interpolateHsl = S; +t.interpolateHslLong = A; +t.interpolateLab = k; +t.interpolateHcl = I; +t.interpolateHclLong = T; +t.interpolateCubehelix = B; +t.interpolateCubehelixLong = N; +t.interpolateBind = E; +}(e, i(224)); +}(); +}, function(t, e, i) { +!function(t, i) { +!function(t) { +"use strict"; +function e(t, e) { +return function(i) { +return t(i, e); +}; +} +function i(t, e, i) { +return function(n) { +return t(n, e, i); +}; +} +function n(t, e) { +e = D.call(e); +e[0] = null; +return function(i) { +e[0] = i; +return t.apply(null, e); +}; +} +function o(t, o, r) { +switch (arguments.length) { +case 1: +return t; + +case 2: +return e(t, o); + +case 3: +return i(t, o, r); + +default: +return n(t, arguments); +} +} +function r(t) { +return +t; +} +function s(t) { +return t * t; +} +function a(t) { +return t * (2 - t); +} +function _(t) { +return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; +} +function l(t) { +return t * t * t; +} +function d(t) { +return --t * t * t + 1; +} +function u(t) { +return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; +} +function c(t, e) { +null == e && (e = 3); +return Math.pow(t, e); +} +function h(t, e) { +null == e && (e = 3); +return 1 - Math.pow(1 - t, e); +} +function p(t, e) { +null == e && (e = 3); +return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; +} +function f(t) { +return 1 - Math.cos(t * O); +} +function g(t) { +return Math.sin(t * O); +} +function m(t) { +return (1 - Math.cos(E * t)) / 2; +} +function $(t) { +return Math.pow(2, 10 * t - 10); +} +function b(t) { +return 1 - Math.pow(2, -10 * t); +} +function w(t) { +return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; +} +function x(t) { +return 1 - Math.sqrt(1 - t * t); +} +function v(t) { +return Math.sqrt(1 - --t * t); +} +function y(t) { +return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; +} +function j(t) { +return 1 - C(1 - t); +} +function C(t) { +return t < P ? U * t * t : t < W ? U * (t -= L) * t + R : t < M ? U * (t -= F) * t + V : U * (t -= H) * t + z; +} +function S(t) { +return ((t *= 2) <= 1 ? 1 - C(1 - t) : C(t - 1) + 1) / 2; +} +function A(t, e) { +e = null == e ? 1.70158 : +e; +return t * t * ((e + 1) * t - e); +} +function k(t, e) { +e = null == e ? 1.70158 : +e; +return --t * t * ((e + 1) * t + e) + 1; +} +function I(t, e) { +e = null == e ? 1.70158 : +e; +return ((t *= 2) < 1 ? t * t * ((e + 1) * t - e) : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2; +} +function T(t, e, i) { +e = null == e ? 1 : Math.max(1, e); +i = (null == i ? .3 : i) / q; +return e * Math.pow(2, 10 * --t) * Math.sin((i * Math.asin(1 / e) - t) / i); +} +function B(t, e, i) { +e = null == e ? 1 : Math.max(1, e); +i = (null == i ? .3 : i) / q; +return 1 - e * Math.pow(2, -10 * t) * Math.sin((+t + i * Math.asin(1 / e)) / i); +} +function N(t, e, i) { +e = null == e ? 1 : Math.max(1, e); +i = (null == i ? .3 : i) / q; +var n = i * Math.asin(1 / e); +return ((t = 2 * t - 1) < 0 ? e * Math.pow(2, 10 * t) * Math.sin((n - t) / i) : 2 - e * Math.pow(2, -10 * t) * Math.sin((n + t) / i)) / 2; +} +var D = Array.prototype.slice, E = Math.PI, O = E / 2, P = 4 / 11, L = 6 / 11, W = 8 / 11, R = .75, F = 9 / 11, M = 10 / 11, V = .9375, H = 21 / 22, z = 63 / 64, U = 1 / P / P, q = 2 * Math.PI; +t.version = "0.5.1"; +t.easeBind = o; +t.easeLinearIn = r; +t.easeLinearOut = r; +t.easeLinearInOut = r; +t.easeQuadIn = s; +t.easeQuadOut = a; +t.easeQuadInOut = _; +t.easeCubicIn = l; +t.easeCubicOut = d; +t.easeCubicInOut = u; +t.easePolyIn = c; +t.easePolyOut = h; +t.easePolyInOut = p; +t.easeSinIn = f; +t.easeSinOut = g; +t.easeSinInOut = m; +t.easeExpIn = $; +t.easeExpOut = b; +t.easeExpInOut = w; +t.easeCircleIn = x; +t.easeCircleOut = v; +t.easeCircleInOut = y; +t.easeBounceIn = j; +t.easeBounceOut = C; +t.easeBounceInOut = S; +t.easeBackIn = A; +t.easeBackOut = k; +t.easeBackInOut = I; +t.easeElasticIn = T; +t.easeElasticOut = B; +t.easeElasticInOut = N; +}(e); +}(); +}, function(t, e, i) { +!function(t, i) { +!function(t) { +"use strict"; +function e(t, e, i) { +this.id = ++d; +this.restart(t, e, i); +} +function i(t, i, n) { +return new e(t, i, n); +} +function n(t) { +t = null == t ? Date.now() : +t; +++_; +try { +for (var e = s; e; ) { +t >= e.time && (0, e.callback)(t - e.time, t); +e = e.next; +} +} finally { +--_; +} +} +function o() { +_ = l = 0; +try { +n(); +} finally { +for (var t, e = s, i = 1 / 0; e; ) if (e.callback) { +i > e.time && (i = e.time); +e = (t = e).next; +} else e = t ? t.next = e.next : s = e.next; +a = t; +r(i); +} +} +function r(t) { +if (!_) { +l && (l = clearTimeout(l)); +var e = t - Date.now(); +e > 24 ? t < 1 / 0 && (l = setTimeout(o, e)) : (_ = 1, c(o)); +} +} +var s, a, _ = 0, l = 0, d = 0, u = {}, c = "undefined" != typeof window && (window.requestAnimationFrame || window.msRequestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.oRequestAnimationFrame) || function(t) { +return setTimeout(t, 17); +}; +e.prototype = i.prototype = { +restart: function(t, e, i) { +if ("function" != typeof t) throw new TypeError("callback is not a function"); +i = (null == i ? Date.now() : +i) + (null == e ? 0 : +e); +var n = this.id, o = u[n]; +if (o) o.callback = t, o.time = i; else { +o = { +next: null, +callback: t, +time: i +}; +a ? a.next = o : s = o; +u[n] = a = o; +} +r(); +}, +stop: function() { +var t = this.id, e = u[t]; +if (e) { +e.callback = null, e.time = 1 / 0; +delete u[t]; +r(); +} +} +}; +t.version = "0.1.0"; +t.timer = i; +t.timerFlush = n; +}(e); +}(); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_Favicon = i(118); +e.__$$__jx_ui_Label = i(19); +e.__$$__meshim_widget_widgets_BorderOverlay = i(86); +t.exports = function() { +function t(r, s, a, _, l) { +if (!(this instanceof t)) return new t(r, s, a, _, l); +s = s || n.generateID(); +var d = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Favicon, "", "", [], { +addClass: "favicon" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Label, "status_text_wrapper", "", [ [ e.__$$__jx_ui_Label, "status_text", "", [], { +id: "status_text" +} ], [ e.__$$__jx_ui_Label, "", "", [], { +text: " - " +} ] ], { +addClass: "status", +id: "status_text_wrapper" +} ], [ e.__$$__jx_ui_Label, "greeting", "", [], { +id: "greeting" +} ] ], { +addClass: "button_text" +} ], [ e.__$$__meshim_widget_widgets_BorderOverlay, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], u = d[0].call(this, r, s, null, n.mangleIDs(s, d[3]), d[4]), c = u || this; +n.set(s, c); +var h = n.get(s + "__status_text_wrapper"), p = n.get(s + "__status_text"), f = n.get(s + "__greeting"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var g = function() { +c.setLanguageDirection = function(t) { +"rtl" == t ? c.addClass("is-rtl") : c.removeClass("is-rtl"); +}; +c.setStatusDisplay = function(t) { +h.setDisplay(t ? "" : "none"); +}; +c.setStatusText = function(t) { +p.setText(t); +}; +c.updateGreeting = function(t) { +f.setText(t); +}; +}(); +for (var m in g) g.hasOwnProperty(m) && (c[m] = g[m]); +c.fire && c.fire("init"); +c.setStyle && c.setStyle(a); +c.setAttributes && c.setAttributes(l); +"function" == typeof c.addChildren ? c.addChildren(_) : n.addChildren(c, _); +if (c !== this) { +c.__jx__constructor = i; +c.__jx__native = !1; +} +return c; +} +var i; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative", +paddingLeft: "$$faviconWidth", +overflow: "hidden" +}, +"&.is-rtl": { +paddingLeft: 0, +paddingRight: "$$faviconWidth" +}, +".favicon": { +position: "absolute", +height: "100%", +left: 0, +verticalAlign: "text-top", +textAlign: "center", +paddingTop: "8px", +width: "$$faviconWidth", +background: "$$faviconBg", +color: "$$faviconColor", +"borderTopLeftRadius, borderBottomLeftRadius": "$$chatButtonRadius" +}, +"&.is-rtl .favicon": { +left: "auto", +right: 0, +"borderTopLeftRadius, borderBottomLeftRadius": 0, +"borderTopRightRadius, borderBottomRightRadius": "$$chatButtonRadius" +}, +".button_text": { +position: "relative", +overflow: "hidden", +verticalAlign: "text-top", +width: "100%", +bottom: "0", +whiteSpace: "nowrap", +fontWeight: "$$chatButtonFontWeight", +lineHeight: "$$chatButtonHeight", +paddingLeft: "$$chatButtonPaddingFavicon", +paddingRight: "$$chatButtonPadding", +".status": { +fontWeight: "$$chatButtonStatusFontWeight" +} +}, +".border_overlay": { +borderWidth: "$$chatButtonBorderWidth", +borderStyle: "$$chatButtonBorderStyle", +borderColor: "$$chatButtonBorderColor" +}, +"&.is-rtl .button_text": { +paddingLeft: "$$chatButtonPadding", +paddingRight: "$$chatButtonPaddingFavicon" +} +}; +s(t, "meshim_widget_components_mobileChatButton_ButtonBar"); +i = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_mobileChatButton_ButtonBar = i(228); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_mobileChatButton_ButtonBar, "button_bar", "", [], { +id: "button_bar", +addClass: "button_bar" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:mobileChatButton": "meshim.widget.components.mobileChatButton", +visibility: "hidden" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__button_bar"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t() { +m(e, h, !0); +} +function e() { +O.update(parseInt(h.getWidth(), 10) || parseInt($.getVariable("chatButtonMinWidth"), 10)); +P.update(parseInt($.getVariable("chatButtonHeight"), 10)); +if (!c && u) { +h.setVisibility(""); +c = !0; +} +} +var n, o, r, s, a, _, l, d, u, c, f = i(7), g = i(20), m = i(16), $ = i(2), b = i(5), w = i(9), x = i(11), v = i(97), y = b.root.$("livechat"), j = y.$("ui"), C = j.$("chat_button"), S = C.$("display$bool"), A = y.$("account").$("status$string"), k = y.$("settings").$("theme").$("chat_button").$("display_status$bool"), I = -1, T = y.$("settings").$("greetings"), B = T.$("online$string"), N = T.$("offline$string"), D = y.$("settings").$("cookie_law").$("enabled$bool"), E = y.$("profile").$("allow_cookies$bool"), O = C.$("button_width$int"), P = C.$("button_height$int"), L = j.$("theme_loaded$bool"), W = j.$("lang_dir$string"), R = y.$("channel").$("chatting$bool"); +!function() { +function e() { +var t; +t = a && void 0 !== _ && !_ ? x.cookie_law.disabled_mobile : "offline" != o || d ? x.chat_button.mobile_greeting.online : x.chat_button.mobile_greeting.offline; +if (u != t) { +u = t; +p.updateGreeting(t); +} +} +function i() { +var t = "offline" == o && d ? x.status.online : x.status[o || "offline"]; +p.setStatusText(t); +$(e); +} +function c() { +$(e); +} +function $() { +for (var e = 0, i = arguments.length; e < i; e++) g(arguments[e]) && arguments[e](); +t(); +} +w.rtl(h); +h.autobind(S, "value", function(t) { +if (n !== t) { +n = t; +$(); +} +}); +h.autobind(B, "value", function(t) { +r = t; +$(e); +}); +h.autobind(N, "value", function(t) { +s = t; +$(e); +}); +h.autobind(E, "value", function(t) { +_ = t; +$(e); +}); +h.autobind(R, "value", function(t) { +if (d !== t) { +d = t; +$(i); +} +}); +h.autobind(D, "value", function(t) { +a = t; +$(e); +}); +h.autobind(L, "value", t); +if (f && f.onLanguage) { +f.onLanguage(c); +h.onDestruction(function() { +f.unLanguage(c); +}); +} +h.autobind(k, "value", function(t) { +if (I !== t) { +I = t; +p.setStatusDisplay(t); +$(); +} +}); +h.autobind(A, "value", function(t) { +if (o !== t) { +o = t; +$(i); +} +}); +h.autobind(W, "value", function(t) { +if (void 0 !== t && l !== t) { +l = t; +p.setLanguageDirection(t); +} +}); +m(v.ieQuirksModeFix); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +margin: "0 auto", +position: "relative", +"bottom, left": "auto", +paddingRight: "0px", +paddingTop: "0px" +}, +".button_bar": { +minWidth: "0", +maxWidth: "$$chatButtonMaxWidth", +height: "$$chatButtonHeight", +color: "$$chatButtonColor", +background: "$$chatButtonBg", +boxShadow: "$$chatButtonShadow", +borderRadius: "$$chatButtonRadius" +} +}; +s(t, "meshim_widget_components_mobileChatButton_Button"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_FloatingFrame = i(73); +e.__$$__meshim_widget_widgets_fontLoader_ZopimFont = i(61); +e.__$$__meshim_widget_components_mobileChatButton_Button = i(229); +e.__$$__meshim_widget_components_mobileChatButton_TappingScreen = i(117); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_FloatingFrame, "", "", [ [ e.__$$__meshim_widget_widgets_fontLoader_ZopimFont, "", "", [], {} ], [ e.__$$__meshim_widget_components_mobileChatButton_Button, "", "", [], {} ], [ e.__$$__meshim_widget_components_mobileChatButton_TappingScreen, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:mobileChatButton": "meshim.widget.components.mobileChatButton", +useDisplay: "true", +visible: "false" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t(t) { +h.setVisible(!0); +s.animate({ +endStyle: x, +duration: R ? 200 : 0 +}, function(e) { +e || I.update(!0); +t && t(e); +}); +R = !0; +} +function e(t) { +I.update(!1); +s.animate({ +endStyle: v, +duration: 200 +}, function(e) { +e || h.setVisible(!1); +t && t(e); +}); +} +function n(t) { +return "auto" !== t ? t + "px" : t; +} +function o() { +var t, e, i, o, s, a, l, d, u, c, p, m, $, x, v, y, j, C, S, k, I = h.wrapper.getWidth(), T = h.wrapper.getHeight(); +if (W) { +t = W.scale; +i = W.pageLeft; +o = W.pageTop; +l = window.innerWidth; +d = window.innerHeight; +u = W.offsetLeft; +c = W.offsetTop; +s = W.width; +a = W.height; +} else { +t = g.getZoomLevel(); +i = window.pageXOffset; +o = window.pageYOffset; +s = window.innerWidth; +a = window.innerHeight; +} +e = (1 / t).toFixed(2); +p = I / t; +m = T / t; +v = g.getOffset(); +y = _.isIOS && t >= 1 ? "absolute" : "fixed"; +for (var B = 0, N = f.cssom_prefixes.length; B < N; B++) { +h.wrapper.setStyle(f.cssom_prefixes[B] + "Transform", "scale(" + e + ")"); +h.wrapper.setStyle(f.cssom_prefixes[B] + "TransformOrigin", "0 0"); +} +h.setStyle({ +position: y, +width: p + "px", +height: m + "px", +top: "", +right: "", +bottom: "", +left: "" +}); +$ = L; +x = P; +if ("br" === r) { +void 0 === O.getValue() && (x += b); +void 0 === E.getValue() && ($ += w); +} +$ /= t; +x /= t; +j = k = C = S = "auto"; +if ("fixed" === y) if (W) { +"bl" === r ? k = u + $ : C = l - (s + u) + $; +S = d - (a + c) + x; +} else { +"bl" === r ? k = $ : C = $; +S = x; +} else { +j = Math.ceil(o + a - m - x - v.top); +k = "bl" === r ? Math.ceil(i + $ - v.left) : Math.floor(i + s - p - $ - v.left); +} +j = n(j); +C = n(C); +S = n(S); +k = n(k); +A.update({ +height$string: m, +width$string: p, +zoom$string: t, +scale$string: e, +position$string: y, +top$string: j, +right$string: C, +bottom$string: S, +left$string: k +}); +h.setStyle({ +top: j, +right: C, +bottom: S, +left: k +}); +M(); +} +var r, s, a = i(14), _ = i(8), l = i(39), d = i(40), u = i(5), c = i(89), p = i(67), f = i(10), g = i(34), m = i(47), $ = i(74), b = 5, w = 5, x = { +opacity: 1, +translateY: "0%" +}, v = { +opacity: 0, +translateY: "50%" +}, y = u.root.$("livechat"), j = y.$("settings"), C = y.$("ui"), S = C.$("chat_button"), A = S.$("mobile").$("calculated_styles"), k = S.$("display$bool"), I = S.$("fully_visible$bool"), T = S.$("button_width$int"), B = S.$("button_height$int"), N = j.$("theme").$("chat_button"), D = N.$("position_mobile$string"), E = N.$("h_offset_mobile$int"), O = N.$("v_offset_mobile$int"), P = 10, L = 10, W = window.visualViewport, R = !1; +h.on("show", function() { +F(); +}); +var F = l.debounce(o, 300), M = d.once(function() { +c.registerChatButton(h); +}); +!function() { +$.bind(h.iwin); +W && "offsetTop" in W && "offsetLeft" in W && "pageTop" in W && "pageLeft" in W || (W = null); +s = new p(h, v); +h.dom.className = "zopim"; +h.iframe.setStyle("display", "block"); +h.content.addClass("meshim_widget_Widget"); +h.wrapper.addClass(h.__jx__fqname); +h.ibody.style.overflow = "hidden"; +m(h.ibody); +h.wrapper.addClass("mobile").setStyle({ +position: "absolute", +top: 0, +left: 0 +}); +h.content.setStyle("textAlign", "left"); +h.iframe.style.verticalAlign = "top"; +h.autobind(E, "value", function(t) { +t = parseInt(t, 10); +if (L != t && !isNaN(t) && t >= 0) { +L = t; +F(); +} +}); +h.autobind(O, "value", function(t) { +t = parseInt(t, 10); +if (P != t && !isNaN(t) && t >= 0) { +P = t; +F(); +} +}); +h.autobind(D, "value", function(t) { +if (t && r != t) { +"bl" != t && "br" != t && (t = "br"); +r && h.wrapper.removeClass(r); +r = t; +r && h.wrapper.addClass(r); +F(); +} +}); +if (W) { +W.addEventListener("scroll", F); +W.addEventListener("resize", F); +} else { +a.window.on("orientationchange", F); +a.window.on("resize", F); +a.window.on("scroll", F); +} +h.autobind(T, "value", function(t) { +t && F(); +}); +h.autobind(B, "value", function(t) { +t && F(); +}); +h.autobind(k, "value", F); +h.moveUp = t; +h.moveDown = e; +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_FloatingFrame.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_FloatingFrame; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_MobileChatButton"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, o, s) { +if (!(this instanceof n)) return new n(t, e, i, o, s); +s || (s = {}); +s.tagName || (s.tagName = "img"); +r.call(this, t, e, i, o, s); +} +var o = i(1), r = i(6); +n.prototype = o(r.prototype); +n.prototype.getAlt = function() { +return this.dom.alt; +}; +n.prototype.setAlt = function(t) { +this.dom.alt = t; +return this; +}; +t.exports = n; +e(n, "jx_ui_Image"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_widgets_Favicon = i(118); +e.__$$__jx_ui_Label = i(19); +e.__$$__meshim_widget_widgets_BorderOverlay = i(86); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_Favicon, "", "", [], { +addClass: "favicon" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Label, "status_text_wrapper", "", [ [ e.__$$__jx_ui_Label, "status_text", "", [], { +id: "status_text" +} ], [ e.__$$__jx_ui_Label, "", "", [], { +text: " - " +} ] ], { +addClass: "status", +id: "status_text_wrapper" +} ], [ e.__$$__jx_ui_Label, "greeting", "", [], { +id: "greeting", +addClass: "greeting" +} ] ], { +addClass: "blinds blinds_top" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__jx_ui_Label, "unread", "", [], { +id: "unread", +text: "XX new messages" +} ] ], { +addClass: "blinds blinds_bottom" +} ] ], { +addClass: "button_text" +} ], [ e.__$$__meshim_widget_widgets_BorderOverlay, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__status_text_wrapper"), f = n.get(s + "__status_text"), g = n.get(s + "__greeting"), m = n.get(s + "__unread"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var $ = function() { +function t() { +s && r > 0 ? h.addClass("unread") : h.removeClass("unread"); +m.setText(o.chat_button[1 == r ? "unread_one" : "unread_many"].replace("", r)); +} +var e = i(7), n = i(12), o = i(11), r = 0, s = !1; +h.setIsChatting = function(e) { +var i = n(e); +if (s !== i) { +s = i; +t(); +} +}; +h.setLanguageDirection = function(t) { +"rtl" == t ? h.addClass("is-rtl") : h.removeClass("is-rtl"); +}; +h.setStatusDisplay = function(t) { +p.setDisplay(t ? "" : "none"); +}; +h.setStatusText = function(t) { +f.setText(t); +}; +h.updateUnread = function(e) { +if (r !== e) { +r = parseInt(e, 10) || 0; +t(); +} +}; +h.updateGreeting = function(t) { +g.setText(t); +}; +!function() { +if (e && e.onLanguage) { +e.onLanguage(t); +h.onDestruction(function() { +e.unLanguage(t); +}); +} +}(); +}(); +for (var b in $) $.hasOwnProperty(b) && (h[b] = $[b]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative", +paddingLeft: "$$faviconWidth", +overflow: "hidden" +}, +"&.is-rtl": { +paddingLeft: 0, +paddingRight: "$$faviconWidth" +}, +"&.unread .button_text ": { +bottom: "100%" +}, +".blinds": { +"width, height": "100%", +overflow: "hidden", +textOverflow: "ellipsis", +whiteSpace: "nowrap" +}, +".favicon": { +position: "absolute", +height: "100%", +left: 0, +verticalAlign: "text-top", +textAlign: "center", +paddingTop: "8px", +width: "$$faviconWidth", +background: "$$faviconBg", +color: "$$faviconColor" +}, +"&.is-rtl .favicon": { +left: "auto", +right: 0 +}, +".button_text": { +position: "relative", +overflow: "hidden", +verticalAlign: "text-top", +width: "100%", +bottom: "0", +transition: "bottom 0.3s ease-in-out", +fontWeight: "$$chatButtonFontWeight", +lineHeight: "$$chatButtonHeight", +paddingLeft: "$$chatButtonPaddingFavicon", +paddingRight: "$$chatButtonPadding", +".status": { +fontWeight: "$$chatButtonStatusFontWeight" +} +}, +".border_overlay": { +borderWidth: "$$chatButtonBorderWidth", +borderStyle: "$$chatButtonBorderStyle", +borderColor: "$$chatButtonBorderColor" +}, +"&.is-rtl .button_text": { +paddingLeft: "$$chatButtonPadding", +paddingRight: "$$chatButtonPaddingFavicon" +} +}; +s(t, "meshim_widget_components_chatButton_ButtonBar"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_chatButton_ButtonBar = i(232); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatButton_ButtonBar, "button_bar", "", [], { +id: "button_bar", +addClass: "button_bar" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatButton": "meshim.widget.components.chatButton", +visibility: "hidden" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__button_bar"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t() { +m(e, h, !0); +} +function e() { +L.update(parseInt(h.getWidth(), 10) || parseInt($.getVariable("chatButtonMinWidth"), 10)); +W.update(parseInt($.getVariable("chatButtonHeight"), 10)); +if (!c && u) { +h.setVisibility(""); +c = !0; +} +} +var n, o, r, s, a, _, l, d, u, c, f = i(7), g = i(20), m = i(16), $ = i(2), b = i(5), w = i(9), x = i(11), v = i(97), y = b.root.$("livechat"), j = y.$("ui"), C = j.$("chat_button"), S = C.$("display$bool"), A = C.$("unread_count$int"), k = 0, I = y.$("account").$("status$string"), T = y.$("settings").$("theme").$("chat_button").$("display_status$bool"), B = -1, N = y.$("settings").$("greetings"), D = N.$("online$string"), E = N.$("offline$string"), O = y.$("settings").$("cookie_law").$("enabled$bool"), P = y.$("profile").$("allow_cookies$bool"), L = C.$("button_width$int"), W = C.$("button_height$int"), R = j.$("theme_loaded$bool"), F = j.$("lang_dir$string"), M = y.$("channel").$("chatting$bool"); +!function() { +function e() { +var t; +t = a && void 0 !== _ && !_ ? x.cookie_law.disabled : "offline" != o || d ? x.get(D) : x.get(E); +if (u != t) { +u = t; +p.updateGreeting(t); +} +} +function i() { +var t = "offline" == o && d ? x.status.online : x.status[o || "offline"]; +p.setStatusText(t); +b(e); +} +function c() { +p.updateUnread(k); +} +function $() { +b(c, e); +} +function b() { +for (var e = 0, i = arguments.length; e < i; e++) g(arguments[e]) && arguments[e](); +t(); +} +w.rtl(h); +h.autobind(S, "value", function(t) { +if (n !== t) { +n = t; +b(); +} +}); +h.autobind(A, "value", function(t) { +k = t; +b(c); +}); +h.autobind(D, "value", function(t) { +r = t; +b(e); +}); +h.autobind(E, "value", function(t) { +s = t; +b(e); +}); +h.autobind(P, "value", function(t) { +_ = t; +b(e); +}); +h.autobind(M, "value", function(t) { +if (d !== t) { +d = t; +p.setIsChatting(t); +b(i); +} +}); +h.autobind(O, "value", function(t) { +a = t; +b(e); +}); +h.autobind(R, "value", t); +if (f && f.onLanguage) { +f.onLanguage($); +h.onDestruction(function() { +f.unLanguage($); +}); +} +h.autobind(T, "value", function(t) { +if (B !== t) { +B = t; +p.setStatusDisplay(t); +b(); +} +}); +h.autobind(I, "value", function(t) { +if (o !== t) { +o = t; +b(i); +} +}); +h.autobind(F, "value", function(t) { +if (void 0 !== t && l !== t) { +l = t; +p.setLanguageDirection(t); +} +}); +m(v.ieQuirksModeFix); +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +margin: "0 auto", +position: "absolute", +"bottom, left": 0 +}, +".button_bar": { +"minWidth, *width": "$$chatButtonMinWidth", +maxWidth: "$$chatButtonMaxWidth", +height: "$$chatButtonHeight", +color: "$$chatButtonColor", +background: "$$chatButtonBg", +boxShadow: "$$chatButtonShadow" +}, +"**self, **self *": { +cursor: "pointer" +} +}; +s(t, "meshim_widget_components_chatButton_Button"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, n, a, _) { +function l(t, e) { +return [ [ t, 0, 0 ], [ 0, e, 0 ], [ 0, 0, 1 ] ]; +} +function d(t, e) { +return [ [ 1, 0, t ], [ 0, 1, e ], [ 0, 0, 1 ] ]; +} +function u(t) { +return [ t[0][0], t[1][0], t[0][1], t[1][1], t[0][2], t[1][2] ].join(" "); +} +function c(t) { +var e = f.generateSvgLinearGradient(m, t), i = m.createElementNS("http://www.w3.org/2000/svg", "defs"); +i.appendChild(e); +g.parentNode.appendChild(i); +g.setAttribute("fill", "url(#" + e.id + ")"); +return g; +} +function h(t, e) { +var i, n, o = []; +for (var r in t) if (t.hasOwnProperty(r)) { +i = e ? m.createElementNS(e, r) : m.createElement(r); +n = t[r]; +for (var s in n) n.hasOwnProperty(s) && i.setAttribute(s, n[s]); +o.push(i); +} +return o; +} +function p() { +for (var t = [ [ 1, 0, 0 ], [ 0, 1, 0 ], [ 0, 0, 1 ] ], e = 0; e < arguments.length; e++) { +for (var i = [], n = arguments[e], o = 0; o < 3; o++) { +i[o] = []; +for (var r = 0; r < 3; r++) { +for (var s = 0, a = 0; a < 3; a++) s += t[o][a] * n[a][r]; +i[o][r] = s; +} +} +t = i; +} +return t; +} +var f = i(60); +e = e || o.generateID(); +var g, m = t.ownerDocument; +g = m.createElementNS("http://www.w3.org/2000/svg", "path"); +g.vectorType = "svg"; +o.extend(g); +r.extend(g); +o.set(e, g); +var $ = !1; +g.appendToParent = function(e) { +o.hasParentNode(g) || o.appendChild(t, g); +if (e && !$) { +t.appendToParent && t.appendToParent(!0); +$ = !0; +} +}; +g.setClass = function(t) { +g.setAttribute("class", t); +return g; +}; +g.addClass = function(t) { +g.setAttribute("class", g.getAttribute("class") + " " + t); +return g; +}; +g.removeClass = function(t) { +var e = g.getAttribute("class"), i = new RegExp("\\b" + t + "\\b", "g"); +e.replace(i, ""); +g.setAttribute("class", e); +return g; +}; +g.setPath = function(t) { +g.setAttribute("d", t); +return g; +}; +g.setOpacity = function(t) { +g.style.opacity = parseFloat(t); +return g; +}; +g.setFill = function(t) { +/linear/.test(t) ? c(t) : g.setAttribute("fill", t); +return g; +}; +g.setStroke = function(t) { +g.setAttribute("stroke", t); +return g; +}; +g.setStrokeWidth = function(t) { +g.setAttribute("stroke-width", t); +return g; +}; +var b = [ [ 1, 0, 0 ], [ 0, 1, 0 ], [ 0, 0, 1 ] ]; +g.resetTransform = function() { +g.setAttribute("transform", ""); +b = [ [ 1, 0, 0 ], [ 0, 1, 0 ], [ 0, 0, 1 ] ]; +return g; +}; +g.moveRight = function(t) { +var e = parseInt(t, 10); +if (isNaN(e)) return g; +b = p(b, d(e, 0)); +g.setAttribute("transform", "matrix(" + u(b) + ")"); +return g; +}; +g.setLeft = g.moveRight; +g.moveDown = function(t) { +var e = parseInt(t, 10); +if (isNaN(e)) return g; +b = p(b, d(0, e)); +g.setAttribute("transform", "matrix(" + u(b) + ")"); +return g; +}; +g.setTop = g.moveDown; +g.flipAlong = function(t) { +t = t.split(""); +for (var e = 0; e < t.length; e++) { +var i = g.getBBox(); +switch (t[e]) { +case "x": +b = p(b, l(-1, 1), d(-(2 * i.x + i.width), 0)); +g.setAttribute("transform", "matrix(" + u(b) + ")"); +break; + +case "y": +b = p(b, l(1, -1), d(0, -(2 * i.y + i.height))); +g.setAttribute("transform", "matrix(" + u(b) + ")"); +} +} +if (s.isWebkit) { +var n = g.getAttribute("filter"); +g.setAttribute("filter", ""); +g.setAttribute("filter", n); +} +return g; +}; +g.setShadow = function(t) { +t = f.parseShadow(t); +var e, i; +if (!s.isOpera) { +var n = { +feOffset: { +result: "offset-out", +in: "SourceGraphic", +dx: t.offsetX, +dy: t.offsetY +}, +feColorMatrix: { +result: "matrix-out", +in: "offset-out", +type: "matrix", +values: "0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.2 0 0 0 0 0 1 0" +}, +feGaussianBlur: { +result: "blur-out", +in: "matrix-out", +stdDeviation: t.blurRadius / 2 +}, +feBlend: { +in: "SourceGraphic", +in2: "blur-out", +mode: "normal" +} +}; +e = m.createElementNS("http://www.w3.org/2000/svg", "filter"), i = "sha_" + new Date().getTime(); +e.setAttribute("id", i); +for (var o = h(n, "http://www.w3.org/2000/svg"), r = 0; r < o.length; r++) e.appendChild(o[r]); +var a = m.createElementNS("http://www.w3.org/2000/svg", "defs"); +a.appendChild(e); +g.parentNode.appendChild(a); +g.setAttribute("filter", "url(#" + i + ")"); +return g; +} +}; +o.addChildren(g, a); +g.appendToParent(); +g.setStyle(n); +g.setAttributes(_); +return g; +} +var o = i(3), r = i(14), s = i(8); +t.exports = n; +e(n, "meshim_common_SvgShape"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, n, s, a) { +var _ = i(60); +e = e || o.generateID(); +var l, d = t.ownerDocument; +l = _.createVMLNode(d, "shape"); +l.className = "vml"; +l.style.width = "100%"; +l.style.height = "100%"; +l.stroked = !1; +l.filled = !0; +l.fillColor = "#000000"; +l.vectorType = "vml"; +var u = _.createVMLNode(d, "skew"); +u.className = "vml"; +u.setAttribute("on", "true"); +u.setAttribute("matrix", "1,0,0,1,0,0"); +u.setAttribute("offset", "-0.5,-0.5"); +l.appendChild(u); +o.extend(l); +r.extend(l); +o.set(e, l); +var c = !1; +l.appendToParent = function(e) { +o.hasParentNode(l) || o.appendChild(t, l); +if (e && !c) { +t.appendToParent && t.appendToParent(!0); +c = !0; +} +if ("vml" == l.vectorType) { +l.style.width = "100%"; +l.style.height = "100%"; +} +}; +l.moveRight = function(t) { +var e = parseInt(t, 10); +if (isNaN(e)) return l; +l.style.left = (parseInt(l.style.left, 10) || 0) + e; +var i = l.style.display; +l.style.display = "none"; +l.style.display = i; +}; +l.setLeft = l.moveRight; +l.moveDown = function(t) { +var e = parseInt(t, 10); +if (isNaN(e)) return l; +l.style.top = (parseInt(l.style.top, 10) || 0) + e; +var i = l.style.display; +l.style.display = "none"; +l.style.display = i; +}; +l.setTop = l.moveDown; +l.setPath = function(t) { +var e, i; +t = t.replace(/c/g, "v").replace(/z/g, "x").replace(/m/g, "t").replace(/l/g, "r").replace(/L/g, "l") + "e"; +i = l.getElementsByTagName("v:path")[0]; +e = i || _.createVMLNode(d, "path"); +e.className = "vml"; +e.setAttribute("v", t); +l.appendChild(e); +return l; +}; +l.setOpacity = function(t) { +var e = parseFloat(t), i = _.createVMLNode(d, "fill"); +i.className = "vml"; +i.setAttribute("opacity", e); +i.setAttribute("o:opacity2", e); +l.appendChild(i); +return l; +}; +l.setFill = function(t) { +var e = _.createVMLNode(d, "fill"); +e.className = "vml"; +if (/linear/.test(t)) e = _.generateVmlLinearGradient(d, t); else { +e = _.createVMLNode(d, "fill"); +e.className = "vml"; +"none" == t ? e.setAttribute("on", "false") : e.setAttribute("on", "true"); +e.setAttribute("color", t); +} +l.appendChild(e); +return l; +}; +l.setStroke = function(t) { +var e = _.createVMLNode(d, "stroke"); +e.className = "vml"; +"none" == t ? e.setAttribute("on", "false") : e.setAttribute("on", "true"); +e.setAttribute("color", t); +l.appendChild(e); +return l; +}; +l.setStrokeWidth = function(t) { +var e = _.createVMLNode(d, "stroke"); +e.className = "vml"; +t = parseInt(t, 10); +e.setAttribute("on", "true"); +e.setAttribute("weight", t); +l.appendChild(e); +return l; +}; +var h = 1, p = 1; +l.resetTransform = function() { +h = p = 1; +l.style.left = l.style.top = NaN; +return l; +}; +l.flipAlong = function(t) { +t = t.split(""); +for (var e = 0; e < t.length; e++) switch (t[e]) { +case "x": +h = -h; +break; + +case "y": +p = -p; +} +var i = ""; +-1 == h && (i += "x"); +-1 == p && (i += "y"); +l.style.flip = i; +return l; +}; +l.setShadow = function(t) { +var e = _.createVMLNode(d, "shadow"); +e.className = "vml"; +t = _.parseShadow(t); +e.setAttribute("on", "true"); +e.setAttribute("opacity", t.opacity); +e.setAttribute("color", t.color); +e.setAttribute("offset", t.offsetX + "px," + t.offsetY + "px"); +l.appendChild(e); +return l; +}; +o.addChildren(l, s); +l.appendToParent(); +l.setStyle(n); +l.setAttributes(a); +return l; +} +var o = i(3), r = i(14); +t.exports = n; +e(n, "meshim_common_VmlShape"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n() { +return null; +} +var o, r = i(235), s = i(234), a = i(60); +switch (a.detectedGraphicType) { +case "canvas": +o = a.CanvasData; +break; + +case "vml": +o = r; +break; + +case "svg": +o = s; +break; + +case "div": +o = n; +} +t.exports = o; +e(o, "meshim_common_GShape"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, n, a, _) { +function l() { +w && window.clearInterval(w); +var t = Math.floor(201 * Math.random()) - 100; +w = window.setTimeout(u, 1e3 + t); +} +function d() { +w && window.clearTimeout(w); +} +function u() { +if (j && j.attributes.viewBox) { +m(); +c(); +h(j.childrens); +} +} +function c() { +var t = j.attributes.viewBox, e = j.attributes.canvasScale ? parseFloat(j.attributes.canvasScale) : 1; +x.width != t.width && (x.width = t.width * e); +x.height != t.height && (x.height = t.height * e); +v.scale(e, e); +v.transform(1, 0, 0, 1, -t.x * e, -t.y * e); +s.isWebKit && t.width * t.height > 4e4 ? l() : d(); +p(j); +} +function h(t) { +for (var e = 0, i = t.length; e < i; e++) { +var n = t[e]; +v.save(); +n.childrens && h(n.childrens); +p(n); +v.restore(); +} +} +function p(t) { +var e = t.attributes; +f(); +e.left && "function" == typeof t.translateX && t.translateX(v, e.left); +e.top && "function" == typeof t.translateY && t.translateY(v, e.right); +"opacity" in e && (v.globalAlpha = e.opacity * v.globalAlpha); +if (e.path) { +e.stroke && (v.strokeStyle = e.stroke); +e.strokeWidth && (v.lineWidth = e.strokeWidth); +e.fill && (v.fillStyle = e.fill(v, e.path.bBox)); +if (e.shadow && !s.isOpera) { +var i = e.shadow; +v.shadowOffsetX = i.offsetX; +v.shadowOffsetY = i.offsetY; +v.shadowBlur = i.blurRadius; +v.shadowColor = i.rgba; +} +e.path(v); +v.fill(); +e.shadow && g(); +v.stroke(); +} +} +function f() { +v.strokeStyle = "rgba(0, 0, 0, 0)"; +v.fillStyle = "rgba(0, 0, 0, 1)"; +v.lineWidth = 0; +} +function g() { +v.shadowOffsetX = 0; +v.shadowOffsetY = 0; +v.shadowBlur = 0; +v.shadowColor = "#000"; +} +function m() { +v.setTransform(1, 0, 0, 1, 0, 0); +v.clearRect(0, 0, x.width, x.height); +} +function $(t) { +for (var e = [], i = 0, n = t.length; i < n; i++) { +var o = t[i]; +e.push({ +constructor: o[0], +id: o[1], +attributes: o[4], +childrens: $(o[3]) +}); +} +return e; +} +var b = i(60); +e = e || o.generateID(); +var w, x, v, y = t.ownerDocument, j = new b.parseCanvasData({ +type: "canvas", +attributes: {}, +childrens: [] +}); +x = y.createElement("canvas"); +x.width = 0; +x.height = 0; +x.vectorType = "canvas"; +x.getContext && (v = x.getContext("2d")); +o.extend(x); +r.extend(x); +o.set(e, x); +var C = !1; +x.appendToParent = function(e) { +o.hasParentNode(x) || o.appendChild(t, x); +if (e && !C) { +t.appendToParent && t.appendToParent(!0); +C = !0; +} +}; +x.setData = function(t) { +"function" == typeof j.destroy && j.destroy(); +j = new b.parseCanvasData(t); +d(); +u(); +j.on("update", u); +}; +x.onDestruction(function() { +d(); +"function" == typeof j.destroy && j.destroy(); +}); +x.setViewBox = function(t) { +j.setAttribute("viewBox", t); +return x; +}; +x.setStyle(n); +x.setAttributes(_); +j = { +type: "canvas", +attributes: _, +childrens: $(a) +}; +x.setData(j); +x.appendToParent(); +return x; +} +var o = i(3), r = i(14), s = i(8); +t.exports = n; +e(n, "meshim_common_Canvas"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, n, s) { +e = e || o.generateID(); +var a, _ = t.ownerDocument; +a = _.createElementNS("http://www.w3.org/2000/svg", "svg"); +a.vectorType = "svg"; +o.extend(a); +r.extend(a); +o.set(e, a); +var l = !1; +a.appendToParent = function(e) { +o.hasParentNode(a) || o.appendChild(t, a); +if (e && !l) { +t.appendToParent && t.appendToParent(!0); +l = !0; +} +}; +a.setClass = function(t) { +a.setAttribute("class", t); +return a; +}; +a.addClass = function(t) { +a.setAttribute("class", a.getAttribute("class") + " " + t); +return a; +}; +a.removeClass = function(t) { +var e = a.getAttribute("class"), i = new RegExp("\\b" + t + "\\b", "g"); +e.replace(i, ""); +a.setAttribute("class", e); +return a; +}; +a.setViewBox = function(t) { +a.setAttribute("viewBox", t); +return a; +}; +a.setStyle(i); +a.setAttributes(s); +o.addChildren(a, n); +a.appendToParent(); +return a; +} +var o = i(3), r = i(14); +t.exports = n; +e(n, "meshim_common_SvgCanvas"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, n, s, a) { +var _ = i(60); +e = e || o.generateID(); +var l, d, u, c, h, p = t.ownerDocument; +l = p.createElement("span"); +l.style.display = "inline-block"; +l.style.overflow = "hidden"; +l.style.position = "relative"; +l.vectorType = "vml"; +d = _.createVMLNode(p, "group"); +d.className = "vml"; +d.style.width = "100px"; +d.style.height = "100px"; +d.style.border = "0px none"; +d.style.padding = "0px"; +d.style.margin = "0px"; +d.style.position = "absolute"; +d.style.top = "0px"; +d.style.left = "0px"; +l.groupshape = d; +u = _.createVMLNode(p, "shape"); +u.className = "vml"; +u.stroked = !1; +u.fill = !1; +u.style.width = "1px"; +u.style.height = "1px"; +d.appendChild(u); +l.appendChild(d); +l.graphicType = "vml"; +l.defaultPlacement = d; +o.extend(l); +r.extend(l); +o.set(e, l); +var f = !1; +l.appendToParent = function(e) { +o.hasParentNode(l) || o.appendChild(t, l); +if (e && !f) { +t.appendToParent && t.appendToParent(!0); +f = !0; +} +}; +l.setCanvasScale = function(t) { +t = parseFloat(t); +c = t; +h && l.setViewBox(h); +return l; +}; +l.setViewBox = function(t) { +h = t; +t = _.parseViewBox(t); +var e = l.getElementsByTagName("*"), i = t.x + ", " + t.y, n = "1, 1"; +c && (n = 1 / c + "," + 1 / c); +d.coordorigin = i; +for (var o = 0, r = e.length; o < r; o++) { +var s = e[o].tagName; +"shape" !== s && "group" !== s || (e[o].coordsize = n); +} +u.style.left = t.x + "px"; +u.style.right = t.y + "px"; +return l; +}; +var g = l.setWidth, m = l.setHeight; +l.setWidth = function(t) { +"function" == typeof g && g.call(l, t); +d.style.width = "1px"; +return l; +}; +l.setHeight = function(t) { +"function" == typeof m && m.call(l, t); +d.style.height = "1px"; +return l; +}; +l.setStyle(n); +l.setAttributes(a); +o.addChildren(l, s); +l.appendToParent(); +return l; +} +var o = i(3), r = i(14); +t.exports = n; +e(n, "meshim_common_VmlCanvas"); +return n; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i, n, o) { +e = e || r.generateID(); +var a, _ = t.ownerDocument; +a = _.createElement("div"); +r.extend(a); +s.extend(a); +r.set(e, a); +var l = !1; +a.appendToParent = function(e) { +r.hasParentNode(a) || r.appendChild(t, a); +if (e && !l) { +t.appendToParent && t.appendToParent(!0); +l = !0; +} +}; +a.setViewBox = function() {}; +a.setStyle(i); +a.setAttributes(o); +r.addChildren(a, n); +a.appendToParent(); +return a; +} +var o, r = i(3), s = i(14), a = i(239), _ = i(238), l = i(237), d = i(60); +switch (d.detectedGraphicType) { +case "canvas": +o = l; +break; + +case "vml": +o = a; +break; + +case "svg": +o = _; +break; + +case "div": +o = n; +} +t.exports = o; +e(o, "meshim_common_GCanvas"); +return o; +}(); +}).call(this, i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__meshim_common_GCanvas = i(240); +e.__$$__meshim_common_GShape = i(236); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__meshim_common_GCanvas, "", "", [ [ e.__$$__meshim_common_GShape, "content", "", [], { +id: "content", +fill: "linear, top, from(#E0741B), to(#E0981B)", +stroke: "#c2c2c2" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:common": "meshim.common" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +var p = n.get(s + "__content"); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var f = function() { +function t(t, i) { +var n = { +tl: [ t.x, t.y ], +tr: [ t.x + t.width, t.y ], +br: [ t.x + t.width, t.y + t.height ], +bl: [ t.x, t.y + t.height ] +}; +i = i.slice(); +for (var o = 0; o < i.length; o++) { +var r = i[o], s = r[0]; +n[s] && (i[o] = e(n[s], r)); +} +return i; +} +function e(t, e) { +var i = t[0], n = t[1], o = []; +e = e.slice(); +e.shift(); +o.push(e.shift()); +for (;e.length > 1; ) { +var r = e.splice(0, 2); +o.push(i + r[0]); +o.push(n + r[1]); +} +return o; +} +function n(t) { +for (var e = "", i = { +cs: o +}, n = 0, r = t.length; n < r; n++) { +var s = t[n], a = s[0]; +i[a] && (s = i[a].apply(null, s.slice(1))); +e += " " + s.join(" "); +} +return e; +} +function o(t, e, i) { +var n = t, o = e, r = Math.round(.5522848 * n), s = Math.round(.5522848 * o); +return (i ? -n * o : n * o) > 0 ? [ "c", r, 0, n, o - s, n, o ] : [ "c", 0, s, n - r, o, n, o ]; +} +function r(e, i) { +if (!s(e) || !s(i) || isNaN(e) || isNaN(i)) throw new window.Error("BubbleVector.setDimension(): invalid arguments"); +var o = { +x: a - 1, +y: a - 1, +width: e - 2 * a + 2, +height: i - 2 * a - 3 +}, r = n(t(o, _)); +h.setWidth(e + "px").setHeight(i + "px").setViewBox("0 0 " + e + " " + i); +p.setPath(r); +return h; +} +var s = i(28), a = 2, _ = [ [ "tl", "M", 0, 8 ], [ "cs", 8, -8, 0 ], [ "tr", "L", -8, 0 ], [ "cs", 8, 8, 0 ], [ "br", "L", 0, -16 ], [ "cs", -8, 8, 0 ], [ "bl", "L", 39, -8 ], [ "bl", "L", 33, 0 ], [ "bl", "L", 27, -8 ], [ "bl", "L", 8, -8 ], [ "cs", -8, -8, 0 ], [ "z" ] ]; +!function() { +p.setStrokeWidth(a); +h.setDimension = r; +h.setFill = function(t) { +p.setFill(t); +}; +}(); +}(); +for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__meshim_common_GCanvas.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__meshim_common_GCanvas; +t.__jx__jcss = {}; +s(t, "meshim_widget_components_chatButton_BubbleVector"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s, a) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_chatButton_BubbleVector = i(241); +e.__$$__meshim_widget_widgets_IconFont = i(15); +t.exports = function() { +function t(s, a, l, d, u) { +if (!(this instanceof t)) return new t(s, a, l, d, u); +a = a || n.generateID(); +var c = o(115), h = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatButton_BubbleVector, "bubble_vector", "", [], { +id: "bubble_vector", +position: "absolute" +} ], [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_widgets_IconFont, "close", "", [], { +id: "close", +icon: "cross", +addClass: "close", +title: c +} ], [ e.__$$__jx_ui_Widget, "bubble_title_container", "", [], { +id: "bubble_title_container", +class: "bubble_title" +} ], [ e.__$$__jx_ui_Widget, "bubble_text_container", "", [], { +id: "bubble_text_container", +class: "bubble_text" +} ] ], { +class: "bubble_text_wrapper" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:button": "meshim.widget.components.chatButton", +"xmlns:widgets": "meshim.widget.widgets", +visibility: "hidden" +} ], p = h[0].call(this, s, a, null, n.mangleIDs(a, h[3]), h[4]), f = p || this; +n.set(a, f); +var g = n.get(a + "__bubble_vector"), m = n.get(a + "__close"), $ = n.get(a + "__bubble_title_container"), b = n.get(a + "__bubble_text_container"); +if (!t.__jx__jcss_generated) { +r.generate(s, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var w = function() { +function t() { +if (!l) { +l = window.setTimeout(e, 0); +8 == u.isIE && f.setVisibility(""); +} +} +function e() { +l = null; +if (n && o) { +var t = D.getValue(); +if (t) { +var e = f.getHeight(); +if (e) { +g.setDimension(t, e); +E.update(f.getHeight()); +if (!d) { +f.setVisibility(""); +d = !0; +} +} +} +} +} +var n, o, r, s, a, _, l, d, u = i(8), c = i(5), h = i(25), p = i(9), w = i(11), x = i(119), v = c.root.$("livechat"), y = v.$("settings"), j = v.$("ui"), C = j.$("chat_button"), S = C.$("display$bool"), A = C.$("bubble").$("display$bool"), k = j.$("theme_loaded$bool"), I = y.$("bubble"), T = I.$("title$string"), B = I.$("text$string"), N = y.$("theme").$("colors").$("bubble$string"), D = C.$("button_width$int"), E = C.$("bubble_height$int"); +!function() { +p.rtl(f); +f.autobind(S, "value", function(e) { +if (n != e) { +n = e; +t(); +} +}); +f.autobind(A, "value", function(e) { +if (o != e) { +o = e; +t(); +} +}); +f.autobind(T, "value", function(e) { +if (r != e) { +r = e; +$.setText(w.get(T)); +t(); +} +}); +f.autobind(B, "value", function(e) { +if (s != e) { +s = e; +b.setText(w.get(B)); +b.setDisplay(e ? "" : "none"); +t(); +} +}); +f.autobind(N, "value", function(t) { +t && a != t && (a = t); +}); +f.autobind(k, "value", function(e) { +if (e) { +if (_ != a) { +_ = a; +var i = new x(_); +g.setFill("linear top from(" + i.lighten(.1).toRGB() + ") to(" + i.darken(.2).toRGB() + ") "); +} +t(); +} +}); +f.autobind(D, "value", function(e) { +e && t(); +}); +m.on("click", function(t) { +t.stopPropagation(); +h.userHideBubble(); +}); +}(); +}(); +for (var x in w) w.hasOwnProperty(x) && (f[x] = w[x]); +f.fire && f.fire("init"); +f.setStyle && f.setStyle(l); +f.setAttributes && f.setAttributes(u); +"function" == typeof f.addChildren ? f.addChildren(d) : n.addChildren(f, d); +if (f !== this) { +f.__jx__constructor = _; +f.__jx__native = !1; +} +return f; +} +var _; +t.prototype = s(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "relative" +}, +".bubble_text_wrapper": { +position: "relative", +padding: "10px 12px 26px" +}, +".bubble_title": { +position: "relative", +zIndex: "1", +fontSize: "$$fontSizeL", +fontWeight: "bold", +color: "$$chatBubbleTitleColor", +whiteSpace: "pre-wrap" +}, +".bubble_text": { +position: "relative", +zIndex: "1", +marginTop: "5px", +fontSize: "12px", +fontStyle: "italic", +color: "$$chatBubbleTextColor", +whiteSpace: "pre-wrap" +}, +".close": { +float: "right", +position: "relative", +top: "-1px", +left: "5px", +padding: "6px 4px 2px", +zIndex: "2", +color: "$$chatBubbleCloseColor", +textShadow: "$$chatBubbleCloseShadow", +borderRadius: "$$radius", +"&:hover": { +background: "$$chatBubbleCloseHoverBg" +} +}, +"&.rtl .close": { +float: "left", +left: "auto", +right: "5px" +} +}; +a(t, "meshim_widget_components_chatButton_BubbleRenderer"); +_ = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(7), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_Widget = i(6); +e.__$$__meshim_widget_components_chatButton_BubbleRenderer = i(242); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_Widget, "", "", [ [ e.__$$__meshim_widget_components_chatButton_BubbleRenderer, "", "", [], { +addClass: "bubble_renderer" +} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:button": "meshim.widget.components.chatButton", +"xmlns:widgets": "meshim.widget.widgets" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +var t = i(5), e = t.root.$("livechat").$("ui").$("chat_button"), n = e.$("bubble").$("display$bool"), o = -1; +!function() { +h.autobind(n, "value", function(t) { +if (o != t) { +o = t; +h.setDisplay(o ? "" : "none"); +} +}); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_Widget.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_Widget; +t.__jx__jcss = { +"**self": { +position: "absolute", +width: "100%", +"top, left": 0, +cursor: "pointer" +} +}; +s(t, "meshim_widget_components_chatButton_Bubble"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +(function(e, n, o, r, s) { +e.__$$__jx_ui_FloatingFrame = i(73); +e.__$$__meshim_widget_widgets_fontLoader_ZopimFont = i(61); +e.__$$__meshim_widget_components_chatButton_Bubble = i(243); +e.__$$__meshim_widget_components_chatButton_Button = i(233); +t.exports = function() { +function t(r, s, _, l, d) { +if (!(this instanceof t)) return new t(r, s, _, l, d); +s = s || n.generateID(); +var u = [ e.__$$__jx_ui_FloatingFrame, "", "", [ [ e.__$$__meshim_widget_widgets_fontLoader_ZopimFont, "", "", [], {} ], [ e.__$$__meshim_widget_components_chatButton_Bubble, "", "", [], { +addClass: "bubble" +} ], [ e.__$$__meshim_widget_components_chatButton_Button, "", "", [], {} ] ], { +xmlns: "jx.ui.html", +"xmlns:ui": "jx.ui", +"xmlns:widgets": "meshim.widget.widgets", +"xmlns:chatButton": "meshim.widget.components.chatButton", +cursor: "pointer" +} ], c = u[0].call(this, r, s, null, n.mangleIDs(s, u[3]), u[4]), h = c || this; +n.set(s, h); +if (!t.__jx__jcss_generated) { +o.generate(r, t.prototype.__jx__fqname, t.__jx__jcss, null, t); +t.__jx__jcss_generated = !0; +} +var p = function() { +function t() { +var t = x; +h.setDisplay(t ? "" : "none"); +o(); +} +function e() { +n(); +a.bugs.noBoxSizing && window.setTimeout(function() { +h.dom.className = h.dom.className; +}, 100); +} +function n() { +if (T) h.setTop("").setRight("").setBottom("").setLeft(""); else switch (s) { +case "br": +h.setTop("").setLeft("").setMarginLeft("").setRight(N).setBottom(B); +break; + +case "bm": +h.setTop("").setRight("").setBottom(B).setLeft("50%").setMarginLeft(-Math.round(h.__width / 2) + "px"); +break; + +case "bl": +h.setTop("").setRight("").setMarginLeft("").setBottom(B).setLeft(N); +break; + +case "tr": +h.setBottom("").setLeft("").setMarginLeft("").setTop(B).setRight(N); +break; + +case "tm": +h.setRight("").setBottom("").setTop(B).setLeft("50%").setMarginLeft(-Math.round(h.__width / 2) + "px"); +break; + +case "tl": +h.setRight("").setBottom("").setMarginLeft("").setTop(B).setLeft(N); +} +} +function o() { +r(); +_(r, h, "once"); +} +function r() { +var t = j.getValue() || 10; +t !== h.getWidth() && h.setWidth(t + "px"); +var e = C.getValue() || 10; +y && (e += S.getValue() || 0); +e !== h.getHeight() && h.setHeight(e + "px"); +} +var s, a = i(8), _ = i(16), l = i(33), d = i(5), u = i(50), c = i(25), p = i(47), f = i(74), g = d.root.$("livechat"), m = g.$("settings"), $ = g.$("ui"), b = $.$("chat_button"), w = b.$("display$bool"), x = -1, v = b.$("bubble").$("display$bool"), y = -1, j = b.$("button_width$int"), C = b.$("button_height$int"), S = b.$("bubble_height$int"), A = m.$("theme").$("chat_button").$("position$string"), k = m.$$("theme.chat_button.h_offset$int"), I = m.$$("theme.chat_button.v_offset$int"), T = $.$("mockup$bool").getValue(), B = 0, N = 10; +!function() { +f.bind(h.iwin); +h.dom.className = "zopim"; +h.iframe.setStyle("display", "block"); +h.content.addClass("meshim_widget_Widget"); +h.wrapper.addClass(h.__jx__fqname); +h.ibody.style.overflow = "hidden"; +p(h.ibody); +T && h.setPosition("relative"); +h.autobind(v, "value", function(t) { +if (y != t) { +y = t; +o(); +} +}); +h.autobind(k, "value", function(t) { +t = parseInt(t, 10); +if (!isNaN(t) && t >= 0) { +N = t; +e(); +} +}); +h.autobind(I, "value", function(t) { +t = parseInt(t, 10); +if (!isNaN(t) && t >= 0) { +B = t; +e(); +} +}); +h.autobind(S, "value", function(t) { +t && o(); +}); +h.autobind(A, "value", function(t) { +s && h.wrapper.removeClass(s); +s = t; +s && h.wrapper.addClass(s); +e(); +}); +h.autobind(j, "value", function(t) { +t && o(); +}); +h.autobind(C, "value", function(t) { +t && o(); +}); +h.autobind(w, "value", function(e) { +if (x != e) { +x = e; +t(); +} +}); +h.on("click", function() { +u.trackEvent("Button Clicked"); +l.resetUnreadCount(); +b.write({ +button_clicked$bool: !0 +}); +c.userShowBadgeOrWindow(); +}); +}(); +}(); +for (var f in p) p.hasOwnProperty(f) && (h[f] = p[f]); +h.fire && h.fire("init"); +h.setStyle && h.setStyle(_); +h.setAttributes && h.setAttributes(d); +"function" == typeof h.addChildren ? h.addChildren(l) : n.addChildren(h, l); +if (h !== this) { +h.__jx__constructor = a; +h.__jx__native = !1; +} +return h; +} +var a; +t.prototype = r(e.__$$__jx_ui_FloatingFrame.prototype); +t.prototype.__jx__native = !1; +t.prototype.__jx__super = e.__$$__jx_ui_FloatingFrame; +t.__jx__jcss = { +"**self": { +"*width": "100%" +}, +"&.bm, &.tm": { +margin: "0 auto" +}, +"&.br, &.bm, &.bl": { +".button_bar": { +"borderTopLeftRadius, borderTopRightRadius": "$$chatButtonRadius" +}, +".favicon": { +borderTopLeftRadius: "$$chatButtonRadius" +}, +".rtl .favicon": { +borderTopLeftRadius: 0, +borderTopRightRadius: "$$chatButtonRadius" +} +}, +"&.tr, &.tm, &.tl": { +".button_bar": { +"borderBottomLeftRadius, borderBottomRightRadius": "$$chatButtonRadius" +}, +".favicon": { +borderBottomLeftRadius: "$$chatButtonRadius" +}, +".rtl .favicon": { +borderBottomLeftRadius: 0, +borderBottomRightRadius: "$$chatButtonRadius" +} +} +}; +s(t, "meshim_widget_components_ChatButton"); +a = t; +t.prototype.__jx__constructor = t; +return t; +}(); +}).call(this, i(4), i(3), i(2), i(1), i(0)); +}, function(t, e, i) { +"use strict"; +var n = function(t, e, i) { +var n = t[e], o = t; +if (e in t) { +var r = "warn" === e ? "warning" : e; +t[e] = function() { +var t = [].slice.call(arguments), e = "" + t.join(" "), s = { +level: r, +logger: "console", +extra: { +arguments: t +} +}; +i && i(e, s); +n && Function.prototype.apply.call(n, o, t); +}; +} +}; +t.exports = { +wrapMethod: n +}; +}, function(t, e, i) { +"use strict"; +function n(t) { +this.name = "RavenConfigError"; +this.message = t; +} +n.prototype = new Error(); +n.prototype.constructor = n; +t.exports = n; +}, function(t, e, i) { +"use strict"; +function n(t, e) { +for (var i = 0; i < t.length; ++i) if (t[i] === e) return i; +return -1; +} +function o(t, e, i, n) { +return JSON.stringify(t, r(e, n), i); +} +function r(t, e) { +var i = [], o = []; +null == e && (e = function(t, e) { +return i[0] === e ? "[Circular ~]" : "[Circular ~." + o.slice(0, n(i, e)).join(".") + "]"; +}); +return function(r, s) { +if (i.length > 0) { +var a = n(i, this); +~a ? i.splice(a + 1) : i.push(this); +~a ? o.splice(a, 1 / 0, r) : o.push(r); +~n(i, s) && (s = e.call(this, r, s)); +} else i.push(s); +return null == t ? s : t.call(this, r, s); +}; +} +e = t.exports = o; +e.getSerialize = r; +}, function(t, e, i) { +"use strict"; +(function(e) { +function n() { +return "undefined" == typeof document || void 0 === document.location ? "" : document.location.href; +} +var o = i(120), r = { +collectWindowErrors: !0, +debug: !1 +}, s = "undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : {}, a = [].slice, _ = "?", l = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/; +r.report = function() { +function t(t) { +c(); +$.push(t); +} +function e(t) { +for (var e = $.length - 1; e >= 0; --e) $[e] === t && $.splice(e, 1); +} +function i() { +h(); +$ = []; +} +function d(t, e) { +var i = null; +if (!e || r.collectWindowErrors) { +for (var n in $) if ($.hasOwnProperty(n)) try { +$[n].apply(null, [ t ].concat(a.call(arguments, 2))); +} catch (t) { +i = t; +} +if (i) throw i; +} +} +function u(t, e, i, s, a) { +var u = null; +if (x) { +r.computeStackTrace.augmentStackTraceWithInitialElement(x, e, i, t); +p(); +} else if (a && o.isError(a)) { +u = r.computeStackTrace(a); +d(u, !0); +} else { +var c, h = { +url: e, +line: i, +column: s +}, f = void 0, m = t; +if ("[object String]" === {}.toString.call(t)) { +var c = t.match(l); +if (c) { +f = c[1]; +m = c[2]; +} +} +h.func = _; +u = { +name: f, +message: m, +url: n(), +stack: [ h ] +}; +d(u, !0); +} +return !!g && g.apply(this, arguments); +} +function c() { +if (!m) { +g = s.onerror; +s.onerror = u; +m = !0; +} +} +function h() { +if (m) { +s.onerror = g; +m = !1; +g = void 0; +} +} +function p() { +var t = x, e = b; +b = null; +x = null; +w = null; +d.apply(null, [ t, !1 ].concat(e)); +} +function f(t, e) { +var i = a.call(arguments, 1); +if (x) { +if (w === t) return; +p(); +} +var n = r.computeStackTrace(t); +x = n; +w = t; +b = i; +setTimeout(function() { +w === t && p(); +}, n.incomplete ? 2e3 : 0); +if (!1 !== e) throw t; +} +var g, m, $ = [], b = null, w = null, x = null; +f.subscribe = t; +f.unsubscribe = e; +f.uninstall = i; +return f; +}(); +r.computeStackTrace = function() { +function t(t) { +if (void 0 !== t.stack && t.stack) { +for (var e, i, o, r = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, s = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, a = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, l = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, d = /\((\S*)(?::(\d+))(?::(\d+))\)/, u = t.stack.split("\n"), c = [], h = (/^(.*) is undefined$/.exec(t.message), +0), p = u.length; h < p; ++h) { +if (i = r.exec(u[h])) { +var f = i[2] && 0 === i[2].indexOf("native"), g = i[2] && 0 === i[2].indexOf("eval"); +if (g && (e = d.exec(i[2]))) { +i[2] = e[1]; +i[3] = e[2]; +i[4] = e[3]; +} +o = { +url: f ? null : i[2], +func: i[1] || _, +args: f ? [ i[2] ] : [], +line: i[3] ? +i[3] : null, +column: i[4] ? +i[4] : null +}; +} else if (i = a.exec(u[h])) o = { +url: i[2], +func: i[1] || _, +args: [], +line: +i[3], +column: i[4] ? +i[4] : null +}; else { +if (!(i = s.exec(u[h]))) continue; +var g = i[3] && i[3].indexOf(" > eval") > -1; +if (g && (e = l.exec(i[3]))) { +i[3] = e[1]; +i[4] = e[2]; +i[5] = null; +} else 0 !== h || i[5] || void 0 === t.columnNumber || (c[0].column = t.columnNumber + 1); +o = { +url: i[3], +func: i[1] || _, +args: i[2] ? i[2].split(",") : [], +line: i[4] ? +i[4] : null, +column: i[5] ? +i[5] : null +}; +} +!o.func && o.line && (o.func = _); +c.push(o); +} +return c.length ? { +name: t.name, +message: t.message, +url: n(), +stack: c +} : null; +} +} +function e(t, e, i, n) { +var o = { +url: e, +line: i +}; +if (o.url && o.line) { +t.incomplete = !1; +o.func || (o.func = _); +if (t.stack.length > 0 && t.stack[0].url === o.url) { +if (t.stack[0].line === o.line) return !1; +if (!t.stack[0].line && t.stack[0].func === o.func) { +t.stack[0].line = o.line; +return !1; +} +} +t.stack.unshift(o); +t.partial = !0; +return !0; +} +t.incomplete = !0; +return !1; +} +function i(t, s) { +for (var a, l, d = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, u = [], c = {}, h = !1, p = i.caller; p && !h; p = p.caller) if (p !== o && p !== r.report) { +l = { +url: null, +func: _, +line: null, +column: null +}; +p.name ? l.func = p.name : (a = d.exec(p.toString())) && (l.func = a[1]); +if (void 0 === l.func) try { +l.func = a.input.substring(0, a.input.indexOf("{")); +} catch (t) {} +c["" + p] ? h = !0 : c["" + p] = !0; +u.push(l); +} +s && u.splice(0, s); +var f = { +name: t.name, +message: t.message, +url: n(), +stack: u +}; +e(f, t.sourceURL || t.fileName, t.line || t.lineNumber, t.message || t.description); +return f; +} +function o(e, o) { +var s = null; +o = null == o ? 0 : +o; +try { +s = t(e); +if (s) return s; +} catch (t) { +if (r.debug) throw t; +} +try { +s = i(e, o + 1); +if (s) return s; +} catch (t) { +if (r.debug) throw t; +} +return { +name: e.name, +message: e.message, +url: n() +}; +} +o.augmentStackTraceWithInitialElement = e; +o.computeStackTraceFromStackProp = t; +return o; +}(); +t.exports = r; +}).call(this, i(95)); +}, function(t, e, i) { +"use strict"; +(function(e) { +function n() { +return +new Date(); +} +function o(t, e) { +return a(e) ? function(i) { +return e(i, t); +} : e; +} +function r() { +this._hasJSON = !("object" != typeof JSON || !JSON.stringify); +this._hasDocument = !s(O); +this._hasNavigator = !s(P); +this._lastCapturedException = null; +this._lastData = null; +this._lastEventId = null; +this._globalServer = null; +this._globalKey = null; +this._globalProject = null; +this._globalContext = {}; +this._globalOptions = { +logger: "javascript", +ignoreErrors: [], +ignoreUrls: [], +whitelistUrls: [], +includePaths: [], +crossOrigin: "anonymous", +collectWindowErrors: !0, +maxMessageLength: 0, +maxUrlLength: 250, +stackTraceLimit: 50, +autoBreadcrumbs: !0, +instrument: !0, +sampleRate: 1 +}; +this._ignoreOnError = 0; +this._isRavenInstalled = !1; +this._originalErrorStackTraceLimit = Error.stackTraceLimit; +this._originalConsole = E.console || {}; +this._originalConsoleMethods = {}; +this._plugins = []; +this._startTime = n(); +this._wrappedBuiltIns = []; +this._breadcrumbs = []; +this._lastCapturedEvent = null; +this._keypressTimeout; +this._location = E.location; +this._lastHref = this._location && this._location.href; +this._resetBackoff(); +for (var t in this._originalConsole) this._originalConsoleMethods[t] = this._originalConsole[t]; +} +function s(t) { +return void 0 === t; +} +function a(t) { +return "function" == typeof t; +} +function _(t) { +return "[object String]" === L.toString.call(t); +} +function l(t) { +for (var e in t) return !1; +return !0; +} +function d(t, e) { +var i, n; +if (s(t.length)) for (i in t) p(t, i) && e.call(null, i, t[i]); else { +n = t.length; +if (n) for (i = 0; i < n; i++) e.call(null, i, t[i]); +} +} +function u(t, e) { +if (!e) return t; +d(e, function(e, i) { +t[e] = i; +}); +return t; +} +function c(t) { +return !!Object.isFrozen && Object.isFrozen(t); +} +function h(t, e) { +return !e || t.length <= e ? t : t.substr(0, e) + "…"; +} +function p(t, e) { +return L.hasOwnProperty.call(t, e); +} +function f(t) { +for (var e, i = [], n = 0, o = t.length; n < o; n++) { +e = t[n]; +_(e) ? i.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1")) : e && e.source && i.push(e.source); +} +return new RegExp(i.join("|"), "i"); +} +function g(t) { +var e = []; +d(t, function(t, i) { +e.push(encodeURIComponent(t) + "=" + encodeURIComponent(i)); +}); +return e.join("&"); +} +function m(t) { +var e = t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/); +if (!e) return {}; +var i = e[6] || "", n = e[8] || ""; +return { +protocol: e[2], +host: e[4], +path: e[5], +relative: e[5] + i + n +}; +} +function $() { +var t = E.crypto || E.msCrypto; +if (!s(t) && t.getRandomValues) { +var e = new Uint16Array(8); +t.getRandomValues(e); +e[3] = 4095 & e[3] | 16384; +e[4] = 16383 & e[4] | 32768; +var i = function(t) { +for (var e = t.toString(16); e.length < 4; ) e = "0" + e; +return e; +}; +return i(e[0]) + i(e[1]) + i(e[2]) + i(e[3]) + i(e[4]) + i(e[5]) + i(e[6]) + i(e[7]); +} +return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(t) { +var e = 16 * Math.random() | 0; +return ("x" === t ? e : 3 & e | 8).toString(16); +}); +} +function b(t) { +for (var e, i = [], n = 0, o = 0, r = " > ".length; t && n++ < 5; ) { +e = w(t); +if ("html" === e || n > 1 && o + i.length * r + e.length >= 80) break; +i.push(e); +o += e.length; +t = t.parentNode; +} +return i.reverse().join(" > "); +} +function w(t) { +var e, i, n, o, r, s = []; +if (!t || !t.tagName) return ""; +s.push(t.tagName.toLowerCase()); +t.id && s.push("#" + t.id); +e = t.className; +if (e && _(e)) { +i = e.split(/\s+/); +for (r = 0; r < i.length; r++) s.push("." + i[r]); +} +var a = [ "type", "name", "title", "alt" ]; +for (r = 0; r < a.length; r++) { +n = a[r]; +o = t.getAttribute(n); +o && s.push("[" + n + '="' + o + '"]'); +} +return s.join(""); +} +function x(t, e) { +return !!(!!t ^ !!e); +} +function v(t, e) { +if (x(t, e)) return !1; +t = t.values[0]; +e = e.values[0]; +return t.type === e.type && t.value === e.value && y(t.stacktrace, e.stacktrace); +} +function y(t, e) { +if (x(t, e)) return !1; +var i = t.frames, n = e.frames; +if (i.length !== n.length) return !1; +for (var o, r, s = 0; s < i.length; s++) { +o = i[s]; +r = n[s]; +if (o.filename !== r.filename || o.lineno !== r.lineno || o.colno !== r.colno || o.function !== r.function) return !1; +} +return !0; +} +function j(t, e, i, n) { +var o = t[e]; +t[e] = i(o); +n && n.push([ t, e, o ]); +} +var C = i(248), S = i(247), A = i(246), k = i(120), I = k.isError, T = k.isObject, B = i(245).wrapMethod, N = "source protocol user pass host port path".split(" "), D = /^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/, E = "undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : {}, O = E.document, P = E.navigator; +r.prototype = { +VERSION: "3.17.0", +debug: !1, +TraceKit: C, +config: function(t, e) { +var i = this; +if (i._globalServer) { +this._logDebug("error", "Error: Raven has already been configured"); +return i; +} +if (!t) return i; +var n = i._globalOptions; +e && d(e, function(t, e) { +"tags" === t || "extra" === t || "user" === t ? i._globalContext[t] = e : n[t] = e; +}); +i.setDSN(t); +n.ignoreErrors.push(/^Script error\.?$/); +n.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/); +n.ignoreErrors = f(n.ignoreErrors); +n.ignoreUrls = !!n.ignoreUrls.length && f(n.ignoreUrls); +n.whitelistUrls = !!n.whitelistUrls.length && f(n.whitelistUrls); +n.includePaths = f(n.includePaths); +n.maxBreadcrumbs = Math.max(0, Math.min(n.maxBreadcrumbs || 100, 100)); +var o = { +xhr: !0, +console: !0, +dom: !0, +location: !0 +}, r = n.autoBreadcrumbs; +"[object Object]" === {}.toString.call(r) ? r = u(o, r) : !1 !== r && (r = o); +n.autoBreadcrumbs = r; +var s = { +tryCatch: !0 +}, a = n.instrument; +"[object Object]" === {}.toString.call(a) ? a = u(s, a) : !1 !== a && (a = s); +n.instrument = a; +C.collectWindowErrors = !!n.collectWindowErrors; +return i; +}, +install: function() { +var t = this; +if (t.isSetup() && !t._isRavenInstalled) { +C.report.subscribe(function() { +t._handleOnErrorStackInfo.apply(t, arguments); +}); +t._globalOptions.instrument && t._globalOptions.instrument.tryCatch && t._instrumentTryCatch(); +t._globalOptions.autoBreadcrumbs && t._instrumentBreadcrumbs(); +t._drainPlugins(); +t._isRavenInstalled = !0; +} +Error.stackTraceLimit = t._globalOptions.stackTraceLimit; +return this; +}, +setDSN: function(t) { +var e = this, i = e._parseDSN(t), n = i.path.lastIndexOf("/"), o = i.path.substr(1, n); +e._dsn = t; +e._globalKey = i.user; +e._globalSecret = i.pass && i.pass.substr(1); +e._globalProject = i.path.substr(n + 1); +e._globalServer = e._getGlobalServer(i); +e._globalEndpoint = e._globalServer + "/" + o + "api/" + e._globalProject + "/store/"; +this._resetBackoff(); +}, +context: function(t, e, i) { +if (a(t)) { +i = e || []; +e = t; +t = void 0; +} +return this.wrap(t, e).apply(this, i); +}, +wrap: function(t, e, i) { +function n() { +var n = [], r = arguments.length, s = !t || t && !1 !== t.deep; +i && a(i) && i.apply(this, arguments); +for (;r--; ) n[r] = s ? o.wrap(t, arguments[r]) : arguments[r]; +try { +return e.apply(this, n); +} catch (e) { +o._ignoreNextOnError(); +o.captureException(e, t); +throw e; +} +} +var o = this; +if (s(e) && !a(t)) return t; +if (a(t)) { +e = t; +t = void 0; +} +if (!a(e)) return e; +try { +if (e.__raven__) return e; +if (e.__raven_wrapper__) return e.__raven_wrapper__; +} catch (t) { +return e; +} +for (var r in e) p(e, r) && (n[r] = e[r]); +n.prototype = e.prototype; +e.__raven_wrapper__ = n; +n.__raven__ = !0; +n.__inner__ = e; +return n; +}, +uninstall: function() { +C.report.uninstall(); +this._restoreBuiltIns(); +Error.stackTraceLimit = this._originalErrorStackTraceLimit; +this._isRavenInstalled = !1; +return this; +}, +captureException: function(t, e) { +if (!I(t)) return this.captureMessage(t, u({ +trimHeadFrames: 1, +stacktrace: !0 +}, e)); +this._lastCapturedException = t; +try { +var i = C.computeStackTrace(t); +this._handleStackInfo(i, e); +} catch (e) { +if (t !== e) throw e; +} +return this; +}, +captureMessage: function(t, e) { +if (!this._globalOptions.ignoreErrors.test || !this._globalOptions.ignoreErrors.test(t)) { +e = e || {}; +var i = u({ +message: t + "" +}, e); +if (this._globalOptions.stacktrace || e && e.stacktrace) { +var n; +try { +throw new Error(t); +} catch (t) { +n = t; +} +n.name = null; +e = u({ +fingerprint: t, +trimHeadFrames: (e.trimHeadFrames || 0) + 1 +}, e); +var o = C.computeStackTrace(n), r = this._prepareFrames(o, e); +i.stacktrace = { +frames: r.reverse() +}; +} +this._send(i); +return this; +} +}, +captureBreadcrumb: function(t) { +var e = u({ +timestamp: n() / 1e3 +}, t); +if (a(this._globalOptions.breadcrumbCallback)) { +var i = this._globalOptions.breadcrumbCallback(e); +if (T(i) && !l(i)) e = i; else if (!1 === i) return this; +} +this._breadcrumbs.push(e); +this._breadcrumbs.length > this._globalOptions.maxBreadcrumbs && this._breadcrumbs.shift(); +return this; +}, +addPlugin: function(t) { +var e = [].slice.call(arguments, 1); +this._plugins.push([ t, e ]); +this._isRavenInstalled && this._drainPlugins(); +return this; +}, +setUserContext: function(t) { +this._globalContext.user = t; +return this; +}, +setExtraContext: function(t) { +this._mergeContext("extra", t); +return this; +}, +setTagsContext: function(t) { +this._mergeContext("tags", t); +return this; +}, +clearContext: function() { +this._globalContext = {}; +return this; +}, +getContext: function() { +return JSON.parse(S(this._globalContext)); +}, +setEnvironment: function(t) { +this._globalOptions.environment = t; +return this; +}, +setRelease: function(t) { +this._globalOptions.release = t; +return this; +}, +setDataCallback: function(t) { +var e = this._globalOptions.dataCallback; +this._globalOptions.dataCallback = o(e, t); +return this; +}, +setBreadcrumbCallback: function(t) { +var e = this._globalOptions.breadcrumbCallback; +this._globalOptions.breadcrumbCallback = o(e, t); +return this; +}, +setShouldSendCallback: function(t) { +var e = this._globalOptions.shouldSendCallback; +this._globalOptions.shouldSendCallback = o(e, t); +return this; +}, +setTransport: function(t) { +this._globalOptions.transport = t; +return this; +}, +lastException: function() { +return this._lastCapturedException; +}, +lastEventId: function() { +return this._lastEventId; +}, +isSetup: function() { +if (!this._hasJSON) return !1; +if (!this._globalServer) { +if (!this.ravenNotConfiguredError) { +this.ravenNotConfiguredError = !0; +this._logDebug("error", "Error: Raven has not been configured."); +} +return !1; +} +return !0; +}, +afterLoad: function() { +var t = E.RavenConfig; +t && this.config(t.dsn, t.config).install(); +}, +showReportDialog: function(t) { +if (O) { +t = t || {}; +var e = t.eventId || this.lastEventId(); +if (!e) throw new A("Missing eventId"); +var i = t.dsn || this._dsn; +if (!i) throw new A("Missing DSN"); +var n = encodeURIComponent, o = ""; +o += "?eventId=" + n(e); +o += "&dsn=" + n(i); +var r = t.user || this._globalContext.user; +if (r) { +r.name && (o += "&name=" + n(r.name)); +r.email && (o += "&email=" + n(r.email)); +} +var s = this._getGlobalServer(this._parseDSN(i)), a = O.createElement("script"); +a.async = !0; +a.src = s + "/api/embed/error-page/" + o; +(O.head || O.body).appendChild(a); +} +}, +_ignoreNextOnError: function() { +var t = this; +this._ignoreOnError += 1; +setTimeout(function() { +t._ignoreOnError -= 1; +}); +}, +_triggerEvent: function(t, e) { +var i, n; +if (this._hasDocument) { +e = e || {}; +t = "raven" + t.substr(0, 1).toUpperCase() + t.substr(1); +if (O.createEvent) { +i = O.createEvent("HTMLEvents"); +i.initEvent(t, !0, !0); +} else { +i = O.createEventObject(); +i.eventType = t; +} +for (n in e) p(e, n) && (i[n] = e[n]); +if (O.createEvent) O.dispatchEvent(i); else try { +O.fireEvent("on" + i.eventType.toLowerCase(), i); +} catch (t) {} +} +}, +_breadcrumbEventHandler: function(t) { +var e = this; +return function(i) { +e._keypressTimeout = null; +if (e._lastCapturedEvent !== i) { +e._lastCapturedEvent = i; +var n; +try { +n = b(i.target); +} catch (t) { +n = ""; +} +e.captureBreadcrumb({ +category: "ui." + t, +message: n +}); +} +}; +}, +_keypressEventHandler: function() { +var t = this; +return function(e) { +var i; +try { +i = e.target; +} catch (t) { +return; +} +var n = i && i.tagName; +if (n && ("INPUT" === n || "TEXTAREA" === n || i.isContentEditable)) { +var o = t._keypressTimeout; +o || t._breadcrumbEventHandler("input")(e); +clearTimeout(o); +t._keypressTimeout = setTimeout(function() { +t._keypressTimeout = null; +}, 1e3); +} +}; +}, +_captureUrlChange: function(t, e) { +var i = m(this._location.href), n = m(e), o = m(t); +this._lastHref = e; +i.protocol === n.protocol && i.host === n.host && (e = n.relative); +i.protocol === o.protocol && i.host === o.host && (t = o.relative); +this.captureBreadcrumb({ +category: "navigation", +data: { +to: e, +from: t +} +}); +}, +_instrumentTryCatch: function() { +function t(t) { +return function(i, n) { +for (var o = new Array(arguments.length), r = 0; r < o.length; ++r) o[r] = arguments[r]; +var s = o[0]; +a(s) && (o[0] = e.wrap(s)); +return t.apply ? t.apply(this, o) : t(o[0], o[1]); +}; +} +var e = this, i = e._wrappedBuiltIns, n = this._globalOptions.autoBreadcrumbs; +j(E, "setTimeout", t, i); +j(E, "setInterval", t, i); +E.requestAnimationFrame && j(E, "requestAnimationFrame", function(t) { +return function(i) { +return t(e.wrap(i)); +}; +}, i); +for (var o = [ "EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload" ], r = 0; r < o.length; r++) !function(t) { +var o = E[t] && E[t].prototype; +if (o && o.hasOwnProperty && o.hasOwnProperty("addEventListener")) { +j(o, "addEventListener", function(i) { +return function(o, r, s, a) { +try { +r && r.handleEvent && (r.handleEvent = e.wrap(r.handleEvent)); +} catch (t) {} +var _, l, d; +if (n && n.dom && ("EventTarget" === t || "Node" === t)) { +l = e._breadcrumbEventHandler("click"); +d = e._keypressEventHandler(); +_ = function(t) { +if (t) { +var e; +try { +e = t.type; +} catch (t) { +return; +} +return "click" === e ? l(t) : "keypress" === e ? d(t) : void 0; +} +}; +} +return i.call(this, o, e.wrap(r, void 0, _), s, a); +}; +}, i); +j(o, "removeEventListener", function(t) { +return function(e, i, n, o) { +try { +i = i && (i.__raven_wrapper__ ? i.__raven_wrapper__ : i); +} catch (t) {} +return t.call(this, e, i, n, o); +}; +}, i); +} +}(o[r]); +}, +_instrumentBreadcrumbs: function() { +function t(t, i) { +t in i && a(i[t]) && j(i, t, function(t) { +return e.wrap(t); +}); +} +var e = this, i = this._globalOptions.autoBreadcrumbs, n = e._wrappedBuiltIns; +if (i.xhr && "XMLHttpRequest" in E) { +var o = XMLHttpRequest.prototype; +j(o, "open", function(t) { +return function(i, n) { +_(n) && -1 === n.indexOf(e._globalKey) && (this.__raven_xhr = { +method: i, +url: n, +status_code: null +}); +return t.apply(this, arguments); +}; +}, n); +j(o, "send", function(i) { +return function(n) { +function o() { +if (r.__raven_xhr && (1 === r.readyState || 4 === r.readyState)) { +try { +r.__raven_xhr.status_code = r.status; +} catch (t) {} +e.captureBreadcrumb({ +type: "http", +category: "xhr", +data: r.__raven_xhr +}); +} +} +for (var r = this, s = [ "onload", "onerror", "onprogress" ], _ = 0; _ < s.length; _++) t(s[_], r); +"onreadystatechange" in r && a(r.onreadystatechange) ? j(r, "onreadystatechange", function(t) { +return e.wrap(t, void 0, o); +}) : r.onreadystatechange = o; +return i.apply(this, arguments); +}; +}, n); +} +i.xhr && "fetch" in E && j(E, "fetch", function(t) { +return function(i, n) { +for (var o = new Array(arguments.length), r = 0; r < o.length; ++r) o[r] = arguments[r]; +var s, a = o[0], _ = "GET"; +if ("string" == typeof a) s = a; else { +s = a.url; +a.method && (_ = a.method); +} +o[1] && o[1].method && (_ = o[1].method); +var l = { +method: _, +url: s, +status_code: null +}; +e.captureBreadcrumb({ +type: "http", +category: "fetch", +data: l +}); +return t.apply(this, o).then(function(t) { +l.status_code = t.status; +return t; +}); +}; +}, n); +if (i.dom && this._hasDocument) if (O.addEventListener) { +O.addEventListener("click", e._breadcrumbEventHandler("click"), !1); +O.addEventListener("keypress", e._keypressEventHandler(), !1); +} else { +O.attachEvent("onclick", e._breadcrumbEventHandler("click")); +O.attachEvent("onkeypress", e._keypressEventHandler()); +} +var r = E.chrome, s = r && r.app && r.app.runtime, l = !s && E.history && history.pushState; +if (i.location && l) { +var u = E.onpopstate; +E.onpopstate = function() { +var t = e._location.href; +e._captureUrlChange(e._lastHref, t); +if (u) return u.apply(this, arguments); +}; +j(history, "pushState", function(t) { +return function() { +var i = arguments.length > 2 ? arguments[2] : void 0; +i && e._captureUrlChange(e._lastHref, i + ""); +return t.apply(this, arguments); +}; +}, n); +} +if (i.console && "console" in E && console.log) { +var c = function(t, i) { +e.captureBreadcrumb({ +message: t, +level: i.level, +category: "console" +}); +}; +d([ "debug", "info", "warn", "error", "log" ], function(t, e) { +B(console, e, c); +}); +} +}, +_restoreBuiltIns: function() { +for (var t; this._wrappedBuiltIns.length; ) { +t = this._wrappedBuiltIns.shift(); +var e = t[0], i = t[1], n = t[2]; +e[i] = n; +} +}, +_drainPlugins: function() { +var t = this; +d(this._plugins, function(e, i) { +var n = i[0], o = i[1]; +n.apply(t, [ t ].concat(o)); +}); +}, +_parseDSN: function(t) { +var e = D.exec(t), i = {}, n = 7; +try { +for (;n--; ) i[N[n]] = e[n] || ""; +} catch (e) { +throw new A("Invalid DSN: " + t); +} +if (i.pass && !this._globalOptions.allowSecretKey) throw new A("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key"); +return i; +}, +_getGlobalServer: function(t) { +var e = "//" + t.host + (t.port ? ":" + t.port : ""); +t.protocol && (e = t.protocol + ":" + e); +return e; +}, +_handleOnErrorStackInfo: function() { +this._ignoreOnError || this._handleStackInfo.apply(this, arguments); +}, +_handleStackInfo: function(t, e) { +var i = this._prepareFrames(t, e); +this._triggerEvent("handle", { +stackInfo: t, +options: e +}); +this._processException(t.name, t.message, t.url, t.lineno, i, e); +}, +_prepareFrames: function(t, e) { +var i = this, n = []; +if (t.stack && t.stack.length) { +d(t.stack, function(t, e) { +var o = i._normalizeFrame(e); +o && n.push(o); +}); +if (e && e.trimHeadFrames) for (var o = 0; o < e.trimHeadFrames && o < n.length; o++) n[o].in_app = !1; +} +n = n.slice(0, this._globalOptions.stackTraceLimit); +return n; +}, +_normalizeFrame: function(t) { +if (t.url) { +var e = { +filename: t.url, +lineno: t.line, +colno: t.column, +function: t.func || "?" +}; +e.in_app = !(this._globalOptions.includePaths.test && !this._globalOptions.includePaths.test(e.filename) || /(Raven|TraceKit)\./.test(e.function) || /raven\.(min\.)?js$/.test(e.filename)); +return e; +} +}, +_processException: function(t, e, i, n, o, r) { +var s; +if (!this._globalOptions.ignoreErrors.test || !this._globalOptions.ignoreErrors.test(e)) { +e += ""; +if (o && o.length) { +i = o[0].filename || i; +o.reverse(); +s = { +frames: o +}; +} else i && (s = { +frames: [ { +filename: i, +lineno: n, +in_app: !0 +} ] +}); +if ((!this._globalOptions.ignoreUrls.test || !this._globalOptions.ignoreUrls.test(i)) && (!this._globalOptions.whitelistUrls.test || this._globalOptions.whitelistUrls.test(i))) { +var a = u({ +exception: { +values: [ { +type: t, +value: e, +stacktrace: s +} ] +}, +culprit: i +}, r); +this._send(a); +} +} +}, +_trimPacket: function(t) { +var e = this._globalOptions.maxMessageLength; +t.message && (t.message = h(t.message, e)); +if (t.exception) { +var i = t.exception.values[0]; +i.value = h(i.value, e); +} +var n = t.request; +if (n) { +n.url && (n.url = h(n.url, this._globalOptions.maxUrlLength)); +n.Referer && (n.Referer = h(n.Referer, this._globalOptions.maxUrlLength)); +} +t.breadcrumbs && t.breadcrumbs.values && this._trimBreadcrumbs(t.breadcrumbs); +return t; +}, +_trimBreadcrumbs: function(t) { +for (var e, i, n, o = [ "to", "from", "url" ], r = 0; r < t.values.length; ++r) { +i = t.values[r]; +if (i.hasOwnProperty("data") && T(i.data) && !c(i.data)) { +n = u({}, i.data); +for (var s = 0; s < o.length; ++s) { +e = o[s]; +n.hasOwnProperty(e) && (n[e] = h(n[e], this._globalOptions.maxUrlLength)); +} +t.values[r].data = n; +} +} +}, +_getHttpData: function() { +if (this._hasNavigator || this._hasDocument) { +var t = {}; +this._hasNavigator && P.userAgent && (t.headers = { +"User-Agent": navigator.userAgent +}); +if (this._hasDocument) { +O.location && O.location.href && (t.url = O.location.href); +if (O.referrer) { +t.headers || (t.headers = {}); +t.headers.Referer = O.referrer; +} +} +return t; +} +}, +_resetBackoff: function() { +this._backoffDuration = 0; +this._backoffStart = null; +}, +_shouldBackoff: function() { +return this._backoffDuration && n() - this._backoffStart < this._backoffDuration; +}, +_isRepeatData: function(t) { +var e = this._lastData; +return !(!e || t.message !== e.message || t.culprit !== e.culprit) && (t.stacktrace || e.stacktrace ? y(t.stacktrace, e.stacktrace) : !t.exception && !e.exception || v(t.exception, e.exception)); +}, +_setBackoffState: function(t) { +if (!this._shouldBackoff()) { +var e = t.status; +if (400 === e || 401 === e || 429 === e) { +var i; +try { +i = t.getResponseHeader("Retry-After"); +i = 1e3 * parseInt(i, 10); +} catch (t) {} +this._backoffDuration = i || (2 * this._backoffDuration || 1e3); +this._backoffStart = n(); +} +} +}, +_send: function(t) { +var e = this._globalOptions, i = { +project: this._globalProject, +logger: e.logger, +platform: "javascript" +}, o = this._getHttpData(); +o && (i.request = o); +t.trimHeadFrames && delete t.trimHeadFrames; +t = u(i, t); +t.tags = u(u({}, this._globalContext.tags), t.tags); +t.extra = u(u({}, this._globalContext.extra), t.extra); +t.extra["session:duration"] = n() - this._startTime; +this._breadcrumbs && this._breadcrumbs.length > 0 && (t.breadcrumbs = { +values: [].slice.call(this._breadcrumbs, 0) +}); +l(t.tags) && delete t.tags; +this._globalContext.user && (t.user = this._globalContext.user); +e.environment && (t.environment = e.environment); +e.release && (t.release = e.release); +e.serverName && (t.server_name = e.serverName); +a(e.dataCallback) && (t = e.dataCallback(t) || t); +t && !l(t) && (a(e.shouldSendCallback) && !e.shouldSendCallback(t) || (this._shouldBackoff() ? this._logDebug("warn", "Raven dropped error due to backoff: ", t) : "number" == typeof e.sampleRate ? Math.random() < e.sampleRate && this._sendProcessedPayload(t) : this._sendProcessedPayload(t))); +}, +_getUuid: function() { +return $(); +}, +_sendProcessedPayload: function(t, e) { +var i = this, n = this._globalOptions; +if (this.isSetup()) { +this._lastEventId = t.event_id || (t.event_id = this._getUuid()); +t = this._trimPacket(t); +if (this._globalOptions.allowDuplicates || !this._isRepeatData(t)) { +this._lastData = t; +this._logDebug("debug", "Raven about to send:", t); +var o = { +sentry_version: "7", +sentry_client: "raven-js/" + this.VERSION, +sentry_key: this._globalKey +}; +this._globalSecret && (o.sentry_secret = this._globalSecret); +var r = t.exception && t.exception.values[0]; +this.captureBreadcrumb({ +category: "sentry", +message: r ? (r.type ? r.type + ": " : "") + r.value : t.message, +event_id: t.event_id, +level: t.level || "error" +}); +var s = this._globalEndpoint; +(n.transport || this._makeRequest).call(this, { +url: s, +auth: o, +data: t, +options: n, +onSuccess: function() { +i._resetBackoff(); +i._triggerEvent("success", { +data: t, +src: s +}); +e && e(); +}, +onError: function(n) { +i._logDebug("error", "Raven transport failed to send: ", n); +n.request && i._setBackoffState(n.request); +i._triggerEvent("failure", { +data: t, +src: s +}); +n = n || new Error("Raven send failed (no additional details provided)"); +e && e(n); +} +}); +} else this._logDebug("warn", "Raven dropped repeat event: ", t); +} +}, +_makeRequest: function(t) { +var e = new XMLHttpRequest(); +if ("withCredentials" in e || "undefined" != typeof XDomainRequest) { +var i = t.url; +if ("withCredentials" in e) e.onreadystatechange = function() { +if (4 === e.readyState) if (200 === e.status) t.onSuccess && t.onSuccess(); else if (t.onError) { +var i = new Error("Sentry error code: " + e.status); +i.request = e; +t.onError(i); +} +}; else { +e = new XDomainRequest(); +i = i.replace(/^https?:/, ""); +t.onSuccess && (e.onload = t.onSuccess); +t.onError && (e.onerror = function() { +var i = new Error("Sentry error code: XDomainRequest"); +i.request = e; +t.onError(i); +}); +} +e.open("POST", i + "?" + g(t.auth)); +e.send(S(t.data)); +} +}, +_logDebug: function(t) { +this._originalConsoleMethods[t] && this.debug && Function.prototype.apply.call(this._originalConsoleMethods[t], this._originalConsole, [].slice.call(arguments, 1)); +}, +_mergeContext: function(t, e) { +s(e) ? delete this._globalContext[t] : this._globalContext[t] = u(this._globalContext[t] || {}, e); +} +}; +var L = Object.prototype; +"undefined" != typeof __DEV__ && __DEV__ && (r.utils = { +isUndefined: s, +isFunction: a, +isString: _, +isObject: T, +isEmptyObject: l, +isError: I, +each: d, +objectMerge: u, +truncate: h, +hasKey: p, +joinRegExp: f, +urlencode: g, +uuid4: $, +htmlTreeAsString: b, +htmlElementAsString: w, +parseUrl: m, +fill: j +}); +r.prototype.setUser = r.prototype.setUserContext; +r.prototype.setReleaseContext = r.prototype.setRelease; +t.exports = r; +}).call(this, i(95)); +}, function(t, e, i) { +"use strict"; +(function(e) { +var n = i(249), o = "undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : {}, r = o.Raven, s = new n(); +s.noConflict = function() { +o.Raven = r; +return s; +}; +s.afterLoad(); +t.exports = s; +}).call(this, i(95)); +}, function(t, e, i) { +(function(e) { +t.exports = function() { +function n(t, e, i) { +_(e) && (i = e, e = null); +e || (e = {}); +d("POST", t, e, i); +} +function o(t, e, i) { +_(e) && (i = e, e = null); +e || (e = {}); +d("GET", t, e, i); +} +function r(t, e, i, n) { +var o, r, s, a = "form" + ~~(1e5 * Math.random()), _ = i.timeout || 1e4, d = document.createElement("form"), u = document.createElement("iframe"); +d.method = t; +d.action = e; +u.style.display = "none"; +if (i.params) for (r in i.params) if (i.params.hasOwnProperty(r)) { +s = document.createElement("input"); +s.name = r; +s.value = i.params[r]; +d.appendChild(s); +} +document.body.appendChild(d); +document.body.appendChild(u); +d.target = u.contentWindow.name = a; +l(function() { +d.submit(); +document.body.removeChild(d); +s = d = null; +u.onload = function() { +u.onload = null; +u.contentWindow.location.href = "about:blank"; +u.onload = function() { +u.onload = null; +clearTimeout(o); +n && n(null, u.contentWindow.name); +document.body.removeChild(u); +u = null; +}; +}; +}); +o = setTimeout(function() { +n && n("timeout"); +document.body.removeChild(u); +u = null; +}, _); +} +function s(t, e, i, n) { +function o() { +if (h.contentWindow.frames.length) { +h.contentWindow.location.href = "about:blank"; +clearTimeout(s); +setTimeout(function() { +n && n(null, h.contentWindow.name); +r.body.removeChild(h); +r = h = null; +}, 0); +} else a = setTimeout(o, 100); +} +var r = document; +if (window.ActiveXObject) try { +r = new window.ActiveXObject("htmlfile"); +r.open(), r.close(); +} catch (t) {} +var s, a, _, l, d = "form" + ~~(1e5 * Math.random()), u = i.timeout || 1e4, c = r.createElement('
'), h = r.createElement('';a.root.innerHTML='';b=!0;setTimeout(function(){a.root.innerHTML=f,a.root.firstChild.src=a.url,a.onInsert&&a.onInsert(a.root.firstChild)},0)}else{e=document.createElement("iframe");e.id=a.id;e.name=a.name;e.onload=d;e.scrolling="no";e.style.border="none";e.style.overflow="hidden";a.title&&(e.title=a.title);a.className&&(e.className=a.className);a.height!==undefined&&(e.style.height=a.height+"px");a.width!==undefined&&(a.width=="100%"?e.style.width=a.width:e.style.width=a.width+"px");a.root.appendChild(e);b=!0;e.src=a.url;a.onInsert&&a.onInsert(e)}}e.exports=a}),null); +__d("sdk.domReady",[],(function(a,b,c,d,e,f){__p&&__p();var g;b="readyState"in document?/loaded|complete/.test(document.readyState):!!document.body;function h(){if(!g)return;var a;while(a=g.shift())a();g=null}function a(a){if(g){g.push(a);return}else a()}if(!b){g=[];document.addEventListener?(document.addEventListener("DOMContentLoaded",h,!1),window.addEventListener("load",h,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",h),window.attachEvent("onload",h));if(document.documentElement.doScroll&&window===window.top){c=function a(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(a,0);return}h()};c()}}e.exports=a}),3); +__d("sdk.Content",["Log","sdk.domReady","sdk.UA"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j,k={append:function(a,b){b||(!j?(j=b=document.getElementById("fb-root"),b||(g.warn('The "fb-root" div has not been created, auto-creating'),j=b=document.createElement("div"),b.id="fb-root",i.ie()||!document.body?h(function(){document.body.appendChild(b)}):document.body.appendChild(b)),b.className+=" fb_reset"):b=j);if(typeof a==="string"){var c=document.createElement("div");b.appendChild(c).innerHTML=a;return c}else return b.appendChild(a)},appendHidden:function(a){if(!b){var b=document.createElement("div"),c=b.style;c.position="absolute";c.top="-10000px";c.width=c.height=0;b=k.append(b)}return k.append(a,b)},submitToTarget:function(a,b){__p&&__p();var c=document.createElement("form");c.action=a.url;c.target=a.target;c.method=b?"GET":"POST";k.appendHidden(c);for(var d in a.params)if(Object.prototype.hasOwnProperty.call(a.params,d)){b=a.params[d];if(b!==null&&b!==undefined){var e=document.createElement("input");e.name=d;e.value=b;c.appendChild(e)}}c.submit();c.parentNode.removeChild(c)}};e.exports=k}),null); +__d("sdk.Impressions",["Miny","QueryString","UrlMap","getBlankIframeSrc","guid","insertIframe","sdk.Content","sdk.Runtime"],(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){__p&&__p();function o(a){__p&&__p();var b=n.getClientID();!a.api_key&&b&&(a.api_key=b);a.kid_directed_site=n.getKidDirectedSite();b=i.resolve("www",!0)+"/impression.php/"+k()+"/";var c=h.appendToUrl(b,a);if(c.length>2e3&&(a.payload&&typeof a.payload==="string")){var d=g.encode(a.payload);d&&d.length>>18),g.charCodeAt(a>>>12&63),g.charCodeAt(a>>>6&63),g.charCodeAt(a&63))}var i=">___?456789:;<=_______\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19______\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123";function j(a){a=i.charCodeAt(a.charCodeAt(0)-43)<<18|i.charCodeAt(a.charCodeAt(1)-43)<<12|i.charCodeAt(a.charCodeAt(2)-43)<<6|i.charCodeAt(a.charCodeAt(3)-43);return String.fromCharCode(a>>>16,a>>>8&255,a&255)}var k={encode:function(a){a=unescape(encodeURI(a));var b=(a.length+2)%3;a=(a+"\0\0".slice(b)).replace(/[\s\S]{3}/g,h);return a.slice(0,a.length+b-2)+"==".slice(b)},decode:function(a){a=a.replace(/[^A-Za-z0-9+\/]/g,"");var b=a.length+3&3;a=(a+"AAA".slice(b)).replace(/..../g,j);a=a.slice(0,a.length+b-3);try{return decodeURIComponent(escape(a))}catch(a){throw new Error("Not valid UTF-8")}},encodeObject:function(a){return k.encode(ES("JSON","stringify",!1,a))},decodeObject:function(a){return ES("JSON","parse",!1,k.decode(a))},encodeNums:function(a){return String.fromCharCode.apply(String,ES(a,"map",!0,function(a){return g.charCodeAt((a|-(a>63))&-(a>0)&63)}))}};e.exports=k}),null); +__d("sdk.SignedRequest",["Base64"],(function(a,b,c,d,e,f,g){function a(a){if(!a)return null;a=a.split(".",2)[1].replace(/\-/g,"+").replace(/\_/g,"/");return g.decodeObject(a)}b={parse:a};e.exports=b}),null); +__d("URIRFC3986",[],(function(a,b,c,d,e,f){__p&&__p();var g=new RegExp("^([^:/?#]+:)?(//([^\\\\/?#@]*@)?(\\[[A-Fa-f0-9:.]+\\]|[^\\/?#:]*)(:[0-9]*)?)?([^?#]*)(\\?[^#]*)?(#.*)?");a={parse:function(a){__p&&__p();if(ES(a,"trim",!0)==="")return null;a=a.match(g);if(a==null)return null;var b={};b.uri=a[0]?a[0]:null;b.scheme=a[1]?a[1].substr(0,a[1].length-1):null;b.authority=a[2]?a[2].substr(2):null;b.userinfo=a[3]?a[3].substr(0,a[3].length-1):null;b.host=a[2]?a[4]:null;b.port=a[5]?a[5].substr(1)?parseInt(a[5].substr(1),10):null:null;b.path=a[6]?a[6]:null;b.query=a[7]?a[7].substr(1):null;b.fragment=a[8]?a[8].substr(1):null;b.isGenericURI=b.authority===null&&!!b.scheme;return b}};e.exports=a}),null); +__d("createObjectFrom",[],(function(a,b,c,d,e,f){__p&&__p();function g(a,b){if(b===undefined)return g(a,!0);var c={};if(ES("Array","isArray",!1,b))for(var d=a.length-1;d>=0;d--)c[a[d]]=b[d];else for(var d=a.length-1;d>=0;d--)c[a[d]]=b;return c}e.exports=g}),null); +__d("URISchemes",["createObjectFrom"],(function(a,b,c,d,e,f,g){var h=g(["blob","cmms","fb","fba","fbatwork","fb-ama","fb-workchat","fb-workchat-secure","fb-messenger","fb-messenger-public","fb-messenger-group-thread","fb-page-messages","fb-pma","fbcf","fbconnect","fbinternal","fbmobilehome","fbrpc","file","ftp","http","https","mailto","ms-app","intent","itms","itms-apps","itms-services","market","svn+ssh","fbstaging","tel","sms","pebblejs","sftp","whatsapp","moments","flash","fblite","chrome-extension","webcal","fb124024574287414","fb124024574287414rc","fb124024574287414master","fb1576585912599779","fb929757330408142","designpack","fbpixelcloud","fbapi20130214","fb1196383223757595","tbauth","oculus","oculus.store","skype","callto","workchat","fb236786383180508","fb1775440806014337","data"]);a={isAllowed:function(a){return!a?!0:Object.prototype.hasOwnProperty.call(h,a.toLowerCase())}};e.exports=a}),null); +__d("setHostSubdomain",[],(function(a,b,c,d,e,f){function a(a,b){a=a.split(".");a.length<3?a.unshift(b):a[0]=b;return a.join(".")}e.exports=a}),null); +__d("URIBase",["FBLogger","URIRFC3986","URISchemes","ex","invariant","setHostSubdomain"],(function(a,b,c,d,e,f,g,h,i,j,k,l){__p&&__p();var m=new RegExp("[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]"),n=new RegExp("^(?:[^/]*:|[\\x00-\\x1f]*/[\\x00-\\x1f]*/)");function o(a,b,c,d){__p&&__p();if(!b)return!0;if(b instanceof q){a.setProtocol(b.getProtocol());a.setDomain(b.getDomain());a.setPort(b.getPort());a.setPath(b.getPath());a.setQueryData(d.deserialize(d.serialize(b.getQueryData())));a.setFragment(b.getFragment());a.setIsGeneric(b.getIsGeneric());a.setForceFragmentSeparator(b.getForceFragmentSeparator());return!0}b=ES(b.toString(),"trim",!0);var e=h.parse(b)||{fragment:null,scheme:null};if(!c&&!i.isAllowed(e.scheme))return!1;a.setProtocol(e.scheme||"");if(!c&&m.test(e.host||""))return!1;a.setDomain(e.host||"");a.setPort(e.port||"");a.setPath(e.path||"");if(c)a.setQueryData(d.deserialize(e.query||"")||{});else try{a.setQueryData(d.deserialize(e.query||"")||{})}catch(a){return!1}a.setFragment(e.fragment||"");e.fragment===""&&a.setForceFragmentSeparator(!0);a.setIsGeneric(e.isGenericURI||!1);if(e.userinfo!==null)if(c)throw new Error(j("URI.parse: invalid URI (userinfo is not allowed in a URI): %s",a.toString()));else return!1;if(!a.getDomain()&&ES(a.getPath(),"indexOf",!0,"\\")!==-1)if(c)throw new Error(j("URI.parse: invalid URI (no domain but multiple back-slashes): %s",a.toString()));else return!1;if(!a.getProtocol()&&n.test(b))if(c)throw new Error(j("URI.parse: invalid URI (unsafe protocol-relative URLs): %s",a.toString()));else return!1;if(a.getDomain()&&a.getPath()&&!ES(a.getPath(),"startsWith",!0,"/"))if(c)throw new Error(j("URI.parse: invalid URI (domain and path where path lacks leading slash): %s",a.toString()));else return!1;return!0}var p=[];q.tryParse=function(a,b){"use strict";var c=new q(null,b);return o(c,a,!1,b)?c:null};q.isValid=function(a,b){"use strict";return!!q.tryParse(a,b)};function q(a,b){"use strict";b||k(0,undefined),this.$9=b,this.$7="",this.$1="",this.$6="",this.$5="",this.$3="",this.$4=!1,this.$8={},this.$2=!1,o(this,a,!0,b)}q.prototype.setProtocol=function(a){"use strict";i.isAllowed(a)||(g("uri").mustfix("You attempted to set the protocol of a URI to `%s`. That protocol does not pass the `URISchemes.isAllowed` test.",a),k(0,undefined,a));this.$7=a;return this};q.prototype.getProtocol=function(){"use strict";return(this.$7||"").toLowerCase()};q.prototype.setSecure=function(a){"use strict";return this.setProtocol(a?"https":"http")};q.prototype.isSecure=function(){"use strict";return this.getProtocol()==="https"};q.prototype.setDomain=function(a){"use strict";if(m.test(a))throw new Error(j("URI.setDomain: unsafe domain specified: %s for url %s",a,this.toString()));this.$1=a;return this};q.prototype.getDomain=function(){"use strict";return this.$1};q.prototype.setPort=function(a){"use strict";this.$6=a;return this};q.prototype.getPort=function(){"use strict";return this.$6};q.prototype.setPath=function(a){"use strict";this.$5=a;return this};q.prototype.getPath=function(){"use strict";return this.$5};q.prototype.addQueryData=function(a,b){"use strict";Object.prototype.toString.call(a)==="[object Object]"?ES("Object","assign",!1,this.$8,a):this.$8[a]=b;return this};q.prototype.setQueryData=function(a){"use strict";this.$8=a;return this};q.prototype.getQueryData=function(){"use strict";return this.$8};q.prototype.removeQueryData=function(a){"use strict";ES("Array","isArray",!1,a)||(a=[a]);for(var b=0,c=a.length;b0||this.getFragment())};q.prototype.toString=function(){"use strict";var a=this;for(var b=0;bh},ie64:function(){return x.ie()&&r},firefox:function(){return w()||i},opera:function(){return w()||j},webkit:function(){return w()||k},safari:function(){return x.webkit()},chrome:function(){return w()||l},windows:function(){return w()||o},osx:function(){return w()||n},linux:function(){return w()||p},iphone:function(){return w()||s},mobile:function(){return w()||s||t||q||v},nativeApp:function(){return w()||u},android:function(){return w()||q},ipad:function(){return w()||t}};e.exports=x}),null); +__d("htmlSpecialChars",[],(function(a,b,c,d,e,f){__p&&__p();var g=/&/g,h=//g,j=/\"/g,k=/\'/g;function a(a){if(typeof a==="undefined"||a===null||!a.toString)return"";if(a===!1)return"0";else if(a===!0)return"1";return a.toString().replace(g,"&").replace(j,""").replace(k,"'").replace(h,"<").replace(i,">")}e.exports=a}),null); +__d("emptyFunction",[],(function(a,b,c,d,e,f){__p&&__p();function a(a){return function(){return a}}b=function(){};b.thatReturns=a;b.thatReturnsFalse=a(!1);b.thatReturnsTrue=a(!0);b.thatReturnsNull=a(null);b.thatReturnsThis=function(){return this};b.thatReturnsArgument=function(a){return a};e.exports=b}),null); +__d("sdk.DOMEventListener",["emptyFunction","invariant","wrapFunction"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j=!1;try{a=Object.defineProperty({},"passive",{get:function(){j=!0}});window.addEventListener("test",null,a)}catch(a){}var k,l;window.addEventListener?(k=function(a,b,c,d){d===void 0&&(d=!1),c.wrapper=i(c,"entry","DOMEventListener.add "+b),a.addEventListener(b,c.wrapper,j?d:!1)},l=function(a,b,c,d){d===void 0&&(d=!1),a.removeEventListener(b,c.wrapper,j?d:!1)}):window.attachEvent?(k=function(a,b,c){c.wrapper=i(c,"entry","DOMEventListener.add "+b),a.attachEvent||h(0,undefined),a.attachEvent("on"+b,c.wrapper)},l=function(a,b,c){a.detachEvent||h(0,undefined),a.detachEvent("on"+b,c.wrapper)}):l=k=g;b={add:function(a,b,c,d){d===void 0&&(d=!1);k(a,b,c,d);return{remove:function(){l(a,b,c,d)}}},remove:l};e.exports=b}),null); +__d("Flash",["DOMWrapper","QueryString","UserAgent_DEPRECATED","guid","htmlSpecialChars","sdk.DOMEventListener"],(function(a,b,c,d,e,f,g,h,i,j,k,l){__p&&__p();var m={},n,o=g.getWindow().document;function p(a){var b=o.getElementById(a);b&&b.parentNode.removeChild(b);delete m[a]}function q(){for(var a in m)Object.prototype.hasOwnProperty.call(m,a)&&p(a)}function r(a){return a.replace(/\d+/g,function(a){return"000".substring(a.length)+a})}function s(a){n||(i.ie()>=9&&l.add(window,"unload",q),n=!0),m[a]=a}var t={embed:function(a,b,c,d){__p&&__p();var e=j();a=k(a).replace(/&/g,"&");c=babelHelpers["extends"]({allowscriptaccess:"always",flashvars:d,movie:a},c);typeof c.flashvars==="object"&&(c.flashvars=h.encode(c.flashvars));d=[];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&c[f]&&d.push('');b=b.appendChild(o.createElement("span"));a="'+d.join("")+"";b.innerHTML=a;c=b.firstChild;s(e);return c},remove:p,getVersion:function(){var a="Shockwave Flash",b="application/x-shockwave-flash",c="ShockwaveFlash.ShockwaveFlash",d;if(navigator.plugins&&typeof navigator.plugins[a]==="object"){a=navigator.plugins[a].description;a&&navigator.mimeTypes&&navigator.mimeTypes[b]&&navigator.mimeTypes[b].enabledPlugin&&(d=a.match(/\d+/g))}if(!d)try{d=new ActiveXObject(c).GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),d=Array.prototype.slice.call(d,1)}catch(a){}return d},getVersionString:function(){var a=t.getVersion();return a?a.join("."):""},checkMinVersion:function(a){var b=t.getVersion();return!b?!1:r(b.join("."))>=r(a)},isAvailable:function(){return!!t.getVersion()}};e.exports=t}),null); +__d("XDM",["DOMWrapper","Flash","GlobalCallback","Log","UserAgent_DEPRECATED","emptyFunction","guid","sdk.DOMEventListener","wrapFunction"],(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){__p&&__p();var p={},q={transports:[]},r=g.getWindow();function s(a){__p&&__p();var b={},c=a.length,d=q.transports;while(c--)b[a[c]]=1;c=d.length;while(c--){a=d[c];var e=p[a];if(!b[a]&&e.isAvailable())return a}}a={register:function(a,b){j.debug("Registering %s as XDM provider",a),q.transports.push(a),p[a]=b},create:function(a){__p&&__p();if(!a.whenReady&&!a.onMessage){j.error("An instance without whenReady or onMessage makes no sense");throw new Error("An instance without whenReady or onMessage makes no sense")}a.channel||(j.warn("Missing channel name, selecting at random"),a.channel=m());a.whenReady||(a.whenReady=l);a.onMessage||(a.onMessage=l);var b=a.transport||s(a.blacklist||[]),c=p[b];if(c&&c.isAvailable()){j.debug("%s is available",b);c.init(a);return b}}};a.register("flash",function(){__p&&__p();var a=!1,b,c=!1,d=15e3,e;return{isAvailable:function(){return h.checkMinVersion("8.0.24")},init:function(f){__p&&__p();j.debug("init flash: "+f.channel);var g={send:function(a,c,d,e){j.debug("sending to: %s (%s)",c,e),b.postMessage(a,c,e)}};if(a){f.whenReady(g);return}var k=f.root.appendChild(r.document.createElement("div")),l=i.create(function(){i.remove(l);clearTimeout(e);j.info("xdm.swf called the callback");var a=i.create(function(a,b){a=decodeURIComponent(a),b=decodeURIComponent(b),j.debug("received message %s from %s",a,b),f.onMessage(a,b)},"xdm.swf:onMessage");b.init(f.channel,a);f.whenReady(g)},"xdm.swf:load");b=h.embed(f.flashUrl,k,null,{protocol:location.protocol.replace(":",""),host:location.host,callback:l,log:c});e=setTimeout(function(){j.warn("The Flash component did not load within %s ms - verify that the container is not set to hidden or invisible using CSS as this will cause some browsers to not load the components",d)},d);a=!0}}}());var t=/\.facebook\.com(\/|$)/;a.register("postmessage",function(){__p&&__p();var a=!1;return{isAvailable:function(){return!!r.postMessage},init:function(b){__p&&__p();j.debug("init postMessage: "+b.channel);var c="_FB_"+b.channel,d={send:function(a,b,c,d){if(r===c){j.error("Invalid windowref, equal to window (self)");throw new Error()}j.debug("sending to: %s (%s)",b,d);var e=function(){c.postMessage("_FB_"+d+a,b)};k.ie()==8||k.ieCompatibilityMode()?setTimeout(e,0):e()}};if(a){b.whenReady(d);return}n.add(r,"message",o(function(event){__p&&__p();var a=event.data,d=event.origin||"native";if(!/^(https?:\/\/|native$)/.test(d)){j.debug("Received message from invalid origin type: %s",d);return}if(d!=="native"&&!(t.test(location.hostname)||t.test(event.origin)))return;if(typeof a!=="string"){j.warn("Received message of type %s from %s, expected a string",typeof a,d);return}j.debug("received message %s from %s",a,d);a.substring(0,c.length)==c&&(a=a.substring(c.length));b.onMessage(a,d)},"entry","onMessage"));b.whenReady(d);a=!0}}}());e.exports=a}),null); +__d("isFacebookURI",[],(function(a,b,c,d,e,f){var g=null,h=["http","https"];function a(a){g||(g=new RegExp("(^|\\.)facebook\\.com$","i"));if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!0:ES(h,"indexOf",!0,a.getProtocol())!==-1&&g.test(a.getDomain())}a.setRegex=function(a){g=a};e.exports=a}),null); +__d("sdk.Event",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={SUBSCRIBE:"event.subscribe",UNSUBSCRIBE:"event.unsubscribe",subscribers:function(){this._subscribersMap||(this._subscribersMap={});return this._subscribersMap},subscribe:function(a,b){var c=this.subscribers();!c[a]?c[a]=[b]:ES(c[a],"indexOf",!0,b)==-1&&c[a].push(b);a!=this.SUBSCRIBE&&a!=this.UNSUBSCRIBE&&this.fire(this.SUBSCRIBE,a,c[a])},unsubscribe:function(a,b){var c=this.subscribers()[a];c&&ES(c,"forEach",!0,function(a,d){a===b&&c.splice(d,1)});a!=this.SUBSCRIBE&&a!=this.UNSUBSCRIBE&&this.fire(this.UNSUBSCRIBE,a,c)},monitor:function(a,b){if(!b()){var c=this,d=function d(){b.apply(b,arguments)&&c.unsubscribe(a,d)};this.subscribe(a,d)}},clear:function(a){delete this.subscribers()[a]},fire:function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d'):(b=document.createElement("iframe"),b.name=c);delete a.style;delete a.name;delete a.url;delete a.root;delete a.onload;delete a.onerror;c=ES("Object","assign",!1,{frameBorder:0,allowTransparency:!0,allowFullscreen:!0,scrolling:"no",allow:"encrypted-media"},a);c.width&&j(c.width)&&(b.width=c.width+"px");c.height&&j(c.height)&&(b.height=c.height+"px");delete c.height;delete c.width;for(var n in c)Object.prototype.hasOwnProperty.call(c,n)&&b.setAttribute(n,c[n]);ES("Object","assign",!1,b.style,e);b.src=g();d.appendChild(b);if(l)var o=k.add(b,"load",function(){o.remove(),l()});if(m)var p=k.add(b,"error",function(){p.remove(),m()});b.src=f;return b}e.exports=a}),null); +__d("sdk.FeatureFunctor",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();function h(a,b,c){if(a.features&&b in a.features){a=a.features[b];if(typeof a==="object"&&typeof a.rate==="number")if(a.rate&&Math.random()*100<=a.rate)return a.value||!0;else return a.value?null:!1;else return a}return c}function a(a){return function(){for(var b=arguments.length,c=new Array(b),d=0;d=2||g(0,undefined);var e=c[0],f=c[1];return h(a,e,f)}}e.exports={create:a}}),null); +__d("sdk.feature",["JSSDKConfig","sdk.FeatureFunctor"],(function(a,b,c,d,e,f,g,h){e.exports=h.create(g)}),null); +__d("sdk.XD",["JSSDKXDConfig","Log","QueryString","Queue","UrlMap","XDM","guid","isFacebookURI","sdk.Content","sdk.createIframe","sdk.Event","sdk.feature","sdk.RPC","sdk.Runtime","sdk.Scribe","sdk.URI"],(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){__p&&__p();var w=new j(),x=new j(),y=m(),z="https";a=g.useCdn?"cdn":"www";b=r("use_bundle",!1)?g.XdBundleUrl:g.XdUrl;var A=k.resolve(a)+b;c=function(){if("origin"in location)if(location.origin&&location.origin!=="null")return location.origin;else if(window!==window.parent)try{var a=parent.location.origin;if(a&&a!=="null")return a}catch(a){}return location.protocol+"//"+location.host};var B=m(),C=c(),D,E,F=!1,G="Facebook Cross Domain Communication Frame",H={},I=new j();s.setInQueue(I);function J(a){h.info("Remote XD can talk to facebook.com (%s)",a),t.setEnvironment(a==="canvas"?t.ENVIRONMENTS.CANVAS:t.ENVIRONMENTS.PAGETAB)}function K(a,b){__p&&__p();if(!b){h.error("No senderOrigin");throw new Error()}switch(a.xd_action){case"proxy_ready":var c,d;c=x;d=E;t.setLoggedIntoFacebook(a.logged_in==="true");a.registered&&(J(a.registered),w=c.merge(w));h.info("Proxy ready, starting queue containing %s messages",c.getLength());c.start(function(a){D.send(typeof a==="string"?a:i.encode(a),b,d.contentWindow,B+"_"+z)});break;case"plugin_ready":h.info("Plugin %s ready, protocol: %s",a.name,z);H[a.name]={protocol:z};if(j.exists(a.name)){c=j.get(a.name);h.debug("Enqueuing %s messages for %s in %s",c.getLength(),a.name,z+"ProxyQueue");x.merge(c)}break}a.data&&L(a.data,b)}function L(a,b){__p&&__p();if(b&&b!=="native"&&!n(new v(b)))return;if(typeof a==="string"){if(/^FB_RPC:/.test(a)){I.enqueue(a.substring(7));return}if(a.substring(0,1)=="{")try{a=ES("JSON","parse",!1,a)}catch(b){h.warn("Failed to decode %s as JSON",a);return}else a=i.decode(a)}b||a.xd_sig==y&&(b=a.xd_origin);if(a.xd_action){K(a,b);return}if(a.cb){b=O._callbacks[a.cb];O._forever[a.cb]||delete O._callbacks[a.cb];b&&b(a)}}function M(a,b){if(a=="facebook")b.relation="parent.parent",w.enqueue(b);else{b.relation='parent.frames["'+a+'"]';var c=H[a];c?(h.debug("Enqueuing message for plugin %s in %s",a,c.protocol+"ProxyQueue"),x.enqueue(b)):(h.debug("Buffering message for plugin %s",a),j.get(a).enqueue(b))}}s.getOutQueue().start(function(a){M("facebook","FB_RPC:"+a)});function N(a){if(F)return;var b=o.appendHidden(document.createElement("div")),c=l.create({blacklist:null,root:b,channel:B,flashUrl:g.Flash.path,whenReady:function(d){D=d;d={channel:B,origin:C,transport:c,xd_name:a};d="#"+i.encode(d);E=p({url:A+d,name:"fb_xdm_frame_https",id:"fb_xdm_frame_https",root:b,"aria-hidden":!0,title:G,tabindex:-1})},onMessage:L});c||u.log("jssdk_error",{appId:t.getClientID(),error:"XD_TRANSPORT",extra:{message:"Failed to create a valid transport"}});F=!0}var O={rpc:s,_callbacks:{},_forever:{},_channel:B,_origin:C,onMessage:L,recv:L,init:N,sendToFacebook:M,inform:function(a,b,c,d){M("facebook",{method:a,params:ES("JSON","stringify",!1,b||{}),behavior:d||"p",relation:c})},handler:function(a,b,c,d){a="#"+i.encode({cb:this.registerCallback(a,c,d),origin:C+"/"+B,domain:location.hostname,relation:b||"opener"});return A+a},registerCallback:function(a,b,c){c=c||m();b&&(O._forever[c]=!0);O._callbacks[c]=a;return c},getXDArbiterURL:function(){return A}};q.subscribe("init:post",function(a){N(a.xdProxyName);var b=r("xd_timeout",!1);b&&setTimeout(function(){var a=E&&!!E==x.isStarted();a||u.log("jssdk_error",{appId:t.getClientID(),error:"XD_INITIALIZATION",extra:{message:"Failed to initialize in "+b+"ms"}})},b)});e.exports=O}),null); +__d("sdk.getContextType",["sdk.Runtime","sdk.UA"],(function(a,b,c,d,e,f,g,h){function a(){if(h.nativeApp())return 3;if(h.mobile())return 2;return g.isEnvironment(g.ENVIRONMENTS.CANVAS)?5:1}e.exports=a}),null); +__d("sdk.Auth",["DOMWrapper","Log","OAuthControllerParameterName","ObservableMixin","UrlMap","WebStorage","guid","sdk.Cookie","sdk.createIframe","sdk.feature","sdk.getContextType","sdk.Impressions","sdk.Runtime","sdk.Scribe","sdk.SignedRequest","sdk.URI","sdk.XD"],(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){__p&&__p();var x="fblst_",y="fblo_",z=365*24*60*60*1e3,A,B,C=new j();function D(a,b){__p&&__p();var c=s.getUserID(),d="";if(a)if(a.userID)d=a.userID;else if(a.signedRequest){var e=u.parse(a.signedRequest);e&&e.user_id&&(d=e.user_id)}e=s.getLoginStatus();var f=e==="unknown"&&a||s.getUseCookie()&&s.getCookieUserID()!==d,g=c&&!a;c=a&&c&&c!=d;var h=a!=A;e=b!=(e||"unknown");s.setLoginStatus(b);s.setAccessToken(a&&a.accessToken||null);s.setUserID(d);A=a;d={authResponse:a,status:b};(g||c)&&C.inform("logout",d);(f||c)&&C.inform("login",d);h&&C.inform("authresponse.change",d);e&&C.inform("status.change",d);return d}function E(){return A}function F(a,b,c){__p&&__p();return function(d){__p&&__p();var e=!1;if(d&&d.access_token){var f=u.parse(d.signed_request);b={accessToken:d.access_token,userID:f.user_id,expiresIn:parseInt(d.expires_in,10),signedRequest:d.signed_request};d.granted_scopes&&(b=babelHelpers["extends"]({},b,{grantedScopes:d.granted_scopes}));d.reauthorize_required_in&&(b=babelHelpers["extends"]({},b,{reauthorize_required_in:parseInt(d.reauthorize_required_in,10)}));d.enforce_https&&(e=!0);if(s.getUseLocalStorage()&&location.protocol==="https:"&&d.long_lived_token){f=l.getLocalStorage();f&&f.setItem(x+s.getClientID(),d.long_lived_token)}if(s.getUseCookie()){f=b.expiresIn===0?0:ES("Date","now",!1)+b.expiresIn*1e3;var g=n.getDomain();!g&&d.base_domain&&n.setDomain("."+d.base_domain);n.setSignedRequestCookie(d.signed_request,f,e)}G();g="connected";D(b,g)}else(c==="logout"||c==="login_status")&&(d&&d.error&&d.error==="not_authorized"?(g="not_authorized",D(null,g)):d&&d.error&&d.error==="authorization_expired"?(g="authorization_expired",D(null,g)):(g="unknown",D(null,g)),s.getUseCookie()&&n.clearSignedRequestCookie(),c==="logout"&&(H(),t.log("jssdk_error",{appId:s.getClientID(),error:"PLATFORM_AUTH_LOGOUT",extra:{args:{fblo:!0}}})));if(a){f={authResponse:b,status:s.getLoginStatus()};a(f)}return b}}function G(){n.setRaw(y,"",0,!1)}function H(){n.setRaw(y,"y",ES("Date","now",!1)+z,!1)}function I(a){__p&&__p();var b,c=ES("Date","now",!1);B&&(clearTimeout(B),B=null);var d=n.getRaw(y)==="y";if(d){d="unknown";D(null,d);a&&a({authResponse:null,status:d});return}var e=F(a,A,"login_status");d=new v(k.resolve("www")+"/connect/ping").addQueryData(i.CLIENT_ID,s.getClientID()).addQueryData(i.RESPONSE_TYPE,"token,signed_request").addQueryData(i.DOMAIN,location.hostname).addQueryData(i.ORIGIN,q()).addQueryData(i.REDIRECT_URI,w.handler(function(a){if(p("e2e_ping_tracking",!0)){var d={init:c,close:ES("Date","now",!1),method:"ping"};h.debug("e2e: %s",ES("JSON","stringify",!1,d));r.log(114,{payload:d})}b.parentNode.removeChild(b);e(a)&&(B=setTimeout(function(){I(function(){})},12e5))},"parent")).addQueryData(i.SDK,"joey").addQueryData(i.VERSION,s.getIsVersioned()?s.getVersion():null);if(window.location.ancestorOrigins){a=window.location.ancestorOrigins;if(a.length>0){var f="";for(var j=0;j=0}function c(a,b){g.isTruthy(a,"element not specified"),g.isString(b),m(a,b)||(a.className=l(a,"className")+" "+b)}function d(a,b){g.isTruthy(a,"element not specified");g.isString(b);b=new RegExp("\\s*"+b,"g");a.className=ES(l(a,"className").replace(b,""),"trim",!0)}function f(a,b,c){__p&&__p();g.isString(a);b=b||document.body;c=c||"*";if(b.querySelectorAll)return ES("Array","from",!1,b.querySelectorAll(c+"."+a));b=b.getElementsByTagName(c);c=[];for(var d=0,e=b.length;d30?k.log("warn",-1,"The method FB.%s will stop working when called from http pages in %s days. Please update your site to use https for Facebook Login. %s",b,Math.floor((z-ES("Date","now",!1))/864e5),A):k.log("error",-1,"The method FB.%s will stop working when called from http pages in %s days. Please update your site to use https for Facebook Login. %s",b,Math.floor((z-ES("Date","now",!1))/864e5),A);r("https_only_scribe_logging",!0)&&!Object.prototype.hasOwnProperty.call(B,b)&&(u.log("jssdk_error",{appId:t.getClientID(),error:"HttpsOnly",extra:{message:b}}),B[b]=!0)}e==="warn"&&(k.warn("The method FB.%s is not officially supported by Facebook and access to it will soon be removed.",b),Object.prototype.hasOwnProperty.call(B,b)||(s.log(s.TYPE.WARNING,s.CATEGORY.DEPRECATED,"FB."+b),u.log("jssdk_error",{appId:t.getClientID(),error:"Private method used",extra:{message:b}}),B[b]=!0));function g(a){if(ES("Array","isArray",!1,a))return ES(a,"map",!0,g);return a&&typeof a==="object"&&a.__wrapped?a.__wrapped:typeof a==="function"&&/^function/.test(a.toString())?q.unguard(a):a}var h=ES(Array.prototype.slice.call(arguments),"map",!0,g),i=a.apply(d,h),j,l=!0;if(i&&typeof i==="object"){j=ES("Object","create",!1,i);j.__wrapped=i;for(var c in i){var m=i[c];if(typeof m!=="function"||c==="constructor")continue;l=!1;j[c]=D(m,b+":"+c,c,i)}}return!l?j:l?i:j},b)}}function a(a,b){var c=a?l(v,a,!0):v;ES(ES("Object","keys",!1,b),"forEach",!0,function(d){var e=b[d];if(typeof e==="function"){var f=(a?a+".":"")+d,g=D(e,f,d,b);g&&(c[d]=g)}else(typeof e==="object"||typeof e==="number")&&(f=(a?a+".":"")+d,w&&w[f]&&(c[d]=e))})}ES("Object","assign",!1,b,{provide:a});e.exports=b}),null); +__d("ArgumentError",["ManagedError"],(function(a,b,c,d,e,f,g){var h;b=babelHelpers.inherits(a,g);h=b&&b.prototype;function a(a,b){"use strict";h.constructor.call(this,a,b)}e.exports=a}),null); +__d("flattenObject",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){var b={};for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=a[c];if(null===d||undefined===d)continue;else typeof d==="string"?b[c]=d:b[c]=ES("JSON","stringify",!1,d)}return b};e.exports=a}),null); +__d("ApiClientUtils",["ArgumentError","Assert","Log","flattenObject","sdk.URI","sprintf"],(function(a,b,c,d,e,f,g,h,i,j,k,l){__p&&__p();var m={get:!0,post:!0,"delete":!0,put:!0};function a(a){__p&&__p();var b=a.shift();h.isString(b,"Invalid path");!/^https?/.test(b)&&b.charAt(0)!=="/"&&(b="/"+b);var c={};try{b=new k(b)}catch(a){throw new g(a.message,a)}ES(a,"forEach",!0,function(a){return c[typeof a]=a});a=(c.string||"get").toLowerCase();h.isTrue(Object.prototype.hasOwnProperty.call(m,a),l("Invalid method passed to ApiClient: %s",a));var d=c["function"];d||i.warn("No callback passed to the ApiClient");c.object&&b.addQueryData(j(c.object));var e=b.getQueryData();e.method=a;return{uri:b,callback:d,params:e}}e.exports={parseCallDataFromArgs:a}}),null); +__d("errorCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){throw new Error('errorCode("'+a+'"): This should not happen. Oh noes!')}e.exports=a}),null); +__d("nullthrows",[],(function(a,b,c,d,e,f){a=function(a,b){b===void 0&&(b="Got unexpected null or undefined");if(a!=null)return a;a=new Error(b);a.framesToPop=1;throw a};e.exports=a}),null); +__d("sdk.safelyParseResponse",["errorCode","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();b=function(a,b,c){return i};function a(a,c){c===void 0&&(c=null);try{return a===null?i:ES("JSON","parse",!1,h(a))}catch(d){return b(d,a,c)}}var i={error:{code:1,error_subcode:1357046,message:"Received Invalid JSON reply.",type:"http"}};a.ERROR=i;a.setErrorHandler=function(a){b=a};e.exports=a}),null); +__d("ApiBatcher",["ApiClientUtils","QueryString","invariant","sdk.safelyParseResponse"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=50,l=105440539523;function m(a,b){this.$1=[],this.$2=[],this.$4=null,this.executeRequest=a,this.$3=b}m.prototype.scheduleBatchCall=function(){for(var a=arguments.length,b=new Array(a),c=0;c0||i(0,undefined);this.$1.length===this.$2.length||i(0,undefined);var a=this.$1,b=this.$2;this.$1=[];this.$2=[];this.$4=null;if(a.length===1){var c=a[0],d=b[0],e=c.body?h.decode(c.body):null;this.executeRequest(c.relative_url,c.method,e,d);return}this.executeRequest("/","POST",{batch:a,include_headers:!1,batch_app_id:this.$3||l},function(a){ES("Array","isArray",!1,a)?ES(a,"forEach",!0,function(a,c){b[c](j(a&&a.body))}):ES(b,"forEach",!0,function(a){return a({error:{message:"Fatal: batch call failed."}})})})};e.exports=m}),null); +__d("RequestConstants",["errorCode"],(function(a,b,c,d,e,f,g){a={code:1,error_subcode:1357045,message:"unknown error (empty response)",type:"http",status:0};e.exports={PARSE_ERROR_TEMPLATE:a}}),null); +__d("CORSRequest",["QueryString","RequestConstants","sdk.safelyParseResponse","wrapFunction"],(function(a,b,c,d,e,f,g,h,i,j){__p&&__p();function k(a,b){__p&&__p();if(!self.XMLHttpRequest)return null;var c=new XMLHttpRequest(),d=function(){};if("withCredentials"in c)c.open(a,b,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded");else if(self.XDomainRequest){c=new XDomainRequest();try{c.open(a,b),c.onprogress=c.ontimeout=d}catch(a){return null}}else return null;var e={send:function(a){c.send(a)}},f=j(function(){f=d,"onload"in e&&e.onload(c)},"entry","XMLHttpRequest:load"),g=j(function(){g=d,"onerror"in e&&e.onerror(c)},"entry","XMLHttpRequest:error");c.onload=function(){f()};c.onerror=function(){g()};c.onreadystatechange=function(){c.readyState==4&&(c.status==200?f():g())};return e}function a(a,b,c,d){__p&&__p();c.suppress_http_code=1;c=g.encode(c);b!="post"&&(a=g.appendToUrl(a,c),c="");b=k(b,a);if(!b)return!1;b.onload=function(b){d(i(b.responseText,a))};b.onerror=function(b){b.responseText?d(i(b.responseText,a)):d({error:babelHelpers["extends"]({},h.PARSE_ERROR_TEMPLATE,{status:b.status})})};b.send(c);return!0}b={execute:a};e.exports=b}),null); +__d("GraphBatchConstants",[],(function(a,b,c,d,e,f){e.exports=ES("Object","freeze",!1,{FLUSH_DELIMITER:"\r\n"})}),null); +__d("ChunkedRequest",["GraphBatchConstants","QueryString","RequestConstants","sdk.safelyParseResponse","wrapFunction"],(function(a,b,c,d,e,f,g,h,i,j,k){__p&&__p();var l="{}";function m(a){a===void 0&&(a=g.FLUSH_DELIMITER),this.offset=0,this.delimiter=g.FLUSH_DELIMITER,this.delimiter=a}m.prototype.parse=function(a,b){__p&&__p();b===void 0&&(b=!1);var c=[],d=a.substring(this.offset),e=0,f=ES(d,"indexOf",!0,this.delimiter,e);f===0&&(e=this.delimiter.length,f=ES(d,"indexOf",!0,this.delimiter,e));while(f>-1){var g=d.substring(e,f);g&&c.push(g);e=f+this.delimiter.length;f=ES(d,"indexOf",!0,this.delimiter,e)}this.offset+=e;if(b&&d&&f===-1){g=a.substring(this.offset);c.push(g)}return c};function n(a,b){__p&&__p();if(!self.XMLHttpRequest)return null;var c=new XMLHttpRequest();if(!("withCredentials"in c))return null;c.open(a,b,!0);c.setRequestHeader("Content-type","application/x-www-form-urlencoded");var d=new m(),e={send:function(a){c.send(a)}},f=k(function(a,b){if(e.onchunk){a=d.parse(a);ES(a,"forEach",!0,function(a){return e.onchunk(a,b)});b&&e.onchunk(l,b)}},"entry","XMLHttpRequest:onchunk"),g=k(function(){e.onerror&&e.onerror(c)},"entry","XMLHttpRequest:error");c.onerror=g;c.onreadystatechange=function(){c.readyState==4?c.status===200?f(c.responseText,!0):g():c.readyState==3&&f(c.responseText,!1)};return e}function a(a,b,c,d){__p&&__p();c.suppress_http_code=1;c=h.encode(c);b!="post"&&(a=h.appendToUrl(a,c),c="");b=n(b,a);if(!b)return!1;b.onchunk=function(a,b){d(j(a),b)};b.onerror=function(a){a.responseText?d(j(a.responseText)):d({error:babelHelpers["extends"]({},i.PARSE_ERROR_TEMPLATE,{status:a.status})})};b.send(c);return!0}b={execute:a};e.exports=b}),null); +__d("FlashRequest",["DOMWrapper","Flash","GlobalCallback","QueryString","Queue"],(function(a,b,c,d,e,f,g,h,i,j,k){__p&&__p();var l,m={},n,o;function p(){__p&&__p();if(!n)throw new Error("swfUrl has not been set");var a=i.create(function(){l.start(function(a){var b=o.execute(a.method,a.url,a.body);if(!b)throw new Error("Could create request");m[b]=a.callback})}),b=i.create(function(a,b,c){var d;try{d=ES("JSON","parse",!1,decodeURIComponent(c))}catch(a){d={error:{type:"SyntaxError",message:a.message,status:b,raw:c}}}m[a](d);delete m[a]});o=h.embed(n,g.getRoot(),null,{log:!1,initCallback:a,requestCallback:b})}function a(a,b,c,d){__p&&__p();c.suppress_http_code=1;c.method||(c.method=b);c=j.encode(c);b==="get"&&a.length+c.length<2e3?(a=j.appendToUrl(a,c),c=""):b="post";if(!l){if(!h.isAvailable())return!1;l=new k();p()}l.enqueue({method:b,url:a,body:c,callback:d});return!0}b={setSwfUrl:function(a){n=a},execute:a};e.exports=b}),null); +__d("JSONPRequest",["DOMWrapper","GlobalCallback","QueryString"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j=2e3,k=!1;function a(a,b,c,d){__p&&__p();var e=document.createElement("script"),f=function(a){f=function(){},h.remove(c.callback),d(a),e.parentNode.removeChild(e)};c.callback=h.create(f);c.method||(c.method=b);a=i.appendToUrl(a,c);if(!k&&a.length>j){h.remove(c.callback);return!1}e.onerror=function(){f({error:{type:"http",message:"unknown error"}})};var l=function(){setTimeout(function(){f({error:{type:"http",message:"unknown error"}})},0)};e.addEventListener?e.addEventListener("load",l,!1):e.onreadystatechange=function(){/loaded|complete/.test(this.readyState)&&l()};e.src=a;g.getRoot().appendChild(e);return!0}function b(){k=!0}c={execute:a,ignoreMaxQuerystringLength:b,MAX_QUERYSTRING_LENGTH:j};e.exports=c}),null); +__d("ApiClient",["ApiBatcher","ApiClientConfig","ApiClientUtils","Assert","ChunkedRequest","CORSRequest","FlashRequest","JSONPRequest","Log","ObservableMixin","QueryString","UrlMap","flattenObject"],(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){__p&&__p();var t,u,v,w=n.MAX_QUERYSTRING_LENGTH,x={fql_query:!0,fql_multiquery:!0,friends_get:!0,notifications_get:!0,stream_get:!0,users_getinfo:!0},y=["cors","jsonp","flash"],z=0,A=[],B=0,C=0,D;function E(a,b,c,d){__p&&__p();var e=B!==0&&z>=B;if(e){A.push(function(){return E(a,b,c,d)});H.inform("request.queued",a,b,c);return}z++;v&&(c=ES("Object","assign",!1,{},v,c));c.pretty=c.pretty||0;c=s(c);e={jsonp:n,cors:l,flash:m,chunked:k};var f={},g=c.access_token||t;g&&(f.access_token=g);g=ES("Object","keys",!1,f);g.length>0&&(a=q.appendToUrl(a,f),ES(g,"forEach",!0,function(a){return delete c[a]}));c.transport?(f=[c.transport],delete c.transport):f=y;for(var g=0;g0&&zw&&b==="get"}m.setSwfUrl(h.FlashRequest.swfUrl);e.exports=H}),null); +__d("sdk.PlatformVersioning",["ManagedError","sdk.Runtime"],(function(a,b,c,d,e,f,g,h){var i=/^v\d+\.\d\d?$/;a={REGEX:i,assertVersionIsSet:function(){if(!h.getVersion())throw new g("init not called with valid version")},assertValidVersion:function(a){if(!i.test(a))throw new g("invalid version specified")}};e.exports=a}),null); +__d("sdk.api",["ApiClient","sdk.feature","sdk.PlatformVersioning","sdk.Runtime","sdk.Scribe","sdk.URI"],(function(a,b,c,d,e,f,g,h,i,j,k,l){__p&&__p();var m=h("should_log_response_error",!1),n;j.subscribe("ClientID.change",function(a){return g.setClientID(a)});j.subscribe("AccessToken.change",function(a){n=a,g.setAccessToken(a)});g.setDefaultParams({sdk:"joey"});g.subscribe("request.complete",function(a,b,c,d){a=!1;d&&typeof d==="object"&&(d.error?(d.error=="invalid_token"||d.error.type=="OAuthException"&&d.error.code==190)&&(a=!0):d.error_code&&(d.error_code=="190"&&(a=!0)));a&&n===j.getAccessToken()&&j.setAccessToken(null)});g.subscribe("request.complete",function(a,b,c,d){(a=="/me/permissions"&&b==="delete"||a=="/restserver.php"&&c.method=="Auth.revokeAuthorization")&&d===!0&&j.setAccessToken(null)});g.subscribe("request.error",function(a,b,c,d){m&&d.error.type==="http"&&k.log("jssdk_error",{appId:j.getClientID(),error:"transport",extra:{name:"transport",message:ES("JSON","stringify",!1,d.error)}})});function a(a){__p&&__p();if(typeof a==="string")if(j.getIsVersioned()){i.assertVersionIsSet();!/https?/.test(a)&&a.charAt(0)!=="/"&&(a="/"+a);a=new l(a).setDomain(null).setProtocol(null).toString();i.REGEX.test(a.substring(1,ES(a,"indexOf",!0,"/",1)))||(a="/"+j.getVersion()+a);var b=[a].concat(Array.prototype.slice.call(arguments,1));g.graph.apply(g,b)}else g.graph.apply(g,arguments);else g.rest.apply(g,arguments)}e.exports=a}),null); +__d("legacy:fb.api",["FB","sdk.api"],(function(a,b,c,d,e,f,g,h){g.provide("",{api:h})}),3); +__d("AppUserPropertyAPIBuiltinField",[],(function(a,b,c,d,e,f){e.exports={GENDER:"$gender",CITY:"$city",STATE:"$state",ZIPCODE:"$zipcode",COUNTRY:"$country",LANGUAGE:"$language",CURRENCY:"$currency",INSTALL_SOURCE:"$install_source",USER_TYPE:"$user_type",ACCOUNT_CREATED_TIME:"$account_created_time",APP_ID:"$app_id"}}),null); +__d("FBEventsParamList",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="deep",h="shallow";function a(){this.list=[]}a.prototype={append:function(a,b){this._append(encodeURIComponent(a),b,g)},_append:function(a,b,c){Object(b)!==b?this._appendPrimitive(a,b):c===g?this._appendObject(a,b):this._appendPrimitive(a,i(b))},_appendPrimitive:function(a,b){b!=null&&this.list.push([a,b])},_appendObject:function(a,b){for(var c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=a+"["+encodeURIComponent(c)+"]";this._append(d,b[c],h)}},each:function(a){var b=this.list;for(var c=0,d=b.length;c(i+"?"+b).length?n(i,b):o(i,a)}function n(a,b){var c=new Image();c.src=a+"?"+b}function o(a,b){__p&&__p();var c="fb"+Math.random().toString().replace(".",""),d=document.createElement("form");d.method="post";d.action=a;d.target=c;d.acceptCharset="utf-8";d.style.display="none";a=!!(window.attachEvent&&!window.addEventListener);a=a?'