!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof def&&def.amd?def("pcs-common",["vue"],e):(t=t||self).PcsCommon=e(t.Vue)}(this,function(u){"use strict";u=u&&u.hasOwnProperty("default")?u.default:u;var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function t(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var c=function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function e(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;0<=a;a--)(o=t[a])&&(s=(r<3?o(s):3<r?o(e,i,s):o(e,i))||s);return 3<r&&s&&Object.defineProperty(e,i,s),s}var i="phApp";function o(){this.phApp={},window&&window[i]&&(this.phApp=window[i],this.phApp.inline=this.phApp.inline,void 0===this.phApp.inline&&(this.phApp.inline=!0),this.phApp.ddo=this.phApp.ddo||{},this.phApp.pageGroup=this.phApp.pageGroup||{},this.phApp.ddoRealPath=this.phApp.ddoRealPath||{},this.phApp.sessionParams=this.phApp.sessionParams||{},this.phApp.widgetSettings=this.phApp.widgetSettings||{},this.phApp.siteSettings=this.phApp.siteSettings||{},this.phApp.translations=this.phApp.translations||{})}var p,g=new(o.prototype.hasAbsUrl=function(){return this.phApp.absUrl},o.prototype.useInlineTmpl=function(){return this.phApp.inline},o.prototype.getParam=function(t){return this.phApp[t]},o.prototype.setParam=function(t,e){this.phApp[t]=e},o.prototype.getIsinlinePreview=function(){return this.phApp.inlinePreview},o.prototype.getCommonParams=function(){return{lang:this.phApp.locale,deviceType:this.phApp.deviceType,country:this.phApp.country,pageName:this.phApp.pageName}},o.prototype.getDDOUrl=function(){return this.phApp.widgetApiEndpoint},o.prototype.getDDOFromCache=function(t){var e=this.phApp.ddo,i=this.phApp.pageGroup;return e[t]||i[t]},o.prototype.getRawUrl=function(t){return this.getUrlMap()[t]},o.prototype.getUrlMap=function(){return this.phApp.urlMap},o.prototype.getBaseUrl=function(){return this.phApp.baseUrl},o.prototype.getBaseDomain=function(){return this.phApp.baseDomain},o.prototype.getRefNum=function(){return this.phApp.refNum},o.prototype.getDeviceType=function(){return this.phApp.deviceType},o.prototype.isMobile=function(){return"mobile"===this.phApp.deviceType},o.prototype.getLocale=function(){return this.phApp.locale},o.prototype.getCountry=function(){return this.phApp.country},o.prototype.getTrackingConfig=function(){return this.phApp.trackingConfig},o.prototype.getRecommendedTrackingConfig=function(){return this.phApp.recommendedTrackingConfig},o.prototype.ddoRealPath=function(t){return this.phApp.ddoRealPath[t]},o.prototype.ddoRealData=function(t,e){var i=this.ddoRealPath(t);return i&&(i=i.split(".")).forEach(function(t){e=e&&e[t]}),e},o.prototype.getSessionParams=function(t){if(t)return this.phApp.sessionParams[t]},o.prototype.getWidgetSettings=function(t){return this.phApp.widgetSettings[t]},o.prototype.getSiteSettings=function(t){return this.phApp.siteSettings[t]},o.prototype.getPageType=function(){return this.phApp.pageType},o.prototype.getPageName=function(){return this.phApp.pageName},o.prototype.getPageId=function(){return this.phApp.pageId},o.prototype.clearDDOFromcache=function(t){var e=this.phApp.ddo;t&&e[t]&&delete e[t]},o.prototype.getSiteType=function(){return this.phApp.siteType},o.prototype.getUserSubType=function(){var t=this.phApp.ddo;if(this.phApp.ddo&&t.validateJwtToken&&t.validateJwtToken.data&&t.validateJwtToken.data.userSubType)return t.validateJwtToken.data.userSubType},o.prototype.getExperimentData=function(){return this.phApp.experimentData},o.prototype.getCdnUrl=function(){return this.phApp.cdnUrl},o.prototype.getWidgetScriptUrl=function(){return this.phApp.widgetScriptUrl},o.prototype.getCsrfToken=function(){return this.phApp.csrfToken},o.prototype.getTranslations=function(){return this.phApp.translations&&this.phApp.translations.masterData},o.prototype.getRootDomain=function(){return this.phApp.rootDomain},o.prototype.getSegmentedUserState=function(){return this.phApp.pxSegmentState},o.prototype.getPlatformAssetsBaseUrl=function(){return[this.getCdnUrl(),"common/js/vendor/"].join("/")},o),h={},r={},f=window;function s(t,e){var i={},n=(e=e||{}).ctx;for(var o in delete e.ctx,h)h.hasOwnProperty(o)&&(i[o]=h[o]);var r,s,a=(g.getTrackingConfig()||{})[t];if(a)for(var l in a)a.hasOwnProperty(l)&&n&&(i[l]=n[a[l]]);if(e)for(var d in e)e.hasOwnProperty(d)&&(i[d]=e[d]);for(var c in h)h.hasOwnProperty(c)&&(i[c]=h[c]);r=t,s=i,(p=p||f.phenomevent)&&p.track(r,s)}!function(){h={trait2:g.getRefNum(),trait65:g.getDeviceType(),trait76:g.getPageType()||g.getPageName(),trait79:g.getLocale(),trait253:g.getPageName(),trait258:g.getSiteType(),trait263:g.getUserSubType()};var t=g.getParam("partnerRefNum");t&&(h.trait317=t);var e=g.getParam("pxSegmentState");e&&(h.trait323=e);var i=g.getParam("pxstate");i&&(h.trait324=i);var n=g.getExperimentData();n&&(h.experiment=n),p=f.phenomevent}();var m={category:function(t,e,i,n){var o=g.getDDOFromCache("siteConfig"),r=o&&o.data&&o.data.categoryUrlMap||{};if(r){var s=r;if(s[e.internalId])return[s[e.internalId]];n=[];var a="search-results?category="+encodeURIComponent(e[t]||e.name||"");return n.push(a),n}},job:function(t,e,i,n,o){if("jobSeqNo"==t)return n.push(e.jobSeqNo||e.id),n;if("title"==t){var r=e.title_raw||e[t]||"";return o&&(r=r.toLowerCase()),n.push(d(r)),n}},"search-results":function(t,e,i,n){return"?keyword="+i},event:function(t,e,i,n,o){if("title"==t){var r=e.title||"";return o&&(r=r.toLowerCase()),n.push(d(r)),n}}};function l(t){if(t&&-1!==t.indexOf("://"))return t;var n="";return["cdnUrl","refNum","locale","deviceType"].forEach(function(t,e){var i=g.getParam(t);i&&0<i.trim().length&&(n+=i,"/"!==i[i.length-1]&&(n+="/"))}),n+t}function d(t){var e="";return t&&"-"==(e=t.replace(/[\$_|`$\-+:,\/#&\[\]@\{\}*%.()?–]/g,"-").replace(/ /g,"-").replace(/-+/g,"-")).charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e||""}var v,y,b={getUrl:function(d,c,p,t,u){var h=[],e=t.split("/");if(c){e.forEach(function(t){if(t.startsWith(":")){var e=t.substring(1);c&&c[e];var i=(n=e,r=c,s=p,a=h,l=u,m[o=d]?m[o](n,r,s,a,l):void 0);i?h=i:h.push(c[e])}else h.push(t);var n,o,r,s,a,l});var i=h.join("/");return p&&(i+="?"+p),i}},getImageUrl:l};function w(t,e){if(v)try{v.setItem(t,JSON.stringify(e))}catch(t){A(t)}}function E(t){if(v){var e=v.getItem(t);return e=JSON.parse(e)}}function k(t){v&&v.removeItem(t)}function x(t){if(y){var e=y.getItem(t);try{e=JSON.parse(e)}catch(t){}return e}}function A(t){var e=!1;return t&&(t.code?22===t.code?e=!0:1014===t.code&&"NS_ERROR_DOM_QUOTA_REACHED"===t.name&&(e=!0):-2147024882===t.number&&(e=!0)),e}function I(t,e){if(y)try{"string"==typeof e?y.setItem(t,e):y.setItem(t,JSON.stringify(e))}catch(t){A(t)}}function C(t){y&&y.removeItem(t)}!function(){v=!("undefined"==typeof Storage||!window.localStorage)&&window.localStorage;y=!("undefined"==typeof Storage||!window.sessionStorage)&&window.sessionStorage}();var S={setItem:w,getItem:E,removeItem:k,getSessionStorageItem:x,setSessionStorageItem:I,removeSessionStorageItem:C};function T(t){try{return encodeURIComponent(t)}catch(t){return null}}function _(t){try{return decodeURIComponent(t)}catch(t){return null}}var L,M,O,D={get:function(t){var e=function(t){var e,i={},n=t.split(/ *; */);if(""===n[0])return i;for(var o=0;o<n.length;++o)e=n[o].split("="),i[_(e[0])]=_(e[1]);return i}(document.cookie);return e&&e[t]?e[t]:null},set:function(t,e,i){var n=T(t)+"="+T(e);if(null===e&&(i.expiry=-1),0<=i.expiry&&!i.expires){var o=new Date;o.setHours(o.getHours()+i.expiry),i.expires=o}i.path&&(n+="; path="+i.path),i.domain&&(n+="; domain="+i.domain),i.expires&&(n+="; expires="+i.expires.toUTCString()),i.secure&&(n+="; secure"),document.cookie=n},deleteCookie:function(t){document.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}},R="_",P="siteConfig",F="jobContext",V={},N="";function B(){if(N&&O){var t=[U(),F].join(R),e=[U(),N].join(R),i=[],n=V[N];n&&n.forEach(function(t){var e={jobSeqNo:t.jobSeqNo,jobId:t.jobId,title:t.title};t.visibilityType&&(e.visibilityType=t.visibilityType),i.push(e)}),w(t,N),w(e,i)}}function j(){var i={},t=g.getRecommendedTrackingConfig()||{};for(var e in t)if(t.hasOwnProperty(e))if(Array.isArray(t[e]))t[e].forEach(function(t){var e=[U(),t.storageKey].join(R);i[t.storageKey]=E(e)});else{var n=[U(),t[e].storageKey].join(R);i[t[e].storageKey]=E(n)}return i}function H(){var t=D.get("PHPPPE_GCC");return!t||"d"!=t&&"s"!=t}function U(){var i,t=g.getDDOFromCache(P);if(t&&t.data.siteSettings.recommendationStoargeKeys){var e=t.data.siteSettings.recommendationStoargeKeys,n=[];e.forEach(function(t,e){n.push(g.getParam(t)),i=n.join(R)})}else i=[g.getCountry(),g.getLocale()].join(R);return i}L=g.getRecommendedTrackingConfig(),V={},function(){var t=[U(),F].join(R);N=E(t);var e=[U(),N].join(R);V[N]=E(e)}(),window&&(window.addEventListener("beforeunload",function(t){M=!0,B()}),window.addEventListener("unload",function(t){M||B()}));var q={getSpecificTrackCtx:function(t,e){var i,n=[U(),t].join(R);return e?x(n)&&(i=x(n)):E(n)&&(i=E(n)),i},getRecommendedTrackCtx:j,setSpecificTrackCtx:function(t,e,i){if(H()){var n=[U(),t].join(R);i?I(n,e):w(n,e)}},getRecommStorageKey:U,addRecommendationTrackCtx:function(t,a){if(H()){var e=(L=L||g.getRecommendedTrackingConfig()||{})[t];e&&(Array.isArray(e)||(e=[e]),e.forEach(function(r){var t=[U(),r.storageKey].join(R);if(r.storageKey){var s=!1,e=E(t);if(e?e.forEach(function(t){var e,i,n,o;e=t,i=a,n=r.ddoKeysToStore,o=!0,n.forEach(function(t){e[t]!=i[t]&&(o=!1)}),o&&(s=!0)}):(w(t,[]),e=E(t)),!s){var i={};r.ddoKeysToStore.forEach(function(t){a[t]&&(i[t]=a[t],i.timeStamp=(new Date).toUTCString())}),e.unshift(i),w(t,e)}}}))}},removeRecomContentFromLocalStorage:function(){U(),Object.keys(j()).forEach(function(t,e){var i,n,o;i=t,o=[U(),i].join(R),n?C(o):k(o)})},addJobContext:function(t,e){V[t]=e},getJobContext:function(t){return V[t]},getNextAndPrevJobData:function(t){var e={},i=V[N],n=-1;if(i)for(var o=0;o<i.length;o++){if(i[o].jobSeqNo==t){n=o;break}}if(-1!=n){var r=n-1,s=n+1;return 0<=r&&(e.prevJob=i[r]),s<i.length&&(e.nextJob=i[s]),e}},jobContext:function(t){if(!t)return N;V[t]&&(N=t)},recommendationTrackingConfig:L,setFlagForHandleUnload:function(t){t&&(O=t)}},W=(K.prototype.renderLiteral=function(t,i,e){return t&&"string"==typeof t?(t=(t=(t=t.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\{\{\s*(.*?)\s*\}\}/g,function(t,e){return i[e]||""}),e&&(t=encodeURIComponent(t)),t=t.replace(/\[\[\s*(.*?)\s*\]\]/g,function(t,e){if(!e)return e})):t},K.prototype.parseTemplateAndApplyBundle=function(p,u,h){var f=this;return new Promise(function(t,e){if(u){for(var i="tkey",n=u.querySelectorAll("[tkeys]"),o=0;o<n.length;o++)for(var r=n[o],s=r.attributes,a=0;a<s.length;a++){var l=s[a].name,d=s[a].value;if(l.startsWith(i)){var c=f.renderLiteral(h[d],p);c&&(l.length>i.length?(l=l.replace(i+"-",""),r.setAttribute(l,c)):r.innerHTML=c)}}t(u.innerHTML)}else e({})})},K);function K(){}var J=new W,Y=new u,z="captchaConfig",G="captchaConfigTenant",Q={useCaptcha:!1,scriptSrc:"https://www.google.com/recaptcha/api.js?render=explicit&hl={{locale}}",siteKey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",divId:"ph-custom-captcha",polyfill:"https://cdn.polyfill.io/v2/polyfill.js"},X=window;function Z(t,e){if(X.grecaptcha){var i=it(e)||{};i.divId||(i.divId="ph-custom-captcha"),i.action||(i.action="submit");var n=function(t,e){X.grecaptcha||t("");var i=document.getElementById(e);if(!i){var n=document.createElement("div");n.setAttribute("id",e),document.body.appendChild(n),i=document.getElementById(e)}i&&i.style&&(i.style.zIndex="100");var o=i&&i.getAttribute("data-captcha-widgetId");if(o)return X.grecaptcha.reset(o),o;return X.grecaptcha.render(e,{sitekey:Q.siteKey,size:"invisible",callback:t})}(t,i.divId),o=document.getElementById(i.divId);o&&o.setAttribute("data-captcha-widgetId",n),X.grecaptcha.execute(n,{action:i.action})}else t("")}function tt(t,e,i){try{if(!(null!=document.querySelector("#"+e))){var n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("async",""),n.setAttribute("src",t),n.setAttribute("id",e),i&&n.setAttribute("nomodule",""),document.body.appendChild(n)}}catch(t){console.warn(t)}}function et(e,i){if(!i)return e||{};var t=Object.keys(i);return i&&t.length&&t.forEach(function(t){e[t]=i[t]}),e}function it(t){var e=(g.getSiteSettings("captchaEnabledDDO")||{})[t]||{},i="",n=e.action;if(e&&e.divIdSelector){var o=document.querySelector(e.divIdSelector);if(o){var r=document.createElement("div");i=t+"-captcha-div",r.setAttribute("id",i),o.parentElement.appendChild(r)}}return{action:n,divId:i}}!function(){window&&(X.pcc||(X.pcc={}),X.pcc.captchaCallback=Z);var t=g.getSiteSettings(z),e=g.getSiteSettings(G);if(Q=et(Q,t),(Q=et(Q,e)).scriptSrc=Q.scriptSrc.replace("{{locale}}",g.getLocale()),!Q||1!=Q.useCaptcha)return;tt(Q.scriptSrc,"captcha-script-id"),tt(Q.polyfill,"polyfill",!0)}();var nt,ot,rt={captchaCallback:Z,constructCaptchaEle:it},st=Object.freeze({__proto__:null,captchaCallback:Z,addPageToScript:tt,constructCaptchaEle:it,default:rt}),at=[],lt=[],dt=window,ct="ph:ex:trackEvents",pt="ph:ex:responseDdoKeys",ut="siteConfig",ht="searchMultiJobCount",ft="ph:jobCount:set",gt=0,mt={},vt=!0;function yt(i,n,t){var o=this;t.length&&t.forEach(function(t,e){t.call(o,i,n)})}function bt(t,e,i){yt(e,i,at);var n=xt(t);Object.keys(n).length&&(i.params=n.params),s(e,i)}function wt(t,e,i){!function(t){if(t)(t=t.replace(/(\-\w)/g,function(t){return t[1].toUpperCase()}))[0].toUpperCase(),t.substring(1)}(e);if(dt.phw&&dt.phw.componentExposeName){(i?new dt.phw.kebabCaseToCameCase(e).component({propsData:i,template:i.template}):new dt.phw.kebabCaseToCameCase(e).component()).$mount(t)}}function Et(t){if(t){for(var e=t,i=e&&e.getAttribute&&e.getAttribute("data-widget");e&&!i&&"BODY"!==e.nodeName;)i=(e=e.parentElement)&&e.getAttribute&&e.getAttribute("data-widget");if(i)return{elem:e,elemTag:i}}return!1}function kt(t,e){var i={};return i.params={widgetId:e,widgetview:function(t){if(t){var e=t.__vue__&&t.__vue__.viewName;return t.getAttribute("view")||e||"default"}}(t),widgetName:function(t,e){if(t&&e){return e.replace(/^.+?(\-)/,"").replace(/-[^-]+$/,"")}return!1}(t,e),instanceId:function(t){if(t)return t.getAttribute("instance-id");return}(t)},t&&t.__vue__&&t.__vue__.block1&&(t.__vue__.block1._cid&&(i.params.cid=t.__vue__.block1._cid),t.__vue__.block1.position&&(i.params.position=t.__vue__.block1.position),i.params.px=function(t){var e={enabled:!1};if(!t||!t.context)return e;var i={},n=t.context;for(;n&&n.$parent;)i=n.bindModel||{},n=n.$parent;return i.px||e}(t.__vue__.$vnode)),i}function xt(t){if(t){var e=Et(t);if(e){var i=kt(e.elem,e.elemTag),n=[];return function t(e,i){if(e&&e.parentElement){var n=Et(e.parentElement);if(i=i||[],n.elem&&n.elem.__vue__){var o=n.elemTag,r=kt(n.elem,o);i.push(r),t(n.elem,i)}}}(e.elem,n),n.length&&(i.params.parent=n),i}}return!1}function At(t){var e=g.getDDOFromCache(ut);if(e&&e.data)return t?e.data.siteSettings[t]||e.data[t]:e.data.siteSettings}function It(t,e){var i;if(t.key&&"queryParams"==t.key){var n="query"+gt++;i=n,mt[t.key]=mt[t.key]||{},mt[t.key][n]=t.value}else t.key&&(i=t.value,mt[t.key]=mt[t.key]||[],-1==mt[t.key].indexOf(t.value)&&mt[t.key].push(t.value));i&&e.setAttribute("data-pha-count-idfr",i)}function Ct(e,t){if((vt||t)&&Object.keys(mt).length){vt=!1;nt=setTimeout(function(){Dt(ht,mt).then(function(t){t&&t[ht]&&t[ht].data&&(e.context&&e.context.$root.$emit(ft,t[ht].data.data),Object.keys(mt).length&&Ct(!0))}),mt={},clearTimeout(nt),Ct(!0)},250)}}document.addEventListener(ct,function(t){var e=t.detail||{};yt(e.eventName,e.payload,at)}),document.addEventListener(pt,function(t){var e=t.detail||{};yt(e.ddoName,e.payload,lt)}),Y.$on("geoLocation",function(t){ot=t});var St,Tt={debounce:function(i,n){var o;return function(){var t=this,e=arguments;clearTimeout(o),o=setTimeout(function(){return i.apply(t,e)},n)}},widgetTrackData:xt,trackWidgetClick:bt,bootstrapCassWidget:wt,trackWidgetCallBack:function(t){at.push(t)},responseDdoCallback:function(t){lt.push(t)},focusElement:function(t,e,i){setTimeout(function(){t&&"object"==typeof t?t.focus():t&&i.querySelector(t)&&i.querySelector(t).focus()},e||0)},getQueryParam:function(t){for(var e=location.search,i=(e=e.substr(1)).split("&"),n=0;n<i.length;n++){var o=i[n];if(1<(o=o.split("=")).length&&o[0]==t)return decodeURIComponent(o[1])}},getSiteSettings:At,isCrawlerUserAgent:function(){var t=window.navigator.userAgent,e=!1,i=At("crawlerUserAgents");return i&&(e=new RegExp(i,"i").test(t.toLowerCase())),e},getUrl:function(t,e,i){var n=At("isUrlLowerForSeo");"internal"===g.getSiteType()&&"job"===t&&e&&e.visibilityType&&"EXTERNAL"===e.visibilityType.toUpperCase()&&(i?i+="&vt=e":i="vt=e");var o=g.getRawUrl(t);if(o){var r=b.getUrl(t,e,i||"",o,n);return r&&-1==r.indexOf("http")&&(r=g.getBaseUrl()+r),r||""}return""},setLocalStorageContext:function(t,e){var i=[q.getRecommStorageKey(),t].join("_");S.setItem(i,e)},getLocalStorageContext:function(t){var e=[q.getRecommStorageKey(),t].join("_");return S.getItem(e)},getTranslation:function(t,e,i){return e=e||{},J.renderLiteral(t,e,i)},fetchMaterLiterals:function(){var t=g.getTranslations()||{};return JSON.parse(JSON.stringify(t.masterData||{}))},prepareMultiSearchJobCountObj:It,fetchMultiJobCount:Ct,fetchCaptchaInjector:function(){return st},storePageTrackEventData:function(t,e){var i,n;n=e,(i=t)&&(r[i]=n)},setIsGdprConsentClosed:function(t){},askForLocation:function(){return ot||""},getImageUrl:function(t){if(t&&-1!=t.indexOf("://"))return t;var n="";return["cdnUrl","refNum","locale","deviceType"].forEach(function(t,e){var i=g.getParam(t);i&&0<i.trim().length&&(n+=i,"/"!==i[i.length-1]&&(n+="/"))}),n+t},fetchCachedDdo:function(t){return Ot(t)}},_t=function(){var i=this;this.promise=new Promise(function(t,e){i.reject=e,i.resolve=t})},Lt={},Mt=["fitScoreSettings","jobTagSettings","jobwidgetsettings","jobsharewidgetsettings","eventsharewidgetsettings","blogsharewidgetsettings"];function Ot(t){var e,i,n=g.getDDOFromCache(t);return n&&((e={})[t]=n,i=e),i}function Dt(i,n){var t=g.getSiteSettings("captchaEnabledDDO")||{};if(n=n||{},t[i]&&!n.phCaptchaToken)return new Promise(function(e,t){Tt.fetchCaptchaInjector().captchaCallback(function(t){n.phCaptchaToken=t,Rt(i,n).then(function(t){return e(t)})},i)});var e=Ot(i);if(!Lt.hasOwnProperty(i)||e)return-1===Mt.indexOf(i)&&!n.isEagerLoad||e||(Lt[i]=[]),Rt(i,n);var o=new _t;return Lt[i].push(o),o.promise}function Rt(l,d){return new Promise(function(o,t){var e,i,n,r,s,a=Ot(l);a?o(a):((d=d||{}).ddoKey=l,(e=d,i=g.getDDOUrl(),n=g.getCommonParams(),r=g.getCsrfToken(),s=c(c({},e||{}),n),fetch(i,{method:"post",credentials:"include",headers:{"X-CSRF-TOKEN":r,"Content-Type":"application/json"},body:JSON.stringify(s||{})}).then(function(t){return t.json()})).then(function(t){var e,i,n;o(t),e=t,i=l,n=(n=d)||{},-1===Mt.indexOf(i)&&!n.isEagerLoad||(Lt[i].forEach(function(t){t.resolve(e)}),delete Lt[i])}))})}(St=Tt.getSiteSettings("configuredMakeEagerLoadDdos")||[]).length&&St.forEach(function(t){-1===Mt.indexOf(t)&&Mt.push(t)});var Pt={fetchDdo:Dt,fetchCachedDdo:Ot},Ft="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function Vt(i,n,o){(o?Reflect.getOwnMetadataKeys(n,o):Reflect.getOwnMetadataKeys(n)).forEach(function(t){var e=o?Reflect.getOwnMetadata(t,n,o):Reflect.getOwnMetadata(t,n);o?Reflect.defineMetadata(t,e,i,o):Reflect.defineMetadata(t,e,i)})}var Nt={__proto__:[]}instanceof Array;function Bt(t){"undefined"!=typeof console&&console.warn("[vue-class-component] "+t)}var jt=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Ht(t,n){void 0===n&&(n={}),n.name=n.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if(-1<jt.indexOf(e))n[e]=o[e];else{var i=Object.getOwnPropertyDescriptor(o,e);void 0!==i.value?"function"==typeof i.value?(n.methods||(n.methods={}))[e]=i.value:(n.mixins||(n.mixins=[])).push({data:function(){var t;return(t={})[e]=i.value,t}}):(i.get||i.set)&&((n.computed||(n.computed={}))[e]={get:i.get,set:i.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(n,t){var e=t.prototype._init;t.prototype._init=function(){var t=this,e=Object.getOwnPropertyNames(n);if(n.$options.props)for(var i in n.$options.props)n.hasOwnProperty(i)||e.push(i);e.forEach(function(e){"_"!==e.charAt(0)&&Object.defineProperty(t,e,{get:function(){return n[e]},set:function(t){n[e]=t},configurable:!0})})};var i=new t;t.prototype._init=e;var o={};return Object.keys(i).forEach(function(t){void 0!==i[t]&&(o[t]=i[t])}),!(t.prototype instanceof u)&&0<Object.keys(o).length&&Bt("Component class must inherit Vue or its descendant class when class property is used."),o}(this,t)}});var e=t.__decorators__;e&&(e.forEach(function(t){return t(n)}),delete t.__decorators__);var s,a,l,i,r,d=Object.getPrototypeOf(t.prototype),c=d instanceof u?d.constructor:u,p=c.extend(n);return s=p,a=t,l=c,Object.getOwnPropertyNames(a).forEach(function(t){if(!$t[t]){var e=Object.getOwnPropertyDescriptor(s,t);if(!e||e.configurable){var i,n,o=Object.getOwnPropertyDescriptor(a,t);if(!Nt){if("cid"===t)return;var r=Object.getOwnPropertyDescriptor(l,t);if(i=o.value,n=typeof i,null!=i&&("object"==n||"function"==n)&&r&&r.value===o.value)return}0<=Ut.indexOf(t)&&Bt("Static property name '"+t+"' declared on class '"+a.name+"' conflicts with reserved property name of Vue internal. It may cause unexpected behavior of the component. Consider renaming the property."),Object.defineProperty(s,t,o)}}}),Ft&&(Vt(i=p,r=t),Object.getOwnPropertyNames(r.prototype).forEach(function(t){Vt(i.prototype,r.prototype,t)}),Object.getOwnPropertyNames(r).forEach(function(t){Vt(i,r,t)})),p}var Ut=["cid","super","options","superOptions","extendOptions","sealedOptions","component","directive","filter"],$t={prototype:!0,arguments:!0,callee:!0,caller:!0};function qt(e){return"function"==typeof e?Ht(e):function(t){return Ht(t,e)}}qt.registerHooks=function(t){jt.push.apply(jt,t)};var Wt="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function Kt(s){return void 0===s&&(s={}),function(t,e){var i,n,o,r;i=s,n=t,o=e,Wt&&(Array.isArray(i)||"function"==typeof i||void 0!==i.type||(i.type=Reflect.getMetadata("design:type",n,o))),r=function(t,e){(t.props||(t.props={}))[e]=s},function(t,e,i){var n="function"==typeof t?t:t.constructor;n.__decorators__||(n.__decorators__=[]),"number"!=typeof i&&(i=void 0),n.__decorators__.push(function(t){return r(t,e,i)})}(t,e)}}var Jt=window,Yt=(zt.prototype.slickOverrideFun=function(t){var l="button";Jt.Slick&&(Slick.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=$("<div />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(i.options.customPaging.call(this,i,t));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find(l).first().addClass("slick-active")}},Slick.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){$(e).attr("data-slick-index",t).data("originalStyling",$(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?a('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="assertive" aria-atomic="true" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),$("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},Slick.prototype.initADA=function(){var o=this,r=(Math.ceil(o.slideCount/o.options.slidesToShow),o.getNavigableIndexes().filter(function(t){return 0<=t&&t<o.slideCount}));if(o.$slides){o.$slides.add(o.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),o.$slides.not(o.$slideTrack.find(".slick-cloned")).each(function(t){var e=r.indexOf(t);if(o.$dots&&"tablist"==o.$dots.attr("role"))$(this).attr({role:"tabpanel",id:"slick-slide"+o.instanceUid+t,tabindex:-1});else{var i=o.$slideTrack.find(".slick-active");i&&1<i.length?$(this).attr({role:"listitem",id:"slick-slide"+o.instanceUid+t,tabindex:-1}):$(this).attr({id:"slick-slide"+o.instanceUid+t,tabindex:-1})}if(-1!==e){var n="slick-slide-control"+o.instanceUid+e;$("#"+n).length&&$(this).attr({"aria-describedby":n})}});for(var t=o.currentSlide,e=t+o.options.slidesToShow;t<e;t++)o.options.focusOnChange||o.options.dotNavArrows?o.$slides.eq(t).attr({tabindex:"0"}):o.$slides.eq(t).removeAttr("tabindex")}o.activateADA()},Slick.prototype.activateADA=function(){this.$slideTrack&&this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"}),this.$slideTrack&&this.$slideTrack.find(".slick-current").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},Slick.prototype.keyHandler=function(t){var e=this,i=e.$slider.context||e.$slider[0];t.target.tagName.match("TEXTAREA|INPUT|SELECT")||i.hasAttribute("disable-navigation")||(37===t.keyCode?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},Slick.prototype.swipeHandler=function(t){var e=this;if(!(e.$slider.context||e.$slider[0]).hasAttribute("disable-navigation")&&!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},Slick.prototype.updateDots=function(){this.$dots},Slick.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&($(l,t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&$(l,t.$dots).on("mouseenter.slick",$.proxy(t.interrupt,t,!0)).on("mouseleave.slick",$.proxy(t.interrupt,t,!1)).on("focus.slick",$.proxy(t.interrupt,t,!0)).on("blur.slick",$.proxy(t.interrupt,t,!1))},Slick.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&($(l,t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",$.proxy(t.interrupt,t,!0)).off("mouseleave.slick",$.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),$(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&$(t.$slideTrack).children().off("click.slick",t.selectHandler),$(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),$(window).off("resize.slick.slick-"+t.instanceUid,t.resize),$("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),$(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},Slick.prototype.changeSlide=function(t,e){var i,n,o=this,r=$(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is(l)||(r=r.closest(l)),i=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":n=0==i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,e);break;case"next":n=0==i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,e);break;case"index":var s=0===t.data.index?0:t.data.index||r.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(s),!1,e),r.children().trigger("focus");break;default:return}})},zt.prototype.slickOverrideAccessbility=function(l,d){if(d.tabs)for(var t=l&&l.querySelectorAll(".slick-arrow")||[],e=0;e<t.length;e++)t[e]&&t[e].setAttribute("tabindex","-1"),t[e].setAttribute("aria-hidden","true");if(d.dots){var i=" .slick-dots";d.appendDots&&(i=d.appendDots+" .slick-dots");var c=d.appendDots?document.querySelector(i):l.querySelector(i);l.querySelector(d.appendDots),c&&c.children&&0<c.children.length&&setTimeout(function(){d.dotNavArrows&&c.setAttribute("role","tablist");for(var t=0;t<=c.children.length-1;t++){var e=c.children[t],i="",n=d.dotInfoSelector;if(n){var o=l.querySelectorAll(".slick-slide:not(.slick-cloned)"),r=o[t].querySelectorAll(n);r.length||(r=o[t].querySelectorAll('[data-ph-component-name="heading"]'));for(var s=0;s<r.length;s++)i+=r[s].innerText.trim()}var a="aria-current";e&&("tab"==e.getAttribute("role")||e.parentElement&&"tablist"==e.parentElement.getAttribute("role"))&&(a="aria-selected"),-1!=e.className.indexOf("slick-active")?("A"!=e.nodeName&&"BUTTON"!=e.nodeName&&"li"!=e.nodeName||e.setAttribute(a,"true"),"BUTTON"!=e.nodeName&&"li"!=e.nodeName||e.setAttribute(a,"true"),e.setAttribute("aria-label",i+" slide "+(t+1)+" of "+c.children.length),d.dotNavArrows&&e.setAttribute("tabindex","0")):("A"==e.nodeName&&e.removeAttribute(a),"BUTTON"!=e.nodeName&&"li"!=e.nodeName||e.setAttribute(a,"false"),e.setAttribute("aria-label",i+" slide "+(t+1)+" of "+c.children.length),d.dotNavArrows&&e.setAttribute("tabindex","-1"))}},100)}},zt);function zt(){}var Gt=window,Qt="dot_slider_click",Xt="next_slider_click",Zt="previous_slider_click",te="data-pcs-slider-dots-mode";function ee(t){setTimeout(function(){$(t).trigger("resize"),$(t).resize()},150)}var ie={init:function(i,t,r){var e,n,s=(n={selector:".ph-slider-container",dotsMode:"default"},(e=t)&&Object.keys(e).forEach(function(t){n[t]=e[t]}),n),a=new Yt,o=i.querySelector(".ph-a11y-readable-content");return o&&o.parentElement&&o.parentElement.removeChild(o),new Promise(function(e,t){setTimeout(function(){s.customPaging=function(t,e){return function(t,e,i){if(i.dotsMode){var n="["+te+"="+i.dotsMode+"]",o=t.querySelector(n);if(o){var r=o.querySelector('[data-ph-slide-idx="'+(e+1)+'"]');if(r)return r.outerHTML}}}(i,e,s||{})},a.slickOverrideFun(s),s.appendDots&&(s.appendDots='[instance-id="'+i.getAttribute("instance-id")+'"] '+s.appendDots),s.appendArrows&&(s.appendArrows='[instance-id="'+i.getAttribute("instance-id")+'"] '+s.appendArrows);var t=document.querySelector("html");if("rtl"===(t&&t.getAttribute("dir"))&&(s.rtl=!0),$=Gt.jQuery.noConflict(),Gt.$&&$.fn.slick&&i&&i.querySelector(s.selector)){-1!=i.className.indexOf(s.selector)?r.sliderData.totalSlidesCount=i.children.length:r.sliderData.totalSlidesCount=i.querySelector(s.selector).children.length;var o=$(i.querySelector(s.selector));o&&o[0]&&(function(t){if(t&&t.parentElement){var e=document.createElement("div"),i=document.createElement("div");e.classList.add("ph-a11y-readable-content"),e.classList.add("sr-only"),i.classList.add("ph-a11y-readable-sr-elem"),i.setAttribute("role","presentation"),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),e.appendChild(i),t.parentElement.appendChild(e)}}(o[0]),o.on("init",function(t,e){!function(t,e,i,n,o){var r=new Yt;ee(t),r.slickOverrideAccessbility(t,i),function(e,t){var i=e.querySelector(".slick-next"),n=e.querySelector(".slick-prev"),o=e.querySelector(".slick-dots");if(t&&t.appendDots){var r=" .slick-dots";t.appendDots&&(r=t.appendDots+" .slick-dots");var s=t.appendDots?document.querySelector(r):e.querySelector(r);o=s||document.querySelector(r)}i&&i.addEventListener("click",function(t){Tt.trackWidgetClick(e,Xt,{})});n&&n.addEventListener("click",function(t){Tt.trackWidgetClick(e,Zt,{})});o&&o.addEventListener("click",function(t){Tt.trackWidgetClick(e,Qt,{})})}(t,i),function(t,e){if(t.tabs)for(var i=e&&e.querySelectorAll(".slide-tab")||[],n=function(e){i[e]&&i[e].addEventListener("keyup",function(t){37===t.keyCode?e-1<0?i[i.length-1]&&i[i.length-1].focus():i[e-1]&&i[e-1].focus():39===t.keyCode&&(e+1>=i.length?i[0]&&i[0].focus():i[e+1]&&i[e+1].focus())})},o=0;o<i.length;o++)n(o)}(i,o),n.block1&&n.block1.sliderArrows&&n.block1.sliderArrows.ariaText&&t.setAttribute("aria-label",n.block1.sliderArrows.ariaText+(e.currentSlide+1)+"  of "+n.sliderData.totalSlidesCount);if(i.dotsInsideNav&&e.$dots&&e.$nextArrow&&e.$prevArrow){var s,a,l,d,c;s=getComputedStyle(e.$dots[0].querySelector("button")),a=parseInt(s.width)+parseInt(s.marginRight)+parseInt(s.marginLeft),l=parseInt(getComputedStyle(e.$prevArrow[0]).width),d=e.$slides.length*a,c=(d%2==0?d/2:(1+d)/2)+a+l+"px",e.$nextArrow[0].style.transform="translate("+c+",100%)",e.$prevArrow[0].style.transform="translate(-"+c+",100%)"}}(o[0],e,s,r,i)}),o.on("beforeChange",function(t,e,i,n){!function(t,e,i,n){if(e.dots){var o,r=" .slick-dots";if(e.appendDots&&(r=e.appendDots+" .slick-dots"),(o=e.appendDots?document.querySelector(r):t.querySelector(r))&&o.children&&0<o.children.length){if($(o).find("button").removeClass("slick-active").end(),n||0==n){var s=$(o).find("button")[n/i.options.slidesToScroll];$(s).addClass("slick-active"),e.dotNavArrows&&$(s).focus()}}}t&&t.querySelector("[data-pcs-video]")&&Y.$emit("pauseVideo")}(o[0],s,e,n)}),o.on("afterChange",function(t,e,i,n){!function(t,e,i,n,o){if(i&&t&&t.parentElement){var r=o.sliderData.totalSlidesCount;o.block1&&o.block1.sliderArrows&&o.block1.sliderArrows.ariaText&&t.setAttribute("aria-label",o.block1.sliderArrows.ariaText+(i.currentSlide+1)+"  of "+r),1===i.options.slidesToShow?(o.showSliderTab=!0,o.currentSlideIdx=i.currentSlide,o.totalSlidesCount=r):(o.showSliderTab=!1,o.currentSlideIdx=i.options.slidesToShow&&Math.ceil(i.currentSlide/i.options.slidesToShow)||0,o.totalSlidesCount=i.options.slidesToShow&&Math.ceil(r/i.options.slidesToShow)||r);var s=i.$slideTrack&&i.$slideTrack.find(".slick-slide");if(s&&s.length)for(var a=0;a<s.length;a++){var l=s[a].querySelector("img");-1==s[a].className.indexOf("slick-active")?l&&l.setAttribute("aria-hidden",!0):l&&l.setAttribute("aria-hidden",!1)}var d=i.$slideTrack.find(".slick-active");d&&!d.length&&(d=i.$slideTrack.find(".slick-current"));var c=e.slidesToScroll||d.length,p=e.slidesToShow||d.length,u=i.$slideTrack.find(".slick-slide");for(a=0;a<u.length;a++)if(u[a].removeAttribute("tabindex"),-1!=u[a].className.indexOf("slick-active"))for(var h=0;h<$(u[a]).find("a, input, button, select").length;h++)$(u[a]).find("a, input, button, select")[h].setAttribute("tabindex","0");else for(h=0;h<$(u[a]).find("a, input, button, select").length;h++)$(u[a]).find("a, input, button, select")[h].setAttribute("tabindex","-1");for(var f=[],g=0;g<d.length;g++)if(p-c<=g&&p)for(var m=d[g].querySelectorAll(".ph-a11y-aria-live"),v=0;v<m.length;v++)f.push(m[v]);for(var y="",b=0;b<f.length;b++)if(f[b]){var w=f[b].innerText;w=(w=w.replace(/\n/g," ")).replace(/\r/g," "),y=y+" "+w}var E=t.parentElement.querySelector(".ph-a11y-readable-content .ph-a11y-readable-sr-elem");E&&!e.tabs&&(E.removeAttribute("aria-hidden"),setTimeout(function(){var t=Math.floor(n/i.options.slidesToShow)+1;r<t&&(t=1),E.innerText=" slide "+t+"  of "+Math.ceil(r/i.options.slidesToShow)+" "+y},50),clearTimeout(o.sliderData.toAccessAttrTimeout),o.sliderData.toAccessAttrTimeout=setTimeout(function(){E.setAttribute("aria-hidden","true")},200)),(new Yt).slickOverrideAccessbility(t,e);var k=t.querySelector(".slick-list");if(k){k.removeAttribute("aria-atomic"),k.removeAttribute("aria-live");var x=k.querySelectorAll(".slick-active")||[];1<x.length?k.setAttribute("role","list"):(k.setAttribute("role","presentation"),x&&x[0]&&x[0].removeAttribute("role"))}}}(o[0],s,e,i,r)}),o[0].classList.remove("pcs-slide-loader"),o[0].classList.contains("slick-initialized")&&o.slick("unslick"),ee(o),o.slick(s),o.slick("slickGoTo",s.initialSlide||0)),e(o)}},10)})},gotoSlide:function(t,e,i){t&&(t.slick("slickGoTo",e||0),ee(t))}},ne=(oe.prototype.init=function(t){},oe.prototype.next=function(){},oe.prototype.prev=function(){},oe.prototype.pause=function(){},oe);function oe(t){this.sliderOptions=t||{}}var re,se=window,ae=(t(le,re=ne),le.prototype.loadSlider=function(){var t=se.phw,e=t?t.platform:void 0,i=e.loadScriptById("jquery",!1),n=e.loadScriptById("jqueryMigrate",!1),o=e.loadScriptById("slick",!1);return Promise.all([i,n,o])},le.prototype.init=function(t,e){var i=this;re.prototype.init.call(this,t),this._widgetScope=e;var n=t.querySelector(this.sliderOptions.selector||".ph-slider-container");n&&n.classList.add("pcs-slide-loader"),this.loadSlider().then(function(){ie.init(t,i.sliderOptions,i._widgetScope).then(function(t){i.slickElem=t})})},le.prototype.gotoSlide=function(t){ie.gotoSlide(this.slickElem,t,this.sliderOptions)},le);function le(t){return re.call(this,t)||this}var de=(ce.getSliderHandler=function(t,e){return new ae(t)},ce);function ce(){}var pe=(ue.prototype.trackEvent=function(){},ue.prototype.init=function(){},ue.prototype.play=function(){Tt.trackWidgetClick(this.element,"play_click",this.fetchVideoDetails())},ue.prototype.pause=function(){Tt.trackWidgetClick(this.element,"pause_click",this.fetchVideoDetails())},ue.prototype.fetchVideoDetails=function(){return{ctx:{videotype:this.playerOptions.provider,videoid:this.playerOptions.videoId||this.playerOptions.videoUrl||this.playerOptions.src}}},ue.prototype.stop=function(){},ue.prototype.mute=function(){},ue.prototype.loop=function(){},ue);function ue(t,e,i){this.playerOptions=i,this.element=t}var he,fe=window,ge=["play","rewind","fast-forward","progress","current-time","mute","volume","captions","settings","fullscreen"],me=(t(ve,he=pe),ve.prototype.load=function(){var t=fe.phw,e=t?t.platform:void 0,i=e.loadScriptById("plyrPolyfill",!1),n=e.loadScriptById("plyrScript",!1),o=e.loadScriptById("plyrStyle",!1);return Promise.all([i,n,o])},ve.prototype.init=function(){var a=this;return this.load().then(function(){var t=document.createElement("div"),e=a.playerOptions.selector||".ph-video-cntr",i=a.element&&a.element.querySelector(e)||a.element;i.innerHTML="",i.appendChild(t),a.playerOptions.provider=a.playerOptions.provider||a.playerOptions.videotype;var n=a.playerOptions.provider,o=a.playerOptions;switch(0!=o.controls&&(o.controls=ge),o.loop&&(o.loop={active:!0}),o.fullscreen={enabled:!1},o.autopause={enabled:!0},"youtube"===n?o.youtube={noCookie:!0,rel:0}:"vimeo"===n&&(a.playerOptions.src=a.getVimeoId(a.playerOptions.src)),o.fullscreen={enabled:!1},n){case"youtube":case"vimeo":return t.setAttribute("data-plyr-provider",n),t.setAttribute("data-plyr-embed-id",a.playerOptions.src),a.player=new fe.Plyr(t,o),a.player.elements&&a.player.elements.poster&&a.player.elements.poster.classList.add("enabled"),a.player.on("ready",function(t){a.onPlayerReady()}),a.player.on("playing",function(t){a.player.elements&&a.player.elements.controls&&a.player.elements.controls.firstElementChild&&a.player.elements.controls.firstElementChild.setAttribute("aria-label","Pause"),a.player.elements&&a.player.elements.poster&&a.player.elements.poster.classList.remove("enabled")}),a.player.on("pause",function(t){a.player.elements&&a.player.elements.controls&&a.player.elements.controls.firstElementChild&&a.player.elements.controls.firstElementChild.setAttribute("aria-label","Play")}),t.setAttribute("tabindex","-1"),a.player;case"video":case"mp4":var r=document.createElement("video"),s={src:a.playerOptions.videoUrl||a.playerOptions.src,controlsList:"nodownload",disablepictureinpicture:!0,controls:a.playerOptions.controls?ge:[],preload:a.playerOptions.preload||"auto",playsinline:a.playerOptions.playsinline,autopause:!0,poster:a.playerOptions.poster};return Object.keys(s).forEach(function(t,e){r.setAttribute(t,s[t])}),t.appendChild(r),a.player=new fe.Plyr(r,o),a.onPlayerReady(),a.player.on("playing",function(t){a.player.elements&&a.player.elements.controls&&a.player.elements.controls.firstElementChild&&a.player.elements.controls.firstElementChild.setAttribute("aria-label","Pause")}),a.player.on("pause",function(t){a.player.elements&&a.player.elements.controls&&a.player.elements.controls.firstElementChild&&a.player.elements.controls.firstElementChild.setAttribute("aria-label","Play")}),"absolute"==window.getComputedStyle(r).position&&r.parentElement&&(r.parentElement.style.paddingBottom="44.25%"),"static"==window.getComputedStyle(r).position&&(r.style.height=.8*window.innerHeight+"px"),a.player}})},ve.prototype.onPlayerReady=function(){var t=document.querySelector(".plyr");t&&t.removeAttribute("tabindex");var e=document.querySelector(".plyr__video-wrapper");if(e&&e.querySelector("video")){var i=e.querySelector("video");i&&i.setAttribute("tabindex","-1"),i&&i.setAttribute("aria-hidden","true")}var n=document.querySelector(".plyr__video-embed"),o=n&&n.querySelector("iframe");if(o&&o.setAttribute("tabindex","-1"),o&&o.setAttribute("aria-hidden","true"),this.playerOptions.volume<=0&&this.mute(),this.playerOptions.autoplay&&(this.mute(),this.player&&(this.player.autoplay=!0),this.play()),this.playerOptions.loop&&this.loop(),this.playerOptions.controls||this.controls(),this.playerOptions.preload&&this.preload(this.playerOptions.preload),this.element){var r=this.element.querySelector(".ph-slider-container");r&&r.slick&&r.slick.refresh(),r||this.findSlider(this.element,10)}},ve.prototype.findSlider=function(t,e){t&&t.classList.contains("ph-slider-container")?t.slick&&t.slick.refresh():0<e&&this.findSlider(t&&t.parentElement,e-1)},ve.prototype.play=function(){this.player&&(he.prototype.play.call(this),this.player.play())},ve.prototype.mute=function(){this.player&&(this.player.muted=!0)},ve.prototype.pause=function(){this.player&&(he.prototype.pause.call(this),this.player.pause())},ve.prototype.loop=function(){this.player&&(this.player.loop=!0)},ve.prototype.controls=function(){if(this.player){this.player.controls=!1,this.element&&this.element.firstElementChild&&this.element.firstElementChild.setAttribute("tabindex","-1");var t=this.element.querySelector("iframe");t&&t.setAttribute("tabindex","-1"),t&&t.setAttribute("aria-hidden","true")}},ve.prototype.preload=function(t){this.player&&(this.player.preload=t)},ve.prototype.changeVideo=function(t){},ve.prototype.getVimeoId=function(t){var e=t.match(/^.+vimeo.com\/(.*\/)?([^#\?]*)/);return e?e[2]||e[1]:null},ve);function ve(t,e,i){var n=he.call(this,t,e,i)||this;return Y.$on("pauseVideo",function(){n.pause()}),n}var ye,be="KalturaPlayer",we="kWidget",Ee="KALTURASCRIPTADDED",ke="getPlayerDetails",xe=window,Ae=(t(Ie,ye=pe),Ie.prototype.isApiRequested=function(){return xe&&xe[Ee]},Ie.prototype.isApiLoaded=function(){return xe&&xe[we]},Ie.prototype.checkApiLoaded=function(t){var e=this;xe&&xe[we]?t&&t():setTimeout(function(){e.checkApiLoaded(t)},200)},Ie.prototype.raisePauseEvents=function(){var n=this;if(!this.playerOptions.allowMultiplePlay&&xe&&xe[be]){var o=xe[be].getPlayers();o&&Object.keys(o).forEach(function(t){var e=o[t];if(e&&e.getMediaInfo){var i=e.getMediaInfo();i&&i.entryId&&i.entryId!=n.playerDetails.providerReferenceId&&e.pause()}})}},Ie.prototype.prepareVideoContainer=function(){this.playerContainer=document.createElement("div"),this.playerContainer.id="kaltura-player-"+Date.now()+"-"+this.videoId,this.playerContainer.classList.add("kaltura-player"),this.playerContainer.style.display="none";var t=.8*window.innerHeight,e=this.playerOptions.height;e&&(t=t<=e?t:e),this.playerOptions.externalEmbed||(this.playerContainer.style.height=t+"px");var i=this.playerOptions.selector||".ph-video-cntr",n=this.element.querySelector(i)||this.element;n.innerHTML="",n.appendChild(this.playerContainer)},Ie.prototype.loadKalturaApi=function(){var r=this;return new Promise(function(e,t){if(r.isApiRequested())r.checkApiLoaded(function(){e({})});else{xe[Ee]=!0;var i=document.createElement("script"),n=r.playerDetails.embedurl;i.src=n,i.onload=function(){xe.require&&!xe.KalturaPlayer?xe.require(["KalturaPlayer"],function(t){xe[we]=t,e({})}):(xe[we]=xe.KalturaPlayer,e({}))};var o=document.querySelector("head");o&&o.appendChild(i)}})},Ie.prototype.preparePlayerDetails=function(){var n=this;return new Promise(function(e,i){n.playerOptions.playerDetails?(n.playerDetails=n.playerOptions.playerDetails,e({})):Dt(ke,{videoId:n.videoId}).then(function(t){t&&t[ke]&&t[ke].data?(n.playerDetails=t[ke].data,e({})):i({})})})},Ie.prototype.loadVideoAndSetupListeners=function(){var a=this;return new Promise(function(i,e){a.playerOptions.playerDetails=a.playerOptions.playerDetails||a.playerDetails;var t=a.playerOptions.playerId||a.playerOptions.playerDetails&&a.playerOptions.playerDetails.playerId,n=a.playerOptions.partnerId||a.playerOptions.playerDetails&&a.playerOptions.playerDetails.partnerId,o={targetId:a.playerContainer?a.playerContainer.id:void 0,provider:{partnerId:n,uiConfId:t},playback:{autoplay:!1,allowMutedAutoPlay:!1}};1===a.playerOptions.autoplay&&(o.playback.autoplay=!0),0===a.playerOptions.volume&&(o.playback.allowMutedAutoPlay=!0);var r=xe[we].setup(o);if(r){r.ready().then(function(t){if(a.element){var e=a.element.querySelector(".ph-slider-container")||a.findSlider(a.element,10);e&&e.slick&&e.slick.refresh()}}),r.addEventListener(r.Event.Core.PROGRESS,function(t){}),r.addEventListener(r.Event.Core.PAUSE,function(t){a.pauseInternal()}),r.addEventListener(r.Event.Core.PLAY,function(t){a.playInternal(),a.raisePauseEvents()});var s={entryId:a.playerDetails.providerReferenceId,ks:a.playerOptions.ks||a.playerOptions.playerDetails.ks||""};r.loadMedia(s).then(function(){if(a.playerOptions.externalEmbed&&a.playerOptions.playerDetails.externalEmbedItemId){var t=a.playerOptions.playerDetails.externalEmbedItemId,e=a.playerOptions.playerDetails.externalEmbedNamespace;xe[e]&&xe[e][t]&&xe[e][t].embedPlayerReady&&xe[e][t].embedPlayerReady(a)}a.playerContainer&&(a.playerContainer.style.display="block"),i({})},function(t){e({})})}a.player=r})},Ie.prototype.play=function(){var t=this;this.player&&setTimeout(function(){ye.prototype.play.call(t),t.player.play?t.player.play():t.player.sendNotification&&t.player.sendNotification("doPlay")},100)},Ie.prototype.playInternal=function(){ye.prototype.play.call(this)},Ie.prototype.pauseInternal=function(){ye.prototype.pause.call(this)},Ie.prototype.pause=function(){this.player&&(ye.prototype.pause.call(this),this.player.pause?this.player.pause():this.player.sendNotification&&this.player.sendNotification("doPause"))},Ie.prototype.stop=function(){ye.prototype.stop.call(this)},Ie.prototype.mute=function(){ye.prototype.mute.call(this),this.player.sendNotification&&this.player.sendNotification("changeVolume",0)},Ie.prototype.autoplay=function(){var t=this;this.player&&this.player.sendNotification&&(xe.KWidget&&!xe.KWidget.isChrome()&&!xe.KWidget.isIOS()&&xe.KWidget.isSafari()&&this.player.sendNotification("changeVolume",0),setTimeout(function(){t.player.sendNotification("doPlay")},100))},Ie.prototype.changeVideo=function(t){this.player.sendNotification&&(t?this.player.sendNotification("changeMedia",{entryId:t}):this.player.sendNotification("changeMedia",{entryId:this.playerOptions.videoId}))},Ie.prototype.findSlider=function(t,e){return t&&t.classList.contains("ph-slider-container")?t:0<e?void this.findSlider(t&&t.parentElement,e-1):null},Ie.prototype.init=function(){var i=this;return new Promise(function(e,t){i.videoId=i.playerOptions.kalturaEntryId||i.playerOptions.entryId||i.playerOptions.videoId,i.prepareVideoContainer(),i.preparePlayerDetails().then(function(t){i.loadKalturaApi().then(function(t){i.loadVideoAndSetupListeners().then(function(){e({})})})})})},Ie);function Ie(t,e,i){var n=ye.call(this,t,e,i)||this;return Y.$on("pauseVideo",function(){n.pause()}),n}var Ce=(Se.PROVIDER_KALTURA_PLAYER="kaltura",Se.PROVIDER_YOUTUBE="youtube",Se.PROVIDER_VIDEO="video",Se.PROVIDER_PLYR="plyr",Se.PROVIDER_VIMEO="vimeo",Se);function Se(){}var Te=(_e.createPlayer=function(t,e,i){return Ce.PROVIDER_KALTURA_PLAYER===e?new Ae(t,e,i):new me(t,e,i)},_e);function _e(){}var Le,Me,Oe,De=(Re.prototype.create=function(){this.componentTag.length&&this.dialogContentElem.length&&this.createDialogElements()},Re.prototype.setFocusOnCloseElem=function(t){this.focusOnCloseElem=t||this.focusOnCloseElem||document.activeElement},Re.prototype.setFocusableElements=function(){this.focusableElements=this.dialogElem&&this.dialogElem.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary'),this.focusableElements=Array.prototype.slice.call(this.focusableElements),this.firstFocusableElement=this.focusableElements[0],this.lastFocusableElement=this.focusableElements[this.focusableElements.length-1]},Re.prototype.addEventListeners=function(){document.addEventListener("focus",this.handleFocus,!0),document.addEventListener("keyup",this.handleEscapeClick,!0)},Re.prototype.removeEventListeners=function(){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("keyup",this.handleEscapeClick,!0)},Re.prototype.open=function(){this.dialogElem&&(this.componentTag&&wt(this.dialogElem.firstElementChild,this.componentTag,this.dialogModel),this.setFocusOnCloseElem(),this.setFocusableElements(),this.addEventListeners(),document.body.style.overflow="hidden",this.focusEle?this.focusEle.focus():this.firstFocusableElement&&this.firstFocusableElement.focus())},Re.prototype.handleEscapeClick=function(t){t&&27==t.keyCode?Le.close():t&&9==t.keyCode&&t.shiftKey&&t.target},Re.prototype.close=function(){return!(!this.dialogElem||!this.dialogElem.parentElement||(this.removeEventListeners(),document.body.style.overflow="auto",this.focusOnCloseElem&&this.focusOnCloseElem.focus(),0))},Re.prototype.createDialogElements=function(){var t=document.createElement("div"),e=document.createElement(this.componentTag),i=document.createElement("div"),n=(document.createElement("div"),this.dialogContentElem);this.dialogContentElem&&"object"==typeof this.dialogContentElem&&(n=this.dialogContentElem.outerHTML),e.appendChild(t),e.innerHTML=n,document.body.appendChild(e),i.className="modal fade in show ph-a11y-modal-area",i.setAttribute("role","dialog"),i.innerHTML=n,this.dialogModel=c(c({},this.dialogModel),{template:i.outerHTML}),this.dialogElem=e},Re);function Re(t,e,i,n,o){var r=this;this.isOpen=!1,this.handleFocus=function(t){t.preventDefault(),r.dialogElem&&t.target&&!r.dialogElem.contains(t.target)&&"TEXTAREA"!=t.target.nodeName?r.firstFocusableElement&&r.lastFocusableElement&&r.previousFocusableElement===r.lastFocusableElement?(r.firstFocusableElement.focus(),r.previousFocusableElement=r.firstFocusableElement):r.lastFocusableElement&&r.firstFocusableElement&&r.previousFocusableElement===r.firstFocusableElement?(r.lastFocusableElement.focus(),r.previousFocusableElement=r.lastFocusableElement):(r.firstFocusableElement.focus(),r.previousFocusableElement=r.firstFocusableElement):r.previousFocusableElement=t.target},this.componentTag=t,this.dialogContentElem=e,this.dialogModel=i,this.focusEle=n||null,this.focusOnCloseElem=o||null,this.create()}function Pe(t){if(Oe&&Oe.length&&(!t||!t.isNonModal)){var i=[];Oe.forEach(function(t,e){t.dialogElem.close()&&i.push(e)}),i.forEach(function(t){Oe.splice(t,1)})}}function Fe(){if(Oe&&Oe.length)return Oe[Oe.length-1]}Me=Le=Le||{},Oe=[],Me.open=function(t,e,i,n,o,r){var s=new De(t,e,i,o,r),a={dialogElem:s,isNonModal:n||!1};Pe(a),Oe.push(a),s.open()},Me.openDialog=function(t,e,i,n){i=i||document.activeElement;var o=new De("","",{},e,i);o.dialogElem=t,o.open();var r={dialogElem:o,isNonModal:n||!1};Pe(r),Oe.push(r)},Me.close=function(){var t=Fe();t&&(Oe.pop(),t.dialogElem.close())},Me.closeAll=function(){},Me.getOpenDialogs=function(){if(Oe&&Oe.length)return Oe},Me.getActiveDialog=Fe;var Ve=(Ne.prototype.triggerPopup=function(t,e,i,n,o){var r=this;this._self.currentData=t,n&&(this._self.bindModel.mediaType=n,this._self.settings.bindables=this._self.settings.bindables||{},this._self.settings.bindables.attrs=this._self.settings.bindables.attrs||{},this._self.settings.bindables.attrs.mediaType=n);var s=this._self.content[this._self.contentId]&&this._self.content[this._self.contentId].list||[];if(this._self.bindModel.mode=this._self.bindModel.mode||"popup","popup"===this._self.bindModel.mode){if(this._self.enablePopup=!0,"video"===this._self.bindModel.mediaType){var a=t.video||t;a&&a.videotype&&(a.provider=a.provider||a.videotype),this._self.playerOptions=c(c({},this._self.bindModel.playerOptions),i||{}),this._self.$nextTick(function(){r._self.initVideoPlayer(r._self.playerOptions,a,1<s.length,o)})}"gallery"===this._self.bindModel.mediaMode&&(this._self.currentData=s,this._self.slickGotoSlide(e)),this._self.openDialog()}if("video-inline"===this._self.bindModel.mediaType){var l=t.video||t;l&&l.videotype&&(l.provider=l.provider||l.videotype),this._self.playerOptions=c(c({},this._self.bindModel.playerOptions),i||{}),this._self.$nextTick(function(){r._self.initVideoPlayer(r._self.playerOptions,l,1<s.length)})}},Ne.prototype.handleTranscript=function(){var t=(this._self.currentData.video||this._self.currentData||{}).transcript;window.open(t),this._self.player&&this._self.player.pause&&this._self.player.pause(),this._self.trackWidgetClick("transcript_click",{})},Ne.prototype.handleAudiodescription=function(){var t=JSON.parse(JSON.stringify(this._self.currentData.video||this._self.currentData));t.enabledDescription=!t.enabledDescription,t.enabledDescription?(t.src=t.audiodescription,t.videoUrl=t.audiodescription,this._self.trackWidgetClick("enable_description_video_click",{})):(t=this._self.currentData.video||this._self.currentData,this._self.trackWidgetClick("disable_description_video_click",{})),this._self.initVideoPlayer(this._self.playerOptions,t,!0)},Ne.prototype.openDialog=function(n){var o=this;this.$nextTick(function(){var t=o._self.$el&&o._self.$el.querySelector(".modal"),e=o._self.$el&&o._self.$el.querySelector(".close"),i=document.activeElement||document.querySelector("body");e&&n.openDialog(t,e,i)})},Ne.prototype.closePopup=function(){this._self.player&&this._self.player.pause&&this._self.player.pause(),this._self.closeDialog(),this._self.trackWidgetClick("popup_close_click",{}),this._self.enablePopup=!1},Ne.prototype.handleHashScrollIntoView=function(){var t=window.location.hash,e=t&&t.substring(1),i=this._self.$el&&this._self.$el.getAttribute("id");i&&i===e&&this._self.$el.scrollIntoView()},Ne);function Ne(t){this._self=t}var Be,je="pcs-tref",He="ph-tmpl-string",Ue=["pcs-card-v1","pcs-component-v1"],$e="caasPageViews",qe="caasContentV1",We=["eagerLoadRefineSearchSession"],Ke="instance-id",Je=["[",Ke,"]"].join(""),Ye=(t(ze,Be=u),ze.prototype.fetchInstanceIdValue=function(t){if(t&&t[this.instanceId])return t[this.instanceId]},ze.prototype.fetchContentModel=function(i,t){var n=this;return(t=t||{}).pageId=g.getPageId(),Dt(i,t).then(function(t){var e=t||{};if(e=e[i]||{},n.handleWidgetImpressionparams(e),"success"===e.status)return e.data;"failure"!=e.status&&500!=e.status||n.onError()},function(t){n.onError()})},ze.prototype.fetchPageContext=function(){var t=Ot($e);if("success"===(t=t[$e]).status){var e=t.data;return this.aliases=e.aliases,this.widgetViews=e.views,t.data}},ze.prototype.getAgpMetaData=function(){var t=Ot("getAgpMetaData")||{};(t=t.getAgpMetaData)&&t.status&&"success"==t.status&&t.data&&(this.agpMetaData=t.data)},ze.prototype.fetchInnerTmpl=function(t){return this.innerTmplElems[t]||""},ze.prototype.setTemplate=function(t){var e,i=this,n=t.aliases,o=t.settings,r=t.views;if(n&&n[this.instanceId]||r[this.widgetId]){var s=n[this.instanceId]&&n[this.instanceId]||r[this.widgetId]&&r[this.widgetId],a=document.createElement("div");this.tmplString=s.html||"",this.viewName=r[this.widgetId].view,this.themeName=r[this.widgetId].theme,this.wdgtClsName=[this.elemTag,this.viewName,this.themeName].join("-"),this.tmplString&&(a.innerHTML=this.tmplString);for(var l=a.querySelectorAll("["+He+"]"),d=0;d<l.length;d++){var c=l[d],p=c.getAttribute(He);p&&(this.innerTmplElems[p]=c.outerHTML),c.parentElement&&c.parentElement.removeChild(c)}e=a.innerHTML,this.$options.template=this.constructTmplString(e);var u=50;-1!=Ue.indexOf(this.elemTag)&&(u=0),setTimeout(function(){i.$el&&i.$el instanceof HTMLElement&&(i.wgtElem=i.$el,i.widgetViewLoadedLocal(),i.raiseWidgetLoadedCustomEVent(),i.bindModel&&i.bindModel.px&&i.bindModel.px.enabled&&i.contentId&&(Tt.responseDdoCallback(i.fetchRecomContentBasedOnActivity),i.isPxFiedWidgetContent()))},u)}this.settings=o&&o[this.instanceId]||{},this.mergeSettings(),this.mergeSiteLevelBindables(),this.mergeSettingsToLocal(),this.settingsLoadedLocal()},ze.prototype.constructTmplString=function(t){if(-1==Ue.indexOf(this.elemTag))this.instanceId&&(t='<div instance-id="'+this.instanceId+'">'+t+"</div>"||"<div></div>");else if(this.pinstanceId){var e=document.createElement("div");e.innerHTML=t;for(var i=e.querySelectorAll(Je),n=0;n<i.length;n++){var o=i[n].getAttribute(Ke);i[n].setAttribute(Ke,this.pinstanceId+"-"+o)}t=e.innerHTML}return t},ze.prototype.raiseWidgetLoadedCustomEVent=function(){-1==Ue.indexOf(this.elemTag)&&this.wgtElem&&this.wgtElem instanceof HTMLElement&&this.raiseCustomEvent("ph:ex:widgetLoaded",{elem:this.wgtElem})},ze.prototype.raiseCustomEvent=function(t,e){var i=new CustomEvent(t,{bubbles:!0,detail:e});document.dispatchEvent(i)},ze.prototype.created=function(){var r=this;this.baseCompUtil=new Ve(this);var t=this.fetchPageContext();this.bindModel=this.bindableModel||{},this.elemTag=this.elementTag||"",this.pxDDoList=Tt.getSiteSettings("pxSupportedDDoList")||We,this.deviceType=g.getDeviceType(),this.setTemplate(t),this.sctx&&(this.settings=this.sctx),this.cfield,this.cmpid,this.ctx?this.bindModel&&this.bindModel.px&&this.bindModel.px.enabled?this.isPxFiedWidgetContent():(this.isContentFetched=!0,this.content=this.ctx,this.exposeAliasToTemplate("block1",this.contentId),this.contentModelLoadedLocal()):-1!=Ue.indexOf(this.elemTag)||this.bindModel&&this.bindModel.px&&this.bindModel.px.enabled||this.fetchContentModel(qe).then(function(t){if(t){var e=t.content?t.content:t;e=JSON.parse(JSON.stringify(e||{}));var i=r.fetchInstanceIdValue(r.aliases);if(i&&i.length){var n=i[0]["data-ph-content-id"];if(e&&e[n]){if(r.content[n]=e[n].content||{},r.rawContent[n]=e[n]||{},r.bindModel&&r.bindModel.maxCardsToDisplay){r.content[r.contentId]=r.content[r.contentId]||{};var o=r.content[r.contentId].list||[];if(r.bindModel.maxCardsToDisplay<o.length){try{r.content[r.contentId]._list=JSON.parse(JSON.stringify(o))}catch(t){}r.content[r.contentId].list=o.splice(0,r.bindModel.maxCardsToDisplay)}}r.bindModel.mandateRequiredFields&&r.bindModel.requiredFields&&r.bindModel.requiredFields.length&&r.eliminateMissingRequiredFieldsCards()}}r.isContentFetched=!0,r.contentModelLoadedLocal()}else r.handleError()},function(t){r.onError()})},ze.prototype.exposeAliasToTemplate=function(t,e){this.contentId=e,this[t]={},this.isContentFetched&&(this[t]=this.content[e]||this.ctx)},ze.prototype.trackWidgetClick=function(t,e){Tt.trackWidgetClick(this.wgtElem,t,e)},ze.prototype.getBaseDomain=function(){return g.getBaseDomain()},ze.prototype.mounted=function(){},ze.prototype.widgetViewLoadedLocal=function(){this.isWidgetViewLoaded=!0,this.widgetViewLoaded(),this.baseCompUtil.handleHashScrollIntoView(),this.isWidgetViewLoaded&&this.isContentModelLoaded&&this.isSettingsModelLoaded&&this.widgetReady()},ze.prototype.contentModelLoadedLocal=function(){this.isContentModelLoaded=!0,this.contentModelLoaded(),this.isWidgetViewLoaded&&this.isContentModelLoaded&&this.isSettingsModelLoaded&&this.widgetReady()},ze.prototype.settingsLoadedLocal=function(){this.isSettingsModelLoaded=!0,this.settingsLoaded(),this.isWidgetViewLoaded&&this.isContentModelLoaded&&this.isSettingsModelLoaded&&this.widgetReady()},ze.prototype.widgetViewLoaded=function(){},ze.prototype.contentModelLoaded=function(){},ze.prototype.settingsLoaded=function(){},ze.prototype.hasContentModelLoaded=function(){return this.isContentModelLoaded},ze.prototype.hasWidgetViewLoaded=function(){return this.isWidgetViewLoaded},ze.prototype.hasSettingsLoaded=function(){return this.isSettingsModelLoaded},ze.prototype.widgetReady=function(){},ze.prototype.mergeSettings=function(){if(this.settings.bindables=this.settings.bindables||{},this.settings.bindables.attrs=this.settings.bindables.attrs||{},this.bindables&&Object.keys(this.bindables).length)for(var t in this.bindables)this.settings.bindables.attrs[t]=this.bindables[t];if(this.settings.bindables.attrs)for(var e in this.settings.bindables.attrs)this.bindModel[e]=this.settings.bindables.attrs[e]},ze.prototype.mergeSiteLevelBindables=function(){var t=Tt.getSiteSettings("siteLevelWidgetBindables");t=t&&t[this.widgetId]||{},this.bindModel=this.bindModel||{},t&&(this.bindModel=c(c({},this.bindModel),t))},ze.prototype.mergeSettingsToLocal=function(){this.bindableModel=c(c({},this.bindableModel),this.bindModel)},ze.prototype.focusElement=function(t,e,i){var n=i||this.wgtElem;Tt.focusElement(t,e,n)},ze.prototype.initSliderMode=function(t,e){if(this.wgtElem&&this.wgtElem.querySelector){var i=this.wgtElem.querySelector(".slick-buttons-area-templates .slick-prev"),n=this.wgtElem.querySelector(".slick-buttons-area-templates .slick-next");i&&(t.prevArrow=i.outerHTML),n&&(t.nextArrow=n.outerHTML),this.sliderHandler=de.getSliderHandler(t,e),t.tabs&&(this.showSliderTab=!0),this.sliderHandler.init(this.wgtElem,this)}},ze.prototype.slickGotoSlide=function(t){this.sliderHandler.gotoSlide(t)},ze.prototype.initVideoPlayer=function(t,e,i,n){var o=this;if(n=n||this.wgtElem,!this.player||i){var r=c(c({},e),t),s=Te.createPlayer(n,r.provider||"",r);s&&s.init().then(function(t){o.player=s})}else this.player&&this.player.onPlayerReady()},ze.prototype.fetchRecomContentBasedOnActivity=function(t){this.isPxFiedWidgetContent(t)},ze.prototype.isPxFiedWidgetContent=function(t){var i=this;if(!(Tt.isCrawlerUserAgent()||t&&-1===We.indexOf(t||""))){var e=this.constructPxReq();this.fetchContentModel("recomCaasContent",e).then(function(t){if(t&&t.content&&t.content[i.contentId]){var e=i.compileContentModel(t);e&&e.data&&e.data.content&&e.data.content[i.contentId]&&e.data.content[i.contentId].content&&(i.content[i.contentId]=e.data.content[i.contentId].content||{},i.bindModel.mandateRequiredFields&&i.bindModel.requiredFields&&i.bindModel.requiredFields.length&&i.eliminateMissingRequiredFieldsCards()),i.showContainer()}else i.handleError();i.isContentFetched=!0,i.exposeAliasToTemplate("block1",i.contentId),i.$forceUpdate(),t&&i.contentModelLoadedLocal()},function(t){i.onError()})}},ze.prototype.compileContentModel=function(t){var e,i=window.phw;if(t&&i&&i.platform&&i.platform.compileContentModel){var n=((e={})[this.instanceId]=this.aliases[this.instanceId],e);return i.platform.compileContentModel(n,{data:t})}return t},ze.prototype.getSettingsMapper=function(){var t,e=this.settings&&this.settings.list&&this.settings.list[0]||{},i=this.bindModel.requireFieldsSettingsMapper||{},n={},o=g.getDDOFromCache(qe),r=this.getContentMetaData(o);return r&&(t=r.content&&r.content.list&&r.content.length,n=r.mapping),{settings:e,fieldsSettingsMapper:i,size:t,mapping:n}},ze.prototype.constructPxReq=function(){var t=this.getSettingsMapper(),e=t.size,i=t.mapping,n=t.settings,o=t.fieldsSettingsMapper||{},r=this.bindModel.maxCardsToDisplay,s={contentId:this.contentId,pxEnabled:!0,pageName:g.getPageName(),pageType:g.getPageType()};if(this.bindModel.px.type&&(s.type=this.bindModel.px.type),(e||r)&&(s.batchSize=r||e),this.bindModel.priority&&(s.priority=this.bindModel.priority),this.settings["card-container"]&&this.settings["card-container"].custom&&this.settings["card-container"].custom.fixedContainer){s.height=this.settings["card-container"].custom.fixedContainer.ctrH;var a=this.settings["card-container"].custom.fixedContainer.ctrAr;(a=a&&a.split(":"))&&a.length&&(s.aspectRatio=a[0]/a[1])}return this.bindModel.requiredFields&&i&&(s.requiredFields=[],this.bindModel.requiredFields.forEach(function(t){var e=o[t];!i[t]||e&&n[e]&&n[e].hidden||s.requiredFields.push(i[t])})),this.getAgpMetaData(),Object.keys(this.agpMetaData||{}).length&&(s.agpMetaData=this.agpMetaData),this.bindModel.fieldRecomctx&&this.bindModel.fieldRecomctx.length&&(s.contextData=this.constructJobPageFieldBasedRecomObj()),s},ze.prototype.constructJobPageFieldBasedRecomObj=function(){var t,e,i=Ot("jobDetail"),n=null===(e=null===(t=null==i?void 0:i.jobDetail)||void 0===t?void 0:t.data)||void 0===e?void 0:e.job,o={};return n&&this.bindModel.fieldRecomctx.forEach(function(t){n[t]&&(o[t]=o[t]||[],o[t].push(n[t]))}),o},ze.prototype.eliminateMissingRequiredFieldsCards=function(){var a=this,t=this.content[this.contentId].list,l=this.getSettingsMapper().fieldsSettingsMapper,d=this.getSettingsMapper().settings,c=[];t.forEach(function(t){for(var e=!0,i=0;i<a.bindModel.requiredFields.length;i++){var n=a.bindModel.requiredFields[i],o=t[n],r=l[t];if(!(o&&Object.keys(o).length||r&&d[r]&&d[r].hidden)){e=!1;break}if("video"==n){if(Object.keys(o).length<=1){e=!1;break}var s=o.videotype;if(s&&"kaltura"==s&&!o.entryId){e=!1;break}if(!o.src){e=!1;break}}}e&&c.push(t)}),this.content[this.contentId].list=c},ze.prototype.getSearchKeyword=function(){for(var t=location.search,e=(t=t.substr(1)).split("&"),i=0;i<e.length;i++){var n=e[i];if(1<(n=n.split("=")).length&&-1!=["keywords","q"].indexOf(n[0]))return decodeURIComponent(n[1])}},ze.prototype.getUrl=function(t,e,i,n,o){var r=this.getUrlQueryString(t,e,i,n,o);return o=o||Tt.getUrl(e,i,r)},ze.prototype.getUrlQueryString=function(t,e,i,n,o){var r=t&&this.$refs&&this.$refs[t]&&this.$refs[t][0];r&&r.setAttribute&&r.setAttribute("pcs-click-ctx",e),r&&r.getAttribute&&r.getAttribute("pcs-track")&&(this.subscribeToTrackingEvents(r),r.setAttribute(je,(new Date).getTime()+(65536*(1+Math.random())|0).toString(16).substring(0)),r.setAttribute("pcs-tag",this.elemTag),Tt.storePageTrackEventData(r.getAttribute(je),i));var s="";if(n)try{var a="",l="&"+(n=n.trim()),d=/&[a-zA-Z0-9\s]+\=/g,c=l.match(d);if(c){for(var p=l.split(d),u=0;u<c.length;u++){var h=c[u];h&&p[u+1]&&(a+=h+encodeURIComponent(p[u+1]))}a=a.replace("&","")}s=a}catch(t){console.warn("ph-widget:getUrl:"+t)}return s},ze.prototype.subscribeToTrackingEvents=function(t){t&&t.addEventListener("click",function(t){t.phTarget||(t.phTarget=t.currentTarget)})},ze.prototype.dispatchEvent=function(t,e){var i=new CustomEvent(t,{bubbles:!0,detail:e||{}});document.dispatchEvent(i)},ze.prototype.hideLoader=function(){this.showLoader=!1},ze.prototype.unhideLoader=function(){this.showLoader=!0},ze.prototype.onError=function(t){this.hideContainer()},ze.prototype.hideContainer=function(){this.wgtElem&&this.wgtElem instanceof HTMLElement&&this.wgtElem.style&&(this.wgtElem.style.display="none")},ze.prototype.showContainer=function(){this.wgtElem&&this.wgtElem instanceof HTMLElement&&this.wgtElem.style&&(this.wgtElem.style.display="block")},ze.prototype.handleError=function(t){this.hideLoader(),this.bindModel.isErrorMsgReqd?this.showErrorMsg=!0:this.onError("")},ze.prototype.handleWidgetImpressionparams=function(t){if(this.wgtElem&&"object"==typeof this.wgtElem){var e=this.getContentMetaData(t).contentModel;e&&this.wgtElem.setAttribute("data-event-content-type",e),this.contentId&&this.wgtElem.setAttribute("data-event-content-id",this.contentId)}},ze.prototype.getContentMetaData=function(t){if(t.data&&t.data.modelMappings){var e=t.data.modelMappings||{},i=t.data.origContentItems||t.data.content||{},n=i[this.contentId]||{},o=n.list&&n.list.value&&n.list.value[0],r=i[o]&&i[o].mappingModel;return{modelMappings:e,contentModel:e[r]&&e[r].contentModel,mapping:e[r]&&e[r].mapping,content:n}}return{}},ze.prototype.subscribeEvent=function(t,e){Y.$on(t,e)},ze.prototype.unsubscribeEvent=function(t,e){Y.$off(t,e)},ze.prototype.publishEvent=function(t,e){Y.$emit(t,e||{})},ze.prototype.triggerPopup=function(t,e,i,n,o){this.baseCompUtil.triggerPopup(t,e,i,n,o)},ze.prototype.openDialog=function(){this.baseCompUtil.openDialog(Le)},ze.prototype.closePopup=function(){this.baseCompUtil.closePopup()},ze.prototype.handleEscapeClick=function(t){27===t.keyCode&&this.closePopup()},ze.prototype.closeDialog=function(){Le.close()},ze.prototype.destroyed=function(){document.removeEventListener("keyup",this.handleEscapeClick)},ze.prototype.handleTranscript=function(){this.baseCompUtil.handleTranscript()},ze.prototype.handleAudiodescription=function(){this.baseCompUtil.handleAudiodescription()},e([Kt()],ze.prototype,"widgetId",void 0),e([Kt()],ze.prototype,"instanceId",void 0),e([Kt()],ze.prototype,"pinstanceId",void 0),e([Kt()],ze.prototype,"ctx",void 0),e([Kt()],ze.prototype,"sctx",void 0),e([Kt()],ze.prototype,"uictx",void 0),e([Kt()],ze.prototype,"bindables",void 0),e([Kt()],ze.prototype,"cfield",void 0),e([Kt()],ze.prototype,"cmpid",void 0),ze=e([qt],ze));function ze(){var t=null!==Be&&Be.apply(this,arguments)||this;return t.content={},t.rawContent={},t.settings={},t.tmplString="",t.viewName="",t.themeName="",t.wdgtClsName="",t.showLoader=!1,t.showErrorMsg=!1,t.sliderData={},t.currentSlideIdx=0,t.totalSlidesCount=0,t.showSliderTab=!1,t.currentData={},t.enablePopup=!1,t.playerOptions={},t.deviceType="",t.aliases={},t.widgetViews={},t.isContentFetched=!1,t.innerTmplElems={},t.isContentModelLoaded=!1,t.isWidgetViewLoaded=!1,t.isSettingsModelLoaded=!1,t.pxDDoList=[],t}var Ge,Qe=(t(Xe,Ge=Ye),Xe.prototype.created=function(){},Xe.prototype.mounted=function(){this.fetchData()},Xe.prototype.contentModelLoaded=function(){},Xe.prototype.prepareUrlsAndMetadata=function(t){t.jobUrl="http://www.phenompeople.com"},Xe.prototype.fetchData=function(){var e=this;this.fetchJobs().then(function(t){e.jobResults=t,e.jobResults.forEach(function(t){e.prepareUrlsAndMetadata(t)})})},Xe.prototype.fetchJobs=function(){return new Promise(function(t,e){t({})})},e([Kt()],Xe.prototype,"size",void 0),e([Kt()],Xe.prototype,"type",void 0),e([Kt()],Xe.prototype,"jobId",void 0),Xe=e([qt],Xe));function Xe(){var t=null!==Ge&&Ge.apply(this,arguments)||this;return t.jobResults=[],t}var Ze=(ti.prototype.fixedContainer=function(u,t){var h,e;if(t&&t.fixedContainer&&(t.fixedContainer.ctrH||t.fixedContainer.ctrAr)){h=t.fixedContainer.ctrH,e=t.fixedContainer.ctrAr;var f=-999;if(e)if(-1!==e.indexOf(":")||-1!=e.indexOf("/")){var i=[];-1!==e.indexOf(":")&&(i=e.split(":")),-1!==e.indexOf("/")&&(i=e.split(":")),i.length&&2==i.length&&(f=i[1]/i[0])}else f=1/parseFloat(e);setTimeout(function(){var t=-1,e=u.querySelectorAll(".pcs-fit-cntr-image");if(e){for(var i=0;i<e.length;i++){var n=e[i];if(a=(s=window.getComputedStyle(n)).width){a=a.replace("px","");var o=parseFloat(a);(-1==t||o<t)&&(t=o)}}for(var r=0;r<e.length;r++){var s,a,l=e[r],d=-999;if(a=(s=window.getComputedStyle(l)).width){a=a.replace("px","");var c=(o=parseFloat(a))/t;c=parseFloat(c.toFixed(2)),-999!=f?(h=(h=s.height||"").replace("px",""),d=f*o/o,d/=c):h&&(d=parseFloat(h)/o)}if(d&&-999!=d){d=Math.ceil(100*d),l.classList.add("ph-fixed-img-ctr"),l.style.paddingTop=d+"%";var p=l.querySelector("img");p&&!p.classList.contains("ph-fixed-img")&&p.classList.add("ph-fixed-img")}}}},10)}},ti);function ti(){}var ei=(ii.prototype.fullLink=function(t,e){if(e&&e.fullLink){var i=document.createElement("a"),n={class:"pcs-full-card-link","v-pcs-track":"static_content_click",role:"link","aria-hidden":"true",tabindex:"-1"};for(var o in n)i.setAttribute(o,n[o]);this.applyStyle(i,{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",pointerEvents:"all",zIndex:1}),this.applyAnchorAttrs(i,["title","aria-label","class","href","target"],t);var r=this.fetchCardBlock(t);if(r){r.style.position="relative",r.style.display="block";for(var s=r.querySelectorAll("a"),a={zIndex:3,position:"relative",pointerEvents:"all"},l=0;l<s.length;l++)this.applyStyle(s[l],a);r.firstElementChild?r.firstElementChild.parentElement.insertBefore(i,r.firstElementChild):r.appendChild(i)}}},ii.prototype.applyStyle=function(t,e){for(var i in e)t.style[i]=e[i]},ii.prototype.applyAnchorAttrs=function(i,t,e){var n,o;e.__vue__?n=e.__vue__.ctx:o="A"===e.nodeName&&e||e.querySelector("a"),n&&t.forEach(function(t){var e=n[t]||o&&o.getAttribute(t);e&&i.setAttribute(t,e)})},ii.prototype.fetchCardBlock=function(t){if(t){var e=t,i=e&&e.getAttribute&&e.getAttribute("data-ph-component-name");for(i="card-block"==i||e.classList.contains("ph-card-block");e&&!i&&"BODY"!==e.nodeName;)i=(e=e.parentElement)&&e.getAttribute&&e.getAttribute("data-ph-component-name"),i=e&&("card-block"==i||e.classList.contains("ph-card-block"));if(i)return e}return!1},ii);function ii(){}var ni=/[^\]\[.]+/g,oi=(ri.prototype.isClassExists=function(t,e){return e.classList.contains(t)},ri.prototype.kebabCaseToCameCase=function(t){return t.replace(/(\-\w)/g,function(t){return t[1].toUpperCase()})},ri.prototype.fetchCompSettings=function(i,t,e,n){var o=n&&n.match(ni)||[];return o.length?(o.forEach(function(t,e){0===e&&"settings"===t||(i=i&&i[t]||{})}),i):i&&i[e]},ri.prototype.applySettingsToView=function(t,i){var n=this;if(t&&i&&Object.keys(i).length){var o=t,e=function(t){var e=i[t];switch(t){case"hidden":setTimeout(function(){n.applyVisibleToggle(o,e)},50);break;case"class":r.applyClassesToElem(o,e);break;case"style":r.applyStylesToElem(o,e);break;case"attrs":r.applyAttrsToElem(o,e);break;case"custom":r.applyCustomSettingsToElem(o,e)}},r=this;for(var s in i)e(s)}},ri.prototype.applyVisibleToggle=function(t,e){t&&void 0!==e&&(!1===e||"false"===e?(t.classList.remove("show"),t.classList.remove("hide")):!0!==e&&"true"!==e||(this.isClassExists("hide",t)||t.classList.add("hide"),t.classList.remove("show"),this.isinlinePreview||t.parentElement&&t.parentElement.removeChild&&t.parentElement.removeChild(t)))},ri.prototype.applyClassesToElem=function(i,t){var n=this;i&&t&&t.length&&t.forEach(function(t,e){i&&i.classList&&t&&!n.isClassExists(t,i)&&i.classList.add(t)})},ri.prototype.applyStylesToElem=function(n,o){var r=this;n&&o&&Object.keys(o).length&&Object.keys(o).forEach(function(t,e){var i=r.kebabCaseToCameCase(t);n.style[i]=o[t]})},ri.prototype.applyAttrsToElem=function(i,n){i&&n&&Object.keys(n).length&&Object.keys(n).forEach(function(t,e){i.setAttribute(t,n[t])})},ri.prototype.applyCustomSettingsToElem=function(t,e){if(e&&Object.keys(e).length&&t)for(var i in e)"flip"==i&&"desktop"==this.device?this.applyCardFlipToElem(t,e[i]):"grid"==i||("fixedContainer"==i?this.settingFixedContainerUtil.fixedContainer(t,e):"fullLink"==i&&this.settingFullLinkUtil.fullLink(t,e))},ri.prototype.applyCardFlipToElem=function(t,e){var i=t.querySelector('[ph-col-num="1"]'),n=t.querySelector('[ph-col-num="2"]'),o=(t.querySelector('[ph-col-num="3"]'),null==i?void 0:i.parentElement);if(i&&n&&o){if("h-1-2"===e.value||"v-1-2"===e.value){var r=i.querySelector("[ph-card-block-num]");if("1"===(r&&r.getAttribute("ph-card-block-num")))return}else if("h-2-1"===e.value||"v-2-1"===e.value){var s=n.querySelector("[ph-card-block-num]");if("1"===(s&&s.getAttribute("ph-card-block-num")))return}o.insertBefore(n,i),n.setAttribute("ph-col-num","1"),i.setAttribute("ph-col-num","2")}},ri);function ri(){this.isinlinePreview=g.getIsinlinePreview(),this.settingFixedContainerUtil=new Ze,this.settingFullLinkUtil=new ei,this.device=g.getDeviceType()}var si={inserted:function(t,e,i){if(i.context._settingsUtils=new oi,t&&t.getAttribute){var n=t.getAttribute("data-pcs-cmpid")||t.getAttribute("data-ph-component-name");t.setAttribute("ph-settings-block",n),e.value&&i.context._settingsUtils.applySettingsToView(t,e.value)}},bind:function(t,e,i){},update:function(t,e,i){t&&e.value&&i.context._settingsUtils.applySettingsToView(t,e.value)}};u.directive("pcs-settings-block",si);var ai="img-loader",li={inserted:function(t,e,i){e.value&&li.initiate(t,e.value)},bind:function(t,e,i){},update:function(t,e,i){e.value&&li.initiate(t,e.value)},initiate:function(t,e){var i=e.mode||ai,n=e.showLoader;switch(i){case ai:li.renderLoaderImage(t,n);break;case"placeholder":li.handlePlaceholders(t)}},renderLoaderImage:function(t,e){if(e){(n=document.createElement("div")).className="ph-loading";var i=document.createElement("img");i.setAttribute("src",l("assets/images/loader.gif")),n.appendChild(i),t.appendChild(n)}else{var n;(n=t.querySelector(".ph-loading"))&&n.parentElement.removeChild(n)}},handlePlaceholders:function(t){}};u.directive("pcs-loading-img",li);var di={inserted:function(p,u,t){p&&(p.setAttribute("pcs-track",u.value),p.addEventListener("click",function(t){for(var e={},i=u.value,n=p.attributes,o="data-ph-tevent-attr-",r=p,s=0;s<n.length;s++){var a=n[s];if(a.name.startsWith(o)){var l=a.name;e[l=l.replace(o,"")]=a.value}}var d=r.getAttribute("pcs-tag");if(d)di.handleDynaicTrackEvents(r,e),e.ctx=di.handleRecommendationTrackCtx(r),q.jobContext(d),q.setFlagForHandleUnload(!0);else if("static_content_click"===i){var c=r.getAttribute("title")||r.getAttribute("aria-label");!e.trait75&&c&&(e.trait75=c,e.trait13||(e.trait13=""))}bt(r,i,e)}))},bind:function(t,e,i){},update:function(t,e,i){},handleDynaicTrackEvents:function(t,e){},handleRecommendationTrackCtx:function(t){var e=t.getAttribute("pcs-click-ctx");if(e){var i=t.getAttribute("pcs-tref")||"",n=r[i];return q.addRecommendationTrackCtx(e,n),n}}};u.directive("pcs-track",di);var ci=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});else{var g=window.document;t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},t.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(e(window,"resize",this._checkForIntersections,!0),e(g,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(g,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(g,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},t.prototype._checkForIntersections=function(){var a=this._rootIsInDom(),l=a?this._getRootRect():r();this._observationTargets.forEach(function(t){var e=t.element,i=m(e),n=this._rootContainsTarget(e),o=t.entry,r=a&&n&&this._computeTargetAndRootIntersection(e,l),s=t.entry=new d({time:window.performance&&performance.now&&performance.now(),target:e,boundingClientRect:i,rootBounds:l,intersectionRect:r});o?a&&n?this._hasCrossedThreshold(o,s)&&this._queuedEntries.push(s):o&&o.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=window.getComputedStyle(t).display){for(var i,n,o,r,s,a,l,d,c=m(t),p=v(t),u=!1;!u;){var h=null,f=1==p.nodeType?window.getComputedStyle(p):{};if("none"==f.display)return;if(p==this.root||p==g?(u=!0,h=e):p!=g.body&&p!=g.documentElement&&"visible"!=f.overflow&&(h=m(p)),h&&(i=h,n=c,void 0,o=Math.max(i.top,n.top),r=Math.min(i.bottom,n.bottom),s=Math.max(i.left,n.left),a=Math.min(i.right,n.right),d=r-o,!(c=0<=(l=a-s)&&0<=d&&{top:o,bottom:r,left:s,right:a,width:l,height:d})))break;p=v(p)}return c}},t.prototype._getRootRect=function(){var t;if(this.root)t=m(this.root);else{var e=g.documentElement,i=g.body;t={top:0,left:0,right:e.clientWidth||i.clientWidth,width:e.clientWidth||i.clientWidth,bottom:e.clientHeight||i.clientHeight,height:e.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},t.prototype._expandRectByRootMargin=function(i){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?i.width:i.height)/100}),e={top:i.top-t[0],right:i.right+t[1],bottom:i.bottom+t[2],left:i.left-t[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},t.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==i||r==n||r<i!=r<n)return!0}},t.prototype._rootIsInDom=function(){return!this.root||n(g,this.root)},t.prototype._rootContainsTarget=function(t){return n(this.root||g,t)},t.prototype._registerInstance=function(){},t.prototype._unregisterInstance=function(){},window.IntersectionObserver=t,window.IntersectionObserverEntry=d}function d(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||r(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,i=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?Number((o/i).toFixed(4)):this.isIntersecting?1:0}function t(t,e){var i,n,o,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){i(),o=null},n)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function e(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function i(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function m(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):r()}function r(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function n(t,e){for(var i=e;i;){if(i==t)return!0;i=v(i)}return!1}function v(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}(),pi=Object.freeze({__proto__:null,default:ci}),ui=(hi.prototype.observeVideo=function(t,e){this.callback=e,this.lazyVideoObserver.observe(t)},hi);function hi(){var i=this;this.ibo=pi,this.lazyVideoObserver=new IntersectionObserver(function(t,e){t.forEach(function(t){if(t.isIntersecting){var e=t.target;i.callback(),i.lazyVideoObserver.unobserve(e)}})})}var fi={inserted:function(t,e,i){t.setAttribute("data-pcs-video",""),i.context.videoIntersectionObserver=new ui,i.context.videoIntersectionObserver.observeVideo(t,fi.initVideo.bind(this,t,e,i))},bind:function(t,e,i){},update:function(t,e,i){t&&JSON.stringify(e.value.content)!==JSON.stringify(e.oldValue.content)&&(t.innerHTML="",i.context.player&&i.context.player.pause(),i.context.videoIntersectionObserver.observeVideo(t,fi.initVideo.bind(this,t,e,i)))},unbind:function(t,e,i){i.context&&i.context.player&&i.context.player.pause()},initVideo:function(i,t,n){if(i&&t.value.content){var o=c(c({},t.value.content),t.value.settings||{});0!=o.loader&&i.classList.add("pcs-video-loading"),u.nextTick(function(){var e=Te.createPlayer(i,o.provider||o.videotype,o);e&&e.init().then(function(t){n.context.player=e,i.classList.remove("pcs-video-loading")})})}}};u.directive("pcs-video",fi);var gi=(mi.prototype.init=function(t,e){var i=this;this.element=t,this.fitValue=e.fitType;var n=this.element.querySelector("img"),o=window.navigator.userAgent.match(/Edge\/(\d{2})\./);this.edgePartialSupport=!!o&&16<=parseInt(o[1],10);var r="objectFit"in document.documentElement.style!=0;t.classList.add(e.className),r&&!this.edgePartialSupport||!n||(clearTimeout(this.timer),this.timer=setTimeout(function(){i.objectFitPolyfill(n),clearTimeout(i.timer)},3e3))},mi.prototype.checkParentContainer=function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),o=e.getPropertyValue("display");i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),o&&"inline"!==o||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")},mi.prototype.checkMediaProperties=function(t){var e=window.getComputedStyle(t,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var n in i)e.getPropertyValue(n)!==i[n]&&(t.style[n]=i[n])},mi.prototype.setPosition=function(t,e,i){var n,o,r,s,a;if((i=i.split(" ")).length<2&&(i[1]=i[0]),"x"===t)n=i[0],o=i[1],r="left",s="right",a=e.clientWidth;else{if("y"!==t)return;n=i[1],o=i[0],r="top",s="bottom",a=e.clientHeight}if(n!==r&&o!==r){if(n!==s&&o!==s)return"center"===n||"50%"===n?(e.style[r]="50%",void(e.style["margin-"+r]=a/-2+"px")):void(0<=n.indexOf("%")?(n=parseInt(n))<50?(e.style[r]=n+"%",e.style["margin-"+r]=a*(n/-100)+"px"):(n=100-n,e.style[s]=n+"%",e.style["margin-"+s]=a*(n/-100)+"px"):e.style[r]=n);e.style[s]="0"}else e.style[r]="0"},mi.prototype.objectFit=function(t){var e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"),i=t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position");e=e||this.fitValue.fitType||"none",i=i||this.fitValue.position||"50% 50%";var n=t.parentNode;return this.checkParentContainer(n),this.checkMediaProperties(t),t.style.position="absolute",t.style.width="auto",t.style.height="auto",this.handleIe(t),"scale-down"===e&&(e=t.clientWidth<n.clientWidth&&t.clientHeight<n.clientHeight?"none":"contain"),"none"===e?(this.setPosition("x",t,i),void this.setPosition("y",t,i)):"fill"===e?(t.style.width="100%",t.style.height="100%",this.setPosition("x",t,i),void this.setPosition("y",t,i)):(t.style.height="100%",void("cover"===e&&t.clientWidth>n.clientWidth||"contain"===e&&t.clientWidth<n.clientWidth?(t.style.top="0",t.style.marginTop="0",this.setPosition("x",t,i)):(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",this.setPosition("y",t,i))))},mi.prototype.handleIe=function(t){if(t&&t.parentElement){t.parentElement.classList.add("pcs-ie-img-object-fit");var e=t.src||t.getAttribute("src");t.parentElement.style.backgroundImage="url('"+e+"')"}},mi);function mi(){var n=this;this.objectFitPolyfill=function(t){if(void 0===t||t instanceof Event)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else{if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;t=t}for(var e=0;e<t.length;e++)if(t[e].nodeName){var i=t[e].nodeName.toLowerCase();"img"!==i||n.edgePartialSupport?"video"===i?0<t[e].readyState?n.objectFit(t[e]):t[e].addEventListener("loadedmetadata",function(){n.objectFit(t[0])}):n.objectFit(t[e]):t[e].complete?n.objectFit(t[e]):t[e].addEventListener("load",function(){n.objectFit(t[0])})}return!0}}var vi={inserted:function(t,e,i){},bind:function(t,e,i){t&&u.nextTick(function(){i.context._objUtil=new gi,e.value&&e.value.fitType&&i.context._objUtil.init(t,e.value)})},update:function(t,e,i){t&&e.value&&u.nextTick(function(){i.context._objUtil.init(t,e.value)})}};u.directive("pcs-object-fit",vi);var yi={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,SHIFT:16},bi=(wi.prototype.init=function(t,e){this.element=t,this.name=e&&e.name||this.element.name,this.initaite();var i=this.validate();i&&i.length&&console.warn("A11y autocomplete setup is improper.Check errors ",i),this.setupEventListeners()},wi.prototype.getWigdetViewModel=function(t){if(t&&t.__vue__&&t.__vue__._vnode)return t.__vue__._vnode.componentInstance||t.__vue__._vnode.context},wi.prototype.initaite=function(){var t,e,i,n,o,r;this.element.type,this.comboBoxElement=this.element.parentElement,this.comboBoxElement&&(this.comboBoxElement.hasAttribute("aria-haspopup")&&(this.element.setAttribute("aria-haspopup",this.comboBoxElement.getAttribute("aria-haspopup")),this.comboBoxElement.getAttribute("role")),this.comboBoxElement.hasAttribute("aria-owns")&&(this.element.setAttribute("aria-owns",this.comboBoxElement.getAttribute("aria-owns")),this.comboBoxElement.removeAttribute("aria-owns")),this.comboBoxElement.hasAttribute("role")&&(this.element.setAttribute("role",this.comboBoxElement.getAttribute("role")),this.comboBoxElement.removeAttribute("role"))),e=this.element.getAttribute("aria-haspopup"),i=this.element.getAttribute("aria-owns"),t=this.element.getAttribute("role"),this.validationInfo.input.ariaHaspopup=e,this.validationInfo.input.ariaOwns=e,this.validationInfo.input.role=t,n=this.element.getAttribute("aria-autocomplete"),o=this.element.getAttribute("aria-controls"),this.isHideListBox=this.element.getAttribute("data-show-listbox")?this.element.getAttribute("data-show-listbox"):"true",this.isShowResultsOnFocus=this.element.getAttribute("showResultsOnFocus")||this.isShowResultsOnFocus,this.isShowNoResults=this.element.getAttribute("showNoResults")||this.isShowNoResults,this.validationInfo.input.ariaAutocomplete=n,this.validationInfo.input.ariaControls=o,this.listBoxElement=this.comboBoxElement.querySelector("[aria-labelledby="+i+"]"),this.listBoxElement||(this.listBoxElement=this.comboBoxElement.parentElement&&this.comboBoxElement.parentElement.querySelector("[aria-labelledby="+i+"]")||document.querySelector("[aria-labelledby="+i+"]")),this.listBoxElement&&(this.validationInfo.listbox.exists=!0,r=this.listBoxElement.getAttribute("aria-labelledby"),this.validationInfo.listbox.ariaLabelledby=r),this.widgetElement=this.findWidget(),this.validationInfo.widget.exists=this.widgetElement,this.widgetViewModel=this.getWigdetViewModel(this.widgetElement),this.validationInfo.widget.viewModelExist=this.widgetViewModel,this.validationInfo.widget.getFieldOptions=this.widgetViewModel?this.widgetViewModel.getFieldOptions:void 0,this.validationInfo.widget.setFieldValue=this.widgetViewModel?this.widgetViewModel.setFieldValue:void 0,this.validationInfo.widget.clearFieldValue=this.widgetViewModel?this.widgetViewModel.clearFieldValue:void 0,this.validationInfo.widget.getActiveIndex=this.widgetViewModel?this.widgetViewModel.getActiveIndex:void 0,this.validationInfo.widget.getActiveIndexOnBlur=this.widgetViewModel?this.widgetViewModel.getActiveIndexOnFocusOut:void 0},wi.prototype.validate=function(){var t=[];return this.validationInfo.input.ariaHaspopup||t.push("Missing aria-haspopup attribute on parent div"),this.validationInfo.input.ariaHaspopup||t.push("Missing  aria-owns attribute on parent div"),this.validationInfo.input.ariaOwns||t.push("Missing  aria-owns attribute on parent div"),this.validationInfo.input.ariaAutocomplete||t.push("Missing aria-autocomplete attribute on input elem"),this.validationInfo.input.ariaControls||t.push("Missing aria-controls attribute on input elem"),this.validationInfo.listbox.ariaLabelledby||t.push("Missing aria-labelledby attribute on listbox elem"),this.validationInfo.widget.exists||t.push("Missing widget elem"),this.validationInfo.widget.viewModelExist||t.push("Missing widget viewmodel on widget elem"),this.validationInfo.widget.getFieldOptions||t.push("Missing getFieldOptions(fieldName) fn on widget elem"),this.validationInfo.widget.setFieldValue||t.push("Missing setFieldValue(fieldName, selectedItemIndex) fn on widget elem"),this.validationInfo.widget.clearFieldValue||t.push("Missing clearFieldValue(fieldName) fn on widget elem"),this.validationInfo.widget.getActiveIndex||t.push("Missing getActiveIndex(fieldName) fn on widget elem"),this.validationInfo.widget.getActiveIndexOnBlur,t},wi.prototype.showListbox=function(){var t=this;setTimeout(function(){t.setActiveListItem(),t.listBoxElement&&(t.listBoxElement.classList.remove("aurelia-hide"),t.listBoxElement.setAttribute("aria-expanded","true")),!t.element||"combobox"==(t.validationInfo&&t.validationInfo.input&&t.validationInfo.input.role||"")&&t.element.setAttribute("aria-expanded","true")},10)},wi.prototype.hideListbox=function(){"true"==this.isHideListBox&&(this.listBoxElement&&(this.activeIndex=-1,this.listBoxElement.classList.add("aurelia-hide"),this.listBoxElement.removeAttribute("aria-expanded")),!this.element||"combobox"==(this.validationInfo&&this.validationInfo.input&&this.validationInfo.input.role||"")&&this.element.setAttribute("aria-expanded","false"),this.clearActiveListItem())},wi.prototype.isListboxHidden=function(){if(this.listBoxElement)return this.listBoxElement.classList.contains("aurelia-hide")},wi.prototype.setActiveListItem=function(t){if(this.listBoxElement){for(var e=this.listBoxElement.querySelectorAll('[role="option"]'),i=this.listBoxElement.querySelectorAll(".ph-a11y-header"),n=this.name+"-result-item-",o=0;o<e.length;o++){var r=e[o],s=n+o;r.setAttribute("id",s),t||o!=this.activeIndex?(r.removeAttribute("aria-selected"),r.classList.remove("listitem-focused")):(r.setAttribute("aria-selected","true"),r.classList.add("listitem-focused"),this.element.setAttribute("aria-activedescendant",s))}-1==this.activeIndex&&this.element.setAttribute("aria-activedescendant","");var a=this.listBoxElement,l=this.activeIndex;if(a&&a.querySelector("#"+this.name+"-result-item-"+this.activeIndex)){var d=a.querySelector("#"+this.name+"-result-item-"+this.activeIndex),c=i.length-1;if(a&&a.offsetHeight-d.offsetHeight<d.offsetTop&&d.offsetTop<a.scrollHeight){var p=0;0<c&&(p=i[0].offsetHeight);var u=d.scrollHeight-(d.offsetHeight*l+p*c);a.scrollTop=u<0?-1*u:u}else a.scrollTop=0}"both"==this.validationInfo.input.ariaAutocomplete&&this.widgetViewModel&&this.widgetViewModel.setFieldValue&&this.widgetViewModel.setFieldValue(this.name,this.activeIndex,this.validationInfo.input.ariaAutocomplete)}},wi.prototype.clearActiveListItem=function(){this.setActiveListItem(!0)},wi.prototype.updateResults=function(){var n=this,o=this.widgetViewModel;return new Promise(function(e,t){if(o&&o.getFieldOptions){var i=o.getFieldOptions(n.name);i||i.then?i.then?i.then(function(t){e(t),n.results=t,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),"false"==n.isShowResultsOnFocus&&0==n.element.value.length?n.hideListbox():document.activeElement===n.element&&n.showListbox(),"false"!=n.isShowNoResults||n.results.length||n.hideListbox()}):(e(i||[]),n.results=i,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),"false"==n.isShowResultsOnFocus&&0==n.element.value.length?n.hideListbox():document.activeElement===n.element&&n.showListbox(),"false"!=n.isShowNoResults||n.results.length||n.hideListbox()):(console.warn("getFieldOptions(fieldName) is neither returning anything nor defined as a promise"),e([]))}else e([])})},wi.prototype.keyupHandler=function(t){var e,i=t.which||t.keyCode;switch(t.target.name,i){case yi.UP:case yi.DOWN:case yi.ESC:case yi.RETURN:return void t.preventDefault()}if(e=Object.keys(yi).findIndex(function(t){return i==yi[t]}),("true"==this.isShowResultsOnFocus||this.element.value&&this.element.value.length&&-1==e)&&this.updateResults(),"both"==this.validationInfo.input.ariaAutocomplete)switch(i){case yi.BACKSPACE:return;default:this.widgetViewModel&&this.widgetViewModel.setFieldValue&&this.widgetViewModel.setFieldValue(this.name,this.activeIndex)}else yi.BACKSPACE==i&&this.updateResults()},wi.prototype.findWidget=function(){for(var t=this.element.parentElement,e=t?t.getAttribute("data-widget"):void 0;t&&!e;)e=(t=t.parentElement)?t.getAttribute("data-widget"):void 0;return e?t:void 0},wi.prototype.keydownHandler=function(t){var e=this;if(t.target)switch(t.which||t.keyCode){case yi.DOWN:this.isListboxHidden()?this.updateResults().then(function(t){e.moveDown()}):this.moveDown();break;case yi.UP:this.isListboxHidden()?this.updateResults().then(function(t){e.moveUp()}):this.moveUp();break;case yi.ESC:this.clearFieldAndCloseListbox();break;case yi.RETURN:return-1!=this.activeIndex&&t.preventDefault(),void this.onEnter()}return!0},wi.prototype.focusHandler=function(t){var r=this;"true"==this.isShowResultsOnFocus&&this.updateResults().then(function(t){if(r.listBoxElement)for(var e=r.listBoxElement.querySelectorAll('[role="option"]'),i=r.name+"-result-item-",n=0;n<e.length;n++){var o=i+n;e[n].setAttribute("id",o)}})},wi.prototype.listBoxClickHandler=function(t){if(t.target&&("LI"==t.target.nodeName||t.target.parentElement&&"LI"==t.target.parentElement.nodeName)){var e=-1,i=void 0;"LI"==t.target.nodeName?i=t.target:"LI"==t.target.parentElement.nodeName&&(i=t.target.parentElement),i.id&&(e=parseInt(i.id.split(this.name+"-result-item-")[1])),this.activeIndex=e,this.onEnter()}this.hideListbox()},wi.prototype.blurHandler=function(t,e){var i=this;e?t.target&&"LI"!=t.target.nodeName&&(clearTimeout(this.clearTimer),this.showListbox()):this.clearTimer=setTimeout(function(){i.widgetViewModel.getActiveIndexOnBlur&&i.widgetViewModel.getActiveIndexOnBlur(i.activeIndex,i.name),i.widgetViewModel&&i.widgetViewModel.focusedField==i.name?(i.widgetViewModel.focusedField=void 0,i.activeIndex=-1):i.hideListbox()},300)},wi.prototype.moveDown=function(){this.activeIndex=this.activeIndex+1,this.activeIndex>this.results.length-1&&(this.activeIndex=0),this.setActiveListItem()},wi.prototype.moveUp=function(){this.activeIndex=this.activeIndex-1,this.activeIndex<0&&(this.activeIndex=this.results.length-1),this.setActiveListItem()},wi.prototype.onEnter=function(){return this.widgetViewModel&&this.widgetViewModel.setFieldValue&&this.widgetViewModel.setFieldValue(this.name,this.activeIndex),this.widgetViewModel.onEnterCallBack&&this.widgetViewModel.onEnterCallBack(this.name,this.activeIndex),this.hideListbox(),!1},wi.prototype.clearFieldAndCloseListbox=function(){this.widgetViewModel&&this.widgetViewModel.clearFieldValue&&this.widgetViewModel.clearFieldValue(this.name),this.hideListbox()},wi.prototype.setupEventListeners=function(){var e=this,t=this.element;this.keyupDebounceHandler=Tt.debounce(this.keyupHandler,200),this.keydownDebounceHandler=Tt.debounce(this.keydownHandler,200),t.addEventListener("keyup",this.keyupDebounceHandler.bind(this)),t.addEventListener("keydown",this.keydownDebounceHandler.bind(this)),t.addEventListener("focus",this.focusHandler.bind(this)),t.addEventListener("blur",this.blurHandler.bind(this)),this.listBoxElement&&(this.listBoxElement.addEventListener("click",this.listBoxClickHandler.bind(this)),this.listBoxElement.addEventListener("focus",function(t){e.blurHandler(t,!0)}),this.listBoxElement.addEventListener("blur",this.blurHandler.bind(this)))},wi.prototype.destroyed=function(){var t=this.element;t.removeEventListener("keyup",this.keyupHandler),t.removeEventListener("keydown",this.keydownHandler),t.removeEventListener("keyup",this.keyupDebounceHandler),t.removeEventListener("keydown",this.keydownDebounceHandler),t.removeEventListener("focus",this.focusHandler),t.removeEventListener("blur",this.blurHandler),this.listBoxElement&&this.listBoxElement.removeEventListener("click",this.listBoxClickHandler)},wi);function wi(){this.activeIndex=-1,this.results=[],this.isShowResultsOnFocus="true",this.isShowNoResults="true",this.isHideListBox="true",this.validationInfo={listbox:{},input:{},widget:{}}}var Ei={inserted:function(t,e,i){t&&u.nextTick(function(){i.context._a11yUtil=new bi,i.context._a11yUtil.init(t,e.value)})},bind:function(t,e,i){},update:function(t,e,i){}};u.directive("pcs-a11y-autocomplete",Ei);var ki=13,xi=32,Ai=37,Ii=38,Ci=39,Si=40,Ti=(_i.prototype.init=function(t,e){this.element=t,this.name=e&&e.name||this.element.name,this.initaite();var i=this.validate();if(i&&i.length&&console.warn("A11y radio attribute setup is improper.Check errors ",i),this.widgetViewModel){var n=this.widgetViewModel.setActiveRadioChecked(this.name);-1!=n&&this.setChecked(this.radioButtons[n])}this.setupEventListeners()},_i.prototype.getWigdetViewModel=function(t){if(t&&t.__vue__&&t.__vue__._vnode)return t.__vue__._vnode.componentInstance||t.__vue__._vnode.context},_i.prototype.initaite=function(){if(this.element){this.element.getAttribute("role")||this.element.setAttribute("role","radiogroup"),this.validationInfo.widget.name=this.name;var t=this.name+"-result-item-";this.radioButtons=this.element.querySelectorAll("[role=radio]");for(var e=0;e<this.radioButtons.length;e++){var i=this.radioButtons[e],n=t+e;i.setAttribute("aria-checked","false"),i.setAttribute("id",n),i.addEventListener("click",this.setChecked.bind(this))}this.radioButtons.length&&(this.firstRadioButton=this.radioButtons[0],this.lastRadioButton=this.radioButtons[this.radioButtons.length-1])}this.widgetElement=this.findWidget(),this.validationInfo.widget.exists=this.widgetElement,this.widgetViewModel=this.getWigdetViewModel(this.widgetElement),this.validationInfo.widget.viewModelExist=this.widgetViewModel,this.validationInfo.widget.setRadioCheked=this.widgetViewModel?this.widgetViewModel.setRadioCheked:void 0,this.validationInfo.widget.setActiveRadioChecked=this.widgetViewModel?this.widgetViewModel.setActiveRadioChecked:void 0},_i.prototype.findWidget=function(){for(var t=this.element.parentElement,e=t?t.getAttribute("data-widget"):void 0;t&&!e;)e=(t=t.parentElement)?t.getAttribute("data-widget"):void 0;return e?t:void 0},_i.prototype.radioButtonInit=function(t){t.setAttribute("aria-checked","false"),t.addEventListener("click",this.setChecked.bind(this))},_i.prototype.validate=function(){var t=[];return this.validationInfo.widget.setRadioCheked||t.push("Missing setRadioCheked(fieldName) fn on widget elem"),this.validationInfo.widget.exists||t.push("Missing widget elem"),this.validationInfo.widget.name||t.push("Missing ridio group name"),this.validationInfo.widget.setActiveRadioChecked||t.push("Missing setActiveRadioChecked(fieldName) fn on widget elem"),t},_i.prototype.setupEventListeners=function(){var t=this.element;t.addEventListener("keydown",this.handleKeydown.bind(this)),t.addEventListener("focus",this.handleFocus.bind(this)),t.addEventListener("blur",this.handleBlur.bind(this))},_i.prototype.handleKeydown=function(t){t.currentTarget;var e=!1,i=t.which||t.keyCode,n=this.getCurrentRadioButton();switch(i){case xi:case ki:this.setChecked(n),e=!0;break;case Ii:this.setCheckedToPreviousItem(n),e=!0;break;case Si:this.setCheckedToNextItem(n),e=!0;break;case Ai:this.setCheckedToPreviousItem(n),e=!0;break;case Ci:this.setCheckedToNextItem(n),e=!0}e&&(t.stopPropagation(),t.preventDefault())},_i.prototype.handleFocus=function(t){this.getCurrentRadioButton().classList.add("ph-focus")},_i.prototype.handleBlur=function(t){this.getCurrentRadioButton().classList.remove("ph-focus")},_i.prototype.setChecked=function(t){t=t instanceof HTMLElement?t:t.currentTarget;for(var e=this.widgetViewModel,i=0;i<this.radioButtons.length;i++)(o=this.radioButtons[i]).setAttribute("aria-checked","false"),o.classList.remove("ph-focus");t.setAttribute("aria-checked","true"),t.classList.add("ph-focus"),this.element.setAttribute("aria-activedescendant",t.id),this.element.focus();var n=-1;for(i=0;i<this.radioButtons.length;i++){var o;(o=this.radioButtons[i]).id===t.id&&"true"==t.getAttribute("aria-checked")&&(n=i)}e.setRadioCheked(n)},_i.prototype.setCheckedToPreviousItem=function(t){var e;t.id===this.firstRadioButton.id?this.setChecked(this.lastRadioButton):(e=this.getActiveIndex(t),this.setChecked(this.radioButtons[e-1]))},_i.prototype.setCheckedToNextItem=function(t){var e;t.id===this.lastRadioButton.id?this.setChecked(this.firstRadioButton):(e=this.getActiveIndex(t),this.setChecked(this.radioButtons[e+1]))},_i.prototype.getCurrentRadioButton=function(){var t=this.element.getAttribute("aria-activedescendant");if(!t)return this.element.setAttribute("aria-activedescendant",this.firstRadioButton.id),this.firstRadioButton;for(var e=0;e<this.radioButtons.length;e++){var i=this.radioButtons[e];if(i.id===t)return i}return this.element.setAttribute("aria-activedescendant",this.firstRadioButton.id),this.firstRadioButton},_i.prototype.getActiveIndex=function(t){for(var e=-1,i=0;i<this.radioButtons.length;i++)this.radioButtons[i].id===t.id&&(e=i);return e},_i.prototype.destroyed=function(){var t=this.element;t.removeEventListener("keydown",this.handleKeydown),t.removeEventListener("focus",this.handleFocus),t.removeEventListener("blur",this.handleBlur)},_i);function _i(){this.radioButtons=[],this.validationInfo={widget:{}}}var Li={inserted:function(t,e,i){t&&u.nextTick(function(){i.context._a11yUtil=new Ti,i.context._a11yUtil.init(t,e.value)})},bind:function(t,e,i){},update:function(t,e,i){}};u.directive("pcs-a11y-radio",Li);var Mi=13,Oi=27,Di=38,Ri=40,Pi=(Fi.prototype.init=function(t,e){this.elem=t,this.name=e&&e.name||this.elem.name,this.initaite();var i=this.validate();i&&i.length&&console.warn("A11y autocomplete setup is improper.Check errors ",i),this.setupEventListeners()},Fi.prototype.initaite=function(){var t,e,i;if(this.elem.type,i=this.elem.getAttribute("aria-labelledby")){var n=i.split(" ");n&&1<n.length&&(this.spanElement=document.getElementById(n[0]),this.validationInfo.span.exists=!0)}t=this.elem.getAttribute("aria-haspopup"),this.validationInfo.button.ariaHaspopup=t,this.validationInfo.button.ariaLabelledby=i,this.spanElement&&(this.listBoxElement=document.querySelector("[aria-labelledby="+this.spanElement.getAttribute("id")+"]"),this.listBoxElement&&(this.validationInfo.listbox.exists=!0,e=this.listBoxElement.getAttribute("aria-labelledby"),this.validationInfo.listbox.ariaLabelledby=e)),this.widgetElement=this.findWidget(),this.validationInfo.widget.exists=this.widgetElement,this.widgetViewModel=this.getWigdetViewModel(this.widgetElement),this.validationInfo.widget.viewModelExist=this.widgetViewModel,this.validationInfo.widget.getFieldOptions=this.widgetViewModel?this.widgetViewModel.getFieldOptions:void 0,this.validationInfo.widget.setFieldValue=this.widgetViewModel?this.widgetViewModel.setFieldValue:void 0,this.validationInfo.widget.clearFieldValue=this.widgetViewModel?this.widgetViewModel.clearFieldValue:void 0,this.validationInfo.widget.getActiveIndex=this.widgetViewModel?this.widgetViewModel.getActiveIndex:void 0},Fi.prototype.validate=function(){var t=[];return this.validationInfo.span.exists||t.push("Missing span"),this.validationInfo.widget.exists||t.push("Missing widget elem"),this.validationInfo.widget.viewModelExist||t.push("Missing widget viewmodel on widget elem"),this.validationInfo.widget.getFieldOptions&&t.push("Missing getFieldOptions(fieldName) fn on widget elem"),this.validationInfo.widget.setFieldValue||t.push("Missing setFieldValue(fieldName, selectedItemIndex) fn on widget elem"),this.validationInfo.widget.clearFieldValue||t.push("Missing clearFieldValue(fieldName) fn on widget elem"),t},Fi.prototype.setupEventListeners=function(){this.elem&&(this.elem.addEventListener("click",this.handleListboxClick.bind(this)),this.listBoxElement&&(this.listBoxElement.addEventListener("keydown",this.keydownHandler),this.listBoxElement.addEventListener("click",this.listBoxClickHandler),this.listBoxElement.addEventListener("blur",this.blurHandler)))},Fi.prototype.findWidget=function(){for(var t=this.elem.parentElement,e=t?t.getAttribute("data-widget"):void 0;t&&!e;)e=(t=t.parentElement)?t.getAttribute("data-widget"):void 0;return e?t:void 0},Fi.prototype.getWigdetViewModel=function(t){if(t&&t.__vue__&&t.__vue__._vnode)return t.__vue__._vnode.componentInstance||t.__vue__._vnode.context},Fi.prototype.updateResults=function(){var n=this,o=this.widgetViewModel;return new Promise(function(e,t){if(o&&o.getFieldOptions){var i=o.getFieldOptions(n.name);i||i.then?i.then?i.then(function(t){e(t),n.results=t,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),n.showListbox()}):(e(i||[]),n.results=i,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),n.showListbox()):(console.warn("getFieldOptions(fieldName) is neither returning anything nor defined as a promise"),e([]))}else e([])})},Fi.prototype.moveDown=function(){this.activeIndex=this.activeIndex+1,this.activeIndex>this.results.data.length-1&&(this.activeIndex=this.results.data.length-1),this.setActiveListItem()},Fi.prototype.setActiveListItem=function(t){if(this.listBoxElement){for(var e=this.listBoxElement.querySelectorAll('[role="option"]'),i=this.name+"-result-item-",n=0;n<e.length;n++){var o=e[n],r=i+n;o.setAttribute("id",r),t||n!==this.activeIndex?(o.removeAttribute("aria-selected"),o.classList.remove("listitem-focused")):(o.classList.add("listitem-focused"),o.setAttribute("aria-selected","true"),this.elem.setAttribute("aria-activedescendant",r))}var s=this.listBoxElement,a=this.activeIndex;if(s&&s.querySelector("#"+this.name+"-result-item-"+this.activeIndex)){var l=s.querySelector("#"+this.name+"-result-item-"+this.activeIndex);if(s&&s.offsetHeight-l.offsetHeight<l.offsetTop&&l.offsetTop<s.scrollHeight){var d=l.scrollHeight-l.offsetHeight*a;s.scrollTop=d<0?-1*d:d}else s.scrollTop=0}}},Fi.prototype.moveUp=function(){this.activeIndex=this.activeIndex-1,this.activeIndex<0&&(this.activeIndex=0),this.setActiveListItem()},Fi.prototype.clearFieldAndCloseListbox=function(){this.widgetViewModel&&this.widgetViewModel.clearFieldValue&&this.widgetViewModel.clearFieldValue(this.name),this.hideListbox()},Fi.prototype.hideListbox=function(){this.listBoxElement&&(this.activeIndex=-1,this.listBoxElement.style.display="none"),this.elem&&this.elem.setAttribute("aria-expanded","false"),this.clearActiveListItem()},Fi.prototype.clearActiveListItem=function(){this.setActiveListItem(!0)},Fi.prototype.onEnter=function(){this.widgetViewModel&&this.widgetViewModel.setFieldValue&&(this.widgetViewModel.setFieldValue(this.name,this.activeIndex),this.listBoxElement.focus()),this.hideListbox()},Fi);function Fi(){var n=this;this.results=[],this.activeIndex=-1,this.validationInfo={span:{},listbox:{},button:{},widget:{}},this.keydownHandler=function(t){if(t.target)switch(t.which||t.keyCode){case Ri:t.preventDefault(),n.isListboxHidden()?n.updateResults().then(function(t){n.moveDown()}):n.moveDown();break;case Di:t.preventDefault(),n.isListboxHidden()?n.updateResults().then(function(t){n.moveUp()}):n.moveUp();break;case Oi:n.clearFieldAndCloseListbox();break;case Mi:return t.preventDefault(),void(n.isListboxHidden()?n.updateResults().then(function(t){n.showListbox()}):n.onEnter())}},this.isListboxHidden=function(){if(n.listBoxElement)return n.listBoxElement&&n.listBoxElement.style&&"none"===n.listBoxElement.style.display},this.showListbox=function(){n.listBoxElement&&(n.listBoxElement.style.display="block"),n.elem&&n.elem.setAttribute("aria-expanded","true"),n.setActiveListItem()},this.blurHandler=function(t){setTimeout(function(){n.hideListbox()},100)},this.handleListboxClick=function(t){t.preventDefault(),n.isListboxHidden()&&(setTimeout(function(){n.listBoxElement.focus()},100),n.updateResults(),n.setActiveListItem())},this.listBoxClickHandler=function(t){if(t.target&&("LI"==t.target.nodeName||t.target.parentElement&&"LI"==t.target.parentElement.nodeName)){var e=-1,i=void 0;"LI"==t.target.nodeName?i=t.target:"LI"==t.target.parentElement.nodeName&&(i=t.target.parentElement),i.id&&(e=parseInt(i.id.split(n.name+"-result-item-")[1])),n.activeIndex=e,n.onEnter()}n.hideListbox()}}var Vi={inserted:function(t,e,i){t&&u.nextTick(function(){i.context._a11yUtil=new Pi,i.context._a11yUtil.init(t,e.value)})},bind:function(t,e,i){},update:function(t,e,i){}};u.directive("pcs-a11y-listbox",Vi);var Ni={inserted:function(t,e,i){i.context._translationService=new W,Ni.handleJobCount(t,e.value,i)},update:function(t,e,i){t&&e.value&&JSON.stringify(e.value)!==JSON.stringify(e.oldValue)&&Ni.handleJobCount(t,e.value,i)},unbind:function(t,e,i){},handleJobCount:function(r,t,s){r&&t&&(It({key:t.ruleKey,value:t.ruleValue},r),Ct(s),s.context.$root.$on("ph:jobCount:set",function(t){var e=g.getTranslations()||Ni.getLocalWidgetBundle(),i=r.getAttribute("data-pha-count-idfr"),n=r.querySelector("[tkey]"),o=n&&n.getAttribute("tkey")||"multiJobCountTotalHits";n&&i&&t&&t[i]&&t[i].counts&&(t[i].counts.totalHits=t[i].counts.totalHits||0,0==t[i].counts.totalHits?o+="NoResults":1==t[i].counts.totalHits?o+="Singular":1<t[i].counts.totalHits&&(o+="Plural"),e[o]||(o="multiJobCountTotalHits"),n.setAttribute("tkey",o),s.context._translationService.parseTemplateAndApplyBundle({totalHits:t[i].counts.totalHits.toString()},r,e),r.style.display="block")}))},getLocalWidgetBundle:function(){return{multiJobCountTotalHits:"{{totalHits}} jobs",multiJobCountTotalHitsSingular:"{{totalHits}} job",multiJobCountTotalHitsPlural:"{{totalHits}} jobs",multiJobCountTotalHitsNoResults:"No results"}}};u.directive("pcs-job-count",Ni);function Bi(i,t,e){if(!i||!t)return"";if("object"!=typeof i)return ji.renderLiteral(i,t);if(!e)return"";var n=t[e],o=i[n];if(o||Object.keys(i).forEach(function(t){if(/[-*]/g.test(t)&&(t.replace("*","")<=n&&(o=i[t]),!o)){var e=t.split("-");e&&2===e.length&&n>=e[0]&&n<=e[1]&&(o=i[t])}}),!o){if(!i.default)return"";o="default"}return ji.renderLiteral(i[o],t)}var ji=new W;u.filter("pt",Bi);function Hi(n,o,r,s){return n&&n.length&&o&&0<o.trim().length?n.filter(function(t){var e="string"==typeof t,i=t;return e||r?(!e&&r&&(i=t[r]||""),i=i.toLowerCase(),s?i.startsWith(o.toLowerCase()):-1!=i.indexOf(o.toLowerCase())):n}):n}u.filter("searchFilter",Hi);function Ui(t,e,i){if($i.dayjs){$i.dayjs.extend($i.dayjs_plugin_timezone),$i.dayjs.extend($i.dayjs_plugin_utc),$i.dayjs.extend($i.dayjs_plugin_advancedFormat),$i.dayjs.extend($i.dayjs_plugin_localizedFormat);var n=g.getSiteSettings("ignoreLocaleMomentTranslation");if(e=qi[e]||e,!n){var o=$i.dayjs.locale(),r=g.phApp.locale||"en_us";r="en_us"===r?"en":r.replace("_","-"),$i.dayjs.locale(r),o===$i.dayjs.locale()&&1!==r.split("-").length&&(r=r.split("-")[0],$i.dayjs.locale(r))}return $i.dayjs.default?i?$i.dayjs.utc(t).tz(i).format(e):$i.dayjs.utc(t).format(e):$i.dayjs(t).format(e)}}var $i=window,qi={DEFAULT:"MMM Do YYYY",SHORT:"D M YY",MEDIUM:"MMM Do YYYY",LONG:"MMMM Do YYYY",FULL:"MMMM Do YYYY H mm",LOCALE_DEFAULT:"L",MMDDYYYY_SLASH:"MM/DD/YYYY"};u.filter("dateFormat",Ui);var Wi=(Ki.prototype.observeImage=function(t,e){this.callBack=e,this.imgIntersectionObserver.observe(t)},Ki);function Ki(){var i=this;this.imgIntersectionObserver=new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(i.callBack(),i.imgIntersectionObserver.unobserve(t.target))})})}var Ji=(Yi.prototype.init=function(t,e){this.ele=t,this.imgSrc=e,this.dimensions={},this.ele.onerror=this.fallBackCDN.bind(this),this.getImageKitURL(),this.loadLQIPImage()},Yi.prototype.getImageKitURL=function(){var t=g.getDDOFromCache("siteConfig");t&&t.data&&(this.imageKitURL=t.data.navItems.dynamicImageUrl)},Yi.prototype.getImgDimensions=function(){var t=this.ele;if(t&&t.parentElement){var e=(t.offsetWidth||t.style.width.replace("px",""))+"px",i=(t.offsetHeight||t.style.height.replace("px",""))+"px",n=(t.offsetTop||0)+"px",o=(t.offsetLeft||0)+"px";return i&&"px"!=i&&parseInt(i)||(i="auto"),e&&"px"!==e&&parseInt(i)||(e="auto"),{width:e,height:i,offsetTop:n,offsetLeft:o}}},Yi.prototype.setImage=function(){this.ele.src=this.constructImageKitURL()},Yi.prototype.constructImageKitURL=function(){this.dimensions=this.getImgDimensions();var t=this.dimensions.width&&this.dimensions.height?"?tr=w-"+this.dimensions.width+",h-"+this.dimensions.height+",f-auto":"";return(this.imgSrc&&!this.imgSrc.includes("imagekit.io")?""+this.imageKitURL+this.imgSrc:this.imgSrc)+t},Yi.prototype.getLQIP=function(){this.dimensions=this.getImgDimensions();var t=this.dimensions.width&&this.dimensions.height?"w-"+this.dimensions.width+",h-"+this.dimensions.height+",f-auto":"";return this.imgSrc&&!this.imgSrc.includes("imagekit.io")?""+this.imageKitURL+this.imgSrc+"?tr=bl-6,"+t:this.imgSrc+"?tr=bl-6,"+t},Yi.prototype.loadLQIPImage=function(){this.ele.src=this.getLQIP(),this.imgObserver=new Wi,this.imgObserver.observeImage(this.ele,this.setImage.bind(this))},Yi.prototype.fallBackCDN=function(){this.isFalledBack||(this.ele.src=this.imgSrc,this.isFalledBack=!0)},Yi);function Yi(){this.isFalledBack=!1}var zi="siteConfig";function Gi(n,o,r,s){u.nextTick(function(){var t,e,i;!function(){var t=g.getDDOFromCache(zi);if(t&&t.data)return t.data.navItems.imageKitEnabled}()?(t=n.getBoundingClientRect(),e=0<=t.top,i=t.bottom<=window.innerHeight&&0<t.bottom,e&&i||n.setAttribute("loading","lazy"),n.src=o.src&&o.src.includes("https:")?o.src:""+g.getCdnUrl()+o.src):(s||(r.context.imageKit=new Ji(n,o.src)),r.context.imageKit.init(n,o.src))})}var Qi={bind:function(t,e,i){Gi(t,e.value,i)},update:function(t,e,i){var n=e.value,o=e.oldValue;n.src!==o.src&&Gi(t,n,i,void 0!==i.context.imageKit)}};u.directive("pcs-lazy-load",Qi);function Xi(t){if(t&&"string"==typeof t){var e=(i=t,(n=document.createElement("div")).innerHTML=i,n);Tt.isCrawlerUserAgent()||setTimeout(function(){!function(t){var e=t.querySelectorAll("link"),i=t.querySelectorAll("script");e.length&&Zi(e,"link");i.length&&Zi(i,"script")}(e)},3e3)}var i,n;return t}function Zi(t,e){var i=document.getElementsByTagName(e)[0];if(i&&i.parentNode)for(var n=0;n<t.length;n++){var o=document.createElement(e),r=t[n];if(r&&r.attributes){for(var s=Array.prototype.slice.call(r.attributes)||[],a=0;a<s.length;a++)o.setAttribute(s[a].name,s[a].value);o.innerHTML=r.innerHTML}i.parentNode.insertBefore(o,i)}}u.filter("ee",Xi);function tn(t,e){if(t&&e&&"anchor"==e.linkType&&g.getPageId()===e.pageId){var i=t.split("#");if(i.length&&i[1])return"#"+i[1]}return t}u.filter("lae",tn);var en="jwtLogout",nn=(on.prototype.getLocale=function(){var t=g.getLocale();return t="/"+(t=t.split("_"))[1]+"/"+t[0]+"/"},on.prototype.socialLoginUrl=function(t,e,i){var n=Tt.getQueryParam("qpage")||"";n=decodeURIComponent(n);var o=e.name,r=e.profileValidation,s=e.redirectUri||window.location.href;o&&"linkedin"==o.toLocaleLowerCase()&&(o="linkedIn");var a=Tt.getSiteSettings("oauth");if(a&&a[o]){var l=Tt.getQueryParam("page")||"",d=a[o],c=this.getLocale(),p=g.getLocale(),u=window.location.pathname;n||(u+=window.location.search);var h={page:u,protocol:window.location.protocol,localePath:c,qpage:n,pagename:l,locale:p,siteVariant:t,rurl:encodeURIComponent(s)};if(i&&Object.keys(i).length)for(var f in i)h.hasOwnProperty(f)||(h[f]=i[f]);return r&&(h.profileValidation=!0),g.getCsrfToken()&&(h.csrfToken=g.getCsrfToken()),!!d&&(d.redirectUriPath=g.getRootDomain()+d.redirectUri,d.state=JSON.stringify(h),this.redirectToProvider(d,o))}},on.prototype.redirectToProvider=function(t,e){var i=this.providerKey,n=t.loginUrl+"?response_type="+t.response_type+"&";switch(e){case i.MICROSOFT:case i.LINKEDIN:n+="client_id="+encodeURIComponent(t.clientId)+"&";break;case i.GOOGLE:case i.LOGIN:n+="client_id="+encodeURIComponent(t.clientId)+"&access_type=offline&approval_prompt=auto&";break;case i.FACEBOOK:n+="client_id="+encodeURIComponent(t.clientId)+"&"}return!!e&&(n+="redirect_uri="+encodeURIComponent(t.redirectUriPath),t.scope&&(n+="&scope="+encodeURIComponent(t.scope)),t.state&&(n+="&state="+encodeURIComponent(t.state)),n)},on.prototype.getMergeProfile=function(e,t){return Pt.fetchDdo(e,{}).then(function(t){if((t=t[e])&&"success"==t.status){var i=t.data;if(i&&i.allProfiles&&i.allProfiles.length){var n=[];i.linkedAccountList=[],i.mergeProfilesCount=0,i.allProfiles.forEach(function(t){if(t.hasOwnProperty("merge")||(t.merge=!0),t.hasOwnProperty("validation")&&!i.mergeAuthFlow&&(i.mergeAuthFlow="unsuccessfulMerge",t.validation&&(i.mergeAuthFlow="successfulMerge")),t.merge&&t.linkedAccounts&&t.linkedAccounts.length){for(var e=0;e<t.linkedAccounts.length;e++)-1==n.indexOf(t.linkedAccounts[e].email+""+t.linkedAccounts[e].socialProvider)&&(i.linkedAccountList.push(t.linkedAccounts[e]),n.push(t.linkedAccounts[e].email+""+t.linkedAccounts[e].socialProvider));i.mergeProfilesCount++}})}return i}if("failure"==t.status)return{}})},on.prototype.doLogout=function(){return Pt.fetchDdo(en,{}).then(function(t){return t[en]})},on);function on(){this.providerKey={FACEBOOK:"facebook",MICROSOFT:"microsoft",LINKEDIN:"linkedIn",GOOGLE:"google",LOGIN:"google-signin"}}return{BaseComponent:Ye,JobComponent:Qe,FetchService:Pt,PhenomAppManager:g,CommonService:Tt,SettingsDirective:si,LoaderDirective:li,A11yAutoCompleteDirective:Ei,A11yRadioAttibuteDirective:Li,A11yListboxDirective:Vi,JobCountDirective:Ni,TrackDirective:di,VideoDirective:fi,ObjectFitDirective:vi,TranslationFilter:Bi,LocalStorage:S,LocalStorageContextModel:q,CookieManager:D,DialogManager:Le,DefaultSliderProvider:ie,CandidateLoginService:nn,SearchFilter:Hi,DateFormat:Ui,LazyLoad:Qi,ExternalEvaluationFilter:Xi,LinkAnchorEvaluationFilter:tn,EventBus:Y,CaptchaInjector:st}});
