/** * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Facebook. * * As with any software that integrates with the Facebook platform, your use of * this software is subject to the Facebook Platform Policy * [http://developers.facebook.com/policy/]. This copyright notice shall be * included in all copies or substantial portions of the software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){var c=[],d=!0,e=!1,f=undefined;try{for(var a=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),g;!(d=(g=a.next()).done);d=!0){c.push(g.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&a["return"]&&a["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a};function i(a,b,c){b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c;return a}f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("SignalsFBEventsLogging",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsUtils"),b=a.sendPOST,c=a.isInstanceOf,d=f.getFbeventsModules("SignalsParamList"),h=!1;function i(){h=!0}var j=!0;function k(){j=!1}a="console";var l="warn",m=g[a]&&g[a][l]?g[a][l].bind(g[a]):function(){},n=!1;function o(){n=!0}function p(a){if(n)return;m("[Facebook Pixel] - "+a)}var q="Facebook Pixel Error",r=g.postMessage?g.postMessage.bind(g):function(){},s={};function t(a){switch(a.type){case"FBQ_NO_METHOD_NAME":return"You must provide an argument to fbq().";case"INVALID_FBQ_METHOD":var b=a.method;return"\"fbq('"+b+"', ...);\" is not a valid fbq command.";case"INVALID_PIXEL_ID":b=a.pixelID;return"Invalid PixelID: "+b+".";case"DUPLICATE_PIXEL_ID":b=a.pixelID;return"Duplicate Pixel ID: "+b+".";case"SET_METADATA_ON_UNINITIALIZED_PIXEL_ID":b=a.metadataValue;var c=a.pixelID;return"Trying to set argument "+b+" for uninitialized Pixel ID "+c+".";case"CONFLICTING_VERSIONS":return"Multiple pixels with conflicting versions were detected on this page.";case"MULTIPLE_PIXELS":return"Multiple pixels were detected on this page.";case"UNSUPPORTED_METADATA_ARGUMENT":b=a.metadata;return"Unsupported metadata argument: "+b+".";case"REQUIRED_PARAM_MISSING":c=a.param;b=a.eventName;return"Required parameter '"+c+"' is missing for event '"+b+"'.";case"INVALID_PARAM":c=a.param;b=a.eventName;return"Parameter '"+c+"' is invalid for event '"+b+"'.";case"NONSTANDARD_EVENT":c=a.eventName;return"You are sending a non-standard event '"+c+"'. The preferred way to send these events is using trackCustom. See 'https://www.facebookmarketingdevelopers.com/pixels/up#sec-custom' for more information.";case"NEGATIVE_EVENT_PARAM":b=a.param;c=a.eventName;return"Parameter '"+b+"' is negative for event '"+c+"'.";case"PII_INVALID_TYPE":b=a.key_type;c=a.key_val;return"An invalid "+b+" was specified for '"+c+"'. This data will not be sent with any events for this Pixel.";case"INVALID_CONSENT_ACTION":b=a.action;return"\"fbq('"+b+"', ...);\" is not a valid fbq('consent', ...) action. Valid actions are 'await' and 'grant'.";default:w(new Error("INVALID_USER_ERROR - "+a.type+" - "+JSON.stringify(a)));return"Invalid User Error."}}function u(a,e){try{var f=Math.random(),h=g.fbq&&g.fbq._releaseSegment?g.fbq._releaseSegment:"unknown";if(j&&f<.01||h==="canary"){f=new d(null);f.append("p","pixel");f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("e",a.toString());c(a,Error)&&(f.append("f",a.fileName),f.append("s",a.stackTrace||a.stack));f.append("ue",e?"1":"0");f.append("rs",h);b(f,"https://connect.facebook.net/log/error")}}catch(a){}}function v(a){var b=JSON.stringify(a);if(!Object.prototype.hasOwnProperty.call(s,b))s[b]=!0;else return;b=t(a);p(b);r({action:"FB_LOG",logType:q,logMessage:b},"*");u(new Error(b),!0)}function w(a){u(a,!1),h&&p(a.toString())}l={logError:w,logUserError:v,enableVerboseDebugLogging:i,disableAllLogging:o,disableSampling:k};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsNormalizers",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";e.exports={email:f.getFbeventsModules("normalizeSignalsFBEventsEmailType"),"enum":f.getFbeventsModules("normalizeSignalsFBEventsEnumType"),phone_number:f.getFbeventsModules("normalizeSignalsFBEventsPhoneNumberType"),postal_code:f.getFbeventsModules("normalizeSignalsFBEventsPostalCodeType"),string:f.getFbeventsModules("normalizeSignalsFBEventsStringType")}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsPixelPIISchema",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";e.exports={email:{type:"email"},phone:{type:"phone_number"},fn:{type:"string",typeParams:{lowercase:!0,strip:"whitespace_and_punctuation"}},ln:{type:"string",typeParams:{lowercase:!0,strip:"whitespace_and_punctuation"}},zip:{type:"postal_code"},ct:{type:"string",typeParams:{lowercase:!0,strip:"all_non_latin_alpha_numeric",test:"^[a-z]+"}},st:{type:"string",typeParams:{lowercase:!0,truncate:2,strip:"all_non_latin_alpha_numeric",test:"^[a-z]+"}},dob:{type:"date"},doby:{type:"string",typeParams:{test:"^[0-9]{4,4}$"}},gen:{type:"enum",typeParams:{lowercase:!0,options:["f","m"]}},dobm:{type:"string",typeParams:{test:"^(0?[1-9]|1[012])$|^jan|^feb|^mar|^apr|^may|^jun|^jul|^aug|^sep|^oct|^nov|^dec"}},dobd:{type:"string",typeParams:{test:"^(([0]?[1-9])|([1-2][0-9])|(3[01]))$"}}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";function a(a){this.plugin=a;this.__fbEventsPlugin=1;return this}e.exports=a})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(g,i,c,d){var e={exports:{}};e.exports;(function(){"use strict";f.getFbeventsModules("SignalsParamList");var a=f.getFbeventsModules("SignalsFBEventsProxyState"),b=Object.prototype.toString,c=!("addEventListener"in i);function d(a,b){return typeof b==="function"&&a instanceof b}function j(a){return Array.isArray?Array.isArray(a):b.call(a)==="[object Array]"}function k(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var l=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function m(a,b,d){b=c?"on"+b:b;var e=c?a.attachEvent:a.addEventListener,f=c?a.detachEvent:a.removeEventListener,g=function c(){f&&f.call(a,b,c,!1),d()};e&&e.call(a,b,g,!1)}var n=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],q=p.length;function r(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":h(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)n.call(a,c)&&b.push(c);if(o)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;f':"iframe";var j=i.createElement(h);j.src="about:blank";j.id=e;j.name=e;f.appendChild(j);m(j,"load",function(){b.each(function(a,b){var c=i.createElement("input");c.name=decodeURIComponent(a);c.value=b;f.appendChild(c)}),m(j,"load",function(){f.parentNode&&f.parentNode.removeChild(f)}),f.submit()});if(d){var k=a.getShouldProxy();j.onerror=function(){a.setShouldProxy(!0),k||z(b,c,d)}}i.body.appendChild(f);return!0}function A(b,c,d){if(g.navigator&&g.navigator.sendBeacon){var e=g.navigator.sendBeacon(x(c,d),b.toFormData());if(d&&!e){e=a.getShouldProxy();a.setShouldProxy(!0);e||A(b,c,d)}return!0}return!1}function B(a){return a}j={isArray:j,isEmptyObject:u,isNumber:k,isInteger:l,isInstanceOf:d,keys:r,listenOnce:m,map:s,sendGET:y,sendPOST:z,sendBeacon:A,FBSet:w,each:function(a,b){s.call(this,a,b)},some:function(a,b){return t.call(a,b)},filter:function(a,b){return v.call(a,b)},castTo:B};e.exports=j})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsValidationUtils",function(){return function(f,g,h,i){var e={exports:{}};e.exports;(function(){"use strict";var a=/^[a-f0-9]{64}$/i,b=/^\s+|\s+$/g,c=/\s+/g,d=/[!\"#\$%&\'\(\)\*\+,\-\.\/:;<=>\?@ \[\\\]\^_`\{\|\}~\s]+/g,f=/\W+/g,g=/^1\(?\d{3}\)?\d{7}$/,h=/^47\d{8}$/,i=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function j(a){return typeof a==="string"?a.replace(b,""):""}function k(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"whitespace_only",e="";if(typeof a==="string")switch(b){case"whitespace_only":e=a.replace(c,"");break;case"whitespace_and_punctuation":e=a.replace(d,"");break;case"all_non_latin_alpha_numeric":e=a.replace(f,"");break}return e}function l(b){return typeof b==="string"&&a.test(b)}function m(a){a=String(a).replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return g.test(a);return a.startsWith("47")?h.test(a):i.test(a)}e.exports={looksLikeHashed:l,strip:k,trim:j,isInternationalPhoneNumber:m}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,g,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":h(a);return a==="number"||a==="boolean"||a==="string"}function f(a){this._params=[],this._piiTranslator=a}f.prototype.containsKey=function(a){for(var b=0;b0)for(var j=0;j1&&arguments[1]!==undefined?arguments[1]:{},e=null,f=d.caseInsensitive,g=d.lowercase,h=d.options,i=d.truncate,j=d.uppercase;if(a!=null&&h!=null&&Array.isArray(h)&&h.length)if(typeof a==="string"&&b(a))e=a;else{var k=c(String(a));g&&(k=k.toLowerCase());j&&(k=k.toUpperCase());i&&(k=k.substring(0,i));if(f){var l=k.toLowerCase();for(var m=0;m-1?k:null}return{normalizedValue:e}}e.exports=d})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPhoneNumberType",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=/^0*/,d=/[\-@#<>\'\",; ]|\(|\)|\+|[a-z]/gi,g=/^1\(?\d{3}\)?\d{7}$/,h=/^47\d{8}$/,i=/^\d{1,4}\(?\d{2,3}\)?\d{4,}$/;function j(a){a=a.replace(/[\-\s]+/g,"").replace(/^\+?0{0,2}/,"");if(a.startsWith("0"))return!1;if(a.startsWith("1"))return g.test(a);return a.startsWith("47")?h.test(a):i.test(a)}function k(a){var e=null;if(a!=null)if(b(a))e=a;else{a=String(a);j(a)&&(e=a.replace(d,"").replace(c,""))}return{normalizedValue:e}}e.exports=k})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsPostalCodeType",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.trim;function d(a){var d=null;if(a!=null&&typeof a==="string")if(b(a))d=a;else{a=c(String(a).toLowerCase().split("-",1)[0]);a.length>=2&&(d=a)}return{normalizedValue:d}}e.exports=d})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("normalizeSignalsFBEventsStringType",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsValidationUtils"),b=a.looksLikeHashed,c=a.strip;function d(a){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},e=null;if(a!=null)if(b(a)&&typeof a==="string")d.rejectHashed||(e=a);else{var f=String(a);d.strip!=null&&(f=c(f,d.strip));d.lowercase?f=f.toLowerCase():d.uppercase&&(f=f.toUpperCase());d.truncate&&(f=f.substring(0,d.truncate));d.test?e=new RegExp(d.test).test(f)?f:null:e=f}return{normalizedValue:e}}e.exports=d})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("signalsFBEventsMakeSafe",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsLogging");a=a.logError;function b(b){return typeof b!=="function"?b:function(){try{return b.apply(this,arguments)}catch(b){a(b)}return undefined}}e.exports=b})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("signalsFBEventsMakeSafeString",function(){return function(g,h,i,d){var e={exports:{}};e.exports;(function(){"use strict";var a=Object.assign||function(a){for(var b=1;b=0&&c.item(a)!==this);return a>-1}function A(a){if(!a||a.disabled||a===i.body)return!1;if(a.innerText&&a.innerText.length>o)return!1;a=typeof a.getBoundingClientRect==="function"&&a.getBoundingClientRect().height||a.offsetHeight;return a!=undefined&&a!=null&&a>p?!1:!0}function B(a,b){if(!a||a.disabled||a===i.body)return null;else if(!A(a))return null;else if(z(a,s))return y(a,b)?null:a;else return B(a.parentElement,b)}function C(a){if(a.nodeName==="BUTTON"){var b=a;b=b.innerText||b.value||""}else b=a.value||a.innerText||"";return b.substr(0,o)}function D(a,b){var c=a.name,d=a.id,e=a.tagName,f=a.value,g=a.innerText;e=e.toLowerCase();var h=a.classList&&a.classList.value?String(a.classList.value):"",i=a.querySelectorAll(s).length,j=null;a.tagName==="A"&&a.href?j=a.href:b&&b.action&&(j=b.action);typeof j!=="string"&&(j="");return{name:c,id:d,tag:e,classList:h,value:f,innerText:g,numChildButtons:i,destination:j}}function E(a,b){var c={},d={};c.name=a.name;c.id=a.id;c.tag=a.tagName.toLowerCase();Object.prototype.hasOwnProperty.call(a,"placeholder")&&(c.placeholder=a.placeholder);if(c.tag=="input"){c.inputType=a.getAttribute("type");if(b){b=l(c,a);b!=null&&(d=b)}}Object.prototype.hasOwnProperty.call(a,"value")&&a.value===""&&(c.valueMeaning="empty");return[c,d]}function F(b,c,d){var e=[],f={};if(!c)return[e,f];c=c.querySelectorAll(r);var h={};for(var i=0;iq)continue;if(j==b)continue;k=E(j,d);j=g(k,2);k=j[0];j=j[1];e.push(k);f=a({},f,j)}return[e,f]}function G(a){var b=a.form;if(b&&n(b,HTMLElement))return b;if(z(a,t))return null;b=a;while(b.nodeName!=="FORM"){a=b.parentElement;if(a&&n(a,HTMLElement))b=a;else return null}return b}function H(a){u.push(a)}function I(a,b,c,d){c=F(a,b,c);c=g(c,2);var e=c[0];c=c[1];var f={labelledEvent:d,buttonText:k(C(a)).safe,buttonFeatures:D(a,b),formFeatures:e};m(u,function(a){f[a.property]=a.method()});return[f,c]}function J(a){return function(b){var c=b.target;if(c&&n(c,HTMLElement)){var d=B(c,b.timeStamp);if(d){c=null;b=null;var e=a.getOptedInPixels("InferredEvents"),f=a.getOptedInPixels("AutomaticMatching");m(e,function(e){var h=I(d,G(d),f.indexOf(e)>=0);h=g(h,2);c=h[0];b=h[1];Object.keys(b).length>0&&(e.userData=b);a.trackSingleSystem("automatic",e,"SubscribedButtonClick",c)})}}}}e.exports=new b(function(a,b){a.once("fired",function(){var a=j(J(b));i.addEventListener?i.addEventListener("click",a,{capture:!0,passive:!0,once:!1}):h.attachEvent("onclick",a)})});e.exports.getForm=G;e.exports.getPayload=I;e.exports.addPayloadAnnotator=H;e.exports.isSaneButton=A;e.exports.BUTTON_SELECTORS=s})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.inferredevents");f.registerPlugin&&f.registerPlugin("fbevents.plugins.inferredevents",e.exports);f.ensureModuleRegistered("fbevents.plugins.inferredevents",function(){return e.exports})})()})(window,document,location,history); (function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a};f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("SignalsFBEventsLogging",function(){return function(g,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsUtils"),b=a.sendPOST,c=a.isInstanceOf,d=f.getFbeventsModules("SignalsParamList"),h=!1;function i(){h=!0}var j=!0;function k(){j=!1}a="console";var l="warn",m=g[a]&&g[a][l]?g[a][l].bind(g[a]):function(){},n=!1;function o(){n=!0}function p(a){if(n)return;m("[Facebook Pixel] - "+a)}var q="Facebook Pixel Error",r=g.postMessage?g.postMessage.bind(g):function(){},s={};function t(a){switch(a.type){case"FBQ_NO_METHOD_NAME":return"You must provide an argument to fbq().";case"INVALID_FBQ_METHOD":var b=a.method;return"\"fbq('"+b+"', ...);\" is not a valid fbq command.";case"INVALID_PIXEL_ID":b=a.pixelID;return"Invalid PixelID: "+b+".";case"DUPLICATE_PIXEL_ID":b=a.pixelID;return"Duplicate Pixel ID: "+b+".";case"SET_METADATA_ON_UNINITIALIZED_PIXEL_ID":b=a.metadataValue;var c=a.pixelID;return"Trying to set argument "+b+" for uninitialized Pixel ID "+c+".";case"CONFLICTING_VERSIONS":return"Multiple pixels with conflicting versions were detected on this page.";case"MULTIPLE_PIXELS":return"Multiple pixels were detected on this page.";case"UNSUPPORTED_METADATA_ARGUMENT":b=a.metadata;return"Unsupported metadata argument: "+b+".";case"REQUIRED_PARAM_MISSING":c=a.param;b=a.eventName;return"Required parameter '"+c+"' is missing for event '"+b+"'.";case"INVALID_PARAM":c=a.param;b=a.eventName;return"Parameter '"+c+"' is invalid for event '"+b+"'.";case"NONSTANDARD_EVENT":c=a.eventName;return"You are sending a non-standard event '"+c+"'. The preferred way to send these events is using trackCustom. See 'https://www.facebookmarketingdevelopers.com/pixels/up#sec-custom' for more information.";case"NEGATIVE_EVENT_PARAM":b=a.param;c=a.eventName;return"Parameter '"+b+"' is negative for event '"+c+"'.";case"PII_INVALID_TYPE":b=a.key_type;c=a.key_val;return"An invalid "+b+" was specified for '"+c+"'. This data will not be sent with any events for this Pixel.";case"INVALID_CONSENT_ACTION":b=a.action;return"\"fbq('"+b+"', ...);\" is not a valid fbq('consent', ...) action. Valid actions are 'await' and 'grant'.";default:w(new Error("INVALID_USER_ERROR - "+a.type+" - "+JSON.stringify(a)));return"Invalid User Error."}}function u(a,e){try{var f=Math.random(),h=g.fbq&&g.fbq._releaseSegment?g.fbq._releaseSegment:"unknown";if(j&&f<.01||h==="canary"){f=new d(null);f.append("p","pixel");f.append("v",g.fbq&&g.fbq.version?g.fbq.version:"unknown");f.append("e",a.toString());c(a,Error)&&(f.append("f",a.fileName),f.append("s",a.stackTrace||a.stack));f.append("ue",e?"1":"0");f.append("rs",h);b(f,"https://connect.facebook.net/log/error")}}catch(a){}}function v(a){var b=JSON.stringify(a);if(!Object.prototype.hasOwnProperty.call(s,b))s[b]=!0;else return;b=t(a);p(b);r({action:"FB_LOG",logType:q,logMessage:b},"*");u(new Error(b),!0)}function w(a){u(a,!1),h&&p(a.toString())}l={logError:w,logUserError:v,enableVerboseDebugLogging:i,disableAllLogging:o,disableSampling:k};e.exports=l})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(f,g,c,d){var e={exports:{}};e.exports;(function(){"use strict";function a(a){this.plugin=a;this.__fbEventsPlugin=1;return this}e.exports=a})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,g,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";f.getFbeventsModules("SignalsParamList");var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,h=!("addEventListener"in b);function i(a,b){return typeof b==="function"&&a instanceof b}function j(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function k(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var l=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function m(a,b,c){b=h?"on"+b:b;var d=h?a.attachEvent:a.addEventListener,e=h?a.detachEvent:a.removeEventListener,f=function d(){e&&e.call(a,b,d,!1),c()};d&&d.call(a,b,f,!1)}var n=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],q=p.length;function r(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":g(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)n.call(a,c)&&b.push(c);if(o)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;f':"iframe";var j=b.createElement(i);j.src="about:blank";j.id=g;j.name=g;h.appendChild(j);m(j,"load",function(){d.each(function(a,c){var d=b.createElement("input");d.name=decodeURIComponent(a);d.value=c;h.appendChild(d)}),m(j,"load",function(){h.parentNode&&h.parentNode.removeChild(h)}),h.submit()});if(f){var k=c.getShouldProxy();j.onerror=function(){c.setShouldProxy(!0),k||z(d,e,f)}}b.body.appendChild(h);return!0}function A(b,d,e){if(a.navigator&&a.navigator.sendBeacon){var f=a.navigator.sendBeacon(x(d,e),b.toFormData());if(e&&!f){f=c.getShouldProxy();c.setShouldProxy(!0);f||A(b,d,e)}return!0}return!1}function B(a){return a}j={isArray:j,isEmptyObject:u,isNumber:k,isInteger:l,isInstanceOf:i,keys:r,listenOnce:m,map:s,sendGET:y,sendPOST:z,sendBeacon:A,FBSet:w,each:function(a,b){s.call(this,a,b)},some:function(a,b){return t.call(a,b)},filter:function(a,b){return v.call(a,b)},castTo:B};e.exports=j})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":g(a);return a==="number"||a==="boolean"||a==="string"}function f(a){this._params=[],this._piiTranslator=a}f.prototype.containsKey=function(a){for(var b=0;b>>6&31,128|c&63):c<=65535?b+=String.fromCharCode(224|c>>>12&15,128|c>>>6&63,128|c&63):c<=2097151&&(b+=String.fromCharCode(240|c>>>18&7,128|c>>>12&63,128|c>>>6&63,128|c&63));return b};function b(a,b){return b>>>a|b<<32-a}function c(a,b,c){return a&b^~a&c}function d(a,b,c){return a&b^a&c^b&c}function f(a){return b(2,a)^b(13,a)^b(22,a)}function g(a){return b(6,a)^b(11,a)^b(25,a)}function h(a){return b(7,a)^b(18,a)^a>>>3}function i(a){return b(17,a)^b(19,a)^a>>>10}function j(a,b){return a[b&15]+=i(a[b+14&15])+a[b+9&15]+h(a[b+1&15])}var k=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),l=new Array(8),m=new Array(2),n=new Array(64),o=new Array(16),p="0123456789abcdef";function q(a,b){var c=(a&65535)+(b&65535);a=(a>>16)+(b>>16)+(c>>16);return a<<16|c&65535}function r(){m[0]=m[1]=0,l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225}function s(){var a,b,e,h,i,m,p,r,s,t;a=l[0];b=l[1];e=l[2];h=l[3];i=l[4];m=l[5];p=l[6];r=l[7];for(var u=0;u<16;u++)o[u]=n[(u<<2)+3]|n[(u<<2)+2]<<8|n[(u<<2)+1]<<16|n[u<<2]<<24;for(var u=0;u<64;u++)s=r+g(i)+c(i,m,p)+k[u],u<16?s+=o[u]:s+=j(o,u),t=f(a)+d(a,b,e),r=p,p=m,m=i,i=q(h,s),h=e,e=b,b=a,a=q(s,t);l[0]+=a;l[1]+=b;l[2]+=e;l[3]+=h;l[4]+=i;l[5]+=m;l[6]+=p;l[7]+=r}function t(a,b){var c,d,e=0;d=m[0]>>3&63;var f=b&63;(m[0]+=b<<3)>29;for(c=0;c+63>3&63;n[a++]=128;if(a<=56)for(var b=a;b<56;b++)n[b]=0;else{for(var b=a;b<64;b++)n[b]=0;s();for(var b=0;b<56;b++)n[b]=0}n[56]=m[1]>>>24&255;n[57]=m[1]>>>16&255;n[58]=m[1]>>>8&255;n[59]=m[1]&255;n[60]=m[0]>>>24&255;n[61]=m[0]>>>16&255;n[62]=m[0]>>>8&255;n[63]=m[0]&255;s()}function v(){var a=new String();for(var b=0;b<8;b++)for(var c=28;c>=0;c-=4)a+=p.charAt(l[b]>>>c&15);return a}function w(a){var b=0;for(var c=0;c<8;c++)for(var d=28;d>=0;d-=4)a[b++]=p.charCodeAt(l[c]>>>d&15)}function x(b,a){r();t(b,b.length);u();if(a)w(a);else return v()}function y(c,d,b){if(c===null||c===undefined)return null;d=typeof d=="undefined"?!0:d;d&&(c=a(c));return x(c,b)}e.exports=y})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEvents.plugins.identity",function(){return function(g,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsLogging"),b=a.logUserError;a=f.getFbeventsModules("SignalsFBEventsPlugin");var c=f.getFbeventsModules("sha256_with_dependencies_new"),d=/^[A-Fa-f0-9]{64}$|^[A-Fa-f0-9]{32}$/,g=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/i,h=/^\s+|\s+$/g;Object.prototype.hasOwnProperty;function i(a){return!!a&&g.test(a)}function j(a){return a.replace(h,"")}function k(a){return a.toLowerCase()}function l(a,c){if(a==="ud[em]"||a==="ud[email]"){var d=typeof c==="string"?j(k(c)):"";if(d==null||d=="")return null;if(!i(d)){a=/ud\[(em|email)\]/.exec(a)[1];b({type:"PII_INVALID_TYPE",key_type:"email address",key_val:a});throw new Error()}return d}return c}function m(a,b){if(b!=null)if(d.test(b))return b.toLowerCase();else{b=l(a,b);if(b!=null)return c(b)}return null}a=new a(function(a){a.piiTranslator=m});a.piiTranslator=m;e.exports=a})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.identity");f.registerPlugin&&f.registerPlugin("fbevents.plugins.identity",e.exports);f.ensureModuleRegistered("fbevents.plugins.identity",function(){return e.exports})})()})(window,document,location,history); (function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a};f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(f,g,c,d){var e={exports:{}};e.exports;(function(){"use strict";function a(a){this.plugin=a;this.__fbEventsPlugin=1;return this}e.exports=a})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,g,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";f.getFbeventsModules("SignalsParamList");var c=f.getFbeventsModules("SignalsFBEventsProxyState"),d=Object.prototype.toString,h=!("addEventListener"in b);function i(a,b){return typeof b==="function"&&a instanceof b}function j(a){return Array.isArray?Array.isArray(a):d.call(a)==="[object Array]"}function k(a){return typeof a==="number"||typeof a==="string"&&/^\d+$/.test(a)}var l=Number.isInteger||function(a){return typeof a==="number"&&isFinite(a)&&Math.floor(a)===a};function m(a,b,c){b=h?"on"+b:b;var d=h?a.attachEvent:a.addEventListener,e=h?a.detachEvent:a.removeEventListener,f=function d(){e&&e.call(a,b,d,!1),c()};d&&d.call(a,b,f,!1)}var n=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],q=p.length;function r(a){if(Object.keys)return Object.keys(a);if((typeof a==="undefined"?"undefined":g(a))!=="object"&&(typeof a!=="function"||a===null))throw new TypeError("Object.keys called on non-object");var b=[];for(var c in a)n.call(a,c)&&b.push(c);if(o)for(var d=0;d>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;f':"iframe";var j=b.createElement(i);j.src="about:blank";j.id=g;j.name=g;h.appendChild(j);m(j,"load",function(){d.each(function(a,c){var d=b.createElement("input");d.name=decodeURIComponent(a);d.value=c;h.appendChild(d)}),m(j,"load",function(){h.parentNode&&h.parentNode.removeChild(h)}),h.submit()});if(f){var k=c.getShouldProxy();j.onerror=function(){c.setShouldProxy(!0),k||z(d,e,f)}}b.body.appendChild(h);return!0}function A(b,d,e){if(a.navigator&&a.navigator.sendBeacon){var f=a.navigator.sendBeacon(x(d,e),b.toFormData());if(e&&!f){f=c.getShouldProxy();c.setShouldProxy(!0);f||A(b,d,e)}return!0}return!1}function B(a){return a}j={isArray:j,isEmptyObject:u,isNumber:k,isInteger:l,isInstanceOf:i,keys:r,listenOnce:m,map:s,sendGET:y,sendPOST:z,sendBeacon:A,FBSet:w,each:function(a,b){s.call(this,a,b)},some:function(a,b){return t.call(a,b)},filter:function(a,b){return v.call(a,b)},castTo:B};e.exports=j})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsParamList",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a="deep",b="shallow";function c(a){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(a);else return JSON.stringify(a)}function d(a){if(a===null||a===undefined)return!0;a=typeof a==="undefined"?"undefined":g(a);return a==="number"||a==="boolean"||a==="string"}function f(a){this._params=[],this._piiTranslator=a}f.prototype.containsKey=function(a){for(var b=0;bj?a.substr(0,j):a}function m(a){var b=a.tagName.toLowerCase(),c=undefined;switch(b){case"meta":c=a.getAttribute("content");break;case"audio":case"embed":case"iframe":case"img":case"source":case"track":case"video":c=a.getAttribute("src");break;case"a":case"area":case"link":c=a.getAttribute("href");break;case"object":c=a.getAttribute("data");break;case"data":case"meter":c=a.getAttribute("value");break;case"time":c=a.getAttribute("datetime");break;default:c=a.innerText;break}return typeof c==="string"?l(c):""}function n(){var a=b.querySelectorAll("[itemscope]"),c=[],d=new i();for(var e=0;e=0;e--){var f=a[e],g=f.getAttribute("itemtype");if(typeof g!=="string"||g==="")continue;var h={},j=f.querySelectorAll("[itemprop]");for(var k=0;k=0;f--)if(l[f].scope.contains(g)){l[f].schema.subscopes.push(h);break}else l.pop();l.length===0&&n.push(h);l.push({scope:g,schema:h})}return n}function o(){var a=new i(["og","product","music","video","article","book","profile","website","twitter"]),c={},d=b.querySelectorAll("meta[property]");for(var e=0;e2&&arguments[2]!==undefined?arguments[2]:1,d=n(),e=o(),f=q(),i=b.getExperiments().get("logDataLayer"),j=i&&i.isInExperimentGroup,l=j?g.dataLayer||[]:[];if(d.length===0&&h(e).length===0&&c>0){setTimeout(function(){return r(a,b,c-1)},k);return}else if(d.length>0||h(e).length>0||h(f).length>0||l.length&&l.length>0){var m={"Schema.org":d,OpenGraph:e,Meta:f,DataLayer:l};b.trackSingleSystem("automatic",a,"Microdata",m)}}e.exports=new a(function(a,b){var c={};a.on("fired",function(a,e){var f=e.get("id");if(Object.prototype.hasOwnProperty.call(c,f))return;a=d(b.getOptedInPixels("Microdata"),function(a){return a.id===f});a&&(c[f]=!0,setTimeout(function(){r(f,b)},500))})})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.microdata");f.registerPlugin&&f.registerPlugin("fbevents.plugins.microdata",e.exports);f.ensureModuleRegistered("fbevents.plugins.microdata",function(){return e.exports})})()})(window,document,location,history); fbq.registerPlugin("846721642067046", {__fbEventsPlugin: 1, plugin: function(fbq, instance) { fbq.loadPlugin("inferredevents"); fbq.loadPlugin("identity"); instance.optIn("846721642067046", "InferredEvents", true); fbq.loadPlugin("microdata"); fbq.loadPlugin("identity"); instance.optIn("846721642067046", "Microdata", true);instance.configLoaded("846721642067046"); }});