1!function(){"use strict";var t=/iPhone/i,e=/iPod/i,i=/iPad/i,n=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,r=/Android/i,o=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,a=/Silk/i,h=/Windows Phone/i,c=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,l=/BB10/i,u=/Opera Mini/i,d=/\b(CriOS|Chrome)(?:.+)Mobile/i,m=/Mobile(?:.+)Firefox\b/i,f=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream};var v=window.navigator.userAgent,b=function(){function b(t){this.win=$(window),this.element=t,this.wrapper=this.element.find(".js-map-wrapper"),this.mapBox=this.element.find(".js-map-box"),this.map=this.element.find(".js-map-svg"),this.panels=this.element.find(".js-map-panel"),this.close=this.element.find(".js-map-panel-close"),this.paths=this._bindPaths(),this.select=this.element.find(".js-map-select"),this.selectWrapper=this.element.find(".map__select"),this.current={country:null,index:null,isZooming:!1},this.params=this.bindParams(),this.mobileCheck(),this._bindEvents(),this.buildSelect()}var g=b.prototype;return g._bindEvents=function(){var t=this;this.win.on("resize",(function(){t.params=t.bindParams(),t.current.isZooming&&t.resetZoom()})),Array.prototype.slice.call(this.paths).forEach((function(e,i){e.addEventListener("click",(function(){t.zoomOn(i)}))})),this.close.on("click",this.closePanel.bind(this)),this.select.on("change",this.onChange.bind(this))},g.bindParams=function(){var t={};return t.map={box:{offset:this._bindMapOffsets()},svg:{width:this._bindSvgWidth(),height:this._bindSvgHeight()}},t.countries={positions:this._bindCountriesPosition(this.paths,t.map.box.offset)},t.countries.centerTransforms=this._bindCountriesCenterTransforms(t.map.svg.width,t.map.svg.height,t.countries.positions),t},g._bindMapOffsets=function(){var t={},e=this.mapBox.get(0).getBoundingClientRect();return t.top=e.top,t.left=e.left,t},g._bindSvgWidth=function(){return{initial:parseInt(this.map.attr("width")),current:this.map.outerWidth()}},g._bindSvgHeight=function(){return{initial:parseInt(this.map.attr("height")),current:this.map.outerHeight()}},g._bindPaths=function(){var t=[];return this.panels.each((function(e,i){var n=$(i).data("country"),s=document.getElementById(n);s&&($(s).addClass("is-active"),t.push(s))})),t},g._bindCountriesPosition=function(t,e){var i=[];return Array.prototype.slice.call(t).forEach((function(t,n){var s=t.getBoundingClientRect(),r=parseInt(s.width/2),o=parseInt(s.height/2),a={x:parseInt(s.left-e.left+r),y:parseInt(s.top-e.top+o)};i.push(a)})),i},g._bindCountriesCenterTransforms=function(t,e,i){var n=[],s=parseInt(t.current/2)+47,r=parseInt(e.current/2);return Array.prototype.slice.call(i).forEach((function(t,e){var i={x:parseInt(s-t.x),y:parseInt(r-t.y)};n.push(i)})),n},g.zoomOn=function(t){var e=this;null==this.current.country&&null==this.current.country||$(this.current.country).removeClass("highlight"),this.current.isZooming=!0,this.current.country=this.paths[t],this.current.index=t;var i=this.paths[t].getAttribute("id"),n=this.params.countries.centerTransforms[t].y,s=this.params.countries.centerTransforms[t].x;this.wrapper.css("transform","scale(3) translate("+s+"px, "+n+"px)"),this.paths[t]&&$(this.paths[t]).addClass("highlight"),i&&setTimeout((function(){e.openPanel(i)}),250)},g.buildSelect=function(){var t=this.select.data("country"),e="";$.each(t,(function(t,i){e+='<option value="'.concat(i.country_code,'">').concat(i.title,"</option>")})),this.select.append(e)},g.onChange=function(t){t.preventDefault();var e=$(t.currentTarget).find("option:selected").index()-1;this.zoomOn(e)},g.openPanel=function(t){var e=$(".js-map-panel[data-country="+t+"]");this.panels.removeClass("is-active"),e.addClass("is-active"),this.selectWrapper.addClass("is-shown")},g.closePanel=function(){var t=this;this.resetZoom(),setTimeout((function(){t.panels.removeClass("is-active")}),200),setTimeout((function(){t.selectWrapper.removeClass("is-shown")}),380)},g.setZoom=function(t){t.preventDefault(),"up"===$(t.currentTarget).data("zoom")?this.wrapper.css("transform","scale(3)"):this.resetZoom()},g.mobileCheck=function(){this.isMobile=function(v){var b={userAgent:"",platform:"",maxTouchPoints:0};v||"undefined"==typeof navigator?"string"==typeof v?b.userAgent=v:v&&v.userAgent&&(b={userAgent:v.userAgent,platform:v.platform,maxTouchPoints:v.maxTouchPoints||0}):b={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var g=b.userAgent,y=g.split("[FBAN");void 0!==y[1]&&(g=y[0]),void 0!==(y=g.split("Twitter"))[1]&&(g=y[0]);var w=function(t){return function(e){return e.test(t)}}(g),C={apple:{phone:w(t)&&!w(h),ipod:w(e),tablet:!w(t)&&(w(i)||f(b))&&!w(h),universal:w(n),device:(w(t)||w(e)||w(i)||w(n)||f(b))&&!w(h)},amazon:{phone:w(o),tablet:!w(o)&&w(a),device:w(o)||w(a)},android:{phone:!w(h)&&w(o)||!w(h)&&w(s),tablet:!w(h)&&!w(o)&&!w(s)&&(w(a)||w(r)),device:!w(h)&&(w(o)||w(a)||w(s)||w(r))||w(/\bokhttp\b/i)}
1,windows:{phone:w(h),tablet:w(c),device:w(h)||w(c)},other:{blackberry:w(p),blackberry10:w(l),opera:w(u),firefox:w(m),chrome:w(d),device:w(p)||w(l)||w(u)||w(m)||w(d)},any:!1,phone:!1,tablet:!1};return C.any=C.apple.device||C.android.device||C.windows.device||C.other.device,C.phone=C.apple.phone||C.android.phone||C.windows.phone,C.tablet=C.apple.tablet||C.android.tablet||C.windows.tablet,C}(v).phone},g.resetZoom=function(){this.wrapper.css("transform","scale(1) translate(0, 0)"),this.panels.hasClass("is-active")||$(this.current.country).removeClass("highlight"),this.current.isZooming=!1},b}();$(".js-map").each((function(t,e){new b($(e))}))}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.