document.write('
');if(!window.TrustedSiteInline){window.TrustedSiteInline={config:[],init:function(){TrustedSiteInline.log("init");if(navigator.userAgent.match(/; MSIE [6-9]/i)){return}TrustedSiteInline.load_config(function(){TrustedSiteInline.load_inline();TrustedSiteInline.load_rescan()})},load_inline:function(){if(!TrustedSiteInline.config.demo){if(!TrustedSiteInline.config.secure||!TrustedSiteInline.config.pro){return
}}var c=new String(window.location.host).replace(/^www\./,"");var a=document.querySelectorAll("div.mfes-trustmark:not(.loaded),div.trustedsite-trustmark:not(.loaded),button.trustedsite-trustmark:not(.loaded)");for(var b=0;b=0){b=TrustedSiteInline.calc_wh(b,120,50)}else{if(g==216){d="&inbox=1";b=TrustedSiteInline.calc_wh(b,160,50)}else{if(g==204){b=TrustedSiteInline.calc_wh(b,320,70)}else{if(g==203){b=TrustedSiteInline.calc_wh(b,320,40)}else{if([211,212,213].indexOf(g)>=0){if(!h){return}b=TrustedSiteInline.calc_wh(b,120,50)}else{if(g==1001){if(b[0]){j.style.width=b[0]+"px";j.style.display="inline-block"}j.style.height="60px";
j.style.minWidth="200px";c="html"}else{if(g==1002){if(!b[0]&&!b[1]){b[1]=150}if(b[0]){j.style.width=b[0]+"px";j.style.display="inline-block"}if(b[1]){j.style.height=b[1]+"px"}j.style.minHeight="150px";j.style.minWidth="180px";c="html"}else{return}}}}}}}}}}j.oncontextmenu=function(){return false};if(c=="html"){var a="https://www.trustedsite.com/widget/tm-"+g+"/?host="+i+"&lang="+TrustedSiteInline.getLanguage();if(TrustedSiteInline.config.demo){a+="&demo=1"}j.innerHTML='';
return}var f="https://cdn.ywxi.net/meter/"+i+"/"+g+"."+c+"?ts="+TrustedSiteInline.config.timestamp+"&l="+TrustedSiteInline.getLanguage();if(c=="png"){f+="&w="+(2*b[0])+"&h="+(2*b[1])}var e=j.getAttribute("data-color");if(e){f+="&color="+encodeURIComponent(e)}if(TrustedSiteInline.config.demo){f+="&demo=1"}j.title="TrustedSite Certified";j.tabIndex=0;j.style.width=b[0]+"px";j.style.height=b[1]+"px";j.style.display="inline-block";j.style.backgroundImage="url("+f+")";j.style.backgroundSize="contain";
j.style.backgroundPosition="top center";j.style.backgroundRepeat="no-repeat";j.style.cursor="pointer";j.onclick=function(){TrustedSiteInline.handle_verify(i,d)};j.addEventListener("keydown",function(k){if(k.key==="Enter"){TrustedSiteInline.handle_verify(i,d)}})},handle_verify:function(c,a){if(window.TrustedSite){window.TrustedSite.toggleverify(a)}else{var b="https://www.trustedsite.com";b+="/verify?js=1&host="+c;if(a){b+="&"+a}window.open(b)}},calc_wh:function(b,a,d){var c=b&&b.length==2?b[0]:0;var e=b&&b.length==2?b[1]:0;
if(c&&c>0){return[c,parseInt(c/a*d)]}if(e&&e>0){return[parseInt(e/d*a),e]}return[a,d]},load_rescan:function(){if(!TrustedSiteInline.config||!TrustedSiteInline.config.secure||!TrustedSiteInline.config.pro){return}TrustedSiteInline.log("rescan enabled",1);window.setInterval(function(){TrustedSiteInline.load_inline()},100)},load_config:function(e){var c=this;var a=false||(typeof BCData=="object"&&document.referrer.includes("/manage/page-builder"));var b=String(window.location.host).replace(/^www\./,"");
var d="//s3-us-west-2.amazonaws.com/mfesecure-public/host/"+b+"/client.json?source=jsinline";c.get_json(d,function(f){c.config=f;c.config.demo=a;c.log("load_trustedsite_inline");c.log(c.config);c.load_config_local();if(c.config.error&&!c.config.demo){return}if(c.config.error&&c.config.demo){c.load_config_demo(c.config)}if(e){c.do_callback(e,c)}},function(f){if(f===403&&a){c.config.demo=a;c.load_config_demo(c.config);if(e){c.do_callback(e,c)}}console.log("trustedsite-tm-inline[config]["+f+"]")})},load_config_local:function(){var a=document.getElementById("trustedsite-code");
if(!a||!a.dataset){return}if(a.dataset.rescan){this.config.rescan=1}},load_config_demo:function(a){a.brand="ts";a.host="trustedsite.com";a.pro=1;a.secure=1;a.trustmark={};a.trustmark.position_x="right";a.trustmark.position_y="bottom";a.trustmark.offset_x=0;a.trustmark.enabled=1},do_callback:function(b,a){if(document.readyState!=="loading"){b(a.config)}else{document.addEventListener("DOMContentLoaded",function(c){b(a.config)})}},cleanStyle:function(a){try{a.style.maxWidth="none"}catch(b){}try{a.style.minWidth="none"
}catch(b){}try{a.style.maxHeight="none"}catch(b){}try{a.style.minHeight="none"}catch(b){}},cleanStyleCss:function(){return"margin:0;padding:0;border:0;background:none;max-width:none;max-height:none;"},cookie_set:function(b,e,f){if(f){var c=new Date();c.setTime(c.getTime()+(f*60*1000));var a="expires="+c.toGMTString();document.cookie=b+"="+e+"; path=/;"+a}else{document.cookie=b+"="+e+"; path=/;"}},cookie_get:function(d){var b=d+"=";var a=document.cookie.split(";");for(var e=0;ed.expiry){localStorage.removeItem(b);return""}return d.value},load_js:function(b){var a=document.createElement("script");a.setAttribute("type","text/javascript");
a.setAttribute("src",b);document.getElementsByTagName("head")[0].appendChild(a)},get_element:function(b){if(typeof b==="object"){return b}if(typeof b==="string"){var a=document.querySelectorAll(b);return a.length>0?a.item(0):null}console.log("trustedsite unhandle element type ["+(typeof b)+"]");return b},remove_element:function(a){if(!a){return}a=this.get_element(a);if(a){a.parentNode.removeChild(a)}},is_hidden:function(a){a=this.get_element(a);return window.getComputedStyle(a).display==="none"},has_class:function(a,b){a=this.get_element(a);
return a.classList.contains(b)},add_class:function(a,b){a=this.get_element(a);a.classList.add(b)},remove_class:function(a,b){a=this.get_element(a);a.classList.remove(b)},get_json:function(b,c,a){var d=new XMLHttpRequest();d.open("GET",b,true);d.responseType="text";d.onload=function(){if(d.status===200){if(c){c(JSON.parse(d.response))}}else{if(a){a(d.status)}}};d.send()},window_width:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},window_height:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight
},is_mobile:function(){return this.window_height()<=500||this.window_width()<=500},calc_wh:function(b,a,d){var c=b&&b.length==2?b[0]:0;var e=b&&b.length==2?b[1]:0;if(c&&c>0){return[c,parseInt(c/a*d)]}if(e&&e>0){return[parseInt(e/d*a),e]}return[a,d]},log:function(b,a){if(!a&&(!window.location.hash||window.location.hash.indexOf("TRUSTEDSITEDEBUG")==-1)){return}console.log("trustedsite-inline ",b);return 0},appendChild:function(a,c){var b=this;if(!c){c=0}if(c>100){return}if(document.body){document.body.appendChild(a)
}else{window.setTimeout(function(){b.appendChild(a,c+1)},100)}},getLanguage:function(){if(typeof Shopify!=="undefined"&&typeof Shopify.locale==="string"){return encodeURIComponent(Shopify.locale)}return encodeURIComponent(navigator.language.substring(0,2))},}}TrustedSiteInline.init();document.write('');if(!window.TrustedSiteInline){window.TrustedSiteInline={config:[],init:function(){TrustedSiteInline.log("init");if(navigator.userAgent.match(/; MSIE [6-9]/i)){return}TrustedSiteInline.load_config(function(){TrustedSiteInline.load_inline();TrustedSiteInline.load_rescan()})},load_inline:function(){if(!TrustedSiteInline.config.demo){if(!TrustedSiteInline.config.secure||!TrustedSiteInline.config.pro){return
}}var c=new String(window.location.host).replace(/^www\./,"");var a=document.querySelectorAll("div.mfes-trustmark:not(.loaded),div.trustedsite-trustmark:not(.loaded),button.trustedsite-trustmark:not(.loaded)");for(var b=0;b=0){b=TrustedSiteInline.calc_wh(b,120,50)}else{if(g==216){d="&inbox=1";b=TrustedSiteInline.calc_wh(b,160,50)}else{if(g==204){b=TrustedSiteInline.calc_wh(b,320,70)}else{if(g==203){b=TrustedSiteInline.calc_wh(b,320,40)}else{if([211,212,213].indexOf(g)>=0){if(!h){return}b=TrustedSiteInline.calc_wh(b,120,50)}else{if(g==1001){if(b[0]){j.style.width=b[0]+"px";j.style.display="inline-block"}j.style.height="60px";
j.style.minWidth="200px";c="html"}else{if(g==1002){if(!b[0]&&!b[1]){b[1]=150}if(b[0]){j.style.width=b[0]+"px";j.style.display="inline-block"}if(b[1]){j.style.height=b[1]+"px"}j.style.minHeight="150px";j.style.minWidth="180px";c="html"}else{return}}}}}}}}}}j.oncontextmenu=function(){return false};if(c=="html"){var a="https://www.trustedsite.com/widget/tm-"+g+"/?host="+i+"&lang="+TrustedSiteInline.getLanguage();if(TrustedSiteInline.config.demo){a+="&demo=1"}j.innerHTML='';
return}var f="https://cdn.ywxi.net/meter/"+i+"/"+g+"."+c+"?ts="+TrustedSiteInline.config.timestamp+"&l="+TrustedSiteInline.getLanguage();if(c=="png"){f+="&w="+(2*b[0])+"&h="+(2*b[1])}var e=j.getAttribute("data-color");if(e){f+="&color="+encodeURIComponent(e)}if(TrustedSiteInline.config.demo){f+="&demo=1"}j.title="TrustedSite Certified";j.tabIndex=0;j.style.width=b[0]+"px";j.style.height=b[1]+"px";j.style.display="inline-block";j.style.backgroundImage="url("+f+")";j.style.backgroundSize="contain";
j.style.backgroundPosition="top center";j.style.backgroundRepeat="no-repeat";j.style.cursor="pointer";j.onclick=function(){TrustedSiteInline.handle_verify(i,d)};j.addEventListener("keydown",function(k){if(k.key==="Enter"){TrustedSiteInline.handle_verify(i,d)}})},handle_verify:function(c,a){if(window.TrustedSite){window.TrustedSite.toggleverify(a)}else{var b="https://www.trustedsite.com";b+="/verify?js=1&host="+c;if(a){b+="&"+a}window.open(b)}},calc_wh:function(b,a,d){var c=b&&b.length==2?b[0]:0;var e=b&&b.length==2?b[1]:0;
if(c&&c>0){return[c,parseInt(c/a*d)]}if(e&&e>0){return[parseInt(e/d*a),e]}return[a,d]},load_rescan:function(){if(!TrustedSiteInline.config||!TrustedSiteInline.config.secure||!TrustedSiteInline.config.pro){return}TrustedSiteInline.log("rescan enabled",1);window.setInterval(function(){TrustedSiteInline.load_inline()},100)},load_config:function(e){var c=this;var a=false||(typeof BCData=="object"&&document.referrer.includes("/manage/page-builder"));var b=String(window.location.host).replace(/^www\./,"");
var d="//s3-us-west-2.amazonaws.com/mfesecure-public/host/"+b+"/client.json?source=jsinline";c.get_json(d,function(f){c.config=f;c.config.demo=a;c.log("load_trustedsite_inline");c.log(c.config);c.load_config_local();if(c.config.error&&!c.config.demo){return}if(c.config.error&&c.config.demo){c.load_config_demo(c.config)}if(e){c.do_callback(e,c)}},function(f){if(f===403&&a){c.config.demo=a;c.load_config_demo(c.config);if(e){c.do_callback(e,c)}}console.log("trustedsite-tm-inline[config]["+f+"]")})},load_config_local:function(){var a=document.getElementById("trustedsite-code");
if(!a||!a.dataset){return}if(a.dataset.rescan){this.config.rescan=1}},load_config_demo:function(a){a.brand="ts";a.host="trustedsite.com";a.pro=1;a.secure=1;a.trustmark={};a.trustmark.position_x="right";a.trustmark.position_y="bottom";a.trustmark.offset_x=0;a.trustmark.enabled=1},do_callback:function(b,a){if(document.readyState!=="loading"){b(a.config)}else{document.addEventListener("DOMContentLoaded",function(c){b(a.config)})}},cleanStyle:function(a){try{a.style.maxWidth="none"}catch(b){}try{a.style.minWidth="none"
}catch(b){}try{a.style.maxHeight="none"}catch(b){}try{a.style.minHeight="none"}catch(b){}},cleanStyleCss:function(){return"margin:0;padding:0;border:0;background:none;max-width:none;max-height:none;"},cookie_set:function(b,e,f){if(f){var c=new Date();c.setTime(c.getTime()+(f*60*1000));var a="expires="+c.toGMTString();document.cookie=b+"="+e+"; path=/;"+a}else{document.cookie=b+"="+e+"; path=/;"}},cookie_get:function(d){var b=d+"=";var a=document.cookie.split(";");for(var e=0;ed.expiry){localStorage.removeItem(b);return""}return d.value},load_js:function(b){var a=document.createElement("script");a.setAttribute("type","text/javascript");
a.setAttribute("src",b);document.getElementsByTagName("head")[0].appendChild(a)},get_element:function(b){if(typeof b==="object"){return b}if(typeof b==="string"){var a=document.querySelectorAll(b);return a.length>0?a.item(0):null}console.log("trustedsite unhandle element type ["+(typeof b)+"]");return b},remove_element:function(a){if(!a){return}a=this.get_element(a);if(a){a.parentNode.removeChild(a)}},is_hidden:function(a){a=this.get_element(a);return window.getComputedStyle(a).display==="none"},has_class:function(a,b){a=this.get_element(a);
return a.classList.contains(b)},add_class:function(a,b){a=this.get_element(a);a.classList.add(b)},remove_class:function(a,b){a=this.get_element(a);a.classList.remove(b)},get_json:function(b,c,a){var d=new XMLHttpRequest();d.open("GET",b,true);d.responseType="text";d.onload=function(){if(d.status===200){if(c){c(JSON.parse(d.response))}}else{if(a){a(d.status)}}};d.send()},window_width:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},window_height:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight
},is_mobile:function(){return this.window_height()<=500||this.window_width()<=500},calc_wh:function(b,a,d){var c=b&&b.length==2?b[0]:0;var e=b&&b.length==2?b[1]:0;if(c&&c>0){return[c,parseInt(c/a*d)]}if(e&&e>0){return[parseInt(e/d*a),e]}return[a,d]},log:function(b,a){if(!a&&(!window.location.hash||window.location.hash.indexOf("TRUSTEDSITEDEBUG")==-1)){return}console.log("trustedsite-inline ",b);return 0},appendChild:function(a,c){var b=this;if(!c){c=0}if(c>100){return}if(document.body){document.body.appendChild(a)
}else{window.setTimeout(function(){b.appendChild(a,c+1)},100)}},getLanguage:function(){if(typeof Shopify!=="undefined"&&typeof Shopify.locale==="string"){return encodeURIComponent(Shopify.locale)}return encodeURIComponent(navigator.language.substring(0,2))},}}TrustedSiteInline.init();