(function(window){window.ringba_known_numbers = [{"int":"+18444321046","loc":"(844) 432-1046","jstag":"JSdaa04067abcc435795fd4ce4c6ad0f1b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18773204073","loc":"(877) 320-4073","jstag":"JSc31f450fc97742eaaece7aa131be2cb7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333790673","loc":"(833) 379-0673","jstag":"JSa8d4b91ec20a4e39a93fed7c4bdc20dd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888080151","loc":"(888) 808-0151","jstag":"JS7a49f7a70d184bd3b01c042e0f8f60c8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18778140258","loc":"(877) 814-0258","jstag":"JSbf97a55ca21f42bbbb6c32b50672fc4b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889870657","loc":"(888) 987-0657","jstag":"JS8fa1a6da35dd4de79fd1909a6cd0209b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889054036","loc":"(888) 905-4036","jstag":"JS5a21beb7bee74373af476d824da41eb8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18664810586","loc":"(866) 481-0586","jstag":"JS517f2146855c4167af954676a7008444","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333381926","loc":"(833) 338-1926","jstag":"JSfe3e2a2986f5432dbdd386eb16281209","replaceWithInt":"+18333381926","replaceWithLoc":"(833) 338-1926","replaceLeftToRight":true},{"int":"+18337594341","loc":"(833) 759-4341","jstag":"JS0e79da4d5f28486cbb110fd13b50a596","replaceWithInt":"+18337594341","replaceWithLoc":"(833) 759-4341","replaceLeftToRight":true},{"int":"+18445525540","loc":"(844) 552-5540","jstag":"JS21ba146873c54831ac9782ed453113d7","replaceWithInt":"+18445525540","replaceWithLoc":"(844) 552-5540","replaceLeftToRight":true},{"int":"+18886490499","loc":"(888) 649-0499","jstag":"JSa511a4a1d3c0453abd3f845b4511e21b","replaceWithInt":"+18886490499","replaceWithLoc":"(888) 649-0499","replaceLeftToRight":true},{"int":"+18558891935","loc":"(855) 889-1935","jstag":"JS69b1c79f44bf488e81ca251ef0c1524f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18334648994","loc":"(833) 464-8994","jstag":"JSd2456660536d4e9ea05cd66ee941e422","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333313034","loc":"(833) 331-3034","jstag":"JS2a3fd48083de404e9904ebe5dddd8b4a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557180849","loc":"(855) 718-0849","jstag":"JS1d4c5fe765874075b7d1d6017a49c124","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18442158263","loc":"(844) 215-8263","jstag":"JS6d4d345ea3194826947708ce41206441","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333381763","loc":"(833) 338-1763","jstag":"JSece671feca12439eab0ef0d4e8c69e43","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18334860515","loc":"(833) 486-0515","jstag":"JS6ba162f2619b4e769c39f2eb63fe7a46","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18558365027","loc":"(855) 836-5027","jstag":"JS3078a4473fe54dfdb02b7ec5beb99990","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556190127","loc":"(855) 619-0127","jstag":"JSf525d6caeb00415e8dcdacff307dd55f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557570532","loc":"(855) 757-0532","jstag":"JS16eee15c9f7342a4a7325450eac3407b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18446142012","loc":"(844) 614-2012","jstag":"JS885e8557c97c464da9c12f7969df0cbe","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445863975","loc":"(844) 586-3975","jstag":"JS027af591838746388c29e053dedd017e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18772618754","loc":"(877) 261-8754","jstag":"JS50e0b6934e3442288d2d5df47754b3b3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337540256","loc":"(833) 754-0256","jstag":"JS1d92650acde04fe2a6d32a88f51a4e6d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18336792478","loc":"(833) 679-2478","jstag":"JSa0ffd0c5b4a3461c993af4bdf8ce8346","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18666324020","loc":"(866) 632-4020","jstag":"JS9dc4f84feb4f4ea0b511038deff775c2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18444032017","loc":"(844) 403-2017","jstag":"JS61f992795de84a9394259ef65c5a2e16","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18776480675","loc":"(877) 648-0675","jstag":"JSfe4d046f3ebe48ba936ed8129c5031f5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18663320593","loc":"(866) 332-0593","jstag":"JS58ed538a31564655973ad39925dfd94e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18778150028","loc":"(877) 815-0028","jstag":"JSfca80ba52af2418091e2da50c5f9249c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18774530393","loc":"(877) 453-0393","jstag":"JS8507973509c64074aa07048d30c0e23d","replaceWithInt":"+18774530393","replaceWithLoc":"(877) 453-0393","replaceLeftToRight":true},{"int":"+18337074774","loc":"(833) 707-4774","jstag":"JSbef2a1bc8f30426fa08bec0c5e345911","replaceWithInt":"+18337074774","replaceWithLoc":"(833) 707-4774","replaceLeftToRight":true}];!function(e){function t(){this.tagId="",this.id="",this.displayNumber="",this.phoneNumber="",this.impressionQueryPath="",this.maxEpoch=0,this.timeBetweenTicks=0,this.heartBeatMs=0,this.exp=0,this.displayFmt=0,this.heartBeatTimeout=null,this.ready=!0}var n=function(){function t(e){return JSON.stringify(e)}return{postRequest:function(n,r,a,i){if("XDomainRequest"in e&&null!==e.XDomainRequest){var o=new XDomainRequest;o.open("POST",n),o.onload=function(){result=o.responseText,a(result)},o.onerror=function(){i&&i()},o.send(t(r))}else{if(navigator.userAgent.indexOf("MSIE")!=-1&&parseInt(navigator.userAgent.match(/MSIE ([\d.]+)/)[1],10)<8)return!1;var u=new XMLHttpRequest;u.onreadystatechange=function(){4==u.readyState&&(200==u.status?a(u.responseText):i&&i())},u.open("POST",n,!0),u.setRequestHeader("Content-type","text/plain"),u.send(t(r))}}}};"undefined"!=typeof e.localStorage&&"undefined"!=typeof e.sessionStorage||function(){var t=function(t){function n(e,t,n){var r,a;n?(r=new Date,r.setTime(r.getTime()+24*n*60*60*1e3),a="; expires="+r.toGMTString()):a="",document.cookie=e+"="+t+a+"; path=/"}function r(e){var t,n,r=e+"=",a=document.cookie.split(";");for(t=0;t-1&&t>-1;i--){var r=e.charAt(i);n="n"==r||"N"==r?this.phoneNumber.charAt(t--)+n:r+n}return n}return this.displayNumber},t.prototype.save=function(){var e=JSON.parse(JSON.stringify(this));delete e.ready,delete e.heartBeatTimeout,localStorage.setItem("ringbaNumber_"+this.tagId,JSON.stringify(e))},t.prototype.isExpired=function(){var e=(new Date).getTime();return e>this.exp||this.maxEpoch>0&&e>this.maxEpoch},t.prototype.incrementExp=function(){this.exp=(new Date).getTime()+this.timeBetweenTicks,this.save()};var r=function(r){function a(e){if(""==e)return{};for(var t=[],n=0;n0&&!D&&p();null!=e&&e.length>0;){var t=e.pop();o(t)}k.length?N():l()}function s(e,t){if(e&&e.length){var n=JSON.parse(t);e.forEach(function(e){var t=n[e];t&&(c(e,t),A.push(e))})}l()}function l(){if(A&&A.length){var e=[];F&&A.forEach(function(t){var n=x[t];n&&e.push({tagId:t,number:n.phoneNumber,numberLocal:n.phoneNumberLocal,displayNumber:n.displayNumber})}),A=[],F&&setTimeout(function(){F(e)},0)}}function c(e,n){var r=t.getNumberFromResult(e,n);r.save(),x[e]=r,h(r),w(r)}function f(e,t){return e.getFmtNumber(t)}function h(e){var t=e.tagId,n=L[t];if(null!=n)for(var r=0;r0?(l=t[r],r+=n?1:-1,a--,u==i&&n&&a>0&&(l+=t.slice(-a))):l=" "),o=n?o+l:l+o}return o}function u(e){var t={replacement:null,foundMatch:!1,missingReplacements:!1,missingNumbers:null};if(!e)return t;var n=a(e);return n.forEach(function(n){var r=s(t.replacement||e,n);r?t.replacement=r:(t.missingReplacements=!0,(t.missingNumbers=t.missingNumbers||[]).push(n))}),t.foundMatch=n.length>0,t}function s(e,t){var n=t.isInternational,r=n?t.number.replaceWithInt:t.number.replaceWithLoc,a=null;return r&&(r=r.replace("+",""),r=o(t.format,r,t.number.replaceLeftToRight),a=e.replace(t.str,r)),a}function l(){return{Text_Data:{get:function(e){return e&&e.data},set:function(e,t){e&&e.data!=t&&(e.data=t)}},IMG_Alt:{get:function(e){return e&&e.alt},set:function(e,t){e&&e.alt!=t&&(e.alt=t)}},Anchor_HRef:{get:function(e){return e&&e.href},set:function(e,t){e&&e.href!=t&&(e.href=t)}}}}function c(e,t){var n=t.get(e),r=u(n);return r.replacement&&t.set(e,r.replacement),r.missingNumbers}function f(e,t,n){this.node=e,this.actionsGetSet=t,this.missingNumbers=n}function h(e,t){var n=c(e,t);return n&&n.length>0?new f(e,t,n):null}function p(e){var t=[],n=null;if(e){var r=e.nodeType;if(8==r)return t;if(3==r)n=h(e,O.Text_Data);else if(1==r&&!(e.className&&e.className.toString().indexOf("rb-ignore-number")>=0)){"IMG"==e.tagName?n=h(e,O.IMG_Alt):"A"==e.tagName&&(n=h(e,O.Anchor_HRef));var a=e.childNodes;if(a)for(var i=a.length;i--;i>=0){var o=a[i],u=p(o);u.forEach(function(e){t.push(e)})}}return n&&t.push(n),t}}function g(e){var t=[];return e?(e.forEach(function(e){var n=h(e.node,e.actionsGetSet);n&&t.push(n)}),t):t}function m(e){var t={},n=[];return e.forEach(function(e){e.missingNumbers.forEach(function(e){var r=e.number.jstag;t[r]||(t[r]=!0,n.push(e.number.jstag))})}),n}function d(e){return D=p(e||t.body),T(D)}function b(){return D=g(D),T(D)}function v(e){y(e),b()}function y(e){e.forEach(function(e){N(e)})}function N(e){if(!(e instanceof n))throw"'numberInfo' should be an instance of 'JSTagNumberInfo'";var t=_[e.jstag];if(!t)throw"Unknown jstag";t.replaceWithInt=i(e.numberInternational,!0),t.replaceWithLoc=i(e.numberLocal),t.replaceLeftToRight=e.formatLeftToRight}function T(e){if(!e)return null;var t=m(e);return w(t),t}function w(e){e&&e.forEach(function(e){I(e)}),S()}function I(e){var t=_[e];t&&(t.infoRequested||(t.infoRequested=!0,M.push(e)))}function S(){M.length>0&&R&&(R(M),M=[])}function E(e){if(null!=e&&"function"!=typeof e)throw"'cbFunction' should be a function";R=e,S()}var L=[];r&&r.length&&r.forEach(function(e){L.push({"int":i(e["int"],!0),loc:i(e.loc),jstag:e.jstag,replaceWithInt:i(e.replaceWithInt,!0),replaceWithLoc:i(e.replaceWithLoc),replaceLeftToRight:e.replaceLeftToRight})});var x={},_={},D=null,R=null,M=[];L.forEach(function(e){x[e["int"].replace("+","")]={number:e,isInternational:!0},x[e.loc]={number:e,isInternational:!1},_[e.jstag]=e});var O=l(),q=function(){var t=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver,n=e.addEventListener;return function(e,r){var a=!1,i=function(){a||(a=!0,setTimeout(function(){a=!1,r()},0))};if(t){var o=new t(function(e,t){(e[0].addedNodes.length||e[0].removedNodes.length||e[0].target)&&i()});o.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}else n&&(e.addEventListener("DOMNodeInserted",i,!1),e.addEventListener("DOMNodeRemoved",i,!1),e.addEventListener("DOMCharacterDataModified",i,!1),e.addEventListener("DOMAttrModified",i,!1))}}();return{InitialPass:d,FollowUp:b,SetNumberInfoAndFollowup:v,SetNewTagCallback:E,SetupObserver:function(e){q(e||t.body,function(){d()})}}};e.ringba&&(e.ringba.SetupNumberReplacement=i),t&&t.body?i():t.addEventListener("DOMContentLoaded",i)}(window,document);})(window);