(function(){'use strict';var f,h=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},k=function(a){return"gwd-page"==a.tagName.toLowerCase()||"gwd-page"==a.getAttribute("is")},l=function(a){if(k(a))return a;for(;a&&9!=a.nodeType;)if((a=a.parentElement)&&k(a))return a;return null};function m(){this.v={}}m.prototype.add=function(a,b){a="string"==typeof a?a:a.getString();this.v[a]||(this.v[a]=[]);this.v[a].push(b)};var n=function(a){var b=[],c="object"==typeof gwd&&"GwdId"in gwd,d;for(d in a.v)b.push(c?new gwd.GwdId(d):d);return b},p=function(a,b){return b?a.v["string"==typeof b?b:b.getString()]||[]:[]};function q(a,b){this.i=a;this.W=b;this.F=this.J.bind(this)}q.prototype.observe=function(a){if(a.nodeType==Node.ELEMENT_NODE)for(var b=n(this.i),c=0;c=window.innerWidth?1:2;this.g=this.b=null}; f.attachedCallback=function(){Enabler.addEventListener(studio.events.StudioEvent.EXPAND_START,this.B);Enabler.addEventListener(studio.events.StudioEvent.COLLAPSE_START,this.A);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_EXPAND_START,this.B);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_COLLAPSE_START,this.A);Enabler.addEventListener(studio.events.StudioEvent.EXPAND_FINISH,this.C);Enabler.addEventListener(studio.events.StudioEvent.COLLAPSE_FINISH,this.w);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_EXPAND_FINISH, this.C);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_COLLAPSE_FINISH,this.w);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_DIMENSIONS,this.O);this.a=this.querySelector("gwd-pagedeck")||this.querySelector("[is=gwd-pagedeck]");this.a.addEventListener("pagetransitionend",this.T,!1);this.b=document.getElementById(this.getAttribute("data-provider"));this.g=document.querySelector("gwd-data-binder");var a=this.querySelector("gwd-metric-configuration"),b=new m;if(a){a=Array.prototype.slice.call(a.getElementsByTagName("gwd-metric-event")); for(var c=0;c=window.innerWidth?1:2;this.G!=a&&(this.G=a,(a=this.a.getPage(this.a.currentIndex))&&setTimeout(this.goToPage.bind(this,a.id),0))}}; f.$=function(a){a&&Enabler.setResponsiveSize(a.width,a.height)};f.I=function(){if(this.f){this.G=window.innerHeight>=window.innerWidth?1:2;var a=this.a.getOrientationSpecificPage(this.G,this.f);this.l?this.a.goToPage(a.id,this.l.transition,this.l.duration,this.l.easing,this.l.direction):this.a.goToPage(a.id);this.j&&a.classList.add("fs")}this.l=this.f=void 0}; f.ea=function(a){this.s=this.u=!1;if(a.target==this.a){var b=a.detail;a=b.outgoingPage;b=b.incomingPage;if(a&&(t(this.S,a),(a=a.querySelectorAll("video, gwd-video"))&&0