!function(a,b){"use strict";"function"==typeofdefine&&define.amd?define(["angular"],b):"object"==typeofmodule&&module.exports?module.exports=b(require("angular")):b(a.angular)}(this,function(a,b){"use strict";returna.module("angular-google-analytics",[]).provider("Analytics",function(){varc,d,e,f,g,h=!0,i="auto",j=!1,k=!1,l="USD",m=!1,n=!1,o=!1,p=!1,q=!1,r=!1,s=!1,t=!1,u=!1,v=!1,w=!1,x="$routeChangeSuccess",y=!1,z=!1,A=!1,B="",C=!0,D=!1;this.log=[],this.offlineQueue=[],this.setAccount=function(d){returnc=a.isUndefined(d)||d===!1?b:a.isArray(d)?d:a.isObject(d)?[d]:[{tracker:d,trackEvent:!0}],this},this.trackPages=function(a){returnC=!!a,this},this.trackPrefix=function(a){returnB=a,this},this.setDomainName=function(a){returne=a,this},this.useDisplayFeatures=function(a){returno=!!a,this},this.useAnalytics=function(a){returnh=!!a,this},this.useEnhancedLinkAttribution=function(a){returns=!!a,this},this.useCrossDomainLinker=function(a){returnk=!!a,this},this.setCrossLinkDomains=function(a){returnd=a,this},this.setPageEvent=function(a){returnx=a,this},this.setCookieConfig=function(a){returni=a,this},this.useECommerce=function(a,b){returnq=!!a,r=!!b,this},this.setCurrency=function(a){returnl=a,this},this.setRemoveRegExp=function(a){returnainstanceofRegExp&&(g=a),this},this.setExperimentId=function(a){returnf=a,this},this.ignoreFirstPageLoad=function(a){returnt=!!a,this},this.trackUrlParams=function(a){returnD=!!a,this},this.disableAnalytics=function(a){returnp=!!a,this},this.setHybridMobileSupport=function(a){returnv=!!a,this},this.startOffline=function(a){returnw=!!a,w===!0&&this.delayScriptTag(!0),this},this.delayScriptTag=function(a){returnn=!!a,this},this.logAllCalls=function(a){returnu=!!a,this},this.enterTestMode=function(){returnz=!0,this},this.enterDebugMode=function(a){returnm=!0,A=!!a,this},this.readFromRoute=function(a){returny=!!a,this},this.$get=["$document","$location","$log","$rootScope","$window","$injector",function(E,F,G,H,I,J){varK=this,L=function(b,c){returna.isObject(c)&&a.isDefined(c[b])},M=function(a,b,c){returnL(a,b)&&b[a]===c},N=function(b,c){returna.isString(c)?c+"."+b:L("name",c)?c.name+"."+b:b},O={};y&&(J.has("$route")?O=J.get("$route"):G.warn("$route service is not available. Make sure you have included ng-route in your application dependencies."));varP=function(){if(y&&O.current&&"pageTrack"inO.current)returnO.current.pageTrack;vara=D?F.url():F.path();returng?a.replace(g,""):a},Q=function(){varb={utm_source:"campaignSource",utm_medium:"campaignMedium",utm_term:"campaignTerm",utm_content:"campaignContent",utm_campaign:"campaignName"},c={};returna.forEach(F.search(),function(d,e){varf=b[e];a.isDefined(f)&&(c[f]=d)}),c},R=function(a,b,c,d,e,f,g,h,i){varj={};returna&&(j.id=a),b&&(j.affiliation=b),c&&(j.revenue=c),d&&(j.tax=d),e&&(j.shipping=e),f&&(j.coupon=f),g&&(j.list=g),h&&(j.step=h),i&&(j.option=i),j},S=function(a){!h&&I._gaq&&"function"==typeofa&&a()},T=function(){vara=Array.prototype.slice.call(arguments);returnw===!0?voidK.offlineQueue.push([T,a]):(I._gaq||(I._gaq=[]),u===!0&&K._log.apply(K,a),voidI._gaq.push(a))},U=function(a){h&&I.ga&&"function"==typeofa&&a()},V=function(){vara=Array.prototype.slice.call(arguments);returnw===!0?voidK.offlineQueue.push([V,a]):"function"!=typeofI.ga?voidK._log("warn","ga function not set on window"):(u===!0&&K._log.apply(K,a),voidI.ga.apply(null,a))},W=function(a){varb=Array.prototype.slice.call(arguments,1),d=b[0],e=[];return"function"==typeofa?c.forEach(function(b){a(b)&&e.push(b)}):e=c,0===e.length?voidV.apply(K,b):voide.forEach(function(a){L("select",a)&&"function"==typeofa.select&&!a.select(b)||(b[0]=N(d,a),V.apply(K,b))})};returnthis._log=function(){vara=Array.prototype.slice.call(arguments);if(a.length>0){if(a.length>1)switch(a[0]){case"debug":case"error":case"info":case"log":case"warn":G[a[0]](a.slice(1))}K.log.push(a)}},this._createScriptTag=function(){if(!c||c.length<1)returnvoidK._log("warn","No account id set to create script tag");if(c.length>1&&(K._log("warn","Multipletrackersaren