/**
* 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:{}},f=e.exports;(function(){var g=a.fbq;g.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var i=a.postMessage||function(){};if(!g){i({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");if("error"in console)console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return false}return true}())return;"use strict";var h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof i};if(!g.__fbeventsModules){g.__fbeventsModules={};g.__fbeventsResolvedModules={};g.getFbeventsModules=function(i){if(!g.__fbeventsResolvedModules[i])g.__fbeventsResolvedModules[i]=g.__fbeventsModules[i]();return g.__fbeventsResolvedModules[i]};g.fbIsModuleLoaded=function(i){return!!g.__fbeventsModules[i]};g.ensureModuleRegistered=function(i,e){if(!g.fbIsModuleLoaded(i))g.__fbeventsModules[i]=e}}g.ensureModuleRegistered("SignalsFBEventsLogging",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var i=g.getFbeventsModules("SignalsFBEventsUtils"),j=i.sendPOST,k=i.isInstanceOf,l=g.getFbeventsModules("SignalsParamList"),m=false;function n(){m=true}var o=true;function p(){o=false}var q="console",r="warn",s=a[q]?a[q][r].bind(a[q]):function(){},t=false;function u(){t=true}function v(E){if(t)return;s("[Facebook Pixel] - "+E)}var w="Facebook Pixel Error",x=a.postMessage?a.postMessage.bind(a):function(){},y={};function z(E){switch(E.type){case"FBQ_NO_METHOD_NAME":return"You must provide an argument to fbq().";case"INVALID_FBQ_METHOD":var F=E.method;return"\"fbq('"+F+"', ...);\" is not a valid fbq command.";case"INVALID_PIXEL_ID":var G=E.pixelID;return"Invalid PixelID: "+G+".";case"DUPLICATE_PIXEL_ID":var H=E.pixelID;return"Duplicate Pixel ID: "+H+".";case"SET_METADATA_ON_UNINITIALIZED_PIXEL_ID":var I=E.metadataValue,J=E.pixelID;return"Trying to set argument "+I+" for uninitialized Pixel ID "+J+".";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":var K=E.metadata;return"Unsupported metadata argument: "+K+".";case"REQUIRED_PARAM_MISSING":var L=E.param,M=E.eventName;return"Required parameter '"+L+"' is missing for event '"+M+"'.";case"INVALID_PARAM":var N=E.param,O=E.eventName;return"Parameter '"+N+"' is invalid for event '"+O+"'.";case"NONSTANDARD_EVENT":var P=E.eventName;return"You are sending a non-standard event '"+P+"'. 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":var Q=E.param,R=E.eventName;return"Parameter '"+Q+"' is negative for event '"+R+"'.";case"PII_INVALID_TYPE":var S=E.key_type,T=E.key_val;return"An invalid "+S+" was specified for '"+T+"'. This data will not be sent with any events for this Pixel.";default:C(new Error("INVALID_USER_ERROR - "+E.type+" - "+JSON.stringify(E)));return"Invalid User Error."}}function A(E,F){try{var G=Math.random(),H=a.fbq&&a.fbq._releaseSegment?a.fbq._releaseSegment:"unknown";if(o&&G<.01||H==="canary"){var I=new l(null);I.append("p","pixel");I.append("v",a.fbq&&a.fbq.version?a.fbq.version:"unknown");I.append("e",E.toString());if(k(E,Error)){I.append("f",E.fileName);I.append("s",E.stackTrace||E.stack)}I.append("ue",F?"1":"0");I.append("rs",H);j(I,"https://connect.facebook.net/log/error")}}catch(J){}}function B(E){var F=JSON.stringify(E);if(!Object.prototype.hasOwnProperty.call(y,F))y[F]=true;else return;var G=z(E);v(G);x({action:"FB_LOG",logType:w,logMessage:G},"*");A(new Error(G),true)}function C(E){A(E,false);if(m)v(E.toString())}var D={logError:C,logUserError:B,enableVerboseDebugLogging:n,disableAllLogging:u,disableSampling:p};e.exports=D})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";function i(j){this.plugin=j;this.__fbEventsPlugin=1;return this}e.exports=i})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var i=false;e.exports={getShouldProxy:function j(){return i},setShouldProxy:function j(k){i=k}}})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var i=g.getFbeventsModules("SignalsParamList"),j=g.getFbeventsModules("SignalsFBEventsProxyState"),k=Object.prototype.toString,l=!("addEventListener"in b);function m(G,H){return typeof H==="function"&&G instanceof H}function n(G){return Array.isArray?Array.isArray(G):k.call(G)==="[object Array]"}function o(G){return typeof G==="number"||typeof G==="string"&&/^\d+$/.test(G)}var p=Number.isInteger||function(G){return typeof G==="number"&&isFinite(G)&&Math.floor(G)===G};function q(G,H,I){H=l?"on"+H:H;var J=l?G.attachEvent:G.addEventListener,K=l?G.detachEvent:G.removeEventListener,L=function L(){if(K)K.call(G,H,L,false);I()};if(J)J.call(G,H,L,false)}var r=Object.prototype.hasOwnProperty,s=!{toString:null}.propertyIsEnumerable("toString"),t=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=t.length;function v(G){if(Object.keys)return Object.keys(G);if((typeof G==="undefined"?"undefined":h(G))!=="object"&&(typeof G!=="function"||G===null))throw new TypeError("Object.keys called on non-object");var H=[];for(var I in G)if(r.call(G,I))H.push(I);if(s)for(var J=0;J<u;J++)if(r.call(G,t[J]))H.push(t[J]);return H}function w(G,H){if(Array.prototype.map)return Array.prototype.map.call(G,H);var I=void 0,J=void 0;if(G==null)throw new TypeError(" array is null or not defined");var K=Object(G),L=K.length>>>0;if(typeof H!=="function")throw new TypeError(H+" is not a function");I=new Array(L);J=0;while(J<L){var M,N;if(J in K){M=K[J];N=H.call(null,M,J,K);I[J]=N}J++}return I}function x(G){if(this==null)throw new TypeError("Array.prototype.some called on null or undefined");if(typeof G!=="function")throw new TypeError();var H=Object(this),I=H.length>>>0,J=arguments.length>=2?arguments[1]:void 0;for(var K=0;K<I;K++)if(K in H&&G.call(J,H[K],K,H))return true;return false}function y(G){return v(G).length===0}function z(G){if(this===void 0||this===null)throw new TypeError();var H=Object(this),I=H.length>>>0;if(typeof G!=="function")throw new TypeError();var J=[],K=arguments.length>=2?arguments[1]:void 0;for(var L=0;L<I;L++)if(L in H){var M=H[L];if(G.call(K,M,L,H))J.push(M)}return J}function A(G){this.items=G==null?[]:G}A.prototype.has=function(G){return x.call(this.items,function(H){return H===G})};A.prototype.add=function(G){this.items.push(G)};function B(G,H){return H&&j.getShouldProxy()?H:G}function C(G,H,I){var J=G.toQueryString(),K=B(H,I)+"?"+J;if(K.length<2048){var L=new Image();if(I){var M=j.getShouldProxy();L.onerror=function(){j.setShouldProxy(true);if(!M)C(G,H,I)}}L.src=K;return true}return false}function D(G,H,I){var J="fb"+Math.random().toString().replace(".",""),K=b.createElement("form");K.method="post";K.action=B(H,I);K.target=J;K.acceptCharset="utf-8";K.style.display="none";var L=!!(a.attachEvent&&!a.addEventListener),M=L?'<iframe name="'+J+'">':"iframe",N=b.createElement(M);N.src="about:blank";N.id=J;N.name=J;K.appendChild(N);q(N,"load",function(){G.each(function(J,P){var Q=b.createElement("input");Q.name=J;Q.value=P;K.appendChild(Q)});q(N,"load",function(){if(K.parentNode)K.parentNode.removeChild(K)});K.submit()});if(I){var O=j.getShouldProxy();N.onerror=function(){j.setShouldProxy(true);if(!O)D(G,H,I)}}b.body.appendChild(K);return true}function E(G,H,I){if(a.navigator&&a.navigator.sendBeacon){var J=a.navigator.sendBeacon(B(H,I),G.toFormData());if(I&&!J){var K=j.getShouldProxy();j.setShouldProxy(true);if(!K)E(G,H,I)}return true}return false}var F={isArray:n,isEmptyObject:y,isNumber:o,isInteger:p,isInstanceOf:m,keys:v,listenOnce:q,map:w,sendGET:C,sendPOST:D,sendBeacon:E,FBSet:A,each:function G(H,I){w.call(this,H,I)},some:function G(H,I){return x.call(H,I)},filter:function G(H,I){return z.call(H,I)}};e.exports=F})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsParamList",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var i="deep",j="shallow";function k(n){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(n);else return JSON.stringify(n)}function l(n){if(n===null||n===undefined)return true;var o=typeof n==="undefined"?"undefined":h(n);return o==="number"||o==="boolean"||o==="string"}function m(n){this._params=[];this._piiTranslator=n}m.prototype.addRange=function(n){var o=this;n.each(function(p,q){return o.append(p,q)})};m.prototype.containsKey=function(n){for(var o=0;o<this._params.length;o++)if(this._params[o].name===n)return true;return false};m.prototype.get=function(n){var o=n;for(var p=0;p<this._params.length;p++)if(this._params[p].name===o)return this._params[p].value;return null};m.prototype.getAllParams=function(){return this._params};m.prototype.append=function(n,o,p){this._append(encodeURIComponent(n),o,i,p);return this};m.prototype.appendHash=function(n,o){for(var p in n)if(Object.prototype.hasOwnProperty.call(n,p))this._append(p,n[p],i,o);return this};m.fromHash=function(n,o){return new m(o).appendHash(n)};m.prototype._append=function(n,o,p,q){if(l(o))this._appendPrimitive(n,o,q);else if(p===i)this._appendObject(n,o,q);else this._appendPrimitive(n,k(o),q)};m.prototype._translateValue=function(n,o,p){if(typeof o==="boolean")return o?"true":"false";if(!p)return""+o;if(!this._piiTranslator)throw new Error();return this._piiTranslator(n,""+o)};m.prototype._appendPrimitive=function(n,o,p){if(o!=null){var q=this._translateValue(n,o,p);if(q!=null)this._params.push({name:n,value:q})}};m.prototype._appendObject=function(n,o,p){var q=null;for(var r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var s=n+"["+encodeURIComponent(r)+"]";try{this._append(s,o[r],j,p)}catch(t){if(q==null)q=t}}if(q!=null)throw q};m.prototype.each=function(n){for(var o=0;o<this._params.length;o++){var p=this._params[o],q=p.name,r=p.value;n(q,r)}};m.prototype.toQueryString=function(){var n=[];this.each(function(o,p){n.push(o+"="+encodeURIComponent(p))});return n.join("&")};m.prototype.toFormData=function(){var n=new FormData();this.each(function(o,p){n.append(o,p)});return n};e.exports=m})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("sha256_with_dependencies_new",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){var i=function H(I){var J="",K,L;for(var M=0;M<I.length;M++){K=I.charCodeAt(M);L=M+1<I.length?I.charCodeAt(M+1):0;if(55296<=K&&K<=56319&&56320<=L&&L<=57343){K=65536+((K&1023)<<10)+(L&1023);M++}if(K<=127)J+=String.fromCharCode(K);else if(K<=2047)J+=String.fromCharCode(192|K>>>6&31,128|K&63);else if(K<=65535)J+=String.fromCharCode(224|K>>>12&15,128|K>>>6&63,128|K&63);else if(K<=2097151)J+=String.fromCharCode(240|K>>>18&7,128|K>>>12&63,128|K>>>6&63,128|K&63)}return J};function j(H,I){return I>>>H|I<<32-H}function k(H,I,J){return H&I^~H&J}function l(H,I,J){return H&I^H&J^I&J}function m(H){return j(2,H)^j(13,H)^j(22,H)}function n(H){return j(6,H)^j(11,H)^j(25,H)}function o(H){return j(7,H)^j(18,H)^H>>>3}function p(H){return j(17,H)^j(19,H)^H>>>10}function q(v,H){return v[H&15]+=p(v[H+14&15])+v[H+9&15]+o(v[H+1&15])}var r=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),s=new Array(8),t=new Array(2),u=new Array(64),v=new Array(16),w="0123456789abcdef";function x(H,I){var J=(H&65535)+(I&65535),K=(H>>16)+(I>>16)+(J>>16);return K<<16|J&65535}function y(){t[0]=t[1]=0;s[0]=1779033703;s[1]=3144134277;s[2]=1013904242;s[3]=2773480762;s[4]=1359893119;s[5]=2600822924;s[6]=528734635;s[7]=1541459225}function z(){var H,I,J,K,L,M,N,O,P,Q;H=s[0];I=s[1];J=s[2];K=s[3];L=s[4];M=s[5];N=s[6];O=s[7];for(var R=0;R<16;R++)v[R]=u[(R<<2)+3]|u[(R<<2)+2]<<8|u[(R<<2)+1]<<16|u[R<<2]<<24;for(var S=0;S<64;S++){P=O+n(L)+k(L,M,N)+r[S];if(S<16)P+=v[S];else P+=q(v,S);Q=m(H)+l(H,I,J);O=N;N=M;M=L;L=x(K,P);K=J;J=I;I=H;H=x(P,Q)}s[0]+=H;s[1]+=I;s[2]+=J;s[3]+=K;s[4]+=L;s[5]+=M;s[6]+=N;s[7]+=O}function A(H,I){var J,K,L=0;K=t[0]>>3&63;var M=I&63;if((t[0]+=I<<3)<I<<3)t[1]++;t[1]+=I>>29;for(J=0;J+63<I;J+=64){for(var N=K;N<64;N++)u[N]=H.charCodeAt(L++);z();K=0}for(var N=0;N<M;N++)u[N]=H.charCodeAt(L++)}function B(){var H=t[0]>>3&63;u[H++]=128;if(H<=56)for(var I=H;I<56;I++)u[I]=0;else{for(var I=H;I<64;I++)u[I]=0;z();for(var I=0;I<56;I++)u[I]=0}u[56]=t[1]>>>24&255;u[57]=t[1]>>>16&255;u[58]=t[1]>>>8&255;u[59]=t[1]&255;u[60]=t[0]>>>24&255;u[61]=t[0]>>>16&255;u[62]=t[0]>>>8&255;u[63]=t[0]&255;z()}function C(){var H=0,I=new Array(32);for(var J=0;J<8;J++){I[H++]=s[J]>>>24&255;I[H++]=s[J]>>>16&255;I[H++]=s[J]>>>8&255;I[H++]=s[J]&255}return I}function D(){var H=new String();for(var I=0;I<8;I++)for(var J=28;J>=0;J-=4)H+=w.charAt(s[I]>>>J&15);return H}function E(u){var H=0;for(var I=0;I<8;I++)for(var J=28;J>=0;J-=4)u[H++]=w.charCodeAt(s[I]>>>J&15)}function F(H,u){y();A(H,H.length);B();if(u)E(u);else return D()}function G(H,I,u){if(H===null||H===undefined)return null;I=typeof I=="undefined"?true:I;if(I)H=i(H);return F(H,u)}e.exports=G})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEvents.plugins.identity",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var i=g.getFbeventsModules("SignalsFBEventsLogging"),j=i.logUserError,k=g.getFbeventsModules("SignalsFBEventsPlugin"),l=g.getFbeventsModules("sha256_with_dependencies_new"),m=/^[A-Fa-f0-9]{64}$|^[A-Fa-f0-9]{32}$/,n=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/i,o=/^\s+|\s+$/g,p=Object.prototype.hasOwnProperty;function q(w){return!!w&&n.test(w)}function r(w){return w.replace(o,"")}function s(w){return w.toLowerCase()}function t(w,x){if(w==="ud[em]"||w==="ud[email]"){var y=typeof x==="string"?r(s(x)):"";if(y==null||y=="")return null;if(!q(y)){var z=/ud\[(em|email)\]/.exec(w)[1];j({type:"PII_INVALID_TYPE",key_type:"email address",key_val:z});throw new Error()}return y}return x}function u(w,x){if(x!=null)if(m.test(x))return x.toLowerCase();else{x=t(w,x);if(x!=null)return l(x)}return null}var v=new k(function(g){g.piiTranslator=u});v.piiTranslator=u;e.exports=v})();return e.exports}(a,b,c,d)});e.exports=g.getFbeventsModules("SignalsFBEvents.plugins.identity");if(g.registerPlugin)g.registerPlugin("fbevents.plugins.identity",e.exports);g.ensureModuleRegistered("fbevents.plugins.identity",function(){return e.exports})})()})(window,document,location,history);