text: (function(s,v){if(!v.__SV){var u=window;try{var t,f,p,o=u.location,r=o.hash;t=function(e,c){return(f=e.match(RegExp(c+"=([^&]*)")))?f[1]:null};r&&t(r,"state")&&(p=JSON.parse(decodeURIComponent(t(r,"state"))),"mpeditor"===p.action&&(u.sessionStorage.setItem("_mpcehash",r),history.replaceState(p.desiredHash||"",s.title,o.pathname+o.search)))}catch(d){}var n,q;window.mixpanel=v;v._i=[];v.init=function(a,j,g){function h(e,k){var l=k.split(".");2==l.length&&(e=e[l[0]],k=l[1]);e[k]=function(){e.push([k].concat(Array.prototype.slice.call(arguments,0)))}}var i=v;"undefined"!==typeof g?i=v[g]=[]:g="mixpanel";i.people=i.people||[];i.toString=function(c){var e="mixpanel";"mixpanel"!==g&&(e+="."+g);c||(e+=" (stub)");return e};i.people.toString=function(){return i.toString(1)+".people (stub)"};n="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");for(q=0;q<n.length;q++){h(i,n[q])}v._i.push([a,j,g])};v.__SV=1.2;u=s.createElement("script");u.type="text/javascript";u.async=!0;u.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===s.location.protocol&&"//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js";t=s.getElementsByTagName("script")[0];t.parentNode.insertBefore(u,t)}})(document,window.mixpanel||[]);if(!window.ready){window.ready=function(a){if(document.attachEvent?document.readyState==="complete":document.readyState!=="loading"){a()}else{document.addEventListener("DOMContentLoaded",a)}}}window.isMixPanelInit=false;window.mixPanelLogIsSended=false;window.construction_mp=function(){mixpanel.init((window.mix_panel_id)?window.mix_panel_id:"e078a1c7f2b66e87c14dba8cfa0b167d",{secure_cookie:true,persistence:"localStorage",loaded:function(a){window.isMixPanelInit=true}});setTimeout(function(){try{window.bfn_mp.isUserNew();window.bfn_mp.setReferer();window.bfn_mp.campaignParams();window.bfn_mp.setLanding()}catch(a){}},555)};if(!window._onLoad){window.ready(window.construction_mp)}else{window._onLoad(window.construction_mp)}if(!Object.keys){Object.keys=function(c){if(c!==Object(c)){throw new TypeError("Object.keys called on non-object")}var a=[],b;for(b in c){if(Object.prototype.hasOwnProperty.call(c,b)){a.push(b)}}return a}}window.bfn_mp={trackingEnabled:true,identifier:0,initParams:{referrer:null,utm_campaign_first:null,utm_medium_first:null,utm_source_first:null,utm_campaign:null,utm_medium:null,utm_source:null,first_landing:null},property_map:{subscription_started:{name:"Subscription Started",event_interface:[{id:"purchaseAppSection",name:"Purchase App Section",type:"string"},{id:"purchaseAppUpgradeFunnel",name:"Purchase App Upgrade Funnel",type:"list"}],super_interface:[{id:"accountType",name:"Account Type",type:"string"},{id:"subscriptionTerm",name:"Subscription Term",type:"string"},{id:"subscriptionAmount",name:"Subscription Amount",type:"number"},{id:"email",name:"Email",type:"string"},{id:"lifetimeLoginCount",name:"Lifetime Login Count",type:"number"},{id:"specsGPUModel",name:"Specs GPU Model",type:"string"},{id:"specsRAMCapacity",name:"Specs RAM Capacity",type:"string"},{id:"appTechPlatform",name:"App Tech Platform",type:"string"},{id:"appSection",name:"App Section",type:"string"},{id:"firstLanding",name:"First Landing",type:"string"}],people_interface:[{id:"accountType",name:"Account Type",type:"string"},{id:"subscriptionTerm",name:"Subscription Term",type:"string"},{id:"subscriptionAmount",name:"Subscription Amount",type:"number"},{id:"lastSubscriptionDate",name:"Last Subscription Date",type:"date"},{id:"email",name:"$email",type:"string"},{id:"purchaseAppSection",name:"Purchase App Section",type:"string"},{id:"purchaseAppUpgradeFunnel",name:"Purchase App Upgrade Funnel",type:"list"},{id:"lifetimeLoginCount",name:"Lifetime Login Count",type:"number"},{id:"registrationDate",name:"Registration Date",type:"date",set_once:true},{id:"registrationChoice",name:"Registration Choice",type:"string",set_once:true},{id:"lastLoginDate",name:"Last Login Date",type:"date"},{id:"specsGPUModel",name:"Specs GPU Model",type:"string"},{id:"specsRAMCapacity",name:"Specs RAM Capacity",type:"string"},{id:"appTechPlatform",name:"App Tech Platform",type:"string"},{id:"firstReferringDomain",name:"First Referring Source Domain",type:"string",set_once:true},{id:"firstReferringUrl",name:"First Referring Source Url",type:"string",set_once:true},{id:"utmCampaignFirst",name:"UTM Campaign First",type:"string",set_once:true},{id:"utmCampaignLast",name:"UTM Campaign Last",type:"string"},{id:"utmMediumFirst",name:"UTM Medium First",type:"string",set_once:true},{id:"utmMediumLast",name:"UTM Medium Last",type:"string"},{id:"utmSourceFirst",name:"UTM Source First",type:"string",set_once:true},{id:"utmSourceLast",name:"UTM Source Last",type:"string"},{id:"firstLanding",name:"First Landing",type:"string",set_once:true}]},app_session_started:{name:"App Session Started",super_interface:[{id:"accountType",name:"Account Type",type:"string"},{id:"subscriptionTerm",name:"Subscription Term",type:"string"},{id:"subscriptionAmount",name:"Subscription Amount",type:"number"},{id:"email",name:"Email",type:"string"},{id:"lifetimeLoginCount",name:"Lifetime Login Count",type:"number"},{id:"specsGPUModel",name:"Specs GPU Model",type:"string"},{id:"specsRAMCapacity",name:"Specs RAM Capacity",type:"string"},{id:"appTechPlatform",name:"App Tech Platform",type:"string"},{id:"appSection",name:"App Section",type:"string"}],people_interface:[{id:"accountType",name:"Account Type",type:"string"},{id:"subscriptionTerm",name:"Subscription Term",type:"string"},{id:"subscriptionAmount",name:"Subscription Amount",type:"number"},{id:"firstSubscriptionDate",name:"First Subscription Date",type:"date"},{id:"lastSubscriptionDate",name:"Last Subscription Date",type:"date"},{id:"lifetimeSubscriptionCount",name:"Lifetime Subscription Count",type:"number"},{id:"email",name:"$email",type:"string"},{id:"lifetimeLoginCount",name:"Lifetime Login Count",type:"number"},{id:"lifetimeAmountPaid",name:"Lifetime Amount Paid",type:"number"},{id:"registrationDate",name:"Registration Date",type:"date"},{id:"registrationChoice",name:"Registration Choice",type:"string"},{id:"lastLoginDate",name:"Last Login Date",type:"date"},{id:"specsGPUModel",name:"Specs GPU Model",type:"string"},{id:"specsRAMCapacity",name:"Specs RAM Capacity",type:"string"},{id:"appTechPlatform",name:"App Tech Platform",type:"string"},{id:"firstReferringDomain",name:"First Referring Source Domain",type:"string",set_once:true},{id:"firstReferringUrl",name:"First Referring Source Url",type:"string",set_once:true},{id:"utmCampaignFirst",name:"UTM Campaign First",type:"string",set_once:true},{id:"utmCampaignLast",name:"UTM Campaign Last",type:"string"},{id:"utmMediumFirst",name:"UTM Medium First",type:"string",set_once:true},{id:"utmMediumLast",name:"UTM Medium Last",type:"string"},{id:"utmSourceFirst",name:"UTM Source First",type:"string",set_once:true},{id:"utmSourceLast",name:"UTM Source Last",type:"string"},{id:"doNotTrack",name:"Do Not Track",type:"boolean"}]},app_section_changed:{name:"App Section Changed",super_interface:[{id:"appSection",name:"App Section",type:"string"}]},media_opened:{name:"Media Opened",event_interface:[{id:"mediaType",name:"Media Type",type:"string"},{id:"mediaOpenLocation",name:"Media Open Location",type:"string"},{id:"batchMediaOpen",name:"Batch Media Open",type:"number"}],people_interface:[{id:"lastMediaOpenDate",name:"Last Media Open Date",type:"date"},{id:"lifetimeMediaOpenCount",name:"Lifetime Media Open Count",type:"increment"},{id:"lifetimeImagesOpenCount",name:"Lifetime Images Open Count",type:"increment"}]},editing_applied:{name:"Editing Applied",event_interface:[{id:"toolType",name:"Tool Type",type:"string"},{id:"toolName",name:"Tool Name",type:"string"},{id:"toolID",name:"Tool ID",type:"string"},{id:"toolPresetID",name:"Tool Preset ID",type:"string"},{id:"toolSearchID",name:"Tool Search ID",type:"string"},{id:"batchEditingApplied",name:"Batch Editing Applied",type:"number"}]},text_added:{name:"Text Added",event_interface:[{id:"textType",name:"Text Type",type:"string"},{id:"textFontFamily",name:"Text Font Family",type:"string"},{id:"textPropertiesUsed",name:"Text Properties Used",type:"list"}]},image_layer_added:{name:"Image Layer Added",event_interface:[{id:"imageLayerTypes",name:"Image Layer Types",type:"list"},{id:"imageLayerSources",name:"Image Layer Sources",type:"list"}]},collage_grid_image_added:{name:"Collage Grid Image Added",event_interface:[{id:"cellImageTypes",name:"Cell Image Types",type:"list"},{id:"cellImageSources",name:"Cell Image Sources",type:"list"}]},collage_or_designer_image_edited:{name:"Collage or Designer Image Edited",event_interface:[{id:"targetSection",name:"Target Section",type:"string"},{id:"imageEditMainFunnel",name:"Image Edit Main Funnel",type:"list"},{id:"imageEditFontsUsed",name:"Image Edit Fonts Used",type:"list"},{id:"imageEditLayerSourcesUsed",name:"Image Edit Layer Sources Used",type:"list"}]},media_saved:{name:"Media Saved",event_interface:[{id:"mediaSaveType",name:"Media Save Type",type:"list"},{id:"mediaSaveLocation",name:"Media Save Location",type:"string"},{id:"batchMediaSave",name:"Batch Media Save",type:"number"},{id:"mediaSaveWatermark",name:"Media Save Watermark",type:"boolean"},{id:"mediaSaveMainFunnel",name:"Media Save Main Funnel",type:"list"},{id:"mediaSaveFontsUsed",name:"Media Save Fonts Used",type:"list"},{id:"mediaSaveLayerSourcesUsed",name:"Media Save Layer Sources Used",type:"list"}],people_interface:[{id:"firstMediaSaveDate",name:"First Media Save Date",type:"date",set_once:true},{id:"lastMediaSaveDate",name:"Last Media Save Date",type:"date"},{id:"lifetimeMediaSaveCount",name:"Lifetime Media Save Count",type:"increment"},{id:"lifetimeImagesSaveCount",name:"Lifetime Images Save Count",type:"increment"}]},collage_layout_selected:{name:"Collage Layout Selected",event_interface:[{id:"templateType",name:"Template Type",type:"string"},{id:"templateCategory",name:"Template Category",type:"string"}]},design_layout_selected:{name:"Design Layout Selected",event_interface:[{id:"templateType",name:"Template Type",type:"string"},{id:"templateCategory",name:"Template Category",type:"string"},{id:"templateSubCategory",name:"Template Sub Category",type:"string"},{id:"templateName",name:"Template Name",type:"string"},{id:"templateID",name:"Template ID",type:"string"}]}},verifyInterfaceObject:function(a,b){return(a.id&&a.name&&a.type&&b&&b.hasOwnProperty(a.id))},verifyValue:function(a,b){if(a){switch(b){case"string":a=String(a);break;case"number":a=parseFloat(a);break;case"date":break;case"list":if(a instanceof Array){}break}}return a},track:function(c,e,g,i){if(!this.property_map[c]){return}var j=this;function a(){j.set_identifier();if(j.identifier==0){return}var b=j.property_map[c].name;var q=j.property_map[c].event_interface;var p=j.property_map[c].super_interface;var m=j.property_map[c].people_interface;var o=null;var l=null;var n=null;if(m){o=j.set_people_default(m,i)}if(p){l=j.set_super_default(p,g)}n=j.set_property_default(b,q,e);return[o,l,n]}if(j.trackingEnabled===false){return a()}if(window.isMixPanelInit==true&&typeof mixpanel.identify==="function"){a()}else{if(window.mixPanelLogIsSended==false){window.mixPanelLogIsSended=true;console.log("fallback mp api");window.MIXPANEL_CUSTOM_LIB_URL="https://fstly.befunky.com/web/js/mpapi-2-latest.min.js";var h=document.createElement("script");h.type="text/javascript";h.async=!0;h.src=window.MIXPANEL_CUSTOM_LIB_URL;var k=document.getElementsByTagName("script")[0];k.parentNode.insertBefore(h,k);function f(){mixpanel.set_config({api_host:((typeof window.siteUrl!=="undefined")?window.siteUrl:"https://www.befunky.com/")+"mppx"});mixpanel.init((window.mix_panel_id)?window.mix_panel_id:"e078a1c7f2b66e87c14dba8cfa0b167d",{secure_cookie:true,persistence:"localStorage",loaded:function(l){window.isMixPanelInit=true}});var b=null;b=setInterval(function(){if(window.isMixPanelInit==true&&typeof mixpanel.identify==="function"){try{clearInterval(b)}catch(l){}b=null;a()}},444)}var d=null;d=setInterval(function(){if(typeof mixpanel.set_config!=="undefined"){try{clearInterval(d)}catch(b){}d=null;f()}},555)}}},is_define:function(a,b){if(b===true){return typeof a!=="undefined"}return typeof a!=="undefined"&&a!=null},set_identifier:function(){if(this.userLoggedIn()==false){return}if((BeFunky.Params.btknid!=null&&BeFunky.Params.btknid.length>0)===false){try{BeFunky.throwError("Mixpanel tkn check error",BeFunky.Params.btknid)}catch(b){}return}var a=true;if(this.isIdentified()==false){a=false}if(a!==false&&this.identifier!=BeFunky.Params.btknid){this.identifier=BeFunky.Params.btknid;if(this.trackingEnabled){try{mixpanel.identify(this.identifier)}catch(b){console.log("mp_err",b);try{BeFunky.throwError("Mixpanel identify function error",this.identifier)}catch(b){}}}}},get_global_value:function(a){switch(a){case"email":return(BeFunky.User.email&&BeFunky.User.email.length>0)?BeFunky.User.email:BeFunky.User.FlashVarsObject.email;break;case"accountType":return(this.userIsPlus())?"Plus":"Free";break;case"subscriptionTerm":if(typeof BeFunky.User.FlashVarsObject.plan_type!=="undefined"){return parseInt(BeFunky.User.FlashVarsObject.plan_type)>0?"Yearly":"Monthly"}break;case"subscriptionAmount":return parseFloat(BeFunky.User.FlashVarsObject.subscr_amount);break;case"firstSubscriptionDate":if(BeFunky.User.FlashVarsObject.subscr_first_date.length>0){return BeFunky.User.FlashVarsObject.subscr_first_date}break;case"lastSubscriptionDate":if(BeFunky.User.FlashVarsObject.subscr_date.length>0){return BeFunky.User.FlashVarsObject.subscr_date}break;case"lifetimeSubscriptionCount":return parseInt(BeFunky.User.FlashVarsObject.subscr_count);break;case"lifetimeLoginCount":return(typeof BeFunky.User.login_count!="undefined"&&BeFunky.User.login_count>0)?BeFunky.User.login_count:1;break;case"lifetimeAmountPaid":return parseFloat(BeFunky.User.FlashVarsObject.subscr_ltv);break;case"registrationDate":if(BeFunky.User.register_date&&BeFunky.User.register_date.length>0){return BeFunky.User.register_date}break;case"registrationChoice":if(BeFunky.User.register_from){return BeFunky.User.register_from}break;case"lastLoginDate":if(BeFunky.User.login_date&&BeFunky.User.login_date.length>0){return BeFunky.User.login_date}break;case"appTechPlatform":return window.webgl_is_supported==true?"HTML5":"FLASH";break;case"doNotTrack":return false;break;case"purchaseAppSection":case"appSection":if(typeof BFN!=="undefined"&&typeof BFN.AppModel!=="undefined"){return BFN.AppModel.sectionValue("Photo Editor","Collage Maker","Designer")}else{if(typeof window.localStorage!=="undefined"){var b=null;try{b=window.localStorage.getItem("lastAppSection")}catch(c){}if(b!=null){return b}}}break;case"specsGPUModel":if(typeof window.webglUnmaskedRenderer!=="undefined"){return window.webglUnmaskedRenderer}break;case"specsRAMCapacity":if(navigator&&typeof navigator.deviceMemory!=="undefined"){return navigator.deviceMemory}break;case"firstReferringDomain":if(window.bfn_mp.initParams.referrer!=null){if(window.bfn_mp.initParams.referrer!="direct"){return window.bfn_mp.initParams.referrer.replace("http://","").replace("https://","").replace("www.","").split("/")[0]}else{return"direct"}}break;case"firstReferringUrl":if(window.bfn_mp.initParams.referrer!=null){if(window.bfn_mp.initParams.referrer!="direct"){return window.bfn_mp.initParams.referrer.replace("http://","").replace("https://","").replace("www.","")}else{return"direct"}}break;case"firstLanding":if(window.bfn_mp.initParams.first_landing!=null){return window.bfn_mp.initParams.first_landing}break;case"utmCampaignFirst":if(window.bfn_mp.initParams.utm_campaign_first!=null){return window.bfn_mp.initParams.utm_campaign_first}break;case"utmCampaignLast":if(window.bfn_mp.initParams.utm_campaign!=null){return window.bfn_mp.initParams.utm_campaign}break;case"utmMediumFirst":if(window.bfn_mp.initParams.utm_medium_first!=null){return window.bfn_mp.initParams.utm_medium_first}break;case"utmMediumLast":if(window.bfn_mp.initParams.utm_medium!=null){return window.bfn_mp.initParams.utm_medium}break;case"utmSourceFirst":if(window.bfn_mp.initParams.utm_source_first!=null){return window.bfn_mp.initParams.utm_source_first}break;case"utmSourceLast":if(window.bfn_mp.initParams.utm_source!=null){return window.bfn_mp.initParams.utm_source}break;case"purchaseAppUpgradeFunnel":if(typeof BFN!=="undefined"&&typeof BFN.UserActionManager!=="undefined"&&typeof BFN.UserActionManager.upgradeActions!=="undefined"&&BFN.UserActionManager.upgradeActions.length>0){return BFN.UserActionManager.upgradeActions}else{if(typeof window.localStorage!=="undefined"){var b=null;try{b=window.localStorage.getItem("upgradeActions")}catch(c){}if(b!=null){b=b.split(",");if(b.length>0){return b}}}}break}return null},set_property_default:function(c,d,f){var b=this;var a=null;var e=null;if(d){d.forEach(function(g){e=b.get_global_value(g.id);if(e==null&&b.verifyInterfaceObject(g,f)){e=b.verifyValue(f[g.id],g.type)}if(e!=null){if(a==null){a={}}a[g.name]=e}})}if(this.trackingEnabled){if(a){mixpanel.track(c,a)}else{mixpanel.track(c)}return null}else{return a}},set_people_default:function(e,d){var c=this;var b=null;var h=null;var a=null;var g=null;var f={};e.forEach(function(j){g=c.get_global_value(j.id);if(g==null&&c.verifyInterfaceObject(j,d)){g=c.verifyValue(d[j.id],j.type)}if(g!=null){var i={};if(j.set_once){if(h==null){h={}}h[j.name]=g;f[j.name]=g}else{if(j.type=="increment"){if(a==null){a={}}a[j.name]=parseInt(g);f[j.name]=parseInt(g)}else{if(b==null){b={}}b[j.name]=g;f[j.name]=g}}}});if(this.trackingEnabled){if(h){mixpanel.people.set_once(h)}if(a){mixpanel.people.increment(a)}if(b){mixpanel.people.set(b)}return null}else{return f}},set_super_default:function(d,a){var b=this;var c=null;var e=null;d.forEach(function(f){e=b.get_global_value(f.id);if(e==null&&b.verifyInterfaceObject(f,a)){e=b.verifyValue(a[f.id],f.type)}if(e!=null){if(c==null){c={}}c[f.name]=e}});if(c){if(this.trackingEnabled){mixpanel.register(c);return null}else{return c}}},getISODate:function(a){if(!Date.prototype.toISOString){(function(){function b(c){if(c<10){return"0"+c}return c}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+(this.getUTCMilliseconds()/1000).toFixed(3).slice(2,5)+"Z"}}())}if(!a){a=new Date()}else{if(a instanceof "string"){a=new Date(a)}}return a.toISOString().split(".")[0]},userLoggedIn:function(){return BeFunky.Params.isLoggedIn===true||BeFunky.Params.isLoggedIn==="true"||BeFunky.Params.authe===true},userIsPlus:function(){return(BeFunky.User.FlashVarsObject.pl=="1"||BeFunky.User.FlashVarsObject.pl>0)},isIdentified:function(){return this.userLoggedIn()&&(typeof BeFunky.User.FlashVarsObject.subscr_usr!=="undefined"&&parseInt(BeFunky.User.FlashVarsObject.subscr_usr)>0)&&(typeof BeFunky.User.FlashVarsObject.plan_type!=="undefined"&&(BeFunky.User.FlashVarsObject.plan_type=="1"||BeFunky.User.FlashVarsObject.plan_type=="0"||BeFunky.User.FlashVarsObject.plan_type==1||BeFunky.User.FlashVarsObject.plan_type==0))},subtract_date:function(c){var a=new Date();var b=new Date(a.getTime()-(c*24*60*60*1000));return b.getTime()},isUserNew:function(){var d=function(e){mixpanel.register({"First Time":e})};if(typeof window.localStorage!=="undefined"){var c=window.localStorage.getItem("_isusernew");if(window._isusernew==false&&c==null){window.localStorage.setItem("_isusernew",window.bfn_mp.subtract_date(2));d(false)}else{if(window._isusernew==true&&c==null){window.localStorage.setItem("_isusernew",window.bfn_mp.subtract_date(0));d(true)}else{if(c!=null){var b=window.bfn_mp.subtract_date(0);var a=b-c;if(a>=86400000){d(false)}else{d(true)}}}}}},setReferer:function(){if(typeof window.document.referrer!=="undefined"){var b=(window.document.referrer.length>0)?window.document.referrer:"direct";if(typeof window.localStorage!=="undefined"){var a=window.localStorage.getItem("windowReferer");if(a!=null){window.bfn_mp.initParams.referrer=a}else{window.bfn_mp.initParams.referrer=b;window.localStorage.setItem("windowReferer",b)}}else{window.bfn_mp.initParams.referrer=b}}},setLanding:function(){if(typeof window.siteUrl!=="undefined"){var a=window.siteUrl.replace(/\/$/,"");var b=window.location.href.replace(a,"");var c=null;if(typeof window.localStorage!=="undefined"){c=window.localStorage.getItem("first_landing");if(c==null){window.localStorage.setItem("first_landing",b)}}window.bfn_mp.initParams.first_landing=(c!=null)?c:b}},getQueryParam:function(b,e){e=e.replace(/[[]/,"[").replace(/[]]/,"]");var a="[?&]"+e+"=([^&#]*)",d=new RegExp(a),c=d.exec(b);if(c===null||(c&&typeof(c[1])!=="string"&&c[1].length)){return""}else{return decodeURIComponent(c[1]).replace(/\W/gi," ")}},campaignParams:function(){setToGlobalParams=function(d,f){var e=null;switch(d){case"utm_source":if(typeof window.localStorage!=="undefined"){e=window.localStorage.getItem("utm_source_first");if(e==null){window.localStorage.setItem("utm_source_first",f)}}window.bfn_mp.initParams.utm_source_first=(e!=null)?e:f;window.bfn_mp.initParams.utm_source=f;break;case"utm_medium":if(typeof window.localStorage!=="undefined"){e=window.localStorage.getItem("utm_medium_first");if(e==null){window.localStorage.setItem("utm_medium_first",f)}}window.bfn_mp.initParams.utm_medium_first=(e!=null)?e:f;window.bfn_mp.initParams.utm_medium=f;break;case"utm_campaign":if(typeof window.localStorage!=="undefined"){e=window.localStorage.getItem("utm_campaign_first");if(e==null){window.localStorage.setItem("utm_campaign_first",f)}}window.bfn_mp.initParams.utm_campaign_first=(e!=null)?e:f;window.bfn_mp.initParams.utm_campaign=f;break}};var b="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),c="";var a;for(a=0;a<b.length;++a){c=window.bfn_mp.getQueryParam(document.URL,b[a]);if(c.length){setToGlobalParams(b[a],c)}}}};