(function(window){window.ringba_known_numbers = [{"int":"+18723378741","loc":"(872) 337-8741","jstag":"JSa613d070e0384e4786cad6d7f612942e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555332191","loc":"(855) 533-2191","jstag":"JS333117ab0fde4c71b0cf23639943f105","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18444512832","loc":"(844) 451-2832","jstag":"JSc9f13a845d554b5796761c2d3199709d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888151804","loc":"(888) 815-1804","jstag":"JSb77122a2808d4b478e06ec0c1b1955ec","replaceWithInt":"+18888151804","replaceWithLoc":"(888) 815-1804","replaceLeftToRight":true},{"int":"+18447731287","loc":"(844) 773-1287","jstag":"JS01fbea30652e4a6aa187ed2888cf96c0","replaceWithInt":"+18447731287","replaceWithLoc":"(844) 773-1287","replaceLeftToRight":true},{"int":"+13802270330","loc":"(380) 227-0330","jstag":"JSa79825aa459a4d9b87d508f7c4428aff","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556730775","loc":"(855) 673-0775","jstag":"JS87d25ee0eadc452298a7df7729732a04","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556620605","loc":"(855) 662-0605","jstag":"JS9652b08c8dc642a695c86ce265260d4e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18779390061","loc":"(877) 939-0061","jstag":"JS18da2a1fc1004257ba8220c6ab3c9765","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18779390096","loc":"(877) 939-0096","jstag":"JSa6ef3835940941ea80582da437dd7f63","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18446181914","loc":"(844) 618-1914","jstag":"JS70a355b806c84587bef9057a07f99e2f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18449260254","loc":"(844) 926-0254","jstag":"JS1cb9b4c2a6254842bf39ae908d56a5c9","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889054231","loc":"(888) 905-4231","jstag":"JS213993466405434994a6554e1664ef5b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889054362","loc":"(888) 905-4362","jstag":"JS0c13a02641844232add3148f6662005c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889054021","loc":"(888) 905-4021","jstag":"JSfbc3a5f68e8a46ef97dbaae0fd1c35cd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887103639","loc":"(888) 710-3639","jstag":"JS8071d856eb654ce793e571e25c399da2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18443743933","loc":"(844) 374-3933","jstag":"JS7a27f5a264474df2baa5973e309b46ab","replaceWithInt":"+18443743933","replaceWithLoc":"(844) 374-3933","replaceLeftToRight":true},{"int":"+18337702779","loc":"(833) 770-2779","jstag":"JS5cfd14f31a6a473ebdfd3396e9eaa267","replaceWithInt":"+18337702779","replaceWithLoc":"(833) 770-2779","replaceLeftToRight":true},{"int":"+18445527447","loc":"(844) 552-7447","jstag":"JS5c027fea4a554b049afffa9fa03e9e72","replaceWithInt":"+18445527447","replaceWithLoc":"(844) 552-7447","replaceLeftToRight":true},{"int":"+18888593591","loc":"(888) 859-3591","jstag":"JSfc8cfed198194f249a419fe271b9f473","replaceWithInt":"+18888593591","replaceWithLoc":"(888) 859-3591","replaceLeftToRight":true},{"int":"+18666594477","loc":"(866) 659-4477","jstag":"JS18140df7f8854d44989e7a04b5875e76","replaceWithInt":"+18666594477","replaceWithLoc":"(866) 659-4477","replaceLeftToRight":true},{"int":"+18444270294","loc":"(844) 427-0294","jstag":"JS6eb76904d9644c47a415659b52c0bcbb","replaceWithInt":"+18444270294","replaceWithLoc":"(844) 427-0294","replaceLeftToRight":true},{"int":"+18557181165","loc":"(855) 718-1165","jstag":"JS583588480ca54d7d8118511a144b3cc4","replaceWithInt":"+18557181165","replaceWithLoc":"(855) 718-1165","replaceLeftToRight":true},{"int":"+18775446272","loc":"(877) 544-6272","jstag":"JSd585ecba8ac0434cb933314f50381877","replaceWithInt":"+18775446272","replaceWithLoc":"(877) 544-6272","replaceLeftToRight":true},{"int":"+18887110514","loc":"(888) 711-0514","jstag":"JSd70d87abfd6f41fa81b474785366a678","replaceWithInt":"+18887110514","replaceWithLoc":"(888) 711-0514","replaceLeftToRight":true},{"int":"+18444602104","loc":"(844) 460-2104","jstag":"JS3a660c005962407bae4615054356a2bf","replaceWithInt":"+18444602104","replaceWithLoc":"(844) 460-2104","replaceLeftToRight":true},{"int":"+18559432927","loc":"(855) 943-2927","jstag":"JS980b494b3a7048e59bd36e60881f1885","replaceWithInt":"+18559432927","replaceWithLoc":"(855) 943-2927","replaceLeftToRight":true},{"int":"+18559154304","loc":"(855) 915-4304","jstag":"JS5c63c57f9d2a46138b0d2b5b1690e4de","replaceWithInt":"+18559154304","replaceWithLoc":"(855) 915-4304","replaceLeftToRight":true},{"int":"+18553503490","loc":"(855) 350-3490","jstag":"JS42105d22f3c04a84a795707479ae5d23","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18558365029","loc":"(855) 836-5029","jstag":"JS60b17bc119474af981c44d9327943007","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18775598402","loc":"(877) 559-8402","jstag":"JS41d56f96bb8644959fbb4a06a2a70ea9","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335712926","loc":"(833) 571-2926","jstag":"JSbef2873df75f4050bc90cc059ec27d82","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554850414","loc":"(855) 485-0414","jstag":"JSb885b97221194b158008c080115d0a2e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337540197","loc":"(833) 754-0197","jstag":"JSe780317f06034f3a9b084611764bdd81","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333340613","loc":"(833) 334-0613","jstag":"JS2f3eb27fae07433a9b652511d1ff84ab","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337322103","loc":"(833) 732-2103","jstag":"JS38a6e890f2164f198c3258e32cfb93c5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556151457","loc":"(855) 615-1457","jstag":"JS6915c5451eba4f2e88cfb1bc0433ef7b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18449511635","loc":"(844) 951-1635","jstag":"JSc3b53a406e9044768a5cdcebfa55928d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18442133773","loc":"(844) 213-3773","jstag":"JS10474e3550304688be62110fcff0b63f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18443273870","loc":"(844) 327-3870","jstag":"JS45950c1ef7034ad4808804ab8807f60f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445516093","loc":"(844) 551-6093","jstag":"JS4fd49a55ba8840a5a45e11f96e8a5889","replaceWithInt":"+18445516093","replaceWithLoc":"(844) 551-6093","replaceLeftToRight":true},{"int":"+18447970207","loc":"(844) 797-0207","jstag":"JSd62b675fed584ea0ad0243f6604f586c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18338179797","loc":"(833) 817-9797","jstag":"JSbe457ff76390469493a0f090446e25ee","replaceWithInt":"+18338179797","replaceWithLoc":"(833) 817-9797","replaceLeftToRight":true},{"int":"+18336214074","loc":"(833) 621-4074","jstag":"JSec930f0c7e1e433a8a3d48ed29a47f95","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445190559","loc":"(844) 519-0559","jstag":"JSc4bccbc3417c407aa735c2cb62090ecd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18553961755","loc":"(855) 396-1755","jstag":"JSe609baa9afb14c76a98d926820850b0d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18446047263","loc":"(844) 604-7263","jstag":"JSade6b2f7c3c24bd9a246f480abad2f7d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18667250975","loc":"(866) 725-0975","jstag":"JS0037ae6796664937ad78902915ab75d8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556951572","loc":"(855) 695-1572","jstag":"JS2897d63557994b21b8f3ebfbdf9aa48e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445011631","loc":"(844) 501-1631","jstag":"JSef57e619597c4bb494b029c3c3c33a8f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445540329","loc":"(844) 554-0329","jstag":"JSa625ae6531e04138a843329710673853","replaceWithInt":"+18445540329","replaceWithLoc":"(844) 554-0329","replaceLeftToRight":true},{"int":"+18444930338","loc":"(844) 493-0338","jstag":"JS5ea80726dbbd4ff3ab56f40bc95cc485","replaceWithInt":"+18444930338","replaceWithLoc":"(844) 493-0338","replaceLeftToRight":true},{"int":"+18336670453","loc":"(833) 667-0453","jstag":"JSe2c0cf6e6af14f1e96dfefd96e46be3a","replaceWithInt":null,"replaceWithLoc":null,"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);