var e={2(e){e.exports=window.Wistia.Preact},4(e,t,n){n.d(t,{getDeep:()=>o,isArray:()=>u,setDeep:()=>a,unsetDeep:()=>c});n(5);var i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},r=Array.prototype.slice,o=function(e,t,n){t="string"==typeof t?t.split("."):r.call(t);for(var o,a=e;null!=e&&t.length;){var s=t.shift();void 0!==e[s]&&(f(e[s])||u(e[s]))||!n||(0===s?(e=a[o]=[])[s]={}:e[s]={}),a=e,o=s,e=i(e,s)?e[s]:void 0}return e},a=function(e,t,n){return s(e,t,n,!0)},s=function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=(t="string"==typeof t?t.split("."):r.call(t)).pop();null!=(e=o(e,t,!0))&&(f(e)||u(e))&&null!=a&&(i&&null==n?delete e[a]:e[a]=n)},c=function(e,t){return a(e,t)},l=/^\s*function Array()/,u=function(e){return null!=e&&e.push&&l.test(e.constructor)},d=/^\s*function Object()/,f=function(e){return null!=e&&"object"==typeof e&&d.test(e.constructor)}},5(e,t,n){},10(e,t,n){var i;n.d(t,{root:()=>r});try{(i=self).self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(e){i="undefined"!=typeof globalThis?globalThis:window}var r=i},12(e,t,n){n.d(t,{wlog:()=>p});var i=n(13),r=n(16);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var s={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},c=function(){},l=function(e){var t=this;null==e&&(e={});return t.error=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(0,n)},t.warn=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(1,n)},t.notice=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(1,n)},t.info=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(3,n)},t.debug=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(4,n)},t.ctx=e,t.ctx.initializedAt||t.reset(),t},u=l.prototype;u.reset=function(){this.ctx.level=0,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},u.setLevel=function(e){var t=this.logFunc(3);null!=s[e]?(this.ctx.level=s[e],t('Log level set to "'.concat(e,'" (').concat(s[e],")"))):t('Unknown log level "'.concat(e,'"'))},u.setGrep=function(e){this.ctx.grep=e},u.setGrepv=function(e){this.ctx.grepv=e},u.first1000LogLines=function(){return this.ctx.first1000LogLines},u.last1000LogLines=function(){return this.ctx.last1000LogLines},u.matchedGrep=function(e){var t=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],i=0;i<e.length;i++)try{var r=e[i];n.push(r.toString&&r.toString())}catch(e){n.push("")}var o=n.join(" "),a=!this.ctx.grep||o.match(this.ctx.grep),s=!this.ctx.grepv||!o.match(this.ctx.grepv);t=a&&s}else t=!0;return t},u.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},u.messagesToLogLine=function(e,t,n){var i,r=[e,t];r=r.concat(n);try{(i=r.join(" ")||"").length>200&&(i=i.slice(0,200))}catch(e){i="could not serialize"}return i},u.persistLine=function(e){this.ctx.first1000LogLines.length<1e3?this.ctx.first1000LogLines.push(e):(this.ctx.last1000LogLines.length>=1e3&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(e))},u.log=function(e,t){var n,r=e<=this.ctx.level,a=e<4,s=(r||a)&&this.matchedGrep(t);if(0===e&&(0,i.globalTrigger)("problem",{type:"error-logged",data:{messages:t}}),s&&(r||a)&&(n=this.now()),a&&s){var c=this.messagesToLogLine(e,n,t);this.persistLine(c)}if(r&&s){var l,u=this.logFunc(e);1===t.length&&(l=t[0])instanceof Error?(u(l.message),l.stack&&u(l.stack)):u.apply(void 0,o(t))}};var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error.apply(console,t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn.apply(console,t)},v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.info.apply(console,t)},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug.apply(console,t)},g=function(e){console.log.apply(console,e)};u.logFunc=function(e){return null==e&&(e=this.level),console?(0===e?t=d:1===e?t=f:3===e?t=v:4===e&&(t=h),t||(t=g),"function"!=typeof t&&(this.noConsoleLog=!0,t=c),t):c;var t},u.maybePrefix=function(e,t){if(e){if("function"==typeof e)try{e=e()}catch(t){e='prefix err "'.concat(t.message,'"')}return e instanceof Array?e.concat(t):[e].concat(t)}return t},u.getPrefixedFunctions=function(e){var t=this;return{log:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(0,t.maybePrefix(e,i))},error:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(0,t.maybePrefix(e,i))},warn:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(1,t.maybePrefix(e,i))},notice:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(1,t.maybePrefix(e,i))},info:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(3,t.maybePrefix(e,i))},debug:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(4,t.maybePrefix(e,i))}}},r.Wistia&&null==r.Wistia.wlogCtx&&(r.Wistia.wlogCtx={});var p=new l(r.Wistia.wlogCtx)},13(e,t,n){n.d(t,{globalOn:()=>o,globalTrigger:()=>a});var i=n(14),r=n(16);(0,i.makeWbindable)(r.Wistia);r.Wistia.bind.bind(r.Wistia);var o=r.Wistia.on.bind(r.Wistia),a=(r.Wistia.off.bind(r.Wistia),r.Wistia.rebind.bind(r.Wistia),r.Wistia.trigger.bind(r.Wistia));r.Wistia.unbind.bind(r.Wistia)},14(e,t,n){n.d(t,{makeWbindable:()=>a});var i=n(15),r=n(16),o=n(19);r.Wistia.bindable||(r.Wistia.EventShepherdManager||(r.Wistia.EventShepherdManager={}),r.Wistia.bindable={bind:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),this;if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]&&(r.Wistia.EventShepherdManager[a]=new o.EventShepherd),r.Wistia.EventShepherdManager[a].addListener(e,n,t),this}if(t)return i.bind.call(this,e,t),this;r.Wistia.warn&&r.Wistia.warn(this.constructor.name,"bind","falsey value passed in as callback:",t)},unbind:function(e,t){if("crosstime"===e&&this.crossTime)return t?this.crossTime.removeBinding(arguments[1],arguments[2]):this.crossTime.removeAllBindings(),this;if("betweentimes"===e&&this.betweenTimes)return t?this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]):this.betweenTimes.removeAllBindings(),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]||r.Wistia.EventShepherdManager[a].removeListener(e,n,t),this}return t?i.unbind.call(this,e,t):this._bindings&&(this._bindings[e]=[]),this._bindings&&this._bindings[e]&&!this._bindings[e].length&&(this._bindings[e]=null,delete this._bindings[e]),this},on:function(e,t){var n=arguments,a=this;if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),function(){a.crossTime.removeBinding(n[1],n[2])};if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),function(){a.betweenTimes.removeBinding(n[1],n[2],n[3])};var c=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&c){var l=s(c);return void 0===r.Wistia.EventShepherdManager[l]&&(r.Wistia.EventShepherdManager[l]=new o.EventShepherd(c)),r.Wistia.EventShepherdManager[l].addListener(e,c,t),function(){r.Wistia.EventShepherdManager[l].removeListener(e,c,t)}}return i.bind.call(this,e,t)},off:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.removeBinding(arguments[1],arguments[2]);if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]);var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]?function(){}:r.Wistia.EventShepherdManager[a].removeListener(e,n,t)}return i.unbind.call(this,e,t)},rebind:function(e,t){return this.unbind(e,t),this.bind(e,t),this},trigger:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=i.trigger).call.apply(t,[this,e].concat(r)),this},bindNamed:function(){return i.bindNamed.apply(this,arguments)},unbindNamed:function(){return i.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return i.unbindAllInNamespace.apply(this,arguments)}});var a=function(e){for(var t in r.Wistia.bindable){var n=r.Wistia.bindable[t];e[t]||(e[t]=n)}},s=function(e){return null!=e&&e.mediaId?e.mediaId:null!=e&&e.id?e.id:void 0}},15(e,t,n){n.d(t,{bind:()=>l,bindNamed:()=>g,trigger:()=>f,unbind:()=>u,unbindAllInNamespace:()=>b,unbindNamed:()=>p});var i=n(16),r=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var s,c=Array.prototype.slice,l=function(e,t){var n=this;return n._bindings||(n._bindings={}),n._bindings[e]||(n._bindings[e]=[]),n._bindings[e].push(t),function(){n.unbind(e,t)}},u=function(e,t){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var n=[],i=0;i<this._bindings[e].length;i++){var r=this._bindings[e][i];r!==t&&n.push(r)}this._bindings[e]=n},d=function(e,t){return this.unbind(e,t),this.bind(e,t),{event:e,fn:t}},f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._bindings&&null!=this._bindings.all&&v.apply(this,["all",e].concat(n)),v.apply(this,[e].concat(n))},v=function(e){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var t,n=c.call(arguments,1),r=o(this._bindings[e]),a=0;a<r.length;a++){var s=r[a];try{s.apply(this,n)===this.unbind&&(null==t&&(t=[]),t.push({event:e,fn:s}))}catch(e){if(this._throwTriggerErrors)throw e;i.Wistia.error&&i.Wistia.error(e)}}if(t)for(var l=0;l<t.length;l++){var u=t[l];this.unbind(u.event,u.fn)}return this},h=function(e,t){null==e._namedBindings&&(e._namedBindings={}),null==e._namedBindings[t]&&(e._namedBindings[t]={})},g=function(e,t,n,i){return this.unbindNamed(e,t),function(e,t,n,i,r){h(e,t),e._namedBindings[t][n]={event:i,fn:r}}(this,e,t,n,i),this.bind(n,i),function(){this.unbindNamed(e,t)}},p=function(e,t){h(this,e);var n=function(e,t,n){return h(e,t),e._namedBindings[t][n]}(this,e,t);if(n){var i=n.event,r=n.fn;this.unbind(i,r)}var o=this._namedBindings;return delete o[e][t],m(o[e])&&delete o[e],this},b=function(e){var t=this._namedBindings&&this._namedBindings[e];if(null==t)return this;for(var n in t)r(t,n)&&this.unbindNamed(e,n)},m=function(e){for(var t in e)if(r(e,t))return!1;return!0};(s=function(){}.prototype).bind=l,s.unbind=u,s.on=l,s.off=u,s.rebind=d,s.trigger=f,s.bindNamed=g,s.unbindNamed=p,s.unbindAllInNamespace=b},16(e,t,n){n.d(t,{Wistia:()=>K});var i,r,o,a,s,c,l,u,d,f,v,h,g,p,b,m,y,w,W,E,P,S,_,k,O,j,T,A,L,x,M,N,D,I,C,B,F,R=n(2),z=n(17),q=n(18),H=n(10);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null!==(i=H.root.Wistia)&&void 0!==i||(H.root.Wistia={}),null!==(o=(r=H.root.Wistia).Preact)&&void 0!==o||(r.Preact=U(U({},R),{},{hooks:z,compat:q})),null!==(s=(a=H.root.Wistia)._destructors)&&void 0!==s||(a._destructors={}),null!==(l=(c=H.root.Wistia)._initializers)&&void 0!==l||(c._initializers={}),null!==(d=(u=H.root.Wistia)._remoteData)&&void 0!==d||(u._remoteData=new Map),null!==(v=(f=H.root.Wistia).api)&&void 0!==v||(f.api=function(){return console.error("Accessed Wistia.api() before it was initialized"),null}),null!==(g=(h=H.root.Wistia).defineControl)&&void 0!==g||(h.defineControl=function(){return console.error("Accessed Wistia.defineControl() before it was initialized"),null}),null!==(b=(p=H.root.Wistia).EventShepherdManager)&&void 0!==b||(p.EventShepherdManager={}),null!==(y=(m=H.root.Wistia).mixin)&&void 0!==y||(m.mixin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){(function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})(t,n)&&(e[n]=t[n])}))}),null!==(W=(w=H.root.Wistia).playlistMethods)&&void 0!==W||(w.playlistMethods=new Map),null!==(P=(E=H.root.Wistia).PublicApi)&&void 0!==P||(E.PublicApi=null),null!==(_=(S=H.root.Wistia).uncacheMedia)&&void 0!==_||(S.uncacheMedia=function(){return console.error("Accessed Wistia.uncacheMedia() before it was initialized"),null}),null!==(O=(k=H.root.Wistia).VisitorKey)&&void 0!==O||(k.VisitorKey=null),null!==(T=(j=H.root.Wistia).visitorKey)&&void 0!==T||(j.visitorKey=null),null!==(L=(A=H.root.Wistia).wistia)&&void 0!==L||(A.wistia=void 0),null!==(M=(x=H.root.Wistia)._liveStreamEventDataPromises)&&void 0!==M||(x._liveStreamEventDataPromises={}),null!==(D=(N=H.root.Wistia)._mediaDataPromises)&&void 0!==D||(N._mediaDataPromises={}),null!==(C=(I=H.root.Wistia)._liveStreamPollingPromises)&&void 0!==C||(I._liveStreamPollingPromises={}),null!==(F=(B=H.root.Wistia).first)&&void 0!==F||(B.first=function(){var e;return null!==(e=H.root.Wistia.api())&&void 0!==e?e:document.querySelector("wistia-player")});var K=H.root.Wistia},17(e){e.exports=window.Wistia.Preact.hooks},18(e){e.exports=window.Wistia.Preact.compat},19(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{EventShepherd:()=>s,convertedEventNames:()=>o});var o={mutechange:n(20).MUTE_CHANGE_EVENT},a={mutechange:function(e){return e.isMuted}},s=function(){return e=function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,i={},(n=r(n="convertedEventsMap"))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i},(t=[{key:"addListener",value:function(e,t,n){var i,r,s,c=null!==(i=o[e])&&void 0!==i?i:e;null!==(s=(r=this.convertedEventsMap)[c])&&void 0!==s||(r[c]=[]);var l=function(t){if(a[e]){var i=a[e](t.detail);n(i)}else n()};this.convertedEventsMap[c].push({givenCallback:n,eventListenerCallback:l}),t.addEventListener(c,l)}},{key:"removeAllListeners",value:function(e){var t=this;Object.keys(this.convertedEventsMap).forEach((function(n){var i;null===(i=t.convertedEventsMap[n])||void 0===i||i.forEach((function(t){e.removeEventListener(n,t.eventListenerCallback)})),t.convertedEventsMap[n]=[]}))}},{key:"removeListener",value:function(e,t,n){var i,r=this,a=null!==(i=o[e])&&void 0!==i?i:e,s=[];n?(t.removeEventListener(a,n),this.convertedEventsMap[a]&&(this.convertedEventsMap[a].forEach((function(e,i){e.givenCallback===n&&(s.push(i),t.removeEventListener(a,e.eventListenerCallback))})),s.forEach((function(e){r.convertedEventsMap[a]&&r.convertedEventsMap[a].splice(e,1)})))):this.convertedEventsMap[a]=[]}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},20(e,t,n){n.d(t,{MUTE_CHANGE_EVENT:()=>i});var i="mute-change"},40(e,t,n){n.d(t,{consent:()=>u});var i=n(13),r=n(41),o=n(43),a=n(16);function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var l;a.Wistia._visitorTrackingDomain||(a.Wistia._visitorTrackingDomain=location.hostname||""),a.Wistia._visitorTracking||(null!=(l=(0,r.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,r.updateWistiaLocalStorage)((function(e){return delete e.visitorTrackingEnabled})),a.Wistia._visitorTracking={},a.Wistia._visitorTracking[a.Wistia._visitorTrackingDomain]={isEnabled:l,updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(e){return e.visitorTracking=a.Wistia._visitorTracking}))),a.Wistia._visitorTracking=(0,r.getWistiaLocalStorage)().visitorTracking||{});var u=function(e){return null==e?f():d(e)};a.Wistia.consent=u;var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Wistia._visitorTrackingDomain;"default"===e?delete a.Wistia._visitorTracking[t]:a.Wistia._visitorTracking[t]={isEnabled:"true"==="".concat(e),updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(e){return e.visitorTracking=a.Wistia._visitorTracking})),(0,i.globalTrigger)("visitortrackingchange",e),s(document.getElementsByTagName("wistia-player")).forEach((function(t){t.dispatchEvent(new CustomEvent("visitor-tracking-change",{detail:{isTrackingEnabled:e}}))}))},f=function(){if("boolean"==typeof a.Wistia._visitorTracking)return a.Wistia._visitorTracking;if(a.Wistia._visitorTracking){var e=function(){if(a.Wistia._visitorTrackingDomain)for(var e=a.Wistia._visitorTrackingDomain.split(".");e.length>0;){var t=a.Wistia._visitorTracking[e.join(".")],n=t&&t.isEnabled;if(null!=n)return n;e.shift()}}();if(null!=e)return Boolean(e)}var t=(0,o.getAllApiHandles)();if(a.Wistia.channel&&a.Wistia.channel.all)try{t.push.apply(t,s(a.Wistia.channel.all()))}catch(e){}return!t.some((function(e){return!0===(e._mediaData||e._galleryData||{}).privacyMode}))}},41(e,t,n){n.d(t,{getWistiaLocalStorage:()=>a,updateWistiaLocalStorage:()=>s});var i=n(42),r=n(16),o="wistia",a=function(){return(0,i.getLocalStorage)(o)},s=function(e){return r.Wistia._localStorage=(0,i.updateLocalStorage)(o,e),r.Wistia._localStorage}},42(e,t,n){n.d(t,{getLocalStorage:()=>c,removeLocalStorage:()=>l,setLocalStorage:()=>u,updateLocalStorage:()=>d});var i=n(16),r=function(e){setTimeout((function(){throw e}),0)},o="_namespacedLocalStorage",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia-test-localstorage";if(null!=i.Wistia._localStorageWorks)return i.Wistia._localStorageWorks;try{var t=localStorage.getItem(e);localStorage.removeItem(e),localStorage.setItem(e,t),localStorage.removeItem(e),i.Wistia._localStorageWorks=!0}catch(e){i.Wistia._localStorageWorks=!1}return i.Wistia._localStorageWorks},s=function(){return null==i.Wistia[o]&&(i.Wistia[o]={}),i.Wistia[o]},c=function(e){if(!a())return s()[e]||{};if(localStorage[e])try{return"null"===localStorage[e]?{}:JSON.parse(localStorage[e])}catch(e){r(e)}return{}},l=function(e){if(a())try{localStorage.removeItem(e)}catch(e){r(e)}else s()[e]={}},u=function(e,t){if(!a())return null!=t&&"object"==typeof t&&(s()[e]=t),t;try{s()[e]=t,localStorage[e]=JSON.stringify(t)}catch(e){r(e)}return t},d=function(e,t){var n=c(e);try{t(n)}catch(e){r(e)}return u(e,n)}},43(e,t,n){n.d(t,{getAllApiHandles:()=>r});n(44),n(12);var i=n(45);n(46);var r=function(){return(void 0===(0,i.wData)("video")?[]:Object.values((0,i.wData)("video"))).concat(void 0===(0,i.wData)("iframe_api")?[]:Object.values((0,i.wData)("iframe_api")))}},44(e,t,n){n.d(t,{getAllApiEmbedElements:()=>i});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_embed",t=document.querySelectorAll("div.".concat(e,",span.").concat(e,",iframe.").concat(e));return Array.from(t).map((function(e){var t;return"WISTIA-PLAYER"===(null===(t=e.lastChild)||void 0===t?void 0:t.nodeName)?e.lastChild:e}))}},45(e,t,n){n.d(t,{wData:()=>o});var i=n(4),r=n(16),o=function(e,t){return(0,i.isArray)(e)||(e=e.split(".")),null!=t&&(0,i.setDeep)(r.Wistia,["_data"].concat(e),t),(0,i.getDeep)(r.Wistia,["_data"].concat(e))}},46(e,t,n){n.d(t,{ensureString:()=>i});var i=function(e){return null==e?"":e.toString()}},247(e,t,n){n.d(t,{FacebookPixel:()=>c});var i=n(40),r=n(13);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s(i.key),i)}}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var c=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"initializeFacebookPixel",(function(e){var t,n,r,o,a,s;t=window,n=document,r="script",t.fbq||(o=t.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},t._fbq||(t._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(a=n.createElement(r)).async=!0,a.src="https://connect.facebook.net/en_US/fbevents.js",(s=n.getElementsByTagName(r)[0]).parentNode.insertBefore(a,s)),(0,i.consent)()&&window.fbq("init",e)})),a(this,"trackEvent",(function(e,t){(0,i.consent)()&&window.fbq("trackSingleCustom",n.pixelId.toString(),e,t)})),this.pixelId=t,this.initializeFacebookPixel(t),this.blockTrackingIfInPrivacyMode()},(t=[{key:"blockTrackingIfInPrivacyMode",value:function(){(0,r.globalOn)("visitortrackingchange",(function(){window.fbq("consent",(0,i.consent)()?"grant":"revoke")}))}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{n.d(i,{FacebookAds:()=>g});var e=n(40),t=n(13),r=n(247),o=n(16);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function v(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var g=function(n){function i(n,r){var a,c,f,h;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),c=this,h=[n,r],f=d(f=i),v(a=l(c,u()?Reflect.construct(f,h||[],d(c).constructor):f.apply(c,h)),"handlePercentPlayedEvent",(function(e,t){[.25,.5,.75,.95].forEach((function(n){e>=n&&n>t&&(a.trackEvent("".concat(100*n," Percent Played"),{}),a.options.legacy&&a.trackEvent("PercentWatched".concat(100*n),{},!0))}))})),v(a,"handlePlayEvent",(function(){a.trackEvent("Play",{}),a.options.legacy&&a.trackEvent("PlayedVideo",{},!0)})),v(a,"handleSecondChangeEvent",(function(e){a.secondsPlayedSinceLastReport+=1,a.secondsPlayedSinceLastReport>=60&&a.trackSecondsPlayedEvent()})),v(a,"trackSecondsPlayedEvent",(function(){a.trackEvent("Seconds Played",{seconds_played:a.secondsPlayedSinceLastReport}),(null==a.options.legacy||a.options.legacy)&&a.trackEvent("SecondsWatched",{seconds_watched:a.secondsPlayedSinceLastReport},!0),a.secondsPlayedSinceLastReport=0})),v(a,"getLegacyFBProps",(function(e){return s({channel_id:a.getChannelHashedId(),channel_name:a.getChannelName(),video_id:a.media.hashedId(),video_name:a.media.name()},e)})),v(a,"getFBProps",(function(e){return s({channel_id:a.getChannelHashedId(),channel_name:a.getChannelName(),media_id:a.media.hashedId(),media_name:a.media.name()},e)})),v(a,"getChannelHashedId",(function(){return a.media._mediaData.channelHashedId})),v(a,"getChannelName",(function(){if(a.getChannelHashedId()&&o.Wistia.channel)return o.Wistia.channel(a.getChannelHashedId()).title()})),v(a,"trackEvent",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?a.getLegacyFBProps(t):a.getFBProps(t);a.facebookPixel.trackEvent(e,n)})),a.media=n,a.options=r,!(0,e.consent)()||a.media.embedOptions().doNotTrack?((0,t.globalOn)("visitortrackingchange",(function(){(0,e.consent)()&&(a.initFacebookPixel(r),a.initMediaBindings())})),l(a)):(a.initFacebookPixel(r),a.initMediaBindings(),a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,n),a=i,(h=[{key:"initFacebookPixel",value:function(e){this.facebookPixel=new r.FacebookPixel(e.pixelId)}},{key:"initMediaBindings",value:function(){this.media.bind("percentwatchedchanged",this.handlePercentPlayedEvent),this.media.bind("play",this.handlePlayEvent),this.secondsPlayedSinceLastReport=0,this.media.bind("secondchange",this.handleSecondChangeEvent),this.media.bind("end",this.trackSecondsPlayedEvent),this.media.bind("pause",this.trackSecondsPlayedEvent)}}])&&c(a.prototype,h),g&&c(a,g),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,h,g}(o.Wistia.Plugin.Base)})();const r=i.FacebookAds;export{r as FacebookAds};
//# debugId=3f0ac7b7-2929-4e9f-9dae-6fcee2ac6b13
//# sourceMappingURL=facebookAds.js.map