/*! For license information please see app.js.LICENSE.txt */
(()=>{var t,e={9669:(t,e,n)=>{t.exports=n(1609)},5448:(t,e,n)=>{"use strict";var i=n(4867),r=n(6026),o=n(4372),s=n(5327),a=n(4097),l=n(4109),u=n(7985),c=n(5061),d=n(5655),h=n(5263);t.exports=function(t){return new Promise((function(e,n){var f,p=t.data,m=t.headers,g=t.responseType;function v(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}i.isFormData(p)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var T=a(t.baseURL,t.url);function _(){if(y){var i="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:i,config:t,request:y};r((function(t){e(t),v()}),(function(t){n(t),v()}),o),y=null}}if(y.open(t.method.toUpperCase(),s(T,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(_)},y.onabort=function(){y&&(n(c("Request aborted",t,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(c("Network Error",t,null,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",i=t.transitional||d.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,i.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},i.isStandardBrowserEnv()){var S=(t.withCredentials||u(T))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;S&&(m[t.xsrfHeaderName]=S)}"setRequestHeader"in y&&i.forEach(m,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete m[e]:y.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),g&&"json"!==g&&(y.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(f=function(t){y&&(n(!t||t&&t.type?new h("canceled"):t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f))),p||(p=null),y.send(p)}))}},1609:(t,e,n)=>{"use strict";var i=n(4867),r=n(1849),o=n(321),s=n(7185);var a=function t(e){var n=new o(e),a=r(o.prototype.request,n);return i.extend(a,o.prototype,n),i.extend(a,n),a.create=function(n){return t(s(e,n))},a}(n(5655));a.Axios=o,a.Cancel=n(5263),a.CancelToken=n(4972),a.isCancel=n(6502),a.VERSION=n(7288).version,a.all=function(t){return Promise.all(t)},a.spread=n(8713),a.isAxiosError=n(6268),t.exports=a,t.exports.default=a},5263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,n)=>{"use strict";var i=n(5263);function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,i=n._listeners.length;for(e=0;e<i;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,i=new Promise((function(t){n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},r.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var i=n(4867),r=n(5327),o=n(782),s=n(3572),a=n(7185),l=n(4875),u=l.validators;function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!i){var c=[s,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),r=Promise.resolve(t);c.length;)r=r.then(c.shift(),c.shift());return r}for(var d=t;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(t){f(t);break}}try{r=s(d)}catch(t){return Promise.reject(t)}for(;o.length;)r=r.then(o.shift(),o.shift());return r},c.prototype.getUri=function(t){return t=a(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,i){return this.request(a(i||{},{method:t,url:e,data:n}))}})),t.exports=c},782:(t,e,n)=>{"use strict";var i=n(4867);function r(){this.handlers=[]}r.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},4097:(t,e,n)=>{"use strict";var i=n(1793),r=n(7303);t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},5061:(t,e,n)=>{"use strict";var i=n(481);t.exports=function(t,e,n,r,o){var s=new Error(t);return i(s,e,n,r,o)}},3572:(t,e,n)=>{"use strict";var i=n(4867),r=n(8527),o=n(6502),s=n(5655),a=n(5263);function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new a("canceled")}t.exports=function(t){return l(t),t.headers=t.headers||{},t.data=r.call(t,t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return l(t),e.data=r.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(l(t),e&&e.response&&(e.response.data=r.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},7185:(t,e,n)=>{"use strict";var i=n(4867);t.exports=function(t,e){e=e||{};var n={};function r(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function o(n){return i.isUndefined(e[n])?i.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function s(t){if(!i.isUndefined(e[t]))return r(void 0,e[t])}function a(n){return i.isUndefined(e[n])?i.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function l(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return i.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||o,r=e(t);i.isUndefined(r)&&e!==l||(n[t]=r)})),n}},6026:(t,e,n)=>{"use strict";var i=n(5061);t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:(t,e,n)=>{"use strict";var i=n(4867),r=n(5655);t.exports=function(t,e,n){var o=this||r;return i.forEach(n,(function(n){t=n.call(o,t,e)})),t}},5655:(t,e,n)=>{"use strict";var i=n(4155),r=n(4867),o=n(6016),s=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function l(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(u=n(5448)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(l(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(l(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw s(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c},7288:t=>{t.exports={version:"0.23.0"}},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},5327:(t,e,n)=>{"use strict";var i=n(4867);function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var s=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),s.push(r(e)+"="+r(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,n)=>{"use strict";var i=n(4867);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,r,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,n)=>{"use strict";var i=n(4867);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:(t,e,n)=>{"use strict";var i=n(4867);t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},4109:(t,e,n)=>{"use strict";var i=n(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(s[e]&&r.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,n)=>{"use strict";var i=n(7288).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){r[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={};r.transitional=function(t,e,n){return function(r,s,a){if(!1===t)throw new Error(function(t,e){return"[Axios v"+i+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}(s," has been removed"+(e?" in "+e:"")));return e&&!o[s]&&(o[s]=!0),!t||t(r,s,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var i=Object.keys(t),r=i.length;r-- >0;){var o=i[r],s=e[o];if(s){var a=t[o],l=void 0===a||s(a,o,t);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:r}},4867:(t,e,n)=>{"use strict";var i=n(1849),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===r.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===r.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(t){return"[object Date]"===r.call(t)},isFile:function(t){return"[object File]"===r.call(t)},isBlob:function(t){return"[object Blob]"===r.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,i){l(e[i])&&l(n)?e[i]=t(e[i],n):l(n)?e[i]=t({},n):o(n)?e[i]=n.slice():e[i]=n}for(var i=0,r=arguments.length;i<r;i++)c(arguments[i],n);return e},extend:function(t,e,n){return c(e,(function(e,r){t[r]=n&&"function"==typeof e?i(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},7745:(t,e,n)=>{"use strict";var i=n(4878);(0,i.jarallaxVideo)(),n(8759),n(5017),$(document).ready((function(){iFrameResize({log:!1},"#transloadit-iframe"),$(window).scroll((function(){var t=$(document).scrollTop();$(".preview-info").css("top",t)})),$("#mainnav-toggle-spa").click((function(){$("#mainnav").toggleClass("open")})),$(".button-open-slider").click((function(){$(this).toggleClass("active")})),window.matchMedia("(max-width: 769px)").matches&&$(".nav-link").on("click",(function(){$("#mainnav-toggle-spa").trigger("click")})),$("#mainnav-toggle-mpa").click((function(){$(this).toggleClass("active"),$("#mainnav").toggleClass("open"),$("#mainnav-overlay").toggleClass("open"),$("body").toggleClass("noscroll")})),$(".scroll").on("click",(function(t){var e=null;if(""!==this.hash)e=this.hash;else{var n=$("a.anchor").first();e="#"+$(n).attr("id")}t.preventDefault(),$("html, body").animate({scrollTop:$(e).offset().top},800,(function(){window.location.hash=e}))}));$("body header.main_nav");$("a.anchor").each((function(){$(this).css("top",-0)})),(0,i.jarallax)(document.querySelectorAll(".jarallax")),$(".textitem__toggle button").each((function(t,e){var n=$(e).data("contentitem-id");$(e).click((function(){var t=$(this).find("i"),e=$("#textitem-img-"+n),i=$("#textitem-"+n),r=$(this).find("span");i.toggleClass("textitem--hidden"),t.hasClass("fa-chevron-down")?(t.removeClass("fa-chevron-down").addClass("fa-chevron-up"),r.text("Weniger anzeigen")):(t.removeClass("fa-chevron-up").addClass("fa-chevron-down"),r.text("Mehr anzeigen"),$("html, body").animate({scrollTop:e.offset().top},800))}))})),$(".product__tracklistbutton button").click((function(){var t=$(this).data("product-id");$(this).parents(".product").find("#product-playlist-"+t).slideToggle()}));var t=function(t){for(var e=function t(e,n){return e&&(n(e)?e:t(e.parentNode,n))},n=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;var n=t.target||t.srcElement,r=e(n,(function(t){return t.tagName&&"FIGURE"===t.tagName.toUpperCase()}));if(r){for(var o,s=r.parentNode,a=r.parentNode.childNodes,l=a.length,u=0,c=0;c<l;c++)if(1===a[c].nodeType){if(a[c]===r){o=u;break}u++}return o>=0&&i(o,s),!1}},i=function(t,e,n,i){var r,o,s=document.querySelectorAll(".pswp")[0];if(o=function(t){for(var e,n,i,r,o=t.childNodes,s=o.length,a=[],l=0;l<s;l++)1===(e=o[l]).nodeType&&(i=(n=e.children[0]).getAttribute("data-size").split("x"),r={src:n.getAttribute("href"),w:parseInt(i[0],10),h:parseInt(i[1],10)},e.children.length>1&&(r.title=e.children[1].innerHTML),n.children.length>0&&(r.msrc=n.children[0].getAttribute("src")),r.el=e,a.push(r));return a}(e),r={galleryUID:e.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(t){var e=o[t].el.getElementsByTagName("img")[0],n=window.pageYOffset||document.documentElement.scrollTop,i=e.getBoundingClientRect();return{x:i.left,y:i.top+n,w:i.width}},showHideOpacity:!0,hideAnimationDuration:0,showAnimationDuration:0,bgOpacity:.9},i)if(r.galleryPIDs){for(var a=0;a<o.length;a++)if(o[a].pid==t){r.index=a;break}}else r.index=parseInt(t,10)-1;else r.index=parseInt(t,10);isNaN(r.index)||(n&&(r.showAnimationDuration=0),new PhotoSwipe(s,PhotoSwipeUI_Default,o,r).init())},r=document.querySelectorAll(t),o=0,s=r.length;o<s;o++)r[o].setAttribute("data-pswp-uid",o+1),r[o].onclick=n;var a=function(){var t=window.location.hash.substring(1),e={};if(t.length<5)return e;for(var n=t.split("&"),i=0;i<n.length;i++)if(n[i]){var r=n[i].split("=");r.length<2||(e[r[0]]=r[1])}return e.gid&&(e.gid=parseInt(e.gid,10)),e}();a.pid&&a.gid&&i(a.pid,r[a.gid-1],!0,!0)};$(".image-gallery").each((function(e,n){var i=$(n).data("image-gallery-id");$(n).find("a").on("click",t(".image-gallery-"+i))})),$(".hero-content__scrolldown").click((function(t){t.preventDefault();var e=$(this).parents(".pageItem__content-item");e.length>0&&$("html, body").animate({scrollTop:e.height()+e.offset().top},800)}))}))},8759:(t,e,n)=>{window._=n(6486),window.ClipboardJS=n(2152);try{window.Popper=n(8981).default,window.$=window.jQuery=n(9755),n(3734)}catch(t){}window.axios=n(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var i=document.head.querySelector('meta[name="csrf-token"]');i&&(window.axios.defaults.headers.common["X-CSRF-TOKEN"]=i.content),n(4092),n(9154),Velocity=n(2641),window.PhotoSwipe=n(8832),window.PhotoSwipeUI_Default=n(8411),n(7090),n(5303)},9011:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={data:function(){return{API_URL:"/api/fetch"}}}},2937:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:()=>s});const s={methods:{dataLayerPush:function(t){window.dataLayer=window.dataLayer||[];var e={event:"Generic Event",event_name:t.event_name};e[t.event_name]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t[t.event_name]),window.dataLayer.push(e)}}}},2483:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(9490);const r={methods:{formatDuration:function(t){return i.nL.fromMillis(1e3*t).toFormat("mm:ss")},dateTimeFormatter:function(t,e){return new Intl.DateTimeFormat(this.localLang,t).format(new Date(e))},getDay:function(t){return this.dateTimeFormatter({day:"2-digit",timeZone:"UTC"},t)},getMonth:function(t){return this.dateTimeFormatter({month:"short",timeZone:"UTC"},t)},getYear:function(t){return this.dateTimeFormatter({year:"numeric",timeZone:"UTC"},t)},isSameMonth:function(t,e){return this.getMonth(t)===this.getMonth(e)},isSameYear:function(t,e){return this.getYear(t)===this.getYear(e)}}}},7472:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={data:function(){return{styleObject:{backgroundColor:this.backgroundColor,fontSize:this.fontSize,color:this.fontColor}}},props:["backgroundColor","fontSize","fontColor"]}},5017:(t,e,n)=>{"use strict";n.r(e);var i=n(538);var r=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,i=(n=function(e){return e.original===t},e.filter(n)[0]);if(i)return i.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=o(t[n],e)})),r}function s(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"==typeof t}var l=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(t,e){this._children[t]=e},l.prototype.removeChild=function(t){delete this._children[t]},l.prototype.getChild=function(t){return this._children[t]},l.prototype.hasChild=function(t){return t in this._children},l.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},l.prototype.forEachChild=function(t){s(this._children,t)},l.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},l.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},l.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(l.prototype,u);var c=function(t){this.register([],t,!1)};function d(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;d(t.concat(i),e.getChild(i),n.modules[i])}}c.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},c.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},c.prototype.update=function(t){d([],this.root,t)},c.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new l(e,n);0===t.length?this.root=r:this.get(t.slice(0,-1)).addChild(t[t.length-1],r);e.modules&&s(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},c.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},c.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var h;var f=function(t){var e=this;void 0===t&&(t={}),!h&&"undefined"!=typeof window&&window.Vue&&T(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h,this._makeLocalGettersCache=Object.create(null);var o=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return a.call(o,t,e,n)},this.strict=i;var l=this._modules.root.state;y(this,l,[],this._modules.root),v(this,l),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:h.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function m(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;y(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={};s(r,(function(e,n){o[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=h.config.silent;h.config.silent=!0,t._vm=new h({data:{$$state:e},computed:o}),h.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),h.nextTick((function(){return i.$destroy()})))}function y(t,e,n,i,r){var o=!n.length,s=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=i),!o&&!r){var a=b(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){h.set(a,l,i.state)}))}var u=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=w(n,i,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=e+l),t.dispatch(l,s)},commit:i?t.commit:function(n,i,r){var o=w(n,i,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=e+l),t.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return b(t.state,n)}}}),r}(t,s,n);i.forEachMutation((function(e,n){!function(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}(t,s+n,e,u)})),i.forEachAction((function(e,n){var i=e.root?n:s+n,r=e.handler||e;!function(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r,o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,r,u)})),i.forEachGetter((function(e,n){!function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}}(t,s+n,e,u)})),i.forEachChild((function(i,o){y(t,e,n.concat(o),i,r)}))}function b(t,e){return e.reduce((function(t,e){return t[e]}),t)}function w(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function T(t){h&&t===h||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(h=t)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},f.prototype.commit=function(t,e,n){var i=this,r=w(t,e,n),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,i.state)})))},f.prototype.dispatch=function(t,e){var n=this,i=w(t,e),r=i.type,o=i.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(t){0}var l=a.length>1?Promise.all(a.map((function(t){return t(o)}))):a[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return m(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return m("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),y(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=b(e.state,t.slice(0,-1));h.delete(n,t[t.length-1])})),g(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,p);var _=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=A(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),S=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=A(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),E=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),x=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=A(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){return t._modulesNamespaceMap[n]}function L(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(n){t.log(e)}}function I(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function O(){var t=new Date;return" @ "+D(t.getHours(),2)+":"+D(t.getMinutes(),2)+":"+D(t.getSeconds(),2)+"."+D(t.getMilliseconds(),3)}function D(t,e){return n="0",i=e-t.toString().length,new Array(i+1).join(n)+t;var n,i}var P={Store:f,install:T,version:"3.6.2",mapState:_,mapMutations:S,mapGetters:E,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:E.bind(null,t),mapMutations:S.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var r=t.mutationTransformer;void 0===r&&(r=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var d=o(t.state);void 0!==c&&(l&&t.subscribe((function(t,s){var a=o(s);if(n(t,d,a)){var l=O(),u=r(t),h="mutation "+t.type+l;L(c,h,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),I(c)}d=a})),u&&t.subscribeAction((function(t,n){if(s(t,n)){var i=O(),r=a(t),o="action "+t.type+i;L(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",r),I(c)}})))}}};const R=P;i.ZP.use(R);const M=new R.Store({state:{currentProductId:null,currentElementId:null,currentTrack:null,selectedProductElementId:null,playlist:[],registeredElements:[],isAudioplayerPlaying:!1,isAudioplayerVisible:!1,nextPlaylist:null,moveToNextPlaylist:!1,isNewsletterPopupVisible:{status:!1,context:null}},mutations:{setNewsletterPopupVisibility:function(t,e){t.isNewsletterPopupVisible=e},setTrack:function(t,e){var n=e.track;t.currentProductId=n._productId,t.currentElementId=n._productElementId,t.currentTrack=n},registerElement:function(t,e){var n=e.uniqueId,i=e.productElementId;t.registeredElements.push({sourceId:n,productElementId:i})},setActiveProductElementForTabbedPlaylist:function(t,e){var n=e.source,i=e.productElementId,r=t.registeredElements.filter((function(t){return t.sourceId!==n}));t.registeredElements=[],r.forEach((function(e){return t.registeredElements.push(e)})),t.registeredElements.push({sourceId:n,productElementId:i})},addNewListToPlaylist:function(t,e){var n={productId:e.productId,elements:e.productElements};t.playlist=t.playlist.concat(n)},playTrack:function(t,e){t.isAudioplayerPlaying=!0},pauseTrack:function(t,e){t.isAudioplayerPlaying=!1},showAudioplayer:function(t,e){t.isAudioplayerVisible=!0},hideAudioplayer:function(t,e){t.isAudioplayerVisible=!1},setNextPlaylist:function(t,e){t.nextPlaylist=e.playlistId},moveToNextPlaylist:function(t,e){t.moveToNextPlaylist=e.next}},actions:{playNextTrack:function(t,e){var n=t.commit,i=t.state,r=i.playlist.filter((function(t){return t.productId===i.currentProductId}))[0],o=[],s=[];r.elements.forEach((function(t){s.push({id:t.productElement,tracks:t.tracks,totalTracks:t.tracks.length}),t.tracks.forEach((function(t){return o.push(t)}))}));for(var a=i.currentTrack._productElementId,l=i.currentTrack.titleNumber,u=o.indexOf(i.currentTrack),c=u+1,d=0,h=s;d<h.length;d++){var f=h[d];if(a!==f.id&&n("setNextPlaylist",{playlistId:f.id}),a===f.id&&c!==o.length)n("setTrack",{track:o[c]}),n("playTrack"),n("moveToNextPlaylist",{next:!1}),l===f.totalTracks&&u<o.length&&n("moveToNextPlaylist",{next:!0})}},setActiveProductElementForTabbedPlaylist:function(t,e){var n=t.commit;t.state;n("setActiveProductElementForTabbedPlaylist",e)}},getters:{currentTrack:function(t){return t.currentTrack},registeredElements:function(t){return t.registeredElements},isAudioplayerVisible:function(t){return t.isAudioplayerVisible},isAudioplayerPlaying:function(t){return t.isAudioplayerPlaying},elements:function(t){return t.registeredElements},moveToNextPlaylist:function(t){return t.moveToNextPlaylist},nextPlaylistId:function(t){return t.nextPlaylist}}});var N=n(3162),F=[];function $(t){return"\n".concat(t,"\n")}var j=0;var U={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{uidDomain:"evildvl",prodId:"vueICS"};t.prototype.$ics={removeAllEvents:function(){F=[]},addEvent:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-us",i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;if(void 0===i||void 0===r||void 0===o||void 0===s||void 0===a)throw"You need to specify function arguments";if(c&&function(t){var e=0,n=["SU","MO","TU","WE","TH","FR","SA"];if("YEARLY"!==t.freq&&"MONTHLY"!==t.freq&&"WEEKLY"!==t.freq&&"DAILY"!==t.freq)throw e+=1,"Recurrence rrule frequency must be provided and be one of the following: 'YEARLY', 'MONTHLY', 'WEEKLY', or 'DAILY'";if(t.until&&isNaN(Date.parse(t.until)))throw e+=1,"Recurrence rrule 'until' must be a valid date string";if(t.interval&&isNaN(parseInt(t.interval)))throw e+=1,"Recurrence rrule 'interval' must be an integer";if(t.count&&isNaN(parseInt(t.count)))throw e+=1,"Recurrence rrule 'count' must be an integer";if(void 0!==t.byday){if("[object Array]"!==Object.prototype.toString.call(t.byday))throw e+=1,"Recurrence rrule 'byday' must be an array";if(t.byday.length>7)throw e+=1,"Recurrence rrule 'byday' array must not be longer than the 7 days in a week";for(var i in t.byday=t.byday.filter((function(e,n){return t.byday.indexOf(e)==n})),t.byday)if(n.indexOf(t.byday[i])<0)throw e+=1,"Recurrence rrule 'byday' values must include only the following: 'SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'"}return 0===e}(c)){if(t="RRULE:FREQ=".concat(c.freq),c.until){var d=new Date(Date.parse(c.until)).toISOString();t+=";UNTIL=".concat(d.substring(0,d.length-13).replace(/[-]/g,""),"000000Z")}c.interval&&(t+=";INTERVAL=".concat(c.interval)),c.count&&(t+=";COUNT=".concat(c.count)),c.byday&&c.byday.length>0&&(t+=";BYDAY=".concat(c.byday.join(",")))}var h=new Date(s),f=new Date(a),p=new Date,m="".concat(p.getDay()).concat(p.getMonth()).concat(p.getFullYear(),"-").concat(p.getHours()).concat(p.getMinutes()).concat(p.getSeconds()).concat(j++),g="0000".concat(h.getFullYear().toString()).slice(-4),v="00".concat((h.getMonth()+1).toString()).slice(-2),y="00".concat(h.getDate().toString()).slice(-2),b="00".concat(h.getHours().toString()).slice(-2),w="00".concat(h.getMinutes().toString()).slice(-2),T="00".concat(h.getSeconds().toString()).slice(-2),_="0000".concat(f.getFullYear().toString()).slice(-4),S="00".concat((f.getMonth()+1).toString()).slice(-2),E="00".concat(f.getDate().toString()).slice(-2),x="00".concat(f.getHours().toString()).slice(-2),k="00".concat(f.getMinutes().toString()).slice(-2),C="00".concat(f.getSeconds().toString()).slice(-2),A="0000".concat(p.getFullYear().toString()).slice(-4),L="00".concat((p.getMonth()+1).toString()).slice(-2),I="00".concat(p.getDate().toString()).slice(-2),O="00".concat(p.getHours().toString()).slice(-2),D="00".concat(p.getMinutes().toString()).slice(-2),P="00".concat(p.getSeconds().toString()).slice(-2),R="",M="";b+w+T+x+k+C!=0&&(R="T".concat(b).concat(w).concat(T),M="T".concat(x).concat(k).concat(C));var N=g+v+y+R,$=_+S+E+M,U=A+L+I+"T".concat(O).concat(D).concat(P),B="\n    BEGIN:VEVENT\n    UID:".concat(m,"@").concat(e.uidDomain,"\n    ").concat(l?"URL:"+l:"","\n    DESCRIPTION:").concat(r).concat(t?"\n"+t:"","\n    DTSTAMP;VALUE=DATE-TIME:").concat(U,",\n    DTSTART;VALUE=DATE-TIME:").concat(N,"\n    DTEND;VALUE=DATE-TIME:").concat($,"\n    LOCATION:").concat(o,"\n    ").concat(u?"ORGANIZER;CN="+u.name+":MAILTO:"+u.email:"","\n    SUMMARY;LANGUAGE=").concat(n,":").concat(i,"\n    END:VEVENT\n      ");return F.push(B),B},calendar:function(){return $("\n    BEGIN:VCALENDAR\n    PRODID:".concat(e.prodId,"\n    VERSION:2.0\n    ").concat(F.join("\n"),"\n    END:VCALENDAR\n\n      ").replace(/^\s*[\r\n]/gm,"").replace(/^\s+/gm,""))},download:function(t){var n=$("\n    BEGIN:VCALENDAR\n    PRODID:".concat(e.prodId,"\n    VERSION:2.0\n    ").concat(F.join("\n"),"\n    END:VCALENDAR\n\n      ").replace(/^\s*[\r\n]/gm,"").replace(/^\s+/gm,"")),i=new Blob([n],{type:"text/x-vCalendar;charset=utf-8"});(0,N.saveAs)(i,"".concat(t,".ics"))}}},version:"0.1.4"};"undefined"!=typeof window&&window.Vue&&window.Vue.use(U);const B=U;var H=n(5763);H.keys().map((function(t){return i.ZP.component(t.split("/").pop().split(".")[0],H(t).default)}));var V=n(4804).default,z=n(1105).default,W=n(6188).default,q=n(5968).default,G=n(3424).default,K=n(4519).default,Y=n(6041).default,Z=n(1160).default,X=n(615).default,Q=n(9791).default,J=n(4710).default,tt=n(9715).default,et=n(2894).default,nt=n(2976).default,it=n(8828).default,rt=n(6831).default,ot=n(4298).default,st=n(9398).default,at=n(3323).default,lt=n(6106).default,ut=n(5013).default,ct=n(2159).default,dt=n(877).default,ht=n(9181).default,ft=n(1860).default,pt=n(6556).default,mt=n(4487).default,gt=n(9044).default,vt=n(8055).default,yt=n(8426).default,bt=n(6123).default,wt=n(8929).default,Tt=n(1270).default,_t=n(29).default,St=n(9157).default,Et=n(6e3).default,xt=n(2232).default,kt=n(3193).default;new i.ZP({el:"#app",store:M,components:{MlpArticle:tt,DataLayerPushAfterNewsletterSubscription:kt,MlpAudioplayer:V,MlpPlaylist:z,MlpMediaembedSlider:W,MlpMediaembedPlayer:q,MlpMediaembedplayerCode:G,MlpMediaembedplayerId:K,MlpYouTubeFeed:Y,MlpInstagramFeed:Z,MlpShowTracklistButton:et,MlpTabbedPlaylist:nt,Loading:it,MlpVideoSlider:rt,MlpSliderWrapper:ot,BackgroundVideoPlayer:st,MlpDateLabel:_t,MlpHeroContent:at,Picembed:lt,videoembed:ut,MlpGridCollection:ct,MlpGridCollectionMediaEmbed:dt,ConditionalVisibility:ft,MlpColumn:mt,MlpNewsletterForm:ht,MlpImage:pt,LiveEventFeed:gt,LiveEvent:vt,externalmediaembed:yt,FacebookGlobalScript:St,MlpCountdown:bt,MlpRow:wt,MlpShopButton:xt,MlpSlider:Tt,MlpVoucher:Et,MlpLanguageSwitch:X,MlpLanguage:Q,MlpLink:J}});i.ZP.use(B)},3734:function(t,e,n){!function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=i(e),o=i(n);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var d="transitionend",h=1e6,f=1e3;function p(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function m(){return{bindType:d,delegateType:d,handle:function(t){if(r.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function g(t){var e=this,n=!1;return r.default(this).one(y.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||y.triggerTransitionEnd(e)}),t),this}function v(){r.default.fn.emulateTransitionEnd=g,r.default.event.special[y.TRANSITION_END]=m()}var y={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*h)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=r.default(t).css("transition-duration"),n=r.default(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*f):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){r.default(t).trigger(d)},supportsTransitionEnd:function(){return Boolean(d)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=e[i],s=o&&y.isElement(o)?"element":p(o);if(!new RegExp(r).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?y.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=r.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,i=9,o=1,s=4;if(t[0]<n&&t[1]<i||t[0]===e&&t[1]===i&&t[2]<o||t[0]>=s)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};y.jQueryDetection(),v();var b="alert",w="4.6.2",T="bs.alert",_="."+T,S=".data-api",E=r.default.fn[b],x="alert",k="fade",C="show",A="close"+_,L="closed"+_,I="click"+_+S,O='[data-dismiss="alert"]',D=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){r.default.removeData(this._element,T),this._element=null},e._getRootElement=function(t){var e=y.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r.default(t).closest("."+x)[0]),n},e._triggerCloseEvent=function(t){var e=r.default.Event(A);return r.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(r.default(t).removeClass(C),r.default(t).hasClass(k)){var n=y.getTransitionDurationFromElement(t);r.default(t).one(y.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){r.default(t).detach().trigger(L).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(T);i||(i=new t(this),n.data(T,i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},a(t,null,[{key:"VERSION",get:function(){return w}}]),t}();r.default(document).on(I,O,D._handleDismiss(new D)),r.default.fn[b]=D._jQueryInterface,r.default.fn[b].Constructor=D,r.default.fn[b].noConflict=function(){return r.default.fn[b]=E,D._jQueryInterface};var P="button",R="4.6.2",M="bs.button",N="."+M,F=".data-api",$=r.default.fn[P],j="active",U="btn",B="focus",H="click"+N+F,V="focus"+N+F+" blur"+N+F,z="load"+N+F,W='[data-toggle^="button"]',q='[data-toggle="buttons"]',G='[data-toggle="button"]',K='[data-toggle="buttons"] .btn',Y='input:not([type="hidden"])',Z=".active",X=".btn",Q=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=r.default(this._element).closest(q)[0];if(n){var i=this._element.querySelector(Y);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(j))t=!1;else{var o=n.querySelector(Z);o&&r.default(o).removeClass(j)}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(j)),this.shouldAvoidTriggerChange||r.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(j)),t&&r.default(this._element).toggleClass(j))},e.dispose=function(){r.default.removeData(this._element,M),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=r.default(this),o=i.data(M);o||(o=new t(this),i.data(M,o)),o.shouldAvoidTriggerChange=n,"toggle"===e&&o[e]()}))},a(t,null,[{key:"VERSION",get:function(){return R}}]),t}();r.default(document).on(H,W,(function(t){var e=t.target,n=e;if(r.default(e).hasClass(U)||(e=r.default(e).closest(X)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector(Y);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||Q._jQueryInterface.call(r.default(e),"toggle","INPUT"===n.tagName)}})).on(V,W,(function(t){var e=r.default(t.target).closest(X)[0];r.default(e).toggleClass(B,/^focus(in)?$/.test(t.type))})),r.default(window).on(z,(function(){for(var t=[].slice.call(document.querySelectorAll(K)),e=0,n=t.length;e<n;e++){var i=t[e],r=i.querySelector(Y);r.checked||r.hasAttribute("checked")?i.classList.add(j):i.classList.remove(j)}for(var o=0,s=(t=[].slice.call(document.querySelectorAll(G))).length;o<s;o++){var a=t[o];"true"===a.getAttribute("aria-pressed")?a.classList.add(j):a.classList.remove(j)}})),r.default.fn[P]=Q._jQueryInterface,r.default.fn[P].Constructor=Q,r.default.fn[P].noConflict=function(){return r.default.fn[P]=$,Q._jQueryInterface};var J="carousel",tt="4.6.2",et="bs.carousel",nt="."+et,it=".data-api",rt=r.default.fn[J],ot=37,st=39,at=500,lt=40,ut="carousel",ct="active",dt="slide",ht="carousel-item-right",ft="carousel-item-left",pt="carousel-item-next",mt="carousel-item-prev",gt="pointer-event",vt="next",yt="prev",bt="left",wt="right",Tt="slide"+nt,_t="slid"+nt,St="keydown"+nt,Et="mouseenter"+nt,xt="mouseleave"+nt,kt="touchstart"+nt,Ct="touchmove"+nt,At="touchend"+nt,Lt="pointerdown"+nt,It="pointerup"+nt,Ot="dragstart"+nt,Dt="load"+nt+it,Pt="click"+nt+it,Rt=".active",Mt=".active.carousel-item",Nt=".carousel-item",Ft=".carousel-item img",$t=".carousel-item-next, .carousel-item-prev",jt=".carousel-indicators",Ut="[data-slide], [data-slide-to]",Bt='[data-ride="carousel"]',Ht={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Vt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},zt={TOUCH:"touch",PEN:"pen"},Wt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(jt),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(vt)},e.nextWhenVisible=function(){var t=r.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(yt)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector($t)&&(y.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Mt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)r.default(this._element).one(_t,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?vt:yt;this._slide(i,this._items[t])}},e.dispose=function(){r.default(this._element).off(nt),r.default.removeData(this._element,et),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},Ht,t),y.typeCheckConfig(J,t,Vt),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=lt)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&r.default(this._element).on(St,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&r.default(this._element).on(Et,(function(e){return t.pause(e)})).on(xt,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&zt[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX},i=function(e){t._pointerEvent&&zt[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),at+t._config.interval))};r.default(this._element.querySelectorAll(Ft)).on(Ot,(function(t){return t.preventDefault()})),this._pointerEvent?(r.default(this._element).on(Lt,(function(t){return e(t)})),r.default(this._element).on(It,(function(t){return i(t)})),this._element.classList.add(gt)):(r.default(this._element).on(kt,(function(t){return e(t)})),r.default(this._element).on(Ct,(function(t){return n(t)})),r.default(this._element).on(At,(function(t){return i(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case ot:t.preventDefault(),this.prev();break;case st:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Nt)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===vt,i=t===yt,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===yt?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(Mt)),o=r.default.Event(Tt,{relatedTarget:t,direction:e,from:i,to:n});return r.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Rt));r.default(e).removeClass(ct);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&r.default(n).addClass(ct)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Mt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,o,s=this,a=this._element.querySelector(Mt),l=this._getItemIndex(a),u=e||a&&this._getItemByDirection(t,a),c=this._getItemIndex(u),d=Boolean(this._interval);if(t===vt?(n=ft,i=pt,o=bt):(n=ht,i=mt,o=wt),u&&r.default(u).hasClass(ct))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&a&&u){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var h=r.default.Event(_t,{relatedTarget:u,direction:o,from:l,to:c});if(r.default(this._element).hasClass(dt)){r.default(u).addClass(i),y.reflow(u),r.default(a).addClass(n),r.default(u).addClass(n);var f=y.getTransitionDurationFromElement(a);r.default(a).one(y.TRANSITION_END,(function(){r.default(u).removeClass(n+" "+i).addClass(ct),r.default(a).removeClass(ct+" "+i+" "+n),s._isSliding=!1,setTimeout((function(){return r.default(s._element).trigger(h)}),0)})).emulateTransitionEnd(f)}else r.default(a).removeClass(ct),r.default(u).addClass(ct),this._isSliding=!1,r.default(this._element).trigger(h);d&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(et),i=l({},Ht,r.default(this).data());"object"==typeof e&&(i=l({},i,e));var o="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),r.default(this).data(et,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=y.getSelectorFromElement(this);if(n){var i=r.default(n)[0];if(i&&r.default(i).hasClass(ut)){var o=l({},r.default(i).data(),r.default(this).data()),s=this.getAttribute("data-slide-to");s&&(o.interval=!1),t._jQueryInterface.call(r.default(i),o),s&&r.default(i).data(et).to(s),e.preventDefault()}}},a(t,null,[{key:"VERSION",get:function(){return tt}},{key:"Default",get:function(){return Ht}}]),t}();r.default(document).on(Pt,Ut,Wt._dataApiClickHandler),r.default(window).on(Dt,(function(){for(var t=[].slice.call(document.querySelectorAll(Bt)),e=0,n=t.length;e<n;e++){var i=r.default(t[e]);Wt._jQueryInterface.call(i,i.data())}})),r.default.fn[J]=Wt._jQueryInterface,r.default.fn[J].Constructor=Wt,r.default.fn[J].noConflict=function(){return r.default.fn[J]=rt,Wt._jQueryInterface};var qt="collapse",Gt="4.6.2",Kt="bs.collapse",Yt="."+Kt,Zt=".data-api",Xt=r.default.fn[qt],Qt="show",Jt="collapse",te="collapsing",ee="collapsed",ne="width",ie="height",re="show"+Yt,oe="shown"+Yt,se="hide"+Yt,ae="hidden"+Yt,le="click"+Yt+Zt,ue=".show, .collapsing",ce='[data-toggle="collapse"]',de={toggle:!0,parent:""},he={toggle:"boolean",parent:"(string|element)"},fe=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ce)),i=0,r=n.length;i<r;i++){var o=n[i],s=y.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&a.length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){r.default(this._element).hasClass(Qt)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||r.default(this._element).hasClass(Qt)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ue)).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(Jt)}))).length&&(e=null),e&&(n=r.default(e).not(this._selector).data(Kt))&&n._isTransitioning))){var o=r.default.Event(re);if(r.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(r.default(e).not(this._selector),"hide"),n||r.default(e).data(Kt,null));var s=this._getDimension();r.default(this._element).removeClass(Jt).addClass(te),this._element.style[s]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass(ee).attr("aria-expanded",!0),this.setTransitioning(!0);var a=function(){r.default(i._element).removeClass(te).addClass(Jt+" "+Qt),i._element.style[s]="",i.setTransitioning(!1),r.default(i._element).trigger(oe)},l="scroll"+(s[0].toUpperCase()+s.slice(1)),u=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,a).emulateTransitionEnd(u),this._element.style[s]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&r.default(this._element).hasClass(Qt)){var e=r.default.Event(se);if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",y.reflow(this._element),r.default(this._element).addClass(te).removeClass(Jt+" "+Qt);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var s=this._triggerArray[o],a=y.getSelectorFromElement(s);null!==a&&(r.default([].slice.call(document.querySelectorAll(a))).hasClass(Qt)||r.default(s).addClass(ee).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),r.default(t._element).removeClass(te).addClass(Jt).trigger(ae)};this._element.style[n]="";var u=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,l).emulateTransitionEnd(u)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){r.default.removeData(this._element,Kt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},de,t)).toggle=Boolean(t.toggle),y.typeCheckConfig(qt,t,he),t},e._getDimension=function(){return r.default(this._element).hasClass(ne)?ne:ie},e._getParent=function(){var e,n=this;y.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(e.querySelectorAll(i));return r.default(o).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=r.default(t).hasClass(Qt);e.length&&r.default(e).toggleClass(ee,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=y.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(Kt),o=l({},de,n.data(),"object"==typeof e&&e?e:{});if(!i&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),i||(i=new t(this,o),n.data(Kt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},a(t,null,[{key:"VERSION",get:function(){return Gt}},{key:"Default",get:function(){return de}}]),t}();r.default(document).on(le,ce,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=r.default(this),n=y.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));r.default(i).each((function(){var t=r.default(this),n=t.data(Kt)?"toggle":e.data();fe._jQueryInterface.call(t,n)}))})),r.default.fn[qt]=fe._jQueryInterface,r.default.fn[qt].Constructor=fe,r.default.fn[qt].noConflict=function(){return r.default.fn[qt]=Xt,fe._jQueryInterface};var pe="dropdown",me="4.6.2",ge="bs.dropdown",ve="."+ge,ye=".data-api",be=r.default.fn[pe],we=27,Te=32,_e=9,Se=38,Ee=40,xe=3,ke=new RegExp(Se+"|"+Ee+"|"+we),Ce="disabled",Ae="show",Le="dropup",Ie="dropright",Oe="dropleft",De="dropdown-menu-right",Pe="position-static",Re="hide"+ve,Me="hidden"+ve,Ne="show"+ve,Fe="shown"+ve,$e="click"+ve,je="click"+ve+ye,Ue="keydown"+ve+ye,Be="keyup"+ve+ye,He='[data-toggle="dropdown"]',Ve=".dropdown form",ze=".dropdown-menu",We=".navbar-nav",qe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ge="top-start",Ke="top-end",Ye="bottom-start",Ze="bottom-end",Xe="right-start",Qe="left-start",Je={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},tn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Ce)){var e=r.default(this._menu).hasClass(Ae);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||r.default(this._element).hasClass(Ce)||r.default(this._menu).hasClass(Ae))){var n={relatedTarget:this._element},i=r.default.Event(Ne,n),s=t._getParentFromElement(this._element);if(r.default(s).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=s:y.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(s).addClass(Pe),this._popper=new o.default(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(s).closest(We).length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass(Ae),r.default(s).toggleClass(Ae).trigger(r.default.Event(Fe,n))}}},e.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Ce)&&r.default(this._menu).hasClass(Ae)){var e={relatedTarget:this._element},n=r.default.Event(Re,e),i=t._getParentFromElement(this._element);r.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass(Ae),r.default(i).toggleClass(Ae).trigger(r.default.Event(Me,e)))}},e.dispose=function(){r.default.removeData(this._element,ge),r.default(this._element).off(ve),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;r.default(this._element).on($e,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,r.default(this._element).data(),t),y.typeCheckConfig(pe,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(ze))}return this._menu},e._getPlacement=function(){var t=r.default(this._element.parentNode),e=Ye;return t.hasClass(Le)?e=r.default(this._menu).hasClass(De)?Ke:Ge:t.hasClass(Ie)?e=Xe:t.hasClass(Oe)?e=Qe:r.default(this._menu).hasClass(De)&&(e=Ze),e},e._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(ge);if(n||(n=new t(this,"object"==typeof e?e:null),r.default(this).data(ge,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==xe&&("keyup"!==e.type||e.which===_e))for(var n=[].slice.call(document.querySelectorAll(He)),i=0,o=n.length;i<o;i++){var s=t._getParentFromElement(n[i]),a=r.default(n[i]).data(ge),l={relatedTarget:n[i]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var u=a._menu;if(r.default(s).hasClass(Ae)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===_e)&&r.default.contains(s,e.target))){var c=r.default.Event(Re,l);r.default(s).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),n[i].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),r.default(u).removeClass(Ae),r.default(s).removeClass(Ae).trigger(r.default.Event(Me,l)))}}}},t._getParentFromElement=function(t){var e,n=y.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===Te||e.which!==we&&(e.which!==Ee&&e.which!==Se||r.default(e.target).closest(ze).length):!ke.test(e.which))&&!this.disabled&&!r.default(this).hasClass(Ce)){var n=t._getParentFromElement(this),i=r.default(n).hasClass(Ae);if(i||e.which!==we){if(e.preventDefault(),e.stopPropagation(),!i||e.which===we||e.which===Te)return e.which===we&&r.default(n.querySelector(He)).trigger("focus"),void r.default(this).trigger("click");var o=[].slice.call(n.querySelectorAll(qe)).filter((function(t){return r.default(t).is(":visible")}));if(0!==o.length){var s=o.indexOf(e.target);e.which===Se&&s>0&&s--,e.which===Ee&&s<o.length-1&&s++,s<0&&(s=0),o[s].focus()}}}},a(t,null,[{key:"VERSION",get:function(){return me}},{key:"Default",get:function(){return Je}},{key:"DefaultType",get:function(){return tn}}]),t}();r.default(document).on(Ue,He,en._dataApiKeydownHandler).on(Ue,ze,en._dataApiKeydownHandler).on(je+" "+Be,en._clearMenus).on(je,He,(function(t){t.preventDefault(),t.stopPropagation(),en._jQueryInterface.call(r.default(this),"toggle")})).on(je,Ve,(function(t){t.stopPropagation()})),r.default.fn[pe]=en._jQueryInterface,r.default.fn[pe].Constructor=en,r.default.fn[pe].noConflict=function(){return r.default.fn[pe]=be,en._jQueryInterface};var nn="modal",rn="4.6.2",on="bs.modal",sn="."+on,an=".data-api",ln=r.default.fn[nn],un=27,cn="modal-dialog-scrollable",dn="modal-scrollbar-measure",hn="modal-backdrop",fn="modal-open",pn="fade",mn="show",gn="modal-static",vn="hide"+sn,yn="hidePrevented"+sn,bn="hidden"+sn,wn="show"+sn,Tn="shown"+sn,_n="focusin"+sn,Sn="resize"+sn,En="click.dismiss"+sn,xn="keydown.dismiss"+sn,kn="mouseup.dismiss"+sn,Cn="mousedown.dismiss"+sn,An="click"+sn+an,Ln=".modal-dialog",In=".modal-body",On='[data-toggle="modal"]',Dn='[data-dismiss="modal"]',Pn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rn=".sticky-top",Mn={backdrop:!0,keyboard:!0,focus:!0,show:!0},Nn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Fn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Ln),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=r.default.Event(wn,{relatedTarget:t});r.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,r.default(this._element).hasClass(pn)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on(En,Dn,(function(t){return e.hide(t)})),r.default(this._dialog).on(Cn,(function(){r.default(e._element).one(kn,(function(t){r.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event(vn);if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=r.default(this._element).hasClass(pn);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off(_n),r.default(this._element).removeClass(mn),r.default(this._element).off(En),r.default(this._dialog).off(Cn),i){var o=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return r.default(t).off(sn)})),r.default(document).off(_n),r.default.removeData(this._element,on),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},Mn,t),y.typeCheckConfig(nn,t,Nn),t},e._triggerBackdropTransition=function(){var t=this,e=r.default.Event(yn);if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(gn);var i=y.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(y.TRANSITION_END),r.default(this._element).one(y.TRANSITION_END,(function(){t._element.classList.remove(gn),n||r.default(t._element).one(y.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=r.default(this._element).hasClass(pn),i=this._dialog?this._dialog.querySelector(In):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass(cn)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&y.reflow(this._element),r.default(this._element).addClass(mn),this._config.focus&&this._enforceFocus();var o=r.default.Event(Tn,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r.default(e._element).trigger(o)};if(n){var a=y.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(y.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._enforceFocus=function(){var t=this;r.default(document).off(_n).on(_n,(function(e){document!==e.target&&t._element!==e.target&&0===r.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?r.default(this._element).on(xn,(function(e){t._config.keyboard&&e.which===un?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==un||t._triggerBackdropTransition()})):this._isShown||r.default(this._element).off(xn)},e._setResizeEvent=function(){var t=this;this._isShown?r.default(window).on(Sn,(function(e){return t.handleUpdate(e)})):r.default(window).off(Sn)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r.default(document.body).removeClass(fn),t._resetAdjustments(),t._resetScrollbar(),r.default(t._element).trigger(bn)}))},e._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=r.default(this._element).hasClass(pn)?pn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=hn,n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on(En,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&y.reflow(this._backdrop),r.default(this._backdrop).addClass(mn),!t)return;if(!n)return void t();var i=y.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(y.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass(mn);var o=function(){e._removeBackdrop(),t&&t()};if(r.default(this._element).hasClass(pn)){var s=y.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(y.TRANSITION_END,o).emulateTransitionEnd(s)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(Pn)),n=[].slice.call(document.querySelectorAll(Rn));r.default(e).each((function(e,n){var i=n.style.paddingRight,o=r.default(n).css("padding-right");r.default(n).data("padding-right",i).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),r.default(n).each((function(e,n){var i=n.style.marginRight,o=r.default(n).css("margin-right");r.default(n).data("margin-right",i).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}r.default(document.body).addClass(fn)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(Pn));r.default(t).each((function(t,e){var n=r.default(e).data("padding-right");r.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(""+Rn));r.default(e).each((function(t,e){var n=r.default(e).data("margin-right");void 0!==n&&r.default(e).css("margin-right",n).removeData("margin-right")}));var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=dn,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=r.default(this).data(on),o=l({},Mn,r.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,o),r.default(this).data(on,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else o.show&&i.show(n)}))},a(t,null,[{key:"VERSION",get:function(){return rn}},{key:"Default",get:function(){return Mn}}]),t}();r.default(document).on(An,On,(function(t){var e,n=this,i=y.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=r.default(e).data(on)?"toggle":l({},r.default(e).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=r.default(e).one(wn,(function(t){t.isDefaultPrevented()||s.one(bn,(function(){r.default(n).is(":visible")&&n.focus()}))}));Fn._jQueryInterface.call(r.default(e),o,this)})),r.default.fn[nn]=Fn._jQueryInterface,r.default.fn[nn].Constructor=Fn,r.default.fn[nn].noConflict=function(){return r.default.fn[nn]=ln,Fn._jQueryInterface};var $n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],jn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Un=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Bn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Hn(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===$n.indexOf(n)||Boolean(Un.test(t.nodeValue)||Bn.test(t.nodeValue));for(var i=e.filter((function(t){return t instanceof RegExp})),r=0,o=i.length;r<o;r++)if(i[r].test(n))return!0;return!1}function Vn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),r=Object.keys(e),o=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=o[t],s=i.nodeName.toLowerCase();if(-1===r.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[s]||[]);a.forEach((function(t){Hn(t,l)||i.removeAttribute(t.nodeName)}))},a=0,l=o.length;a<l;a++)s(a);return i.body.innerHTML}var zn="tooltip",Wn="4.6.2",qn="bs.tooltip",Gn="."+qn,Kn=r.default.fn[zn],Yn="bs-tooltip",Zn=new RegExp("(^|\\s)"+Yn+"\\S+","g"),Xn=["sanitize","whiteList","sanitizeFn"],Qn="fade",Jn="show",ti="show",ei="out",ni=".tooltip-inner",ii=".arrow",ri="hover",oi="focus",si="click",ai="manual",li={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ui={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:jn,popperConfig:null},ci={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},di={HIDE:"hide"+Gn,HIDDEN:"hidden"+Gn,SHOW:"show"+Gn,SHOWN:"shown"+Gn,INSERTED:"inserted"+Gn,CLICK:"click"+Gn,FOCUSIN:"focusin"+Gn,FOCUSOUT:"focusout"+Gn,MOUSEENTER:"mouseenter"+Gn,MOUSELEAVE:"mouseleave"+Gn},hi=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=r.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass(Jn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(e);var n=y.findShadowRoot(this.element),i=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var s=this.getTipElement(),a=y.getUID(this.constructor.NAME);s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&r.default(s).addClass(Qn);var l="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=this._getContainer();r.default(s).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(s).appendTo(c),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,s,this._getPopperConfig(u)),r.default(s).addClass(Jn),r.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,r.default(t.element).trigger(t.constructor.Event.SHOWN),e===ei&&t._leave(null,t)};if(r.default(this.tip).hasClass(Qn)){var h=y.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(y.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=r.default.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==ti&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),r.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(r.default(this.element).trigger(i),!i.isDefaultPrevented()){if(r.default(n).removeClass(Jn),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger[si]=!1,this._activeTrigger[oi]=!1,this._activeTrigger[ri]=!1,r.default(this.tip).hasClass(Qn)){var s=y.getTransitionDurationFromElement(n);r.default(n).one(y.TRANSITION_END,o).emulateTransitionEnd(s)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass(Yn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(r.default(t.querySelectorAll(ni)),this.getTitle()),r.default(t).removeClass(Qn+" "+Jn)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Vn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?r.default(e).parent().is(t)||t.empty().append(e):t.text(r.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ii},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:y.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},e._getAttachment=function(t){return li[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)r.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==ai){var n=e===ri?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===ri?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;r.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?oi:ri]=!0),r.default(e.getTipElement()).hasClass(Jn)||e._hoverState===ti?e._hoverState=ti:(clearTimeout(e._timeout),e._hoverState=ti,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===ti&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?oi:ri]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ei,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===ei&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=r.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Xn.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),y.typeCheckConfig(zn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(Zn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(r.default(t).removeClass(Qn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(qn),o="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,o),n.data(qn,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},a(t,null,[{key:"VERSION",get:function(){return Wn}},{key:"Default",get:function(){return ui}},{key:"NAME",get:function(){return zn}},{key:"DATA_KEY",get:function(){return qn}},{key:"Event",get:function(){return di}},{key:"EVENT_KEY",get:function(){return Gn}},{key:"DefaultType",get:function(){return ci}}]),t}();r.default.fn[zn]=hi._jQueryInterface,r.default.fn[zn].Constructor=hi,r.default.fn[zn].noConflict=function(){return r.default.fn[zn]=Kn,hi._jQueryInterface};var fi="popover",pi="4.6.2",mi="bs.popover",gi="."+mi,vi=r.default.fn[fi],yi="bs-popover",bi=new RegExp("(^|\\s)"+yi+"\\S+","g"),wi="fade",Ti="show",_i=".popover-header",Si=".popover-body",Ei=l({},hi.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),xi=l({},hi.DefaultType,{content:"(string|element|function)"}),ki={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Ci=function(t){function e(){return t.apply(this,arguments)||this}u(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass(yi+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},n.setContent=function(){var t=r.default(this.getTipElement());this.setElementContent(t.find(_i),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Si),e),t.removeClass(wi+" "+Ti)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(bi);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data(mi),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),r.default(this).data(mi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return pi}},{key:"Default",get:function(){return Ei}},{key:"NAME",get:function(){return fi}},{key:"DATA_KEY",get:function(){return mi}},{key:"Event",get:function(){return ki}},{key:"EVENT_KEY",get:function(){return gi}},{key:"DefaultType",get:function(){return xi}}]),e}(hi);r.default.fn[fi]=Ci._jQueryInterface,r.default.fn[fi].Constructor=Ci,r.default.fn[fi].noConflict=function(){return r.default.fn[fi]=vi,Ci._jQueryInterface};var Ai="scrollspy",Li="4.6.2",Ii="bs.scrollspy",Oi="."+Ii,Di=".data-api",Pi=r.default.fn[Ai],Ri="dropdown-item",Mi="active",Ni="activate"+Oi,Fi="scroll"+Oi,$i="load"+Oi+Di,ji="offset",Ui="position",Bi='[data-spy="scroll"]',Hi=".nav, .list-group",Vi=".nav-link",zi=".nav-item",Wi=".list-group-item",qi=".dropdown",Gi=".dropdown-item",Ki=".dropdown-toggle",Yi={offset:10,method:"auto",target:""},Zi={offset:"number",method:"string",target:"(string|element)"},Xi=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Vi+","+this._config.target+" "+Wi+","+this._config.target+" "+Gi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on(Fi,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?ji:Ui,n="auto"===this._config.method?e:this._config.method,i=n===Ui?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=y.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[r.default(e)[n]().top+i,o]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){r.default.removeData(this._element,Ii),r.default(this._scrollElement).off(Oi),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},Yi,"object"==typeof t&&t?t:{})).target&&y.isElement(t.target)){var e=r.default(t.target).attr("id");e||(e=y.getUID(Ai),r.default(t.target).attr("id",e)),t.target="#"+e}return y.typeCheckConfig(Ai,t,Zi),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=r.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Ri)?(n.closest(qi).find(Ki).addClass(Mi),n.addClass(Mi)):(n.addClass(Mi),n.parents(Hi).prev(Vi+", "+Wi).addClass(Mi),n.parents(Hi).prev(zi).children(Vi).addClass(Mi)),r.default(this._scrollElement).trigger(Ni,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(Mi)})).forEach((function(t){return t.classList.remove(Mi)}))},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(Ii);if(n||(n=new t(this,"object"==typeof e&&e),r.default(this).data(Ii,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},a(t,null,[{key:"VERSION",get:function(){return Li}},{key:"Default",get:function(){return Yi}}]),t}();r.default(window).on($i,(function(){for(var t=[].slice.call(document.querySelectorAll(Bi)),e=t.length;e--;){var n=r.default(t[e]);Xi._jQueryInterface.call(n,n.data())}})),r.default.fn[Ai]=Xi._jQueryInterface,r.default.fn[Ai].Constructor=Xi,r.default.fn[Ai].noConflict=function(){return r.default.fn[Ai]=Pi,Xi._jQueryInterface};var Qi="tab",Ji="4.6.2",tr="bs.tab",er="."+tr,nr=".data-api",ir=r.default.fn[Qi],rr="dropdown-menu",or="active",sr="disabled",ar="fade",lr="show",ur="hide"+er,cr="hidden"+er,dr="show"+er,hr="shown"+er,fr="click"+er+nr,pr=".dropdown",mr=".nav, .list-group",gr=".active",vr="> li > .active",yr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',br=".dropdown-toggle",wr="> .dropdown-menu .active",Tr=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass(or)||r.default(this._element).hasClass(sr)||this._element.hasAttribute("disabled"))){var e,n,i=r.default(this._element).closest(mr)[0],o=y.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?vr:gr;n=(n=r.default.makeArray(r.default(i).find(s)))[n.length-1]}var a=r.default.Event(ur,{relatedTarget:this._element}),l=r.default.Event(dr,{relatedTarget:n});if(n&&r.default(n).trigger(a),r.default(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,i);var u=function(){var e=r.default.Event(cr,{relatedTarget:t._element}),i=r.default.Event(hr,{relatedTarget:n});r.default(n).trigger(e),r.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){r.default.removeData(this._element,tr),this._element=null},e._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?r.default(e).children(gr):r.default(e).find(vr))[0],s=n&&o&&r.default(o).hasClass(ar),a=function(){return i._transitionComplete(t,o,n)};if(o&&s){var l=y.getTransitionDurationFromElement(o);r.default(o).removeClass(lr).one(y.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},e._transitionComplete=function(t,e,n){if(e){r.default(e).removeClass(or);var i=r.default(e.parentNode).find(wr)[0];i&&r.default(i).removeClass(or),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}r.default(t).addClass(or),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),y.reflow(t),t.classList.contains(ar)&&t.classList.add(lr);var o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&r.default(o).hasClass(rr)){var s=r.default(t).closest(pr)[0];if(s){var a=[].slice.call(s.querySelectorAll(br));r.default(a).addClass(or)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(tr);if(i||(i=new t(this),n.data(tr,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},a(t,null,[{key:"VERSION",get:function(){return Ji}}]),t}();r.default(document).on(fr,yr,(function(t){t.preventDefault(),Tr._jQueryInterface.call(r.default(this),"show")})),r.default.fn[Qi]=Tr._jQueryInterface,r.default.fn[Qi].Constructor=Tr,r.default.fn[Qi].noConflict=function(){return r.default.fn[Qi]=ir,Tr._jQueryInterface};var _r="toast",Sr="4.6.2",Er="bs.toast",xr="."+Er,kr=r.default.fn[_r],Cr="fade",Ar="hide",Lr="show",Ir="showing",Or="click.dismiss"+xr,Dr="hide"+xr,Pr="hidden"+xr,Rr="show"+xr,Mr="shown"+xr,Nr='[data-dismiss="toast"]',Fr={animation:!0,autohide:!0,delay:500},$r={animation:"boolean",autohide:"boolean",delay:"number"},jr=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=r.default.Event(Rr);if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Cr);var n=function(){t._element.classList.remove(Ir),t._element.classList.add(Lr),r.default(t._element).trigger(Mr),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Ar),y.reflow(this._element),this._element.classList.add(Ir),this._config.animation){var i=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains(Lr)){var t=r.default.Event(Dr);r.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Lr)&&this._element.classList.remove(Lr),r.default(this._element).off(Or),r.default.removeData(this._element,Er),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},Fr,r.default(this._element).data(),"object"==typeof t&&t?t:{}),y.typeCheckConfig(_r,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;r.default(this._element).on(Or,Nr,(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(Ar),r.default(t._element).trigger(Pr)};if(this._element.classList.remove(Lr),this._config.animation){var n=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(Er);if(i||(i=new t(this,"object"==typeof e&&e),n.data(Er,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},a(t,null,[{key:"VERSION",get:function(){return Sr}},{key:"DefaultType",get:function(){return $r}},{key:"Default",get:function(){return Fr}}]),t}();r.default.fn[_r]=jr._jQueryInterface,r.default.fn[_r].Constructor=jr,r.default.fn[_r].noConflict=function(){return r.default.fn[_r]=kr,jr._jQueryInterface},t.Alert=D,t.Button=Q,t.Carousel=Wt,t.Collapse=fe,t.Dropdown=en,t.Modal=Fn,t.Popover=Ci,t.Scrollspy=Xi,t.Tab=Tr,t.Toast=jr,t.Tooltip=hi,t.Util=y,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(9755),n(8981))},2152:function(t){var e;e=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return _}});var i=n(279),r=n.n(i),o=n(370),s=n.n(o),a=n(817),l=n.n(a);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var c=function(t){var e=l()(t);return u("cut"),e},d=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var i=l()(n);return u("copy"),n.remove(),i},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=d(t.value,e):(n=l()(t),u("copy")),n};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}var p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,i=t.container,r=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==f(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:i}):r?"cut"===n?c(r):h(r,{container:i}):void 0};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,n)}}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(o,t);var e,n,i,r=y(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this)).resolveOptions(e),n.listenClick(t),n}return e=o,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===m(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=s()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",i=p({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(i?"success":"error",{action:n,text:i,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return c(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&g(e.prototype,n),i&&g(e,i),o}(r()),_=T},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function r(t,e,n,i,r){var s=o.apply(this,arguments);return t.addEventListener(n,s,r),{destroy:function(){t.removeEventListener(n,s,r)}}}function o(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=function(t,e,n,i,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,i,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(i.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(i.string(t))return function(t,e,n){return r(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,s=i.length;o<s;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=e()},7534:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".hooper-slide{flex-shrink:0;height:100%;list-style:none;margin:0;padding:0}.hooper-progress{background-color:#efefef;height:4px;left:0;position:absolute;right:0;top:0}.hooper-progress-inner{background-color:#4285f4;height:100%;transition:.3s}.hooper-pagination{bottom:0;display:flex;padding:5px 10px;position:absolute;right:50%;transform:translateX(50%)}.hooper-indicators{display:flex;list-style:none;margin:0;padding:0}.hooper-indicator.is-active,.hooper-indicator:hover{background-color:#4285f4}.hooper-indicator{background-color:#fff;border:none;border-radius:4px;cursor:pointer;height:4px;margin:0 2px;padding:0;width:12px}.hooper-pagination.is-vertical{bottom:auto;right:0;top:50%;transform:translateY(-50%)}.hooper-pagination.is-vertical .hooper-indicators{flex-direction:column}.hooper-pagination.is-vertical .hooper-indicator{width:6px}.hooper-next,.hooper-prev{background-color:transparent;border:none;cursor:pointer;padding:1em;position:absolute;top:50%;transform:translateY(-50%)}.hooper-next.is-disabled,.hooper-prev.is-disabled{cursor:not-allowed;opacity:.3}.hooper-next{right:0}.hooper-prev{left:0}.hooper-navigation.is-vertical .hooper-next{bottom:0;top:auto;transform:none}.hooper-navigation.is-vertical .hooper-prev{bottom:auto;left:auto;right:0;top:0;transform:none}.hooper-navigation.is-rtl .hooper-prev{left:auto;right:0}.hooper-navigation.is-rtl .hooper-next{left:0;right:auto}.hooper{height:200px;position:relative;width:100%}.hooper,.hooper *{box-sizing:border-box}.hooper-list{height:100%;overflow:hidden;width:100%}.hooper-track{box-sizing:border-box;display:flex;height:100%;margin:0;padding:0;width:100%}.hooper.is-vertical .hooper-track{flex-direction:column;height:200px}.hooper.is-rtl{direction:rtl}.hooper-sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}",""]);const o=r},3013:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".object-fit-cover[data-v-07aa33de]{height:100%;-o-object-fit:cover;object-fit:cover;position:relative!important;width:100%}",""]);const o=r},4053:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"img[data-v-c3e9fd20]{max-height:250px}.article-container[data-v-c3e9fd20]{display:flex;margin-bottom:6rem}.teaser-content[data-v-c3e9fd20]{display:flex;flex-direction:column;padding:0 2rem;width:100%}.teaser-content a[data-v-c3e9fd20]{align-self:flex-end;margin-top:auto}.teaser-content button[data-v-c3e9fd20]{background-color:#000;border:none;border-radius:5px;color:#fff;font-size:1rem;margin-top:1rem;padding:1rem 2rem;width:10rem}.teaser-content h3[data-v-c3e9fd20]{font-size:1.3rem}.teaser-content .teaser-text[data-v-c3e9fd20]{font-size:1rem}@media screen and (max-width:991px){.article-container[data-v-c3e9fd20]{flex-direction:column}img[data-v-c3e9fd20]{margin-bottom:1rem;max-height:none;width:100%}.teaser-content[data-v-c3e9fd20]{padding:0}}",""]);const o=r},668:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".plyr__control--overlaid{display:none}",""]);const o=r},9687:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".bgvideo[data-v-7700a19f]{height:auto;left:50%;min-height:100%;min-width:100%;position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);width:auto;z-index:1}",""]);const o=r},7450:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"header.modulview__header[data-v-63d76f3e]{font-weight:700;letter-spacing:.075em;line-height:1.35;margin-bottom:1rem;text-align:center}",""]);const o=r},9528:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".btn-wrapper[data-v-420e5211]{margin-top:2rem;text-align:center}",""]);const o=r},7287:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".conditional-visibility{display:block}.fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter,.fade-leave-to{opacity:0}",""]);const o=r},2686:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".hero-inner-content{height:100%}",""]);const o=r},6371:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".event-item__date-separator[data-v-10556949]{position:relative;top:28px}",""]);const o=r},3968:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".event-item__content-wrapper[data-v-d4f594aa]{display:flex;flex-direction:column;justify-content:space-between;width:100%}.fa-calendar-check[data-v-d4f594aa]{cursor:pointer;font-size:1.2em;position:absolute;right:1em;top:.4em}.event-item[data-v-d4f594aa]{display:grid;grid-template-columns:110px 1fr}.event-item__content[data-v-d4f594aa]{display:flex;flex-wrap:wrap}.event-item__content.event-item__content--with-image[data-v-d4f594aa]{display:grid;grid-template-columns:1fr 180px}.event-item__image img[data-v-d4f594aa]{aspect-ratio:1;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}",""]);const o=r},4866:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".collection-view.media-embed .previewItem{align-items:center;display:flex;justify-content:center}.collection-view.media-embed .previewItem i{color:#fff}.embed-tiktok{background:transparent}",""]);const o=r},648:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"div.dropdown-menu[data-v-bcb768e0]{left:unset;right:0}",""]);const o=r},3237:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'.newsletter-overlay[data-v-2f6e8a03]{align-items:center;background-color:#131419;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;padding:1rem 1.5rem 3rem;position:fixed;text-align:center;width:100%;z-index:999}.newsletter-overlay p[data-v-2f6e8a03]{font-weight:700}.close-overlay[data-v-2f6e8a03]{cursor:pointer;font-size:1.5rem;position:absolute;right:.5rem;top:.5rem}.email-container[data-v-2f6e8a03]{display:flex;width:100%}@media screen and (min-width:540px){.email-container[data-v-2f6e8a03]{width:25rem}}.email-container input[data-v-2f6e8a03],.email-container span[data-v-2f6e8a03]{border:2px solid #000;padding:.5rem}.email-container input[data-v-2f6e8a03]{width:90%}.email-container span[data-v-2f6e8a03]{background-color:#fff;border-left:none;color:#131419;cursor:pointer;display:block;width:10%}.footer-links[data-v-2f6e8a03]{bottom:-25px;font-size:.8em;margin-top:2em;position:relative}.footer-links a[data-v-2f6e8a03]{color:#fff;text-align:center}.footer-links a[data-v-2f6e8a03]:hover{text-decoration:none}.footer-links span.footercontent__footerlink[data-v-2f6e8a03]{&[data-v-2f6e8a03]:not(:last-child):after{color:#8a8b8d;content:"•";padding-left:.5rem;padding-right:.3rem}}',""]);const o=r},6829:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".newsletter-popup-container[data-v-76d99317]{align-items:center;display:flex;flex-wrap:wrap;height:100vh;justify-content:center;left:0;overflow:auto;position:fixed;top:0;width:100vw;z-index:3}.newsletter-popup-overlay[data-v-76d99317]{background-color:#131419d6;height:100%;left:0;position:fixed;top:0;width:100%;z-index:1}.newsletter[data-v-76d99317]{z-index:3}.close-popup[data-v-76d99317]{cursor:pointer;font-size:2rem;height:1em;position:fixed;right:4vw;text-align:center;top:4vw;width:1em;z-index:4}.container[data-v-76d99317]{padding-bottom:15px;padding-top:15px}",""]);const o=r},9438:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".shop-button-list[data-v-5272d31f]{margin:0 auto 20px;width:250px}.shop-button-list .dropdown-toggle[data-v-5272d31f]{width:100%}",""]);const o=r},8564:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".browser-hint[data-v-07143333]{background-color:#ff0;padding:.5em}.redeem-voucher-fields[data-v-07143333],.voucher[data-v-07143333]{text-align:center}.voucher__inputs[data-v-07143333]{background:#2f2f2f;box-shadow:0 5px 15px #2a2a2a;margin:0 auto;min-width:40%;padding:2em;width:-moz-fit-content;width:fit-content}.voucher__loading[data-v-07143333]{text-align:center}input.voucher-code[data-v-07143333]{text-align:center;width:100%}input.voucher-code[data-v-07143333]::-moz-placeholder{text-align:center}input.voucher-code[data-v-07143333]::placeholder{text-align:center}",""]);const o=r},8744:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"@media screen and (min-width:992px){.hide-on-desktop{display:none}}",""]);const o=r},935:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".hooper{height:auto}.hooper .hooper-track{align-items:center}.hooper .hooper-navigation button{background:hsla(0,0%,100%,0);background:radial-gradient(circle,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0) 45%,rgba(0,212,255,0) 100%);display:none;opacity:0;transition:opacity .2s ease-in-out}.hooper .hooper-navigation button>svg{height:50px;width:50px}.hooper .hooper-navigation button:focus{outline:none}.hooper .hooper-pagination .hooper-indicator{border:1px solid #000;border-radius:4px;height:8px;width:8px}.hooper .hooper-pagination .hooper-indicator.is-active{background-color:#fff;width:12px}.hooper .hooper-slide{display:list-item}.hooper .hooper-slide img,.hooper .hooper-slide video{height:100%;-o-object-fit:cover;object-fit:cover;position:static;width:100%}@media (min-width:992px){.hooper{height:100vh;max-height:none!important}.hooper .hooper-navigation button{display:block}}.hooper:hover .hooper-navigation button{opacity:1}",""]);const o=r},8466:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".hooper .hooper-slide .hero-view video.bgvideo{position:absolute}",""]);const o=r},1576:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".countdown__error[data-v-638b5a34]{text-align:center}.countdown__content_wrapper[data-v-638b5a34]{margin-top:10px;overflow:hidden;position:relative}.slide-in-enter-active[data-v-638b5a34],.slide-in-leave-active[data-v-638b5a34]{transition:all 1s ease}.slide-in-enter[data-v-638b5a34],.slide-in-leave-to[data-v-638b5a34]{opacity:0;transform:translateY(-100%)}.countdown-view .modulview__header[data-v-638b5a34]{text-align:center}.countdown-view #countdown-text[data-v-638b5a34]{color:#000;text-align:center}.countdown-view .modulview__content a[data-v-638b5a34],.countdown-view .newsletter-view .md-raised>span[data-v-638b5a34]:first-child{color:#fff!important}.countdown-view .newsletter-view .md-raised>span[data-v-638b5a34]:first-child{color:#000!important}",""]);const o=r},4451:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".link-content[data-v-45529746]{margin-bottom:2rem}",""]);const o=r},3757:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".md-error[data-v-1e74eca2]{display:block;font-size:.8rem;margin-top:-.2rem}.newsletter-box[data-v-1e74eca2]{background-color:#131419;margin-left:auto;margin-right:auto;max-width:410px}input[data-v-1e74eca2]:-webkit-autofill{-webkit-text-fill-color:#131419!important}.newsletter-box__heading[data-v-1e74eca2]{background-color:#1c1d22;padding:24px}.newsletter-box__heading span[data-v-1e74eca2]{background-color:#1c1d22;box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);font-size:1rem}.newsletter-box__form[data-v-1e74eca2]{padding:10px 24px 24px}.newsletter-box__form form .md-invalid[data-v-1e74eca2]{color:red}.newsletter-box__form form .md-invalid input[data-v-1e74eca2]{border-bottom:1px solid red}.form__submitted-text[data-v-1e74eca2]{padding:40px 24px}.newsletter-box__form .newsletter-box__additional-newsletter ul[data-v-1e74eca2]{list-style:none;padding:0}.newsletter-box__form .newsletter-box__additional-newsletter input[type=checkbox][data-v-1e74eca2]{margin-right:13px;width:auto}.newsletter-box__form .newsletter-box__additional-newsletter label[data-v-1e74eca2]{font-size:.9em}.newsletter-box__form form input[data-v-1e74eca2]{background:transparent;border:none;border-bottom:1px solid #848687;color:#fff;margin-bottom:.5rem;outline:none;width:100%}.newsletter-box__form form label[data-v-1e74eca2]{display:inline;font-size:.75rem;line-height:20px}.newsletter-box__form form button[data-v-1e74eca2]{background:#1a1a1a;border:1px solid transparent;color:hsla(0,0%,100%,.97);display:block;max-width:100%;width:100%}.newsletter-box__form form .md-button[data-v-1e74eca2]{margin:0}.newsletter-box__form form .newsletter-box__consent-text[data-v-1e74eca2]{font-size:.7rem;line-height:1.5em;margin:20px 0 0}.newsletter-box__form form .newsletter-box__confirm-text[data-v-1e74eca2]{font-size:.9rem;line-height:1.4em}.newsletter-box__additional-newsletter ul[data-v-1e74eca2]{margin:10px 0 50px}.inputs[data-v-1e74eca2]{margin-bottom:1rem}.inputs__country select[data-v-1e74eca2]{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:#131419;border:none;border-bottom:1px solid #b9b8ba;border-radius:0;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:1rem;width:100%}.inputs__country select[data-v-1e74eca2]::-webkit-scrollbar{height:14px;width:12px}.inputs__country select[data-v-1e74eca2]::-webkit-scrollbar-track{background-color:#131419;border:#b4b4b4}.inputs__country select[data-v-1e74eca2]::-webkit-scrollbar-thumb{background-color:#b9b8ba;border:1px solid #c1c1c1;border-radius:50px}.inputs__country label[data-v-1e74eca2]{font-size:.75rem;line-height:20px}",""]);const o=r},3995:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".masonry-container{margin:0 auto;max-width:100%}.masonry-container div.masonry-item{margin-bottom:var(--item-margin-bottom);max-width:100%;width:var(--item-width)}.masonry-container div.masonry-item>.masonry-item__caption{background-color:rgba(0,0,0,.2);letter-spacing:0;line-height:1.3em;padding:var(--item-margin-bottom) 10px}@media (max-width:479px){.masonry-container div.masonry-item>.masonry-item__caption{font-size:.8em}}@media (min-width:480px){.masonry-container div.masonry-item>.masonry-item__caption{word-break:break-word}}.masonry-container div.masonry-item>.masonry-item__image{background-position:50%;background-repeat:no-repeat;background-size:cover;max-width:100%;transition:all 1s}.masonry-container a:nth-child(1n) div.masonry-item>.masonry-item__image{height:var(--item-height);width:var(--item-width)}.masonry-container a:nth-child(2n) div.masonry-item>.masonry-item__image{height:calc(var(--item-height)*var(--item-2n-scale-factor));width:var(--item-width)}.masonry-container a:nth-child(3n) div.masonry-item>.masonry-item__image{height:calc(var(--item-height)*var(--item-3n-scale-factor));width:var(--item-width)}",""]);const o=r},2885:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(3645),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"@media (min-width:768px){.contentItem__toggle{display:none}}@media (max-width:768px){.mlp-row .column .sectionholder .sectionholder.hide{display:none}}",""]);const o=r},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},9741:(t,e,n)=>{var i,r;!function(o,s){"use strict";void 0===(r="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=r)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}}();return function(e,n){return e[t](n)}}))},7158:function(t,e,n){var i,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(i=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(t,o),delete i[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?i.call(e,n,e,t):i)||(t.exports=r)},9868:t=>{t.exports="/images/universal-logo-placeholder.png?5332ef0e2f4fcfb0ce2ec4b014ea2429"},3162:function(t,e,n){var i,r,o;r=[],void 0===(o="function"==typeof(i=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){l(i.response,e,n)},i.onerror=function(){},i.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,e,n){var a=s.URL||s.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):r(l.href)?i(t,e,n):o(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),n);else if(r(t))i(t,n,s);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){o(a)}))}}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,n);var o="application/octet-stream"===t.type,l=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&l||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=l.saveAs=l,t.exports=l})?i.apply(e,r):i)||(t.exports=o)},9047:(t,e,n)=>{var i,r;!function(o,s){i=[n(9741)],r=function(t){return function(t,e){"use strict";var n={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?i.call(t):[t]},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,i){t=n.makeArray(t);var r=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(i){e(t,i)&&r.push(t);for(var n=t.querySelectorAll(i),o=0;o<n.length;o++)r.push(n[o])}else r.push(t)})),r},n.debounceMethod=function(t,e,n){n=n||100;var i=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout((function(){i.apply(o,e),delete o[r]}),n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,n){return e+"-"+n})).toLowerCase()};var r=t.console;return n.htmlInit=function(e,i){n.docReady((function(){var o=n.toDashed(i),s="data-"+o,a=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+o),u=n.makeArray(a).concat(n.makeArray(l)),c=s+"-options",d=t.jQuery;u.forEach((function(t){var n,o=t.getAttribute(s)||t.getAttribute(c);try{n=o&&JSON.parse(o)}catch(e){return void(r&&r.error("Error parsing "+s+" on "+t.className+": "+e))}var a=new e(t,n);d&&d.data(t,i,a)}))}))},n}(o,t)}.apply(e,i),void 0===r||(t.exports=r)}(window)},6131:(t,e,n)=>{var i,r;window,void 0===(r="function"==typeof(i=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}var n="undefined"==typeof console?e:function(t){},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=i.length;function o(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<r;e++)t[i[e]]=0;return t}function s(t){var e=getComputedStyle(t);return e||n("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var a,l=!1;function u(){if(!l){l=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var i=s(e);a=200==Math.round(t(i.width)),c.isBoxSizeOuter=a,n.removeChild(e)}}function c(e){if(u(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var n=s(e);if("none"==n.display)return o();var l={};l.width=e.offsetWidth,l.height=e.offsetHeight;for(var c=l.isBorderBox="border-box"==n.boxSizing,d=0;d<r;d++){var h=i[d],f=n[h],p=parseFloat(f);l[h]=isNaN(p)?0:p}var m=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,v=l.marginLeft+l.marginRight,y=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,w=l.borderTopWidth+l.borderBottomWidth,T=c&&a,_=t(n.width);!1!==_&&(l.width=_+(T?0:m+b));var S=t(n.height);return!1!==S&&(l.height=S+(T?0:g+w)),l.innerWidth=l.width-(m+b),l.innerHeight=l.height-(g+w),l.outerWidth=l.width+v,l.outerHeight=l.height+y,l}}return c})?i.call(e,n,e,t):i)||(t.exports=r)},8908:(t,e,n)=>{var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t.exports=i},9695:(t,e,n)=>{var i;!function(){var r={y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return(1===t?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"},decimal:","},o=["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"],s={af:{y:"jaar",mo:function(t){return"maand"+(1===t?"":"e")},w:function(t){return 1===t?"week":"weke"},d:function(t){return 1===t?"dag":"dae"},h:function(t){return 1===t?"uur":"ure"},m:function(t){return 1===t?"minuut":"minute"},s:function(t){return"sekonde"+(1===t?"":"s")},ms:function(t){return"millisekonde"+(1===t?"":"s")},decimal:","},ar:{y:function(t){return["سنة","سنتان","سنوات"][d(t)]},mo:function(t){return["شهر","شهران","أشهر"][d(t)]},w:function(t){return["أسبوع","أسبوعين","أسابيع"][d(t)]},d:function(t){return["يوم","يومين","أيام"][d(t)]},h:function(t){return["ساعة","ساعتين","ساعات"][d(t)]},m:function(t){return["دقيقة","دقيقتان","دقائق"][d(t)]},s:function(t){return["ثانية","ثانيتان","ثواني"][d(t)]},ms:function(t){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][d(t)]},decimal:",",delimiter:" و ",_formatCount:function(t,e){for(var n=c(o,{".":e}),i=t.toString().split(""),r=0;r<i.length;r++){var s=i[r];y(n,s)&&(i[r]=n[s])}return i.join("")}},bg:{y:function(t){return["години","година","години"][f(t)]},mo:function(t){return["месеца","месец","месеца"][f(t)]},w:function(t){return["седмици","седмица","седмици"][f(t)]},d:function(t){return["дни","ден","дни"][f(t)]},h:function(t){return["часа","час","часа"][f(t)]},m:function(t){return["минути","минута","минути"][f(t)]},s:function(t){return["секунди","секунда","секунди"][f(t)]},ms:function(t){return["милисекунди","милисекунда","милисекунди"][f(t)]},decimal:","},bn:{y:"বছর",mo:"মাস",w:"সপ্তাহ",d:"দিন",h:"ঘন্টা",m:"মিনিট",s:"সেকেন্ড",ms:"মিলিসেকেন্ড"},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(t){return["rok","roku","roky","let"][p(t)]},mo:function(t){return["měsíc","měsíce","měsíce","měsíců"][p(t)]},w:function(t){return["týden","týdne","týdny","týdnů"][p(t)]},d:function(t){return["den","dne","dny","dní"][p(t)]},h:function(t){return["hodina","hodiny","hodiny","hodin"][p(t)]},m:function(t){return["minuta","minuty","minuty","minut"][p(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekund"][p(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][p(t)]},decimal:","},cy:{y:"flwyddyn",mo:"mis",w:"wythnos",d:"diwrnod",h:"awr",m:"munud",s:"eiliad",ms:"milieiliad"},da:{y:"år",mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},el:r,en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},eo:{y:function(t){return"jaro"+(1===t?"":"j")},mo:function(t){return"monato"+(1===t?"":"j")},w:function(t){return"semajno"+(1===t?"":"j")},d:function(t){return"tago"+(1===t?"":"j")},h:function(t){return"horo"+(1===t?"":"j")},m:function(t){return"minuto"+(1===t?"":"j")},s:function(t){return"sekundo"+(1===t?"":"j")},ms:function(t){return"milisekundo"+(1===t?"":"j")},decimal:","},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},et:{y:function(t){return"aasta"+(1===t?"":"t")},mo:function(t){return"kuu"+(1===t?"":"d")},w:function(t){return"nädal"+(1===t?"":"at")},d:function(t){return"päev"+(1===t?"":"a")},h:function(t){return"tund"+(1===t?"":"i")},m:function(t){return"minut"+(1===t?"":"it")},s:function(t){return"sekund"+(1===t?"":"it")},ms:function(t){return"millisekund"+(1===t?"":"it")},decimal:","},eu:{y:"urte",mo:"hilabete",w:"aste",d:"egun",h:"ordu",m:"minutu",s:"segundo",ms:"milisegundo",decimal:","},fa:{y:"سال",mo:"ماه",w:"هفته",d:"روز",h:"ساعت",m:"دقیقه",s:"ثانیه",ms:"میلی ثانیه",decimal:"."},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fo:{y:"ár",mo:function(t){return 1===t?"mánaður":"mánaðir"},w:function(t){return 1===t?"vika":"vikur"},d:function(t){return 1===t?"dagur":"dagar"},h:function(t){return 1===t?"tími":"tímar"},m:function(t){return 1===t?"minuttur":"minuttir"},s:"sekund",ms:"millisekund",decimal:","},fr:{y:function(t){return"an"+(t>=2?"s":"")},mo:"mois",w:function(t){return"semaine"+(t>=2?"s":"")},d:function(t){return"jour"+(t>=2?"s":"")},h:function(t){return"heure"+(t>=2?"s":"")},m:function(t){return"minute"+(t>=2?"s":"")},s:function(t){return"seconde"+(t>=2?"s":"")},ms:function(t){return"milliseconde"+(t>=2?"s":"")},decimal:","},gr:r,he:{y:function(t){return 1===t?"שנה":"שנים"},mo:function(t){return 1===t?"חודש":"חודשים"},w:function(t){return 1===t?"שבוע":"שבועות"},d:function(t){return 1===t?"יום":"ימים"},h:function(t){return 1===t?"שעה":"שעות"},m:function(t){return 1===t?"דקה":"דקות"},s:function(t){return 1===t?"שניה":"שניות"},ms:function(t){return 1===t?"מילישנייה":"מילישניות"},decimal:"."},hr:{y:function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},mo:function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},w:function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},d:function(t){return 1===t?"dan":"dana"},h:function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},m:function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},s:function(t){var e=t%10;return 5===e||Math.floor(t)===t&&t>=10&&t<=19?"sekundi":1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi"},ms:function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},decimal:","},hi:{y:"साल",mo:function(t){return 1===t?"महीना":"महीने"},w:function(t){return 1===t?"हफ़्ता":"हफ्ते"},d:"दिन",h:function(t){return 1===t?"घंटा":"घंटे"},m:"मिनट",s:"सेकंड",ms:"मिलीसेकंड",decimal:"."},hu:{y:"év",mo:"hónap",w:"hét",d:"nap",h:"óra",m:"perc",s:"másodperc",ms:"ezredmásodperc",decimal:","},id:{y:"tahun",mo:"bulan",w:"minggu",d:"hari",h:"jam",m:"menit",s:"detik",ms:"milidetik",decimal:"."},is:{y:"ár",mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:"年",mo:"ヶ月",w:"週",d:"日",h:"時間",m:"分",s:"秒",ms:"ミリ秒",decimal:"."},km:{y:"ឆ្នាំ",mo:"ខែ",w:"សប្តាហ៍",d:"ថ្ងៃ",h:"ម៉ោង",m:"នាទី",s:"វិនាទី",ms:"មិល្លីវិនាទី"},kn:{y:function(t){return 1===t?"ವರ್ಷ":"ವರ್ಷಗಳು"},mo:function(t){return 1===t?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"},w:function(t){return 1===t?"ವಾರ":"ವಾರಗಳು"},d:function(t){return 1===t?"ದಿನ":"ದಿನಗಳು"},h:function(t){return 1===t?"ಗಂಟೆ":"ಗಂಟೆಗಳು"},m:function(t){return 1===t?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"},s:function(t){return 1===t?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"},ms:function(t){return 1===t?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"}},ko:{y:"년",mo:"개월",w:"주일",d:"일",h:"시간",m:"분",s:"초",ms:"밀리 초",decimal:"."},ku:{y:"sal",mo:"meh",w:"hefte",d:"roj",h:"seet",m:"deqe",s:"saniye",ms:"mîlîçirk",decimal:","},lo:{y:"ປີ",mo:"ເດືອນ",w:"ອາທິດ",d:"ມື້",h:"ຊົ່ວໂມງ",m:"ນາທີ",s:"ວິນາທີ",ms:"ມິນລິວິນາທີ",decimal:","},lt:{y:function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},mo:function(t){return["mėnuo","mėnesiai","mėnesių"][m(t)]},w:function(t){return["savaitė","savaitės","savaičių"][m(t)]},d:function(t){return["diena","dienos","dienų"][m(t)]},h:function(t){return["valanda","valandos","valandų"][m(t)]},m:function(t){return["minutė","minutės","minučių"][m(t)]},s:function(t){return["sekundė","sekundės","sekundžių"][m(t)]},ms:function(t){return["milisekundė","milisekundės","milisekundžių"][m(t)]},decimal:","},lv:{y:function(t){return g(t)?"gads":"gadi"},mo:function(t){return g(t)?"mēnesis":"mēneši"},w:function(t){return g(t)?"nedēļa":"nedēļas"},d:function(t){return g(t)?"diena":"dienas"},h:function(t){return g(t)?"stunda":"stundas"},m:function(t){return g(t)?"minūte":"minūtes"},s:function(t){return g(t)?"sekunde":"sekundes"},ms:function(t){return g(t)?"milisekunde":"milisekundes"},decimal:","},mk:{y:function(t){return 1===t?"година":"години"},mo:function(t){return 1===t?"месец":"месеци"},w:function(t){return 1===t?"недела":"недели"},d:function(t){return 1===t?"ден":"дена"},h:function(t){return 1===t?"час":"часа"},m:function(t){return 1===t?"минута":"минути"},s:function(t){return 1===t?"секунда":"секунди"},ms:function(t){return 1===t?"милисекунда":"милисекунди"},decimal:","},mn:{y:"жил",mo:"сар",w:"долоо хоног",d:"өдөр",h:"цаг",m:"минут",s:"секунд",ms:"миллисекунд",decimal:"."},mr:{y:function(t){return 1===t?"वर्ष":"वर्षे"},mo:function(t){return 1===t?"महिना":"महिने"},w:function(t){return 1===t?"आठवडा":"आठवडे"},d:"दिवस",h:"तास",m:function(t){return 1===t?"मिनिट":"मिनिटे"},s:"सेकंद",ms:"मिलिसेकंद"},ms:{y:"tahun",mo:"bulan",w:"minggu",d:"hari",h:"jam",m:"minit",s:"saat",ms:"milisaat",decimal:"."},nl:{y:"jaar",mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:"uur",m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:"år",mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(t){return["rok","roku","lata","lat"][h(t)]},mo:function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][h(t)]},w:function(t){return["tydzień","tygodnia","tygodnie","tygodni"][h(t)]},d:function(t){return["dzień","dnia","dni","dni"][h(t)]},h:function(t){return["godzina","godziny","godziny","godzin"][h(t)]},m:function(t){return["minuta","minuty","minuty","minut"][h(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekund"][h(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][h(t)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1===t?"mês":"meses"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ro:{y:function(t){return 1===t?"an":"ani"},mo:function(t){return 1===t?"lună":"luni"},w:function(t){return 1===t?"săptămână":"săptămâni"},d:function(t){return 1===t?"zi":"zile"},h:function(t){return 1===t?"oră":"ore"},m:function(t){return 1===t?"minut":"minute"},s:function(t){return 1===t?"secundă":"secunde"},ms:function(t){return 1===t?"milisecundă":"milisecunde"},decimal:","},ru:{y:function(t){return["лет","год","года"][f(t)]},mo:function(t){return["месяцев","месяц","месяца"][f(t)]},w:function(t){return["недель","неделя","недели"][f(t)]},d:function(t){return["дней","день","дня"][f(t)]},h:function(t){return["часов","час","часа"][f(t)]},m:function(t){return["минут","минута","минуты"][f(t)]},s:function(t){return["секунд","секунда","секунды"][f(t)]},ms:function(t){return["миллисекунд","миллисекунда","миллисекунды"][f(t)]},decimal:","},sq:{y:function(t){return 1===t?"vit":"vjet"},mo:"muaj",w:"javë",d:"ditë",h:"orë",m:function(t){return"minut"+(1===t?"ë":"a")},s:function(t){return"sekond"+(1===t?"ë":"a")},ms:function(t){return"milisekond"+(1===t?"ë":"a")},decimal:","},sr:{y:function(t){return["години","година","године"][f(t)]},mo:function(t){return["месеци","месец","месеца"][f(t)]},w:function(t){return["недељи","недеља","недеље"][f(t)]},d:function(t){return["дани","дан","дана"][f(t)]},h:function(t){return["сати","сат","сата"][f(t)]},m:function(t){return["минута","минут","минута"][f(t)]},s:function(t){return["секунди","секунда","секунде"][f(t)]},ms:function(t){return["милисекунди","милисекунда","милисекунде"][f(t)]},decimal:","},ta:{y:function(t){return 1===t?"வருடம்":"ஆண்டுகள்"},mo:function(t){return 1===t?"மாதம்":"மாதங்கள்"},w:function(t){return 1===t?"வாரம்":"வாரங்கள்"},d:function(t){return 1===t?"நாள்":"நாட்கள்"},h:function(t){return 1===t?"மணி":"மணிநேரம்"},m:function(t){return"நிமிட"+(1===t?"ம்":"ங்கள்")},s:function(t){return"வினாடி"+(1===t?"":"கள்")},ms:function(t){return"மில்லி விநாடி"+(1===t?"":"கள்")}},te:{y:function(t){return"సంవత్స"+(1===t?"రం":"రాల")},mo:function(t){return"నెల"+(1===t?"":"ల")},w:function(t){return 1===t?"వారం":"వారాలు"},d:function(t){return"రోజు"+(1===t?"":"లు")},h:function(t){return"గంట"+(1===t?"":"లు")},m:function(t){return 1===t?"నిమిషం":"నిమిషాలు"},s:function(t){return 1===t?"సెకను":"సెకన్లు"},ms:function(t){return 1===t?"మిల్లీసెకన్":"మిల్లీసెకన్లు"}},uk:{y:function(t){return["років","рік","роки"][f(t)]},mo:function(t){return["місяців","місяць","місяці"][f(t)]},w:function(t){return["тижнів","тиждень","тижні"][f(t)]},d:function(t){return["днів","день","дні"][f(t)]},h:function(t){return["годин","година","години"][f(t)]},m:function(t){return["хвилин","хвилина","хвилини"][f(t)]},s:function(t){return["секунд","секунда","секунди"][f(t)]},ms:function(t){return["мілісекунд","мілісекунда","мілісекунди"][f(t)]},decimal:","},ur:{y:"سال",mo:function(t){return 1===t?"مہینہ":"مہینے"},w:function(t){return 1===t?"ہفتہ":"ہفتے"},d:"دن",h:function(t){return 1===t?"گھنٹہ":"گھنٹے"},m:"منٹ",s:"سیکنڈ",ms:"ملی سیکنڈ",decimal:"."},sk:{y:function(t){return["rok","roky","roky","rokov"][p(t)]},mo:function(t){return["mesiac","mesiace","mesiace","mesiacov"][p(t)]},w:function(t){return["týždeň","týždne","týždne","týždňov"][p(t)]},d:function(t){return["deň","dni","dni","dní"][p(t)]},h:function(t){return["hodina","hodiny","hodiny","hodín"][p(t)]},m:function(t){return["minúta","minúty","minúty","minút"][p(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekúnd"][p(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekúnd"][p(t)]},decimal:","},sl:{y:function(t){return t%10==1?"leto":t%100==2?"leti":t%100==3||t%100==4||Math.floor(t)!==t&&t%100<=5?"leta":"let"},mo:function(t){return t%10==1?"mesec":t%100==2||Math.floor(t)!==t&&t%100<=5?"meseca":t%10==3||t%10==4?"mesece":"mesecev"},w:function(t){return t%10==1?"teden":t%10==2||Math.floor(t)!==t&&t%100<=4?"tedna":t%10==3||t%10==4?"tedne":"tednov"},d:function(t){return t%100==1?"dan":"dni"},h:function(t){return t%10==1?"ura":t%100==2?"uri":t%10==3||t%10==4||Math.floor(t)!==t?"ure":"ur"},m:function(t){return t%10==1?"minuta":t%10==2?"minuti":t%10==3||t%10==4||Math.floor(t)!==t&&t%100<=4?"minute":"minut"},s:function(t){return t%10==1?"sekunda":t%100==2?"sekundi":t%100==3||t%100==4||Math.floor(t)!==t?"sekunde":"sekund"},ms:function(t){return t%10==1?"milisekunda":t%100==2?"milisekundi":t%100==3||t%100==4||Math.floor(t)!==t?"milisekunde":"milisekund"},decimal:","},sv:{y:"år",mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},sw:{y:function(t){return 1===t?"mwaka":"miaka"},mo:function(t){return 1===t?"mwezi":"miezi"},w:"wiki",d:function(t){return 1===t?"siku":"masiku"},h:function(t){return 1===t?"saa":"masaa"},m:"dakika",s:"sekunde",ms:"milisekunde",decimal:".",_numberFirst:!0},tr:{y:"yıl",mo:"ay",w:"hafta",d:"gün",h:"saat",m:"dakika",s:"saniye",ms:"milisaniye",decimal:","},th:{y:"ปี",mo:"เดือน",w:"สัปดาห์",d:"วัน",h:"ชั่วโมง",m:"นาที",s:"วินาที",ms:"มิลลิวินาที",decimal:"."},vi:{y:"năm",mo:"tháng",w:"tuần",d:"ngày",h:"giờ",m:"phút",s:"giây",ms:"mili giây",decimal:","},zh_CN:{y:"年",mo:"个月",w:"周",d:"天",h:"小时",m:"分钟",s:"秒",ms:"毫秒",decimal:"."},zh_TW:{y:"年",mo:"個月",w:"周",d:"天",h:"小時",m:"分鐘",s:"秒",ms:"毫秒",decimal:"."}};function a(t){var e=function(t,n){return function(t,e){var n,i,r;t=Math.abs(t);var o,a,l,c=function(t){var e=[t.language];if(y(t,"fallbacks")){if(!v(t.fallbacks)||!t.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");e=e.concat(t.fallbacks)}for(var n=0;n<e.length;n++){var i=e[n];if(y(t.languages,i))return t.languages[i];if(y(s,i))return s[i]}throw new Error("No language found.")}(e),d=[];for(n=0,i=e.units.length;n<i;n++){if(o=e.units[n],a=e.unitMeasures[o],n+1===i)if(y(e,"maxDecimalPoints")){var h=Math.pow(10,e.maxDecimalPoints),f=t/a;l=parseFloat((Math.floor(h*f)/h).toFixed(e.maxDecimalPoints))}else l=t/a;else l=Math.floor(t/a);d.push({unitCount:l,unitName:o}),t-=l*a}var p,m,g=0;for(n=0;n<d.length;n++)if(d[n].unitCount){g=n;break}if(e.round)for(n=d.length-1;n>=0&&((r=d[n]).unitCount=Math.round(r.unitCount),0!==n);n--)m=d[n-1],p=e.unitMeasures[m.unitName]/e.unitMeasures[r.unitName],(r.unitCount%p==0||e.largest&&e.largest-1<n-g)&&(m.unitCount+=r.unitCount/p,r.unitCount=0);var b=[];for(n=0,d.length;n<i&&((r=d[n]).unitCount&&b.push(u(r.unitCount,r.unitName,c,e)),b.length!==e.largest);n++);if(!b.length)return u(0,e.units[e.units.length-1],c,e);var w;if(w=y(e,"delimiter")?e.delimiter:y(c,"delimiter")?c.delimiter:", ",!e.conjunction||1===b.length)return b.join(w);if(2===b.length)return b.join(e.conjunction);if(b.length>2)return b.slice(0,-1).join(w)+(e.serialComma?",":"")+e.conjunction+b.slice(-1)}(t,c({},e,n||{}))};return c(e,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var l=a({});function u(t,e,n,i){var r,o;r=y(i,"decimal")?i.decimal:y(n,"decimal")?n.decimal:".",o="function"==typeof n._formatCount?n._formatCount(t,r):t.toString().replace(".",r);var s,a=n[e];return s="function"==typeof a?a(t):a,n._numberFirst?s+i.spacer+o:o+i.spacer+s}function c(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])y(e,i)&&(t[i]=e[i]);return t}function d(t){return 1===t?0:2===t?1:t>2&&t<11?2:0}function h(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3}function f(t){return Math.floor(t)!==t?2:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10==0?0:t%10==1?1:t>1?2:0}function p(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3}function m(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2}function g(t){return t%10==1&&t%100!=11}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}l.getSupportedLanguages=function(){var t=[];for(var e in s)y(s,e)&&"gr"!==e&&t.push(e);return t},l.humanizer=a,void 0===(i=function(){return l}.call(e,n,e,t))||(t.exports=i)}()},5303:(t,e,n)=>{const i=n(6702);t.exports={iframeResize:i,iframeResizer:i,contentWindow:n(9402)}},9402:t=>{!function(e){if("undefined"!=typeof window){var n=!0,i=10,r="",o=0,s="",a=null,l="",u=!1,c={resize:1,click:1},d=128,h=!0,f=1,p="bodyOffset",m=p,g=!0,v="",y={},b=32,w=null,T=!1,_=!1,S="[iFrameSizer]",E=S.length,x="",k={max:1,min:1,bodyScroll:1,documentElementScroll:1},C="child",A=!0,L=window.parent,I="*",O=0,D=!1,P=null,R=16,M=1,N="scroll",F=N,$=window,j=function(){st("onMessage function not defined")},U=function(){},B=function(){},H={height:function(){return st("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return st("Custom width calculation function not defined"),document.body.scrollWidth}},V={},z=!1;try{var W=Object.create({},{passive:{get:function(){z=!0}}});window.addEventListener("test",nt,W),window.removeEventListener("test",nt,W)}catch(t){}var q,G,K,Y,Z,X,Q,J={bodyOffset:function(){return document.body.offsetHeight+vt("marginTop")+vt("marginBottom")},offset:function(){return J.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,bt(J))},min:function(){return Math.min.apply(null,bt(J))},grow:function(){return J.max()},lowestElement:function(){return Math.max(J.bodyOffset()||J.documentElementOffset(),yt("bottom",Tt()))},taggedElement:function(){return wt("bottom","data-iframe-height")}},tt={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tt.bodyScroll(),tt.documentElementScroll())},max:function(){return Math.max.apply(null,bt(tt))},min:function(){return Math.min.apply(null,bt(tt))},rightMostElement:function(){return yt("right",Tt())},taggedElement:function(){return wt("right","data-iframe-width")}},et=(q=_t,Z=null,X=0,Q=function(){X=Date.now(),Z=null,Y=q.apply(G,K),Z||(G=K=null)},function(){var t=Date.now();X||(X=t);var e=R-(t-X);return G=this,K=arguments,e<=0||e>R?(Z&&(clearTimeout(Z),Z=null),X=t,Y=q.apply(G,K),Z||(G=K=null)):Z||(Z=setTimeout(Q,e)),Y});it(window,"message",(function(n){var i={init:function(){v=n.data,L=n.source,at(),h=!1,setTimeout((function(){g=!1}),d)},reset:function(){g?ot():(ot(),xt("resetPage"))},resize:function(){St("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=o();ot(),B(JSON.parse(t)),ot()},message:function(){var t=o();ot(),j(JSON.parse(t)),ot()}};function r(){return n.data.split("]")[1].split(":")[0]}function o(){return n.data.slice(n.data.indexOf(":")+1)}function s(){return n.data.split(":")[2]in{true:1,false:1}}function a(){var o=r();o in i?i[o]():!t.exports&&"iFrameResize"in window||window.jQuery!==e&&"iFrameResize"in window.jQuery.prototype||s()||st(n.data)}S===(""+n.data).slice(0,E)&&(!1===h?a():s()?i.init():ot(r()))})),it(window,"readystatechange",At),At()}function nt(){}function it(t,e,n,i){t.addEventListener(e,n,!!z&&(i||{}))}function rt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ot(t){T&&window.console}function st(t){window.console}function at(){var t;!function(){function t(t){return"true"===t}var i=v.slice(E).split(":");x=i[0],o=e===i[1]?o:Number(i[1]),u=e===i[2]?u:t(i[2]),T=e===i[3]?T:t(i[3]),b=e===i[4]?b:Number(i[4]),n=e===i[6]?n:t(i[6]),s=i[7],m=e===i[8]?m:i[8],r=i[9],l=i[10],O=e===i[11]?O:Number(i[11]),y.enable=e!==i[12]&&t(i[12]),C=e===i[13]?C:i[13],F=e===i[14]?F:i[14],_=e===i[15]?_:t(i[15])}(),ot(window.location.href),function(){function t(){var t=window.iFrameResizer;ot(JSON.stringify(t)),Object.keys(t).forEach(lt,t),j="onMessage"in t?t.onMessage:j,U="onReady"in t?t.onReady:U,I="targetOrigin"in t?t.targetOrigin:I,m="heightCalculationMethod"in t?t.heightCalculationMethod:m,F="widthCalculationMethod"in t?t.widthCalculationMethod:F}function e(t,e){return"function"==typeof t&&(ot(),H[e]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t(),m=e(m,"height"),F=e(F,"width"));ot()}(),function(){e===s&&(s=o+"px");ut("margin",function(t,e){-1!==e.indexOf("-")&&(st(),e="");return e}(0,s))}(),ut("background",r),ut("padding",l),(t=document.createElement("div")).style.clear="both",t.style.display="block",t.style.height="0",document.body.appendChild(t),ft(),pt(),document.documentElement.style.height="",document.body.style.height="",ot(),ot(),$.parentIFrame={autoResize:function(t){return!0===t&&!1===n?(n=!0,mt()):!1===t&&!0===n&&(n=!1,dt("remove"),null!==a&&a.disconnect(),clearInterval(w)),Ct(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ct(0,0,"close")},getId:function(){return x},getPageInfo:function(t){"function"==typeof t?(B=t,Ct(0,0,"pageInfo")):(B=function(){},Ct(0,0,"pageInfoStop"))},moveToAnchor:function(t){y.findTarget(t)},reset:function(){kt("parentIFrame.reset")},scrollTo:function(t,e){Ct(e,t,"scrollTo")},scrollToOffset:function(t,e){Ct(e,t,"scrollToOffset")},sendMessage:function(t,e){Ct(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){m=t,ft()},setWidthCalculationMethod:function(t){F=t,pt()},setTargetOrigin:function(t){ot(),I=t},size:function(t,e){St("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},function(){if(!0!==_)return;function t(t){Ct(0,0,t.type,t.screenY+":"+t.screenX)}function e(e,n){ot(),it(window.document,e,t)}e("mouseenter","Mouse Enter"),e("mouseleave","Mouse Leave")}(),mt(),y=function(){function t(){return{x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}}function n(e){var n=e.getBoundingClientRect(),i=t();return{x:parseInt(n.left,10)+parseInt(i.x,10),y:parseInt(n.top,10)+parseInt(i.y,10)}}function i(t){function i(t){var e=n(t);ot((e.x,e.y)),Ct(e.y,e.x,"scrollToOffset")}var r=t.split("#")[1]||t,o=decodeURIComponent(r),s=document.getElementById(o)||document.getElementsByName(o)[0];e===s?(ot(),Ct(0,0,"inPageLink","#"+r)):i(s)}function r(){var t=window.location.hash,e=window.location.href;""!==t&&"#"!==t&&i(e)}function o(){function t(t){function e(t){t.preventDefault(),i(this.getAttribute("href"))}"#"!==t.getAttribute("href")&&it(t,"click",e)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),t)}function s(){it(window,"hashchange",r)}function a(){setTimeout(r,d)}function l(){Array.prototype.forEach&&document.querySelectorAll?(ot(),o(),s(),a()):st()}y.enable?l():ot();return{findTarget:i}}(),St("init","Init message from host page"),U()}function lt(t){var e=t.split("Callback");if(2===e.length){var n="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[n]=this[t],delete this[t],st()}}function ut(t,n){e!==n&&""!==n&&"null"!==n&&(document.body.style[t]=n,ot())}function ct(t){var e={add:function(e){function n(){St(t.eventName,t.eventType)}V[e]=n,it(window,e,n,{passive:!0})},remove:function(t){var e,n,i,r=V[t];delete V[t],e=window,n=t,i=r,e.removeEventListener(n,i,!1)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(e[t.method])):e[t.method](t.eventName),ot((rt(t.method),t.eventType))}function dt(t){ct({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ct({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ct({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ct({method:t,eventType:"Input",eventName:"input"}),ct({method:t,eventType:"Mouse Up",eventName:"mouseup"}),ct({method:t,eventType:"Mouse Down",eventName:"mousedown"}),ct({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),ct({method:t,eventType:"Print",eventNames:["afterprint","beforeprint"]}),ct({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),ct({method:t,eventType:"Touch Start",eventName:"touchstart"}),ct({method:t,eventType:"Touch End",eventName:"touchend"}),ct({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),ct({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ct({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ct({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===C&&ct({method:t,eventType:"IFrame Resized",eventName:"resize"})}function ht(t,e,n,i){return e!==t&&(t in n||(st(),t=e),ot()),t}function ft(){m=ht(m,p,J)}function pt(){F=ht(F,N,tt)}function mt(){var t;!0===n?(dt("add"),t=0>b,window.MutationObserver||window.WebKitMutationObserver?t?gt():a=function(){function t(t){function e(t){!1===t.complete&&(ot(t.src),t.addEventListener("load",r,!1),t.addEventListener("error",o,!1),l.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function e(t){l.splice(l.indexOf(t),1)}function n(t){ot(t.src),t.removeEventListener("load",r,!1),t.removeEventListener("error",o,!1),e(t)}function i(t,e,i){n(t.target),St(e,i+": "+t.target.src)}function r(t){i(t,"imageLoad","Image loaded")}function o(t){i(t,"imageLoadFailed","Image load failed")}function s(e){St("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}function a(){var t=document.querySelector("body"),e={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return c=new u(s),ot(),c.observe(t,e),c}var l=[],u=window.MutationObserver||window.WebKitMutationObserver,c=a();return{disconnect:function(){"disconnect"in c&&(ot(),c.disconnect(),l.forEach(n))}}}():(ot(),gt())):ot()}function gt(){0!==b&&(ot(),w=setInterval((function(){St("interval","setInterval: "+b)}),Math.abs(b)))}function vt(t,e){var n=0;return e=e||document.body,n=null===(n=document.defaultView.getComputedStyle(e,null))?0:n[t],parseInt(n,i)}function yt(t,e){for(var n=e.length,i=0,r=0,o=rt(t),s=Date.now(),a=0;a<n;a++)(i=e[a].getBoundingClientRect()[t]+vt("margin"+o,e[a]))>r&&(r=i);return s=Date.now()-s,ot(),ot(),function(t){t>R/2&&(R=2*t,ot())}(s),r}function bt(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function wt(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length&&(st(),document.querySelectorAll("body *")),yt(t,n)}function Tt(){return document.querySelectorAll("body *")}function _t(t,n,i,r){var o,s;!function(){function t(t,e){return!(Math.abs(t-e)<=O)}return o=e===i?J[m]():i,s=e===r?tt[F]():r,t(f,o)||u&&t(M,s)}()&&"init"!==t?!(t in{init:1,interval:1,size:1})&&(m in k||u&&F in k)?kt(n):t in{interval:1}||ot():(Et(),Ct(f=o,M=s,t))}function St(t,e,n,i){D&&t in c?ot():(t in{reset:1,resetPage:1,init:1}||ot(),"init"===t?_t(t,e,n,i):et(t,e,n,i))}function Et(){D||(D=!0,ot()),clearTimeout(P),P=setTimeout((function(){D=!1,ot(),ot()}),d)}function xt(t){f=J[m](),M=tt[F](),Ct(f,M,t)}function kt(t){var e=m;m=p,ot(),Et(),xt("reset"),m=e}function Ct(t,n,i,r,o){var s;!0===A&&(e===o?o=I:ot(),s=x+":"+t+":"+n+":"+i+(e===r?"":":"+r),ot(),L.postMessage(S+s,o))}function At(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},6702:(t,e)=>{var n,i,r;!function(o){if("undefined"!=typeof window){var s=0,a=!1,l=!1,u=7,c="[iFrameSizer]",d=c.length,h=null,f=window.requestAnimationFrame,p=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},g=null,v=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){x("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),y={};window.jQuery!==o&&function(t){t.fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,n){j(n,t)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),i=[],(r="function"==typeof(n=z)?n.apply(e,i):n)===o||(t.exports=r),window.iFrameResize=window.iFrameResize||z()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,n){t.addEventListener(e,n,!1)}function T(t,e,n){t.removeEventListener(e,n,!1)}function _(t){return m[t]?m[t].log:a}function S(t,e){k("log",t,e,_(t))}function E(t,e){k("info",t,e,_(t))}function x(t,e){k("warn",t,e,!0)}function k(t,e,n,i){!0===i&&window.console}function C(t){function e(){r("Height"),r("Width"),N((function(){M(U),D(B),g("onResized",U)}),U,"init")}function n(t){return"border-box"!==t.boxSizing?0:(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0)}function i(t){return"border-box"!==t.boxSizing?0:(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0)}function r(t){var e=Number(m[B]["max"+t]),n=Number(m[B]["min"+t]),i=t.toLowerCase(),r=Number(U[i]);S(B,"Checking "+i+" is in range "+n+"-"+e),r<n&&(r=n,S(B,"Set "+i+" to min value")),r>e&&(r=e,S(B,"Set "+i+" to max value")),U[i]=""+r}function o(t){return j.slice(j.indexOf(":")+u+t)}function s(t,e){var n,i,r;n=function(){var n,i;F("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=U.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,e)},i=32,y[r=e]||(y[r]=setTimeout((function(){y[r]=null,n()}),i))}function a(t){var e=t.getBoundingClientRect();return O(B),{x:Math.floor(Number(e.left)+Number(h.x)),y:Math.floor(Number(e.top)+Number(h.y))}}function l(t){var e=t?a(U.iframe):{x:0,y:0},n={x:Number(U.width)+e.x,y:Number(U.height)+e.y};S(B,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top===window.self?(h=n,f(),S(B,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](n.x,n.y):x(B,"Unable to scroll to requested position, window.parentIFrame not found")}function f(){!1===g("onScroll",h)?P():D(B)}function p(t){var e={};if(0===Number(U.width)&&0===Number(U.height)){var n=o(9).split(":");e={x:n[1],y:n[0]}}else e={x:U.width,y:U.height};g(t,{iframe:U.iframe,screenX:Number(e.x),screenY:Number(e.y),type:U.type})}function g(t,e){return A(B,t,e)}var v,b,_,k,C,L,j=t.data,U={},B=null;"[iFrameResizerChild]Ready"===j?function(){for(var t in m)F("iFrame requested init",$(t),m[t].iframe,t)}():c===(""+j).slice(0,d)&&j.slice(d).split(":")[0]in m?(_=j.slice(d).split(":"),k=_[1]?parseInt(_[1],10):0,C=m[_[0]]&&m[_[0]].iframe,L=getComputedStyle(C),U={iframe:C,id:_[0],height:k+n(L)+i(L),width:_[2],type:_[3]},B=U.id,m[B]&&(m[B].loaded=!0),(b=U.type in{true:1,false:1,undefined:1})&&S(B,"Ignoring init message from meta parent page"),!b&&function(t){var e=!0;return m[t]||(e=!1,x(U.type+" No settings for "+t+". Message was: "+j)),e}(B)&&(S(B,"Received: "+j),v=!0,null===U.iframe&&(x(B,"IFrame ("+U.id+") not found"),v=!1),v&&function(){var e,n=t.origin,i=m[B]&&m[B].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var t=0,e=!1;for(S(B,"Checking connection is from allowed list of origins: "+i);t<i.length;t++)if(i[t]===n){e=!0;break}return e}():(e=m[B]&&m[B].remoteHost,S(B,"Checking connection is from: "+e),n===e)))throw new Error("Unexpected message received from: "+n+" for "+U.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[B]&&m[B].firstRun&&m[B]&&(m[B].firstRun=!1),U.type){case"close":I(U.iframe);break;case"message":t=o(6),S(B,"onMessage passed: {iframe: "+U.iframe.id+", message: "+t+"}"),g("onMessage",{iframe:U.iframe,message:JSON.parse(t)}),S(B,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":m[B].autoResize=JSON.parse(o(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":s(m[B]&&m[B].iframe,B),function(){function t(t,i){function r(){m[n]?s(m[n].iframe,n):e()}["scroll","resize"].forEach((function(e){S(n,t+e+" listener for sendPageInfo"),i(window,e,r)}))}function e(){t("Remove ",T)}var n=B;t("Add ",w),m[n]&&(m[n].stopPageInfo=e)}();break;case"pageInfoStop":m[B]&&m[B].stopPageInfo&&(m[B].stopPageInfo(),delete m[B].stopPageInfo);break;case"inPageLink":!function(t){var e,n=t.split("#")[1]||"",i=decodeURIComponent(n),r=document.getElementById(i)||document.getElementsByName(i)[0];r?(e=a(r),S(B,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),h={x:e.x,y:e.y},f(),S(B,"--")):window.top===window.self?S(B,"In page link #"+n+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(n):S(B,"In page link #"+n+" not found and window.parentIFrame not found")}(o(9));break;case"reset":R(U);break;case"init":e(),g("onInit",U.iframe);break;default:0===Number(U.width)&&0===Number(U.height)?x("Unsupported message received ("+U.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):e()}var t}())):E(B,"Ignored: "+j)}function A(t,e,n){var i=null,r=null;if(m[t]){if("function"!=typeof(i=m[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");r=i(n)}return r}function L(t){var e=t.id;delete m[e]}function I(t){var e=t.id;if(!1!==A(e,"onClose",e)){S(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){x(t)}A(e,"onClosed",e),S(e,"--"),L(t)}else S(e,"Close iframe cancelled by onClose event")}function O(t){null===h&&S(t,"Get page position: "+(h={x:window.pageXOffset===o?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===o?document.documentElement.scrollTop:window.pageYOffset}).x+","+h.y)}function D(t){null!==h&&(window.scrollTo(h.x,h.y),S(t,"Set page position: "+h.x+","+h.y),P())}function P(){h=null}function R(t){S(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),O(t.id),N((function(){M(t),F("reset","reset",t.iframe,t.id)}),t,"reset")}function M(t){function e(e){l||"0"!==t[e]||(l=!0,S(i,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function e(e){return"0px"===(m[t]&&m[t].iframe.style[e])}function n(t){return null!==t.offsetParent}m[t]&&n(m[t].iframe)&&(e("height")||e("width"))&&F("Visibility change","resize",m[t].iframe,t)}Object.keys(m).forEach((function(e){t(e)}))}function e(e){S("window","Mutation observed: "+e[0].target+" "+e[0].type),U(t,16)}function n(){var t=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(e).observe(t,n)}var i=b();i&&n()}())}function n(n){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",S(t.id,"IFrame ("+i+") "+e+" set to "+t[e]+"px")):S("undefined","messageData id not set")}(n),e(n)}var i=t.iframe.id;m[i]&&(m[i].sizeHeight&&n("height"),m[i].sizeWidth&&n("width"))}function N(t,e,n){n!==e.type&&f&&!window.jasmine?(S(e.id,"Requesting animation frame"),f(t)):t()}function F(t,e,n,i,r){var o,s=!1;i=i||n.id,m[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=m[i]&&m[i].targetOrigin,S(i,"["+t+"] Sending msg to iframe["+i+"] ("+e+") targetOrigin: "+o),n.contentWindow.postMessage(c+e,o)):x(i,"["+t+"] IFrame("+i+") not found"),r&&m[i]&&m[i].warningTimeout&&(m[i].msgTimeout=setTimeout((function(){!m[i]||m[i].loaded||s||(s=!0,x(i,"IFrame has not responded within "+m[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[i].warningTimeout)))}function $(t){return t+":"+m[t].bodyMarginV1+":"+m[t].sizeWidth+":"+m[t].log+":"+m[t].interval+":"+m[t].enablePublicMethods+":"+m[t].autoResize+":"+m[t].bodyMargin+":"+m[t].heightCalculationMethod+":"+m[t].bodyBackground+":"+m[t].bodyPadding+":"+m[t].tolerance+":"+m[t].inPageLinks+":"+m[t].resizeFrom+":"+m[t].widthCalculationMethod+":"+m[t].mouseEvents}function j(t,e){function n(t){var e=t.split("Callback");if(2===e.length){var n="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[n]=this[t],delete this[t],x(i,"Deprecated: '"+t+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i=function(n){if("string"!=typeof n)throw new TypeError("Invaild id for iFrame. Expected String");var i;return""===n&&(t.id=(i=e&&e.id||v.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),a=(e||{}).log,S(n,"Added missing iframe ID: "+n+" ("+t.src+")")),n}(t.id);i in m&&"iFrameResizer"in t?x(i,"Ignored iFrame, already setup."):(!function(e){var r;e=e||{},m[i]=Object.create(null),m[i].iframe=t,m[i].firstRun=!0,m[i].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(n,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(m[i][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),m[i]&&(m[i].targetOrigin=!0===m[i].checkOrigin?""===(r=m[i].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(e),function(){switch(S(i,"IFrame scrolling "+(m[i]&&m[i].scrolling?"enabled":"disabled")+" for "+i),t.style.overflow=!1===(m[i]&&m[i].scrolling)?"hidden":"auto",m[i]&&m[i].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=m[i]?m[i].scrolling:"no"}}(),function(){function e(e){var n=m[i][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,S(i,"Set "+e+" = "+t.style[e]))}function n(t){if(m[i]["min"+t]>m[i]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[i]&&m[i].bodyMargin)&&"0"!==(m[i]&&m[i].bodyMargin)||(m[i].bodyMarginV1=m[i].bodyMargin,m[i].bodyMargin=m[i].bodyMargin+"px"),function(e){var n=b();n&&function(e){t.parentNode&&new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&I(t)}))}))})).observe(t.parentNode,{childList:!0})}(n),w(t,"load",(function(){var n,r;F("iFrame.onload",e,t,o,!0),n=m[i]&&m[i].firstRun,r=m[i]&&m[i].heightCalculationMethod in p,!n&&r&&R({iframe:t,height:0,width:0,type:"init"})})),F("init",e,t,o,!0)}($(i)),m[i]&&(m[i].iframe.iFrameResizer={close:I.bind(null,m[i].iframe),removeListeners:L.bind(null,m[i].iframe),resize:F.bind(null,"Window resize","resize",m[i].iframe),moveToAnchor:function(t){F("Move to anchor","moveToAnchor:"+t,m[i].iframe,i)},sendMessage:function(t){F("Send Message","message:"+(t=JSON.stringify(t)),m[i].iframe,i)}}))}function U(t,e){null===g&&(g=setTimeout((function(){g=null,t()}),e))}function B(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visibility change"),U((function(){H("Tab Visible","resize")}),16))}function H(t,e){Object.keys(m).forEach((function(n){(function(t){return m[t]&&"parent"===m[t].resizeFrom&&m[t].autoResize&&!m[t].firstRun})(n)&&F(t,e,m[n].iframe,n)}))}function V(){w(window,"message",C),w(window,"resize",(function(){var t;S("window","Trigger event: "+(t="resize")),U((function(){H("Window "+t,"resize")}),16)})),w(document,"visibilitychange",B),w(document,"-webkit-visibilitychange",B)}function z(){function t(t,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),j(n,t),e.push(n))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!f;t+=1)f=window[e[t]+"RequestAnimationFrame"];f?f=f.bind(window):S("setup","RequestAnimationFrame not supported")}(),V(),function(n,i){switch(e=[],function(t){t&&t.enablePublicMethods&&x("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),t.bind(o,n));break;case"object":t(n,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return e}}}()},4878:(t,e,n)=>{const i=n(1249).Z,r=n(5039).Z,o=n(6685).Z;t.exports={jarallax:i,jarallaxElement:()=>o(i),jarallaxVideo:()=>r(i)}},6685:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(8908),r=n.n(i);function o(t=r().jarallax){if(void 0===t)return;const e=t.constructor;["initImg","canInitParallax","init","destroy","clipContainer","coverImage","isVisible","onScroll","onResize"].forEach((t=>{const n=e.prototype[t];e.prototype[t]=function(...e){const i=this;if("initImg"===t&&null!==i.$item.getAttribute("data-jarallax-element")&&(i.options.type="element",i.pureOptions.speed=i.$item.getAttribute("data-jarallax-element")||i.pureOptions.speed),"element"!==i.options.type)return n.apply(i,e);switch(i.pureOptions.threshold=i.$item.getAttribute("data-threshold")||"",t){case"init":const t=i.pureOptions.speed.split(" ");i.options.speed=i.pureOptions.speed||0,i.options.speedY=t[0]?parseFloat(t[0]):0,i.options.speedX=t[1]?parseFloat(t[1]):0;const r=i.pureOptions.threshold.split(" ");i.options.thresholdY=r[0]?parseFloat(r[0]):null,i.options.thresholdX=r[1]?parseFloat(r[1]):null,n.apply(i,e);const o=i.$item.getAttribute("data-jarallax-original-styles");return o&&i.$item.setAttribute("style",o),!0;case"onResize":const s=i.css(i.$item,"transform");i.css(i.$item,{transform:""});const a=i.$item.getBoundingClientRect();i.itemData={width:a.width,height:a.height,y:a.top+i.getWindowData().y,x:a.left},i.css(i.$item,{transform:s});break;case"onScroll":const l=i.getWindowData(),u=(l.y+l.height/2-i.itemData.y-i.itemData.height/2)/(l.height/2),c=u*i.options.speedY,d=u*i.options.speedX;let h=c,f=d;null!==i.options.thresholdY&&c>i.options.thresholdY&&(h=0),null!==i.options.thresholdX&&d>i.options.thresholdX&&(f=0),i.css(i.$item,{transform:`translate3d(${f}px,${h}px,0)`});break;case"initImg":case"isVisible":case"clipContainer":case"coverImage":return!0}return n.apply(i,e)}}))}},5039:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(8908),r=n.n(i);function o(){this.doneCallbacks=[],this.failCallbacks=[]}o.prototype={execute(t,e){let n=t.length;for(e=Array.prototype.slice.call(e);n;)n-=1,t[n].apply(null,e)},resolve(...t){this.execute(this.doneCallbacks,t)},reject(...t){this.execute(this.failCallbacks,t)},done(t){this.doneCallbacks.push(t)},fail(t){this.failCallbacks.push(t)}};let s=0,a=0,l=0,u=0,c=0;const d=new o,h=new o;class f{constructor(t,e){const n=this;n.url=t,n.options_default={autoplay:!1,loop:!1,mute:!1,volume:100,showControls:!0,accessibilityHidden:!1,startTime:0,endTime:0},n.options=n.extend({},n.options_default,e),void 0!==n.options.showContols&&(n.options.showControls=n.options.showContols,delete n.options.showContols),n.videoID=n.parseURL(t),n.videoID&&(n.ID=s,s+=1,n.loadAPI(),n.init())}extend(...t){const e=t[0]||{};return Object.keys(t).forEach((n=>{t[n]&&Object.keys(t[n]).forEach((i=>{e[i]=t[n][i]}))})),e}parseURL(t){const e=function(t){const e=t.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/);return!(!e||11!==e[1].length)&&e[1]}(t),n=function(t){const e=t.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!(!e||!e[3])&&e[3]}(t),i=function(t){const e=t.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),n={};let i=0;return e.forEach((t=>{const e=t.match(/^(mp4|webm|ogv|ogg)\:(.*)/);e&&e[1]&&e[2]&&(n["ogv"===e[1]?"ogg":e[1]]=e[2],i=1)})),!!i&&n}(t);return e?(this.type="youtube",e):n?(this.type="vimeo",n):!!i&&(this.type="local",i)}isValid(){return!!this.videoID}on(t,e){this.userEventsList=this.userEventsList||[],(this.userEventsList[t]||(this.userEventsList[t]=[])).push(e)}off(t,e){this.userEventsList&&this.userEventsList[t]&&(e?this.userEventsList[t].forEach(((n,i)=>{n===e&&(this.userEventsList[t][i]=!1)})):delete this.userEventsList[t])}fire(t,...e){this.userEventsList&&void 0!==this.userEventsList[t]&&this.userEventsList[t].forEach((t=>{t&&t.apply(this,e)}))}play(t){const e=this;e.player&&("youtube"===e.type&&e.player.playVideo&&(void 0!==t&&e.player.seekTo(t||0),r().YT.PlayerState.PLAYING!==e.player.getPlayerState()&&e.player.playVideo()),"vimeo"===e.type&&(void 0!==t&&e.player.setCurrentTime(t),e.player.getPaused().then((t=>{t&&e.player.play()}))),"local"===e.type&&(void 0!==t&&(e.player.currentTime=t),e.player.paused&&e.player.play()))}pause(){const t=this;t.player&&("youtube"===t.type&&t.player.pauseVideo&&r().YT.PlayerState.PLAYING===t.player.getPlayerState()&&t.player.pauseVideo(),"vimeo"===t.type&&t.player.getPaused().then((e=>{e||t.player.pause()})),"local"===t.type&&(t.player.paused||t.player.pause()))}mute(){const t=this;t.player&&("youtube"===t.type&&t.player.mute&&t.player.mute(),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(0),"local"===t.type&&(t.$video.muted=!0))}unmute(){const t=this;t.player&&("youtube"===t.type&&t.player.mute&&t.player.unMute(),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(t.options.volume),"local"===t.type&&(t.$video.muted=!1))}setVolume(t=!1){const e=this;e.player&&t&&("youtube"===e.type&&e.player.setVolume&&e.player.setVolume(t),"vimeo"===e.type&&e.player.setVolume&&e.player.setVolume(t),"local"===e.type&&(e.$video.volume=t/100))}getVolume(t){const e=this;e.player?("youtube"===e.type&&e.player.getVolume&&t(e.player.getVolume()),"vimeo"===e.type&&e.player.getVolume&&e.player.getVolume().then((e=>{t(e)})),"local"===e.type&&t(100*e.$video.volume)):t(!1)}getMuted(t){const e=this;e.player?("youtube"===e.type&&e.player.isMuted&&t(e.player.isMuted()),"vimeo"===e.type&&e.player.getVolume&&e.player.getVolume().then((e=>{t(!!e)})),"local"===e.type&&t(e.$video.muted)):t(null)}getImageURL(t){const e=this;if(e.videoImage)t(e.videoImage);else{if("youtube"===e.type){const n=["maxresdefault","sddefault","hqdefault","0"];let i=0;const r=new Image;r.onload=function(){120!==(this.naturalWidth||this.width)||i===n.length-1?(e.videoImage=`https://img.youtube.com/vi/${e.videoID}/${n[i]}.jpg`,t(e.videoImage)):(i+=1,this.src=`https://img.youtube.com/vi/${e.videoID}/${n[i]}.jpg`)},r.src=`https://img.youtube.com/vi/${e.videoID}/${n[i]}.jpg`}if("vimeo"===e.type){let n=new XMLHttpRequest;n.open("GET",`https://vimeo.com/api/v2/video/${e.videoID}.json`,!0),n.onreadystatechange=function(){if(4===this.readyState&&200<=this.status&&400>this.status){const n=JSON.parse(this.responseText);e.videoImage=n[0].thumbnail_large,t(e.videoImage)}},n.send(),n=null}}}getIframe(t){this.getVideo(t)}getVideo(t){const e=this;e.$video?t(e.$video):e.onAPIready((()=>{let n;if(e.$video||(n=document.createElement("div"),n.style.display="none"),"youtube"===e.type){let t,i;e.playerOptions={host:"https://www.youtube-nocookie.com",videoId:e.videoID,playerVars:{autohide:1,rel:0,autoplay:0,playsinline:1}},e.options.showControls||(e.playerOptions.playerVars.iv_load_policy=3,e.playerOptions.playerVars.modestbranding=1,e.playerOptions.playerVars.controls=0,e.playerOptions.playerVars.showinfo=0,e.playerOptions.playerVars.disablekb=1),e.playerOptions.events={onReady(t){if(e.options.mute?t.target.mute():e.options.volume&&t.target.setVolume(e.options.volume),e.options.autoplay&&e.play(e.options.startTime),e.fire("ready",t),e.options.loop&&!e.options.endTime){const t=.1;e.options.endTime=e.player.getDuration()-t}setInterval((()=>{e.getVolume((n=>{e.options.volume!==n&&(e.options.volume=n,e.fire("volumechange",t))}))}),150)},onStateChange(n){e.options.loop&&n.data===r().YT.PlayerState.ENDED&&e.play(e.options.startTime),t||n.data!==r().YT.PlayerState.PLAYING||(t=1,e.fire("started",n)),n.data===r().YT.PlayerState.PLAYING&&e.fire("play",n),n.data===r().YT.PlayerState.PAUSED&&e.fire("pause",n),n.data===r().YT.PlayerState.ENDED&&e.fire("ended",n),n.data===r().YT.PlayerState.PLAYING?i=setInterval((()=>{e.fire("timeupdate",n),e.options.endTime&&e.player.getCurrentTime()>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())}),150):clearInterval(i)},onError(t){e.fire("error",t)}};const o=!e.$video;if(o){const t=document.createElement("div");t.setAttribute("id",e.playerID),n.appendChild(t),document.body.appendChild(n)}e.player=e.player||new(r().YT.Player)(e.playerID,e.playerOptions),o&&(e.$video=document.getElementById(e.playerID),e.options.accessibilityHidden&&(e.$video.setAttribute("tabindex","-1"),e.$video.setAttribute("aria-hidden","true")),e.videoWidth=parseInt(e.$video.getAttribute("width"),10)||1280,e.videoHeight=parseInt(e.$video.getAttribute("height"),10)||720)}if("vimeo"===e.type){if(e.playerOptions={dnt:1,id:e.videoID,autopause:0,transparent:0,autoplay:e.options.autoplay?1:0,loop:e.options.loop?1:0,muted:e.options.mute?1:0},e.options.volume&&(e.playerOptions.volume=e.options.volume),e.options.showControls||(e.playerOptions.badge=0,e.playerOptions.byline=0,e.playerOptions.portrait=0,e.playerOptions.title=0,e.playerOptions.background=1),!e.$video){let t="";Object.keys(e.playerOptions).forEach((n=>{""!==t&&(t+="&"),t+=`${n}=${encodeURIComponent(e.playerOptions[n])}`})),e.$video=document.createElement("iframe"),e.$video.setAttribute("id",e.playerID),e.$video.setAttribute("src",`https://player.vimeo.com/video/${e.videoID}?${t}`),e.$video.setAttribute("frameborder","0"),e.$video.setAttribute("mozallowfullscreen",""),e.$video.setAttribute("allowfullscreen",""),e.$video.setAttribute("title","Vimeo video player"),e.options.accessibilityHidden&&(e.$video.setAttribute("tabindex","-1"),e.$video.setAttribute("aria-hidden","true")),n.appendChild(e.$video),document.body.appendChild(n)}let t;e.player=e.player||new(r().Vimeo.Player)(e.$video,e.playerOptions),e.options.startTime&&e.options.autoplay&&e.player.setCurrentTime(e.options.startTime),e.player.getVideoWidth().then((t=>{e.videoWidth=t||1280})),e.player.getVideoHeight().then((t=>{e.videoHeight=t||720})),e.player.on("timeupdate",(n=>{t||(e.fire("started",n),t=1),e.fire("timeupdate",n),e.options.endTime&&e.options.endTime&&n.seconds>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())})),e.player.on("play",(t=>{e.fire("play",t),e.options.startTime&&0===t.seconds&&e.play(e.options.startTime)})),e.player.on("pause",(t=>{e.fire("pause",t)})),e.player.on("ended",(t=>{e.fire("ended",t)})),e.player.on("loaded",(t=>{e.fire("ready",t)})),e.player.on("volumechange",(t=>{e.fire("volumechange",t)})),e.player.on("error",(t=>{e.fire("error",t)}))}if("local"===e.type){let t;e.$video||(e.$video=document.createElement("video"),e.options.showControls&&(e.$video.controls=!0),e.options.mute?e.$video.muted=!0:e.$video.volume&&(e.$video.volume=e.options.volume/100),e.options.loop&&(e.$video.loop=!0),e.$video.setAttribute("playsinline",""),e.$video.setAttribute("webkit-playsinline",""),e.options.accessibilityHidden&&(e.$video.setAttribute("tabindex","-1"),e.$video.setAttribute("aria-hidden","true")),e.$video.setAttribute("id",e.playerID),n.appendChild(e.$video),document.body.appendChild(n),Object.keys(e.videoID).forEach((t=>{!function(t,e,n){const i=document.createElement("source");i.src=e,i.type=n,t.appendChild(i)}(e.$video,e.videoID[t],`video/${t}`)}))),e.player=e.player||e.$video,e.player.addEventListener("playing",(n=>{t||e.fire("started",n),t=1})),e.player.addEventListener("timeupdate",(function(t){e.fire("timeupdate",t),e.options.endTime&&e.options.endTime&&this.currentTime>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())})),e.player.addEventListener("play",(t=>{e.fire("play",t)})),e.player.addEventListener("pause",(t=>{e.fire("pause",t)})),e.player.addEventListener("ended",(t=>{e.fire("ended",t)})),e.player.addEventListener("loadedmetadata",(function(){e.videoWidth=this.videoWidth||1280,e.videoHeight=this.videoHeight||720,e.fire("ready"),e.options.autoplay&&e.play(e.options.startTime)})),e.player.addEventListener("volumechange",(t=>{e.getVolume((t=>{e.options.volume=t})),e.fire("volumechange",t)})),e.player.addEventListener("error",(t=>{e.fire("error",t)}))}t(e.$video)}))}init(){this.playerID=`VideoWorker-${this.ID}`}loadAPI(){if(a&&l)return;let t="";if("youtube"!==this.type||a||(a=1,t="https://www.youtube.com/iframe_api"),"vimeo"===this.type&&!l){if(l=1,void 0!==r().Vimeo)return;t="https://player.vimeo.com/api/player.js"}if(!t)return;let e=document.createElement("script"),n=document.getElementsByTagName("head")[0];e.src=t,n.appendChild(e),n=null,e=null}onAPIready(t){const e=this;if("youtube"===e.type&&(void 0!==r().YT&&0!==r().YT.loaded||u?"object"==typeof r().YT&&1===r().YT.loaded?t():d.done((()=>{t()})):(u=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,d.resolve("done"),t()})),"vimeo"===e.type)if(void 0!==r().Vimeo||c)void 0!==r().Vimeo?t():h.done((()=>{t()}));else{c=1;const e=setInterval((()=>{void 0!==r().Vimeo&&(clearInterval(e),h.resolve("done"),t())}),20)}"local"===e.type&&t()}}function p(t=r().jarallax){if(void 0===t)return;const e=t.constructor,n=e.prototype.onScroll;e.prototype.onScroll=function(){const t=this;n.apply(t);!t.isVideoInserted&&t.video&&(!t.options.videoLazyLoading||t.isElementInViewport)&&!t.options.disableVideo()&&(t.isVideoInserted=!0,t.video.getVideo((e=>{const n=e.parentNode;t.css(e,{position:t.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity",margin:0,zIndex:-1}),t.$video=e,"local"===t.video.type&&(t.image.src?t.$video.setAttribute("poster",t.image.src):t.image.$item&&"IMG"===t.image.$item.tagName&&t.image.$item.src&&t.$video.setAttribute("poster",t.image.$item.src)),t.image.$container.appendChild(e),n.parentNode.removeChild(n)})))};const i=e.prototype.coverImage;e.prototype.coverImage=function(){const t=this,e=i.apply(t),n=!!t.image.$item&&t.image.$item.nodeName;if(e&&t.video&&n&&("IFRAME"===n||"VIDEO"===n)){let i=e.image.height,r=i*t.image.width/t.image.height,o=(e.container.width-r)/2,s=e.image.marginTop;e.container.width>r&&(r=e.container.width,i=r*t.image.height/t.image.width,o=0,s+=(e.image.height-i)/2),"IFRAME"===n&&(i+=400,s-=200),t.css(t.$video,{width:`${r}px`,marginLeft:`${o}px`,height:`${i}px`,marginTop:`${s}px`})}return e};const o=e.prototype.initImg;e.prototype.initImg=function(){const t=this,e=o.apply(t);return t.options.videoSrc||(t.options.videoSrc=t.$item.getAttribute("data-jarallax-video")||null),t.options.videoSrc?(t.defaultInitImgResult=e,!0):e};const s=e.prototype.canInitParallax;e.prototype.canInitParallax=function(){const t=this;let e=s.apply(t);if(!t.options.videoSrc)return e;const n=new f(t.options.videoSrc,{autoplay:!0,loop:t.options.videoLoop,showControls:!1,accessibilityHidden:!0,startTime:t.options.videoStartTime||0,endTime:t.options.videoEndTime||0,mute:t.options.videoVolume?0:1,volume:t.options.videoVolume||0});function i(){t.image.$default_item&&(t.image.$item=t.image.$default_item,t.image.$item.style.display="block",t.coverImage(),t.clipContainer(),t.onScroll())}if(n.isValid())if(this.options.disableParallax()&&(e=!0,t.image.position="absolute",t.options.type="scroll",t.options.speed=1),e){if(n.on("ready",(()=>{if(t.options.videoPlayOnlyVisible){const e=t.onScroll;t.onScroll=function(){e.apply(t),t.videoError||!t.options.videoLoop&&(t.options.videoLoop||t.videoEnded)||(t.isVisible()?n.play():n.pause())}}else n.play()})),n.on("started",(()=>{t.image.$default_item=t.image.$item,t.image.$item=t.$video,t.image.width=t.video.videoWidth||1280,t.image.height=t.video.videoHeight||720,t.coverImage(),t.clipContainer(),t.onScroll(),t.image.$default_item&&(t.image.$default_item.style.display="none")})),n.on("ended",(()=>{t.videoEnded=!0,t.options.videoLoop||i()})),n.on("error",(()=>{t.videoError=!0,i()})),t.video=n,!t.defaultInitImgResult&&(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"!==n.type))return n.getImageURL((e=>{t.image.bgImage=`url("${e}")`,t.init()})),!1}else t.defaultInitImgResult||n.getImageURL((e=>{const n=t.$item.getAttribute("style");n&&t.$item.setAttribute("data-jarallax-original-styles",n),t.css(t.$item,{"background-image":`url("${e}")`,"background-position":"center","background-size":"cover"})}));return e};const a=e.prototype.destroy;e.prototype.destroy=function(){const t=this;t.image.$default_item&&(t.image.$item=t.image.$default_item,delete t.image.$default_item),a.apply(t)}}},1249:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var i=n(7),r=n.n(i),o=n(8908);const{navigator:s}=o.window,a=-1<s.userAgent.indexOf("MSIE ")||-1<s.userAgent.indexOf("Trident/")||-1<s.userAgent.indexOf("Edge/"),l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s.userAgent),u=(()=>{const t="transform WebkitTransform MozTransform".split(" "),e=document.createElement("div");for(let n=0;n<t.length;n+=1)if(e&&void 0!==e.style[t[n]])return t[n];return!1})();let c,d;function h(){l?(!c&&document.body&&(c=document.createElement("div"),c.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(c)),d=(c?c.clientHeight:0)||o.window.innerHeight||document.documentElement.clientHeight):d=o.window.innerHeight||document.documentElement.clientHeight}h(),o.window.addEventListener("resize",h),o.window.addEventListener("orientationchange",h),o.window.addEventListener("load",h),r()((()=>{h()}));const f=[];function p(){f.length&&(f.forEach(((t,e)=>{const{instance:n,oldData:i}=t,r=n.$item.getBoundingClientRect(),s={width:r.width,height:r.height,top:r.top,bottom:r.bottom,wndW:o.window.innerWidth,wndH:d},a=!i||i.wndW!==s.wndW||i.wndH!==s.wndH||i.width!==s.width||i.height!==s.height,l=a||!i||i.top!==s.top||i.bottom!==s.bottom;f[e].oldData=s,a&&n.onResize(),l&&n.onScroll()})),o.window.requestAnimationFrame(p))}let m=0;class g{constructor(t,e){const n=this;n.instanceID=m,m+=1,n.$item=t,n.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};const i=n.$item.dataset||{},r={};if(Object.keys(i).forEach((t=>{const e=t.substr(0,1).toLowerCase()+t.substr(1);e&&void 0!==n.defaults[e]&&(r[e]=i[t])})),n.options=n.extend({},n.defaults,r,e),n.pureOptions=n.extend({},n.options),Object.keys(n.options).forEach((t=>{"true"===n.options[t]?n.options[t]=!0:"false"===n.options[t]&&(n.options[t]=!1)})),n.options.speed=Math.min(2,Math.max(-1,parseFloat(n.options.speed))),"string"==typeof n.options.disableParallax&&(n.options.disableParallax=new RegExp(n.options.disableParallax)),n.options.disableParallax instanceof RegExp){const t=n.options.disableParallax;n.options.disableParallax=()=>t.test(s.userAgent)}if("function"!=typeof n.options.disableParallax&&(n.options.disableParallax=()=>!1),"string"==typeof n.options.disableVideo&&(n.options.disableVideo=new RegExp(n.options.disableVideo)),n.options.disableVideo instanceof RegExp){const t=n.options.disableVideo;n.options.disableVideo=()=>t.test(s.userAgent)}"function"!=typeof n.options.disableVideo&&(n.options.disableVideo=()=>!1);let o=n.options.elementInViewport;o&&"object"==typeof o&&void 0!==o.length&&([o]=o),o instanceof Element||(o=null),n.options.elementInViewport=o,n.image={src:n.options.imgSrc||null,$container:null,useImgTag:!1,position:"fixed"},n.initImg()&&n.canInitParallax()&&n.init()}css(t,e){return"string"==typeof e?o.window.getComputedStyle(t).getPropertyValue(e):(e.transform&&u&&(e[u]=e.transform),Object.keys(e).forEach((n=>{t.style[n]=e[n]})),t)}extend(t,...e){return t=t||{},Object.keys(e).forEach((n=>{e[n]&&Object.keys(e[n]).forEach((i=>{t[i]=e[n][i]}))})),t}getWindowData(){return{width:o.window.innerWidth||document.documentElement.clientWidth,height:d,y:document.documentElement.scrollTop}}initImg(){const t=this;let e=t.options.imgElement;return e&&"string"==typeof e&&(e=t.$item.querySelector(e)),e instanceof Element||(t.options.imgSrc?(e=new Image,e.src=t.options.imgSrc):e=null),e&&(t.options.keepImg?t.image.$item=e.cloneNode(!0):(t.image.$item=e,t.image.$itemParent=e.parentNode),t.image.useImgTag=!0),!!t.image.$item||(null===t.image.src&&(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.image.bgImage=t.css(t.$item,"background-image")),!(!t.image.bgImage||"none"===t.image.bgImage))}canInitParallax(){return u&&!this.options.disableParallax()}init(){const t=this,e={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};let n={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};if(!t.options.keepImg){const e=t.$item.getAttribute("style");if(e&&t.$item.setAttribute("data-jarallax-original-styles",e),t.image.useImgTag){const e=t.image.$item.getAttribute("style");e&&t.image.$item.setAttribute("data-jarallax-original-styles",e)}}if("static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,e),t.css(t.image.$container,{"z-index":t.options.zIndex}),a&&t.css(t.image.$container,{opacity:.9999}),t.image.$container.setAttribute("id",`jarallax-container-${t.instanceID}`),t.$item.appendChild(t.image.$container),t.image.useImgTag?n=t.extend({"object-fit":t.options.imgSize,"object-position":t.options.imgPosition,"font-family":`object-fit: ${t.options.imgSize}; object-position: ${t.options.imgPosition};`,"max-width":"none"},e,n):(t.image.$item=document.createElement("div"),t.image.src&&(n=t.extend({"background-position":t.options.imgPosition,"background-size":t.options.imgSize,"background-repeat":t.options.imgRepeat,"background-image":t.image.bgImage||`url("${t.image.src}")`},e,n))),"opacity"!==t.options.type&&"scale"!==t.options.type&&"scale-opacity"!==t.options.type&&1!==t.options.speed||(t.image.position="absolute"),"fixed"===t.image.position){const e=function(t){const e=[];for(;null!==t.parentElement;)1===(t=t.parentElement).nodeType&&e.push(t);return e}(t.$item).filter((t=>{const e=o.window.getComputedStyle(t),n=e["-webkit-transform"]||e["-moz-transform"]||e.transform;return n&&"none"!==n||/(auto|scroll)/.test(e.overflow+e["overflow-y"]+e["overflow-x"])}));t.image.position=e.length?"absolute":"fixed"}n.position=t.image.position,t.css(t.image.$item,n),t.image.$container.appendChild(t.image.$item),t.onResize(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),"none"!==t.css(t.$item,"background-image")&&t.css(t.$item,{"background-image":"none"}),t.addToParallaxList()}addToParallaxList(){f.push({instance:this}),1===f.length&&o.window.requestAnimationFrame(p)}removeFromParallaxList(){const t=this;f.forEach(((e,n)=>{e.instance.instanceID===t.instanceID&&f.splice(n,1)}))}destroy(){const t=this;t.removeFromParallaxList();const e=t.$item.getAttribute("data-jarallax-original-styles");if(t.$item.removeAttribute("data-jarallax-original-styles"),e?t.$item.setAttribute("style",e):t.$item.removeAttribute("style"),t.image.useImgTag){const n=t.image.$item.getAttribute("data-jarallax-original-styles");t.image.$item.removeAttribute("data-jarallax-original-styles"),n?t.image.$item.setAttribute("style",e):t.image.$item.removeAttribute("style"),t.image.$itemParent&&t.image.$itemParent.appendChild(t.image.$item)}t.$clipStyles&&t.$clipStyles.parentNode.removeChild(t.$clipStyles),t.image.$container&&t.image.$container.parentNode.removeChild(t.image.$container),t.options.onDestroy&&t.options.onDestroy.call(t),delete t.$item.jarallax}clipContainer(){if("fixed"!==this.image.position)return;const t=this,e=t.image.$container.getBoundingClientRect(),{width:n,height:i}=e;if(!t.$clipStyles){t.$clipStyles=document.createElement("style"),t.$clipStyles.setAttribute("type","text/css"),t.$clipStyles.setAttribute("id",`jarallax-clip-${t.instanceID}`);(document.head||document.getElementsByTagName("head")[0]).appendChild(t.$clipStyles)}const r=`#jarallax-container-${t.instanceID} {\n            clip: rect(0 ${n}px ${i}px 0);\n            clip: rect(0, ${n}px, ${i}px, 0);\n            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n        }`;t.$clipStyles.styleSheet?t.$clipStyles.styleSheet.cssText=r:t.$clipStyles.innerHTML=r}coverImage(){const t=this,e=t.image.$container.getBoundingClientRect(),n=e.height,{speed:i}=t.options,r="scroll"===t.options.type||"scroll-opacity"===t.options.type;let o=0,s=n,a=0;return r&&(0>i?(o=i*Math.max(n,d),d<n&&(o-=i*(n-d))):o=i*(n+d),1<i?s=Math.abs(o-d):0>i?s=o/i+Math.abs(o):s+=(d-n)*(1-i),o/=2),t.parallaxScrollDistance=o,a=r?(d-s)/2:(n-s)/2,t.css(t.image.$item,{height:`${s}px`,marginTop:`${a}px`,left:"fixed"===t.image.position?`${e.left}px`:"0",width:`${e.width}px`}),t.options.onCoverImage&&t.options.onCoverImage.call(t),{image:{height:s,marginTop:a},container:e}}isVisible(){return this.isElementInViewport||!1}onScroll(t){const e=this,n=e.$item.getBoundingClientRect(),i=n.top,r=n.height,s={};let a=n;if(e.options.elementInViewport&&(a=e.options.elementInViewport.getBoundingClientRect()),e.isElementInViewport=0<=a.bottom&&0<=a.right&&a.top<=d&&a.left<=o.window.innerWidth,!t&&!e.isElementInViewport)return;const l=Math.max(0,i),u=Math.max(0,r+i),c=Math.max(0,-i),h=Math.max(0,i+r-d),f=Math.max(0,r-(i+r-d)),p=Math.max(0,-i+d-r),m=1-(d-i)/(d+r)*2;let g=1;if(r<d?g=1-(c||h)/r:u<=d?g=u/d:f<=d&&(g=f/d),"opacity"!==e.options.type&&"scale-opacity"!==e.options.type&&"scroll-opacity"!==e.options.type||(s.transform="translate3d(0,0,0)",s.opacity=g),"scale"===e.options.type||"scale-opacity"===e.options.type){let t=1;0>e.options.speed?t-=e.options.speed*g:t+=e.options.speed*(1-g),s.transform=`scale(${t}) translate3d(0,0,0)`}if("scroll"===e.options.type||"scroll-opacity"===e.options.type){let t=e.parallaxScrollDistance*m;"absolute"===e.image.position&&(t-=i),s.transform=`translate3d(0,${t}px,0)`}e.css(e.image.$item,s),e.options.onScroll&&e.options.onScroll.call(e,{section:n,beforeTop:l,beforeTopEnd:u,afterTop:c,beforeBottom:h,beforeBottomEnd:f,afterBottom:p,visiblePercent:g,fromViewportCenter:m})}onResize(){this.coverImage(),this.clipContainer()}}const v=function(t,e,...n){("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);const i=t.length;let r,o=0;for(;o<i;o+=1)if("object"==typeof e||void 0===e?t[o].jarallax||(t[o].jarallax=new g(t[o],e)):t[o].jarallax&&(r=t[o].jarallax[e].apply(t[o].jarallax,n)),void 0!==r)return r;return t};v.constructor=g;const y=v},4092:(t,e,n)=>{var i,r,o;!function(s){"use strict";r=[n(9755)],void 0===(o="function"==typeof(i=function(t){var e=-1,n=-1,i=function(t){return parseFloat(t)||0},r=function(e){var n=1,r=t(e),o=null,s=[];return r.each((function(){var e=t(this),r=e.offset().top-i(e.css("margin-top")),a=s.length>0?s[s.length-1]:null;null===a?s.push(e):Math.floor(Math.abs(o-r))<=n?s[s.length-1]=a.add(e):s.push(e),o=r})),s},o=function(e){var n={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(n,e):("boolean"==typeof e?n.byRow=e:"remove"===e&&(n.remove=!0),n)},s=t.fn.matchHeight=function(e){var n=o(e);if(n.remove){var i=this;return this.css(n.property,""),t.each(s._groups,(function(t,e){e.elements=e.elements.not(i)})),this}return this.length<=1&&!n.target||(s._groups.push({elements:this,options:n}),s._apply(this,n)),this};s.version="0.7.2",s._groups=[],s._throttle=80,s._maintainScroll=!1,s._beforeUpdate=null,s._afterUpdate=null,s._rows=r,s._parse=i,s._parseOptions=o,s._apply=function(e,n){var a=o(n),l=t(e),u=[l],c=t(window).scrollTop(),d=t("html").outerHeight(!0),h=l.parents().filter(":hidden");return h.each((function(){var e=t(this);e.data("style-cache",e.attr("style"))})),h.css("display","block"),a.byRow&&!a.target&&(l.each((function(){var e=t(this),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block"),e.data("style-cache",e.attr("style")),e.css({display:n,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})})),u=r(l),l.each((function(){var e=t(this);e.attr("style",e.data("style-cache")||"")}))),t.each(u,(function(e,n){var r=t(n),o=0;if(a.target)o=a.target.outerHeight(!1);else{if(a.byRow&&r.length<=1)return void r.css(a.property,"");r.each((function(){var e=t(this),n=e.attr("style"),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var r={display:i};r[a.property]="",e.css(r),e.outerHeight(!1)>o&&(o=e.outerHeight(!1)),n?e.attr("style",n):e.css("display","")}))}r.each((function(){var e=t(this),n=0;a.target&&e.is(a.target)||("border-box"!==e.css("box-sizing")&&(n+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),n+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(a.property,o-n+"px"))}))})),h.each((function(){var e=t(this);e.attr("style",e.data("style-cache")||null)})),s._maintainScroll&&t(window).scrollTop(c/d*t("html").outerHeight(!0)),this},s._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each((function(){var n=t(this),i=n.attr("data-mh")||n.attr("data-match-height");e[i]=i in e?e[i].add(n):n})),t.each(e,(function(){this.matchHeight(!0)}))};var a=function(e){s._beforeUpdate&&s._beforeUpdate(e,s._groups),t.each(s._groups,(function(){s._apply(this.elements,this.options)})),s._afterUpdate&&s._afterUpdate(e,s._groups)};s._update=function(i,r){if(r&&"resize"===r.type){var o=t(window).width();if(o===e)return;e=o}i?-1===n&&(n=setTimeout((function(){a(r),n=-1}),s._throttle)):a(r)},t(s._applyDataApi);var l=t.fn.on?"on":"bind";t(window)[l]("load",(function(t){s._update(!1,t)})),t(window)[l]("resize orientationchange",(function(t){s._update(!0,t)}))})?i.apply(e,r):i)||(t.exports=o)}()},9755:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},u=o.push,c=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function T(t,e,n){var i,r,o=(n=n||b).createElement("script");if(o.text=t,e)for(i in w)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var S="3.7.0",E=/HTML$/i,x=function(t,e){return new x.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}x.fn=x.prototype={jquery:S,constructor:x,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,s[e]=x.extend(u,o,i)):void 0!==i&&(s[e]=i));return s},x.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=s(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){T(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(k(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r)return t.textContent;if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=x.text(e);return n},makeArray:function(t,e){var n=e||[];return null!=t&&(k(Object(t))?x.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!E.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(k(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var A=o.pop,L=o.sort,I=o.splice,O="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");x.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var P=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function R(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}x.escapeSelector=function(t){return(t+"").replace(P,R)};var M=b,N=u;!function(){var t,e,n,r,s,l,u,d,h,p,m=N,v=x.expando,y=0,b=0,w=tt(),T=tt(),_=tt(),S=tt(),E=function(t,e){return t===e&&(s=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+O+"*("+P+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+O+"*\\]",F=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",$=new RegExp(O+"+","g"),j=new RegExp("^"+O+"*,"+O+"*"),U=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),B=new RegExp(O+"|>"),H=new RegExp(F),V=new RegExp("^"+P+"$"),z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Z=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){lt()},Q=ht((function(t){return!0===t.disabled&&C(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=a.call(M.childNodes),M.childNodes),o[M.childNodes.length].nodeType}catch(t){m={apply:function(t,e){N.apply(t,a.call(e))},call:function(t){N.apply(t,a.call(arguments,1))}}}function J(t,e,n,i){var r,o,s,a,u,c,f,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==y&&(u=G.exec(t)))if(r=u[1]){if(9===y){if(!(s=e.getElementById(r)))return n;if(s.id===r)return m.call(n,s),n}else if(p&&(s=p.getElementById(r))&&J.contains(e,s)&&s.id===r)return m.call(n,s),n}else{if(u[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(S[t+" "]||h&&h.test(t))){if(f=t,p=e,1===y&&(B.test(t)||U.test(t))){for((p=K.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=x.escapeSelector(a):e.setAttribute("id",a=v)),o=(c=ct(t)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+dt(c[o]);f=c.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){S(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(D,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return C(e,"input")&&e.type===t}}function rt(t){return function(e){return(C(e,"input")||C(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Q(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:M;return i!=l&&9===i.nodeType&&i.documentElement?(u=(l=i).documentElement,d=!x.isXMLDoc(l),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),g.getById=nt((function(t){return u.appendChild(t).id=x.expando,!l.getElementsByName||!l.getElementsByName(x.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return l.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(Y,Z);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Y,Z);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;u.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+O+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),E=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==M&&J.contains(M,t)?-1:e===l||e.ownerDocument==M&&J.contains(M,e)?1:r?c.call(r,t)-c.call(r,e):0:4&n?-1:1)},l):l}for(t in J.matches=function(t,e){return J(t,null,null,e)},J.matchesSelector=function(t,e){if(lt(t),d&&!S[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return J(e,l,null,[t]).length>0},J.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),x.contains(t,e)},J.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},J.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},x.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!g.sortStable,r=!g.sortStable&&a.call(t,0),L.call(t,E),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)I.call(t,n[i],1)}return r=null,t},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(a.apply(this)))},e=x.expr={cacheLength:50,createPseudo:et,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Y,Z),t[3]=(t[3]||t[4]||t[5]||"").replace(Y,Z),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||J.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&J.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&H.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Y,Z).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=J.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace($," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p=o!==s?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(m){if(o){for(;p;){for(d=e;d=d[p];)if(a?C(d,g):1===d.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&b){for(w=(h=(u=(c=m[v]||(m[v]={}))[t]||[])[0]===y&&u[1])&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(w=h=0)||f.pop();)if(1===d.nodeType&&++w&&d===e){c[t]=[y,h,w];break}}else if(b&&(w=h=(u=(c=e[v]||(e[v]={}))[t]||[])[0]===y&&u[1]),!1===w)for(;(d=++h&&d&&d[p]||(w=h=0)||f.pop())&&(!(a?C(d,g):1===d.nodeType)||!++w||(b&&((c=d[v]||(d[v]={}))[t]=[y,w]),d!==e)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||J.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,o=r(t,n),s=o.length;s--;)t[i=c.call(t,o[s])]=!(e[i]=o[s])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(D,"$1"));return i[v]?et((function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return J(t,e).length>0}})),contains:et((function(t){return t=t.replace(Y,Z),function(e){return(e.textContent||x.text(e)).indexOf(t)>-1}})),lang:et((function(t){return V.test(t||"")||J.error("unsupported lang: "+t),t=t.replace(Y,Z).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return q.test(t.nodeName)},input:function(t){return W.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:st((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:st((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:st((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ut(){}function ct(t,n){var i,r,o,s,a,l,u,c=T[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=e.preFilter;a;){for(s in i&&!(r=j.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=U.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(D," ")}),a=a.slice(i.length)),e.filter)!(r=z[s].exec(a))||u[s]&&!(r=u[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?J.error(t):T(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var u,c,d=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(c=e[v]||(e[v]={}),r&&C(e,r))e=e[i]||e;else{if((u=c[o])&&u[0]===y&&u[1]===a)return d[2]=u[2];if(c[o]=d,d[2]=t(e,n,l))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),u&&e.push(a)));return s}function mt(t,e,n,i,r,o){return i&&!i[v]&&(i=mt(i)),r&&!r[v]&&(r=mt(r,o)),et((function(o,s,a,l){var u,d,h,f,p=[],g=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)J(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:pt(y,p,t,a,l);if(n?n(b,f=r||(o?t:v||i)?[]:s,a,l):f=b,i)for(u=pt(f,g),i(u,[],a,l),d=u.length;d--;)(h=u[d])&&(f[g[d]]=!(b[g[d]]=h));if(o){if(r||t){if(r){for(u=[],d=f.length;d--;)(h=f[d])&&u.push(b[d]=h);r(null,f=[],u,l)}for(d=f.length;d--;)(h=f[d])&&(u=r?c.call(o,h):p[d])>-1&&(o[u]=!(s[u]=h))}}else f=pt(f===s?f.splice(v,f.length):f),r?r(null,s,f,l):m.apply(s,f)}))}function gt(t){for(var i,r,o,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],u=a?1:0,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return c.call(i,t)>-1}),l,!0),f=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];u<s;u++)if(r=e.relative[t[u].type])f=[ht(ft(f),r)];else{if((r=e.filter[t[u].type].apply(null,t[u].matches))[v]){for(o=++u;o<s&&!e.relative[t[o].type];o++);return mt(u>1&&ft(f),u>1&&dt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(D,"$1"),r,u<o&&gt(t.slice(u,o)),o<s&&gt(t=t.slice(o)),o<s&&dt(t))}f.push(r)}return ft(f)}function vt(t,i){var r,o=[],s=[],a=_[t+" "];if(!a){for(i||(i=ct(t)),r=i.length;r--;)(a=gt(i[r]))[v]?o.push(a):s.push(a);a=_(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,u,c,h){var f,p,g,v=0,b="0",w=s&&[],T=[],_=n,S=s||o&&e.find.TAG("*",h),E=y+=null==_?1:Math.random()||.1,k=S.length;for(h&&(n=a==l||a||h);b!==k&&null!=(f=S[b]);b++){if(o&&f){for(p=0,a||f.ownerDocument==l||(lt(f),u=!d);g=t[p++];)if(g(f,a||l,u)){m.call(c,f);break}h&&(y=E)}r&&((f=!g&&f)&&v--,s&&w.push(f))}if(v+=b,r&&b!==v){for(p=0;g=i[p++];)g(w,T,a,u);if(s){if(v>0)for(;b--;)w[b]||T[b]||(T[b]=A.call(c));T=pt(T)}m.apply(c,T),h&&!s&&T.length>0&&v+i.length>1&&x.uniqueSort(c)}return h&&(y=E,n=_),w};return r?et(s):s}(s,o)),a.selector=t}return a}function yt(t,n,i,r){var o,s,a,l,u,c="function"==typeof t&&t,h=!r&&ct(t=c.selector||t);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&d&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Y,Z),n)||[])[0]))return i;c&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=z.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[l=a.type]);)if((u=e.find[l])&&(r=u(a.matches[0].replace(Y,Z),K.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&dt(s)))return m.apply(i,r),i;break}}return(c||vt(t,h))(r,n,!d,i,!n||K.test(t)&&at(n.parentNode)||n),i}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,g.sortStable=v.split("").sort(E).join("")===v,lt(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),x.find=J,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,J.compile=vt,J.select=yt,J.setDocument=lt,J.escape=x.escapeSelector,J.getText=x.text,J.isXML=x.isXMLDoc,J.selectors=x.expr,J.support=x.support,J.uniqueSort=x.uniqueSort}();var F=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(n))break;i.push(t)}return i},$=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},j=x.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,n){return v(e)?x.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?x.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?x.grep(t,(function(t){return c.call(e,t)>-1!==n})):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<i;e++)if(x.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)x.find(t,r[e],n);return i>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&j.test(t)?x(t):t||[],!1).length}});var H,V=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||H,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:V.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),U.test(i[1])&&x.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,H=x(b);var z=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function q(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&x(t);if(!j.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(x(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return q(t,"nextSibling")},prev:function(t){return q(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return $((t.parentNode||{}).firstChild,t)},children:function(t){return $(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(n,i){var r=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(W[t]||x.uniqueSort(r),z.test(t)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function K(t){return t}function Y(t){throw t}function Z(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(G)||[],(function(t,n){e[n]=!0})),e}(t):x.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){x.each(n,(function(n,i){v(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==_(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return x.each(arguments,(function(t,e){for(var n;(n=x.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(n){x.each(e,(function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var o=0;function s(t,e,n,r){return function(){var a=this,l=arguments,u=function(){var i,u;if(!(t<o)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(u)?r?u.call(i,s(o,e,K,r),s(o,e,Y,r)):(o++,u.call(i,s(o,e,K,r),s(o,e,Y,r),s(o,e,K,e.notifyWith))):(n!==K&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},c=r?u:function(){try{u()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,c.error),t+1>=o&&(n!==Y&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?c():(x.Deferred.getErrorHook?c.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(c.error=x.Deferred.getStackHook()),i.setTimeout(c))}}return x.Deferred((function(i){e[0][3].add(s(0,i,v(r)?r:K,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:K)),e[2][3].add(s(0,i,v(n)?n:Y))})).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(e,(function(t,i){var s=i[2],a=i[5];r[i[1]]=s.add,a&&s.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),o=x.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Z(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)Z(r[n],s(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&X.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){i.setTimeout((function(){throw t}))};var Q=x.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),i.removeEventListener("load",J),x.ready()}x.fn.ready=function(t){return Q.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||Q.resolveWith(b,[x]))}}),x.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(x.ready):(b.addEventListener("DOMContentLoaded",J),i.addEventListener("load",J));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===_(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(x(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=x.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(G)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||x.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var at=new st,lt=new st,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(o,i,r[i]));at.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=dt(o,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),x.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),i=n.length,r=n.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){x.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:x.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each((function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=x.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=at.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=b.documentElement,gt=function(t){return x.contains(t.ownerDocument,t)},vt={composed:!0};mt.getRootNode&&(gt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===x.css(t,"display")};function bt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return x.css(t,e,"")},l=a(),u=n&&n[3]||(x.cssNumber[e]?"":"px"),c=t.nodeType&&(x.cssNumber[e]||"px"!==u&&+l)&&ft.exec(x.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)x.style(t,e,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,x.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var wt={};function Tt(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=x.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function _t(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=at.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[o]=Tt(i))):"none"!==n&&(r[o]="none",at.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}x.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?x(this).show():x(this).hide()}))}});var St,Et,xt=/^(?:checkbox|radio)$/i,kt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;St=b.createDocumentFragment().appendChild(b.createElement("div")),(Et=b.createElement("input")).setAttribute("type","radio"),Et.setAttribute("checked","checked"),Et.setAttribute("name","t"),St.appendChild(Et),g.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",g.option=!!St.lastChild;var At={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Lt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?x.merge([t],n):n}function It(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Dt(t,e,n,i,r){for(var o,s,a,l,u,c,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===_(o))x.merge(h,o.nodeType?[o]:o);else if(Ot.test(o)){for(s=s||d.appendChild(e.createElement("div")),a=(kt.exec(o)||["",""])[1].toLowerCase(),l=At[a]||At._default,s.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;x.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&x.inArray(o,i)>-1)r&&r.push(o);else if(u=gt(o),s=Lt(d.appendChild(o),"script"),u&&It(s),n)for(c=0;o=s[c++];)Ct.test(o.type||"")&&n.push(o);return d}var Pt=/^([^.]*)(?:\.(.+)|)/;function Rt(){return!0}function Mt(){return!1}function Nt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Nt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Mt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return x().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=x.guid++)),t.each((function(){x.event.add(this,e,r,i,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,x.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Rt)}})):void 0===at.get(t,e)&&x.event.add(t,e,Rt)}x.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(mt,r),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(G)||[""]).length;u--;)f=m=(a=Pt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},c=x.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),x.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(G)||[""]).length;u--;)if(f=m=(a=Pt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||x.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[u],n,i,!0);x.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=x.event.fix(t),u=(at.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=x.event.handlers.call(this,l,u),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?x(r,this).index(u)>-1:x.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return xt.test(e.type)&&e.click&&C(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return xt.test(e.type)&&e.click&&C(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return xt.test(e.type)&&e.click&&C(e,"input")&&at.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Rt:Mt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Mt,isPropagationStopped:Mt,isImmediatePropagationStopped:Mt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Rt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Rt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Rt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=x.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else x.event.simulate(e,t.target,x.event.fix(t))}x.event.special[t]={setup:function(){var i;if(Ft(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Ft(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},x.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e);o||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e)-1;o?at.set(r,e,o):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||x.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),x.fn.extend({on:function(t,e,n,i){return Nt(this,t,e,n,i)},one:function(t,e,n,i){return Nt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,x(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Mt),this.each((function(){x.event.remove(this,t,n,e)}))}});var $t=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Vt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)x.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=x.extend({},o),lt.set(e,s))}}function Wt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&xt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function qt(t,e,n,i){e=l(e);var r,o,s,a,u,c,d=0,h=t.length,f=h-1,p=e[0],m=v(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&jt.test(p))return t.each((function(r){var o=t.eq(r);m&&(e[0]=p.call(this,r,o.html())),qt(o,e,n,i)}));if(h&&(o=(r=Dt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=x.map(Lt(r,"script"),Ht)).length;d<h;d++)u=r,d!==f&&(u=x.clone(u,!0,!0),a&&x.merge(s,Lt(u,"script"))),n.call(t[d],u,d);if(a)for(c=s[s.length-1].ownerDocument,x.map(s,Vt),d=0;d<a;d++)u=s[d],Ct.test(u.type||"")&&!at.access(u,"globalEval")&&x.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&!u.noModule&&x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):T(u.textContent.replace(Ut,""),u,c))}return t}function Gt(t,e,n){for(var i,r=e?x.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||x.cleanData(Lt(i)),i.parentNode&&(n&&gt(i)&&It(Lt(i,"script")),i.parentNode.removeChild(i));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(s=Lt(a),i=0,r=(o=Lt(t)).length;i<r;i++)Wt(o[i],s[i]);if(e)if(n)for(o=o||Lt(t),s=s||Lt(a),i=0,r=o.length;i<r;i++)zt(o[i],s[i]);else zt(t,a);return(s=Lt(a,"script")).length>0&&It(s,!l&&Lt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=x.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return qt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return qt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return qt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return qt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(Lt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!$t.test(t)&&!At[(kt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(Lt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return qt(this,arguments,(function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(Lt(this)),n&&n.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var n,i=[],r=x(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),x(r[s])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Kt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Yt=/^--/,Zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Xt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Qt=new RegExp(pt.join("|"),"i");function Jt(t,e,n){var i,r,o,s,a=Yt.test(e),l=t.style;return(n=n||Zt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(D,"$1")||void 0),""!==s||gt(t)||(s=x.style(t,e)),!g.pixelBoxStyles()&&Kt.test(s)&&Qt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(u).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),mt.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(g,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function re(t){var e=x.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=x.css(t,n+pt[s],!0,r)),i?("content"===n&&(l-=x.css(t,"padding"+pt[s],!0,r)),"margin"!==n&&(l-=x.css(t,"border"+pt[s]+"Width",!0,r))):(l+=x.css(t,"padding"+pt[s],!0,r),"padding"!==n?l+=x.css(t,"border"+pt[s]+"Width",!0,r):a+=x.css(t,"border"+pt[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+u}function ce(t,e,n){var i=Zt(t),r=(!g.boxSizingReliable()||n)&&"border-box"===x.css(t,"boxSizing",!1,i),o=r,s=Jt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&C(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===x.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ue(t,e,n||(r?"border":"content"),o,i,s)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Jt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt(e),l=Yt.test(e),u=t.style;if(l||(e=re(a)),s=x.cssHooks[e]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=bt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(x.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,s,a=rt(e);return Yt.test(e)||(e=re(a)),(s=x.cssHooks[e]||x.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Jt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,i):Xt(t,se,(function(){return ce(t,e,i)}))},set:function(t,n,i){var r,o=Zt(t),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===x.css(t,"boxSizing",!1,o),l=i?ue(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),l&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),le(0,n,l)}}})),x.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Jt(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=le)})),x.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Zt(t),r=e.length;s<r;s++)o[e[s]]=x.css(t,e[s],!1,i);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=de.prototype.init,x.fx.step={};var he,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ge):i.setTimeout(ge,x.fx.interval),x.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var i,r=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function we(t,e,n){var i,r,o=0,s=we.prefilters.length,a=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||ve(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(i);return a.notifyWith(t,[u,i,n]),i<1&&s?n:(s||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=x.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=x.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<s;o++)if(i=we.prefilters[o].call(u,t,c,u.opts))return v(i.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return x.map(c,be,u),v(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(G);for(var n,i=0,r=t.length;i<r;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&yt(t),g=at.get(t,"fxshow");for(i in n.queue||(null==(s=x._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,x.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],pe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||x.style(t,i)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=at.get(t,"display")),"none"===(c=x.css(t,"display"))&&(u?c=u:(_t([t],!0),u=t.style.display||u,c=x.css(t,"display"),_t([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===x.css(t,"float")&&(l||(h.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:u}),o&&(g.hidden=!m),m&&_t([t],!0),h.done((function(){for(i in m||_t([t]),at.remove(t,"fxshow"),f)x.style(t,i,f[i])}))),l=be(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),x.speed=function(t,e,n){var i=t&&"object"==typeof t?x.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=x.isEmptyObject(t),o=x.speed(e,n,i),s=function(){var e=we(this,x.extend({},t),o);(r||at.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=x.timers,s=at.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&me.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=x.timers,s=i?i.length:0;for(n.finish=!0,x.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var n=x.fn[e];x.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),x.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),he=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){fe||(fe=!0,ge())},x.fx.stop=function(){fe=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,e){return t=x.fx&&x.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var Te,_e=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return tt(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?Te:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=x.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(G);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),Te={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||x.find.attr;_e[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=_e[s],_e[s]=r,r=null!=n(t,e,i)?s:null,_e[s]=o),r}}));var Se=/^(?:input|select|textarea|button)$/i,Ee=/^(?:a|area)$/i;function xe(t){return(t.match(G)||[]).join(" ")}function ke(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}x.fn.extend({prop:function(t,e){return tt(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,r=x.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Ee.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each((function(e){x(this).addClass(t.call(this,e,ke(this)))})):(e=Ce(t)).length?this.each((function(){if(i=ke(this),n=1===this.nodeType&&" "+xe(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=xe(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(t){var e,n,i,r,o,s;return v(t)?this.each((function(e){x(this).removeClass(t.call(this,e,ke(this)))})):arguments.length?(e=Ce(t)).length?this.each((function(){if(i=ke(this),n=1===this.nodeType&&" "+xe(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=xe(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=typeof t,a="string"===s||Array.isArray(t);return v(t)?this.each((function(n){x(this).toggleClass(t.call(this,n,ke(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each((function(){if(a)for(o=x(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=ke(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+xe(ke(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;x.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ae,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:xe(x.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=x(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=x.makeArray(e),s=r.length;s--;)((i=r[s]).selected=x.inArray(x.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},g.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Le=i.location,Ie={guid:Date.now()},Oe=/\?/;x.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var De=/^(?:focusinfocus|focusoutblur)$/,Pe=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,n,r){var o,s,a,l,u,c,d,h,p=[n||b],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!De.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[x.expando]?t:new x.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:x.makeArray(e,[t]),d=x.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||m,De.test(l+m)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||b)&&p.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?l:d.bindType||m,(c=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&c.apply(s,e),(c=u&&s[u])&&c.apply&&ot(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!ot(n)||u&&v(n[m])&&!y(n)&&((a=n[u])&&(n[u]=null),x.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Pe),n[m](),t.isPropagationStopped()&&h.removeEventListener(m,Pe),x.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}});var Re=/\[\]$/,Me=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function $e(t,e,n,i){var r;if(Array.isArray(e))x.each(e,(function(e,r){n||Re.test(t)?i(t,r):$e(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==_(e))i(t,e);else for(r in e)$e(t+"["+r+"]",e[r],n,i)}x.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){r(this.name,this.value)}));else for(n in t)$e(n,t[n],e,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Fe.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!xt.test(t))})).map((function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(t){return{name:e.name,value:t.replace(Me,"\r\n")}})):{name:e.name,value:n.replace(Me,"\r\n")}})).get()}});var je=/%20/g,Ue=/#.*$/,Be=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:GET|HEAD)$/,ze=/^\/\//,We={},qe={},Ge="*/".concat("*"),Ke=b.createElement("a");function Ye(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(G)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ze(t,e,n,i){var r={},o=t===qe;function s(a){var l;return r[a]=!0,x.each(t[a]||[],(function(t,a){var u=a(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Xe(t,e){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}Ke.href=Le.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Le.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Le.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Xe(Xe(t,x.ajaxSettings),e):Xe(x.ajaxSettings,t)},ajaxPrefilter:Ye(We),ajaxTransport:Ye(qe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,u,c,d,h,f=x.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?x(p):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),y=f.statusCode||{},w={},T={},_="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=He.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=T[t.toLowerCase()]=T[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),E(0,e),this}};if(g.promise(S),f.url=((t||f.url||Le.href)+"").replace(ze,Le.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ke.protocol+"//"+Ke.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Ze(We,f,e,S),u)return S;for(d in(c=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ve.test(f.type),r=f.url.replace(Ue,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(je,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Oe.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Be,"$1"),h=(Oe.test(r)?"&":"?")+"_="+Ie.guid+++h),f.url=r+h),f.ifModified&&(x.lastModified[r]&&S.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&S.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ge+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||u))return S.abort();if(_="abort",v.add(f.complete),S.done(f.success),S.fail(f.error),n=Ze(qe,f,e,S)){if(S.readyState=1,c&&m.trigger("ajaxSend",[S,f]),u)return S;f.async&&f.timeout>0&&(a=i.setTimeout((function(){S.abort("timeout")}),f.timeout));try{u=!1,n.send(w,E)}catch(t){if(u)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,s,l){var d,h,b,w,T,_=e;u||(u=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",S.readyState=t>0?4:0,d=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,S,s)),!d&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,w,S,d),d?(f.ifModified&&((T=S.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=T),(T=S.getResponseHeader("etag"))&&(x.etag[r]=T)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=w.state,h=w.data,d=!(b=w.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),S.status=t,S.statusText=(e||_)+"",d?g.resolveWith(p,[h,_,S]):g.rejectWith(p,[S,_,b]),S.statusCode(y),y=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[S,f,d?h:b]),v.fireWith(p,[S,_]),c&&(m.trigger("ajaxComplete",[S,f]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:n,success:i},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){x(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Qe={0:200,1223:204},Je=x.ajaxSettings.xhr();g.cors=!!Je&&"withCredentials"in Je,g.ajax=Je=!!Je,x.ajaxTransport((function(t){var e,n;if(g.cors||Je&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Qe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||x.expando+"_"+Ie.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(t,e,n){var r,o,s,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||x.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){s=arguments},n.always((function(){void 0===o?x(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),g.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),o=!n&&[],(r=U.exec(t))?[e.createElement(r[1])]:(r=Dt([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=xe(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&x.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?x("<div>").append(x.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,u=x.css(t,"position"),c=x(t),d={};"static"===u&&(t.style.position="relative"),a=c.offset(),o=x.css(t,"top"),l=x.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,x.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):c.css(d)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),r.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-x.css(i,"marginTop",!0),left:e.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||mt}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;x.fn[t]=function(i){return tt(this,(function(t,i,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Jt(t,e),Kt.test(n)?x(t).position()[e]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){x.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return tt(this,(function(e,n,r){var o;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?x.css(e,n,a):x.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||x.guid++,r},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=C,x.isFunction=v,x.isWindow=y,x.camelCase=rt,x.type=_,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return x}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return x.noConflict=function(t){return i.$===x&&(i.$=sn),t&&i.jQuery===x&&(i.jQuery=on),x},void 0===r&&(i.jQuery=i.$=x),x}))},7090:t=>{!function(e,n){var i=function(t,e,n){"use strict";var i,r;if(function(){var e,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in r=t.lazySizesConfig||t.lazysizesConfig||{},n)e in r||(r[e]=n[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=e.documentElement,s=t.HTMLPictureElement,a="addEventListener",l="getAttribute",u=t[a].bind(t),c=t.setTimeout,d=t.requestAnimationFrame||c,h=t.requestIdleCallback,f=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(t,e){return m[e]||(m[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),m[e].test(t[l]("class")||"")&&m[e]},y=function(t,e){v(t,e)||t.setAttribute("class",(t[l]("class")||"").trim()+" "+e)},b=function(t,e){var n;(n=v(t,e))&&t.setAttribute("class",(t[l]("class")||"").replace(n," "))},w=function(t,e,n){var i=n?a:"removeEventListener";n&&w(t,e),p.forEach((function(n){t[i](n,e)}))},T=function(t,n,r,o,s){var a=e.createEvent("Event");return r||(r={}),r.instance=i,a.initEvent(n,!o,!s),a.detail=r,t.dispatchEvent(a),a},_=function(e,n){var i;!s&&(i=t.picturefill||r.pf)?(n&&n.src&&!e[l]("srcset")&&e.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[e]})):n&&n.src&&(e.src=n.src)},S=function(t,e){return(getComputedStyle(t,null)||{})[e]},E=function(t,e,n){for(n=n||t.offsetWidth;n<r.minSize&&e&&!t._lazysizesWidth;)n=e.offsetWidth,e=e.parentNode;return n},x=(yt=[],bt=[],wt=yt,Tt=function(){var t=wt;for(wt=yt.length?bt:yt,gt=!0,vt=!1;t.length;)t.shift()();gt=!1},_t=function(t,n){gt&&!n?t.apply(this,arguments):(wt.push(t),vt||(vt=!0,(e.hidden?c:d)(Tt)))},_t._lsFlush=Tt,_t),k=function(t,e){return e?function(){x(t)}:function(){var e=this,n=arguments;x((function(){t.apply(e,n)}))}},C=function(t){var e,i=0,o=r.throttleDelay,s=r.ricTimeout,a=function(){e=!1,i=n.now(),t()},l=h&&s>49?function(){h(a,{timeout:s}),s!==r.ricTimeout&&(s=r.ricTimeout)}:k((function(){c(a)}),!0);return function(t){var r;(t=!0===t)&&(s=33),e||(e=!0,(r=o-(n.now()-i))<0&&(r=0),t||r<9?l():c(l,r))}},A=function(t){var e,i,r=99,o=function(){e=null,t()},s=function(){var t=n.now()-i;t<r?c(s,r-t):(h||o)(o)};return function(){i=n.now(),e||(e=c(s,r))}},L=(K=/^img$/i,Y=/^iframe$/i,Z="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,Q=0,J=0,tt=-1,et=function(t){J--,(!t||J<0||!t.target)&&(J=0)},nt=function(t){return null==G&&(G="hidden"==S(e.body,"visibility")),G||!("hidden"==S(t.parentNode,"visibility")&&"hidden"==S(t,"visibility"))},it=function(t,n){var i,r=t,s=nt(t);for(V-=n,q+=n,z-=n,W+=n;s&&(r=r.offsetParent)&&r!=e.body&&r!=o;)(s=(S(r,"opacity")||1)>0)&&"visible"!=S(r,"overflow")&&(i=r.getBoundingClientRect(),s=W>i.left&&z<i.right&&q>i.top-1&&V<i.bottom+1);return s},rt=function(){var t,n,s,a,u,c,d,h,f,p,m,g,v=i.elements;if((j=r.loadMode)&&J<8&&(t=v.length)){for(n=0,tt++;n<t;n++)if(v[n]&&!v[n]._lazyRace)if(!Z||i.prematureUnveil&&i.prematureUnveil(v[n]))ht(v[n]);else if((h=v[n][l]("data-expand"))&&(c=1*h)||(c=Q),p||(p=!r.expand||r.expand<1?o.clientHeight>500&&o.clientWidth>500?500:370:r.expand,i._defEx=p,m=p*r.expFactor,g=r.hFac,G=null,Q<m&&J<1&&tt>2&&j>2&&!e.hidden?(Q=m,tt=0):Q=j>1&&tt>1&&J<6?p:X),f!==c&&(B=innerWidth+c*g,H=innerHeight+c,d=-1*c,f=c),s=v[n].getBoundingClientRect(),(q=s.bottom)>=d&&(V=s.top)<=H&&(W=s.right)>=d*g&&(z=s.left)<=B&&(q||W||z||V)&&(r.loadHidden||nt(v[n]))&&(F&&J<3&&!h&&(j<3||tt<4)||it(v[n],c))){if(ht(v[n]),u=!0,J>9)break}else!u&&F&&!a&&J<4&&tt<4&&j>2&&(N[0]||r.preloadAfterLoad)&&(N[0]||!h&&(q||W||z||V||"auto"!=v[n][l](r.sizesAttr)))&&(a=N[0]||v[n]);a&&!u&&ht(a)}},ot=C(rt),st=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(et(t),y(e,r.loadedClass),b(e,r.loadingClass),w(e,lt),T(e,"lazyloaded"))},at=k(st),lt=function(t){at({target:t.target})},ut=function(t,e){var n=t.getAttribute("data-load-mode")||r.iframeLoadMode;0==n?t.contentWindow.location.replace(e):1==n&&(t.src=e)},ct=function(t){var e,n=t[l](r.srcsetAttr);(e=r.customMedia[t[l]("data-media")||t[l]("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},dt=k((function(t,e,n,i,o){var s,a,u,d,h,p;(h=T(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?y(t,r.autosizesClass):t.setAttribute("sizes",i)),a=t[l](r.srcsetAttr),s=t[l](r.srcAttr),o&&(d=(u=t.parentNode)&&f.test(u.nodeName||"")),p=e.firesLoad||"src"in t&&(a||s||d),h={target:t},y(t,r.loadingClass),p&&(clearTimeout($),$=c(et,2500),w(t,lt,!0)),d&&g.call(u.getElementsByTagName("source"),ct),a?t.setAttribute("srcset",a):s&&!d&&(Y.test(t.nodeName)?ut(t,s):t.src=s),o&&(a||d)&&_(t,{src:s})),t._lazyRace&&delete t._lazyRace,b(t,r.lazyClass),x((function(){var e=t.complete&&t.naturalWidth>1;p&&!e||(e&&y(t,r.fastLoadedClass),st(h),t._lazyCache=!0,c((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&J--}),!0)})),ht=function(t){if(!t._lazyRace){var e,n=K.test(t.nodeName),i=n&&(t[l](r.sizesAttr)||t[l]("sizes")),o="auto"==i;(!o&&F||!n||!t[l]("src")&&!t.srcset||t.complete||v(t,r.errorClass)||!v(t,r.lazyClass))&&(e=T(t,"lazyunveilread").detail,o&&I.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,J++,dt(t,e,o,i,n))}},ft=A((function(){r.loadMode=3,ot()})),pt=function(){3==r.loadMode&&(r.loadMode=2),ft()},mt=function(){F||(n.now()-U<999?c(mt,999):(F=!0,r.loadMode=3,ot(),u("scroll",pt,!0)))},{_:function(){U=n.now(),i.elements=e.getElementsByClassName(r.lazyClass),N=e.getElementsByClassName(r.lazyClass+" "+r.preloadClass),u("scroll",ot,!0),u("resize",ot,!0),u("pageshow",(function(t){if(t.persisted){var n=e.querySelectorAll("."+r.loadingClass);n.length&&n.forEach&&d((function(){n.forEach((function(t){t.complete&&ht(t)}))}))}})),t.MutationObserver?new MutationObserver(ot).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o[a]("DOMNodeInserted",ot,!0),o[a]("DOMAttrModified",ot,!0),setInterval(ot,999)),u("hashchange",ot,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[a](t,ot,!0)})),/d$|^c/.test(e.readyState)?mt():(u("load",mt),e[a]("DOMContentLoaded",ot),c(mt,2e4)),i.elements.length?(rt(),x._lsFlush()):ot()},checkElems:ot,unveil:ht,_aLSL:pt}),I=(P=k((function(t,e,n,i){var r,o,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),f.test(e.nodeName||""))for(o=0,s=(r=e.getElementsByTagName("source")).length;o<s;o++)r[o].setAttribute("sizes",i);n.detail.dataAttr||_(t,n.detail)})),R=function(t,e,n){var i,r=t.parentNode;r&&(n=E(t,r,n),(i=T(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=i.detail.width)&&n!==t._lazysizesWidth&&P(t,r,i,n))},M=A((function(){var t,e=D.length;if(e)for(t=0;t<e;t++)R(D[t])})),{_:function(){D=e.getElementsByClassName(r.autosizesClass),u("resize",M)},checkElems:M,updateElem:R}),O=function(){!O.i&&e.getElementsByClassName&&(O.i=!0,I._(),L._())};var D,P,R,M;var N,F,$,j,U,B,H,V,z,W,q,G,K,Y,Z,X,Q,J,tt,et,nt,it,rt,ot,st,at,lt,ut,ct,dt,ht,ft,pt,mt;var gt,vt,yt,bt,wt,Tt,_t;return c((function(){r.init&&O()})),i={cfg:r,autoSizer:I,loader:L,init:O,uP:_,aC:y,rC:b,hC:v,fire:T,gW:E,rAF:x}}(e,e.document,Date);e.lazySizes=i,t.exports&&(t.exports=i)}("undefined"!=typeof window?window:{})},7:t=>{t.exports=function(t){"complete"===document.readyState||"interactive"===document.readyState?t.call():document.attachEvent?document.attachEvent("onreadystatechange",(function(){"interactive"===document.readyState&&t.call()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}},1296:(t,e,n)=>{var i=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=c||d||Function("return this")(),f=Object.prototype.toString,p=Math.max,m=Math.min,g=function(){return h.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&f.call(t)==r}(t))return i;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):s.test(t)?i:+t}t.exports=function(t,e,n){var i,r,o,s,a,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=i,o=r;return i=r=void 0,u=e,s=t.apply(o,n)}function b(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-u>=o}function w(){var t=g();if(b(t))return T(t);a=setTimeout(w,function(t){var n=e-(t-l);return d?m(n,o-(t-u)):n}(t))}function T(t){return a=void 0,h&&i?f(t):(i=r=void 0,s)}function _(){var t=g(),n=b(t);if(i=arguments,r=this,l=t,n){if(void 0===a)return function(t){return u=t,a=setTimeout(w,e),c?f(t):s}(l);if(d)return a=setTimeout(w,e),f(l)}return void 0===a&&(a=setTimeout(w,e)),s}return e=y(e)||0,v(n)&&(c=!!n.leading,o=(d="maxWait"in n)?p(y(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),_.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=r=a=void 0},_.flush=function(){return void 0===a?s:T(g())},_}},6486:function(t,e,n){var i;t=n.nmd(t),function(){var r,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,u=32,c=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",h]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",T="[object Date]",_="[object Error]",S="[object Function]",E="[object GeneratorFunction]",x="[object Map]",k="[object Number]",C="[object Object]",A="[object Promise]",L="[object RegExp]",I="[object Set]",O="[object String]",D="[object Symbol]",P="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",N="[object Float32Array]",F="[object Float64Array]",$="[object Int8Array]",j="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",H="[object Uint8ClampedArray]",V="[object Uint16Array]",z="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,Z=RegExp(K.source),X=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(rt.source),st=/^\s+/,at=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,Tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,St=/['\n\r\u2028\u2029\\]/g,Et="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",Ct="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",It="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ot="['’]",Dt="["+Et+"]",Pt="["+It+"]",Rt="["+xt+"]",Mt="\\d+",Nt="["+kt+"]",Ft="["+Ct+"]",$t="[^"+Et+It+Mt+kt+Ct+At+"]",jt="\\ud83c[\\udffb-\\udfff]",Ut="[^"+Et+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Vt="["+At+"]",zt="\\u200d",Wt="(?:"+Ft+"|"+$t+")",qt="(?:"+Vt+"|"+$t+")",Gt="(?:['’](?:d|ll|m|re|s|t|ve))?",Kt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yt="(?:"+Rt+"|"+jt+")"+"?",Zt="["+Lt+"]?",Xt=Zt+Yt+("(?:"+zt+"(?:"+[Ut,Bt,Ht].join("|")+")"+Zt+Yt+")*"),Qt="(?:"+[Nt,Bt,Ht].join("|")+")"+Xt,Jt="(?:"+[Ut+Rt+"?",Rt,Bt,Ht,Dt].join("|")+")",te=RegExp(Ot,"g"),ee=RegExp(Rt,"g"),ne=RegExp(jt+"(?="+jt+")|"+Jt+Xt,"g"),ie=RegExp([Vt+"?"+Ft+"+"+Gt+"(?="+[Pt,Vt,"$"].join("|")+")",qt+"+"+Kt+"(?="+[Pt,Vt+Wt,"$"].join("|")+")",Vt+"?"+Wt+"+"+Gt,Vt+"+"+Kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mt,Qt].join("|"),"g"),re=RegExp("["+zt+Et+xt+Lt+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ae=-1,le={};le[N]=le[F]=le[$]=le[j]=le[U]=le[B]=le[H]=le[V]=le[z]=!0,le[y]=le[b]=le[R]=le[w]=le[M]=le[T]=le[_]=le[S]=le[x]=le[k]=le[C]=le[L]=le[I]=le[O]=le[P]=!1;var ue={};ue[y]=ue[b]=ue[R]=ue[M]=ue[w]=ue[T]=ue[N]=ue[F]=ue[$]=ue[j]=ue[U]=ue[x]=ue[k]=ue[C]=ue[L]=ue[I]=ue[O]=ue[D]=ue[B]=ue[H]=ue[V]=ue[z]=!0,ue[_]=ue[S]=ue[P]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},de=parseFloat,he=parseInt,fe="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,me=fe||pe||Function("return this")(),ge=e&&!e.nodeType&&e,ve=ge&&t&&!t.nodeType&&t,ye=ve&&ve.exports===ge,be=ye&&fe.process,we=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||be&&be.binding&&be.binding("util")}catch(t){}}(),Te=we&&we.isArrayBuffer,_e=we&&we.isDate,Se=we&&we.isMap,Ee=we&&we.isRegExp,xe=we&&we.isSet,ke=we&&we.isTypedArray;function Ce(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),t)}return i}function Le(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Ie(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Oe(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function De(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function Pe(t,e){return!!(null==t?0:t.length)&&Ve(t,e,0)>-1}function Re(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Me(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Ne(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Fe(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function $e(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function je(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Ue=Ge("length");function Be(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function He(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Ve(t,e,n){return e==e?function(t,e,n){var i=n-1,r=t.length;for(;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):He(t,We,n)}function ze(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function We(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?Ze(t,e)/n:m}function Ge(t){return function(e){return null==e?r:e[t]}}function Ke(t){return function(e){return null==t?r:t[e]}}function Ye(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function Ze(t,e){for(var n,i=-1,o=t.length;++i<o;){var s=e(t[i]);s!==r&&(n=n===r?s:n+s)}return n}function Xe(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Qe(t){return t?t.slice(0,gn(t)+1).replace(st,""):t}function Je(t){return function(e){return t(e)}}function tn(t,e){return Me(e,(function(e){return t[e]}))}function en(t,e){return t.has(e)}function nn(t,e){for(var n=-1,i=t.length;++n<i&&Ve(e,t[n],0)>-1;);return n}function rn(t,e){for(var n=t.length;n--&&Ve(e,t[n],0)>-1;);return n}var on=Ke({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),sn=Ke({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(t){return"\\"+ce[t]}function ln(t){return re.test(t)}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function cn(t,e){return function(n){return t(e(n))}}function dn(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[r++]=n)}return o}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function pn(t){return ln(t)?function(t){var e=ne.lastIndex=0;for(;ne.test(t);)++e;return e}(t):Ue(t)}function mn(t){return ln(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function gn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var vn=Ke({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function t(e){var n,i=(e=null==e?me:yn.defaults(me.Object(),e,yn.pick(me,se))).Array,at=e.Date,Et=e.Error,xt=e.Function,kt=e.Math,Ct=e.Object,At=e.RegExp,Lt=e.String,It=e.TypeError,Ot=i.prototype,Dt=xt.prototype,Pt=Ct.prototype,Rt=e["__core-js_shared__"],Mt=Dt.toString,Nt=Pt.hasOwnProperty,Ft=0,$t=(n=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",jt=Pt.toString,Ut=Mt.call(Ct),Bt=me._,Ht=At("^"+Mt.call(Nt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=ye?e.Buffer:r,zt=e.Symbol,Wt=e.Uint8Array,qt=Vt?Vt.allocUnsafe:r,Gt=cn(Ct.getPrototypeOf,Ct),Kt=Ct.create,Yt=Pt.propertyIsEnumerable,Zt=Ot.splice,Xt=zt?zt.isConcatSpreadable:r,Qt=zt?zt.iterator:r,Jt=zt?zt.toStringTag:r,ne=function(){try{var t=fo(Ct,"defineProperty");return t({},"",{}),t}catch(t){}}(),re=e.clearTimeout!==me.clearTimeout&&e.clearTimeout,ce=at&&at.now!==me.Date.now&&at.now,fe=e.setTimeout!==me.setTimeout&&e.setTimeout,pe=kt.ceil,ge=kt.floor,ve=Ct.getOwnPropertySymbols,be=Vt?Vt.isBuffer:r,we=e.isFinite,Ue=Ot.join,Ke=cn(Ct.keys,Ct),bn=kt.max,wn=kt.min,Tn=at.now,_n=e.parseInt,Sn=kt.random,En=Ot.reverse,xn=fo(e,"DataView"),kn=fo(e,"Map"),Cn=fo(e,"Promise"),An=fo(e,"Set"),Ln=fo(e,"WeakMap"),In=fo(Ct,"create"),On=Ln&&new Ln,Dn={},Pn=jo(xn),Rn=jo(kn),Mn=jo(Cn),Nn=jo(An),Fn=jo(Ln),$n=zt?zt.prototype:r,jn=$n?$n.valueOf:r,Un=$n?$n.toString:r;function Bn(t){if(na(t)&&!Ws(t)&&!(t instanceof Wn)){if(t instanceof zn)return t;if(Nt.call(t,"__wrapped__"))return Uo(t)}return new zn(t)}var Hn=function(){function t(){}return function(e){if(!ea(e))return{};if(Kt)return Kt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Vn(){}function zn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Kn;++e<n;)this.add(t[e])}function Zn(t){var e=this.__data__=new Gn(t);this.size=e.size}function Xn(t,e){var n=Ws(t),i=!n&&zs(t),r=!n&&!i&&Ys(t),o=!n&&!i&&!r&&ca(t),s=n||i||r||o,a=s?Xe(t.length,Lt):[],l=a.length;for(var u in t)!e&&!Nt.call(t,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wo(u,l))||a.push(u);return a}function Qn(t){var e=t.length;return e?t[Yi(0,e-1)]:r}function Jn(t,e){return No(Ir(t),li(e,0,t.length))}function ti(t){return No(Ir(t))}function ei(t,e,n){(n!==r&&!Bs(t[e],n)||n===r&&!(e in t))&&si(t,e,n)}function ni(t,e,n){var i=t[e];Nt.call(t,e)&&Bs(i,n)&&(n!==r||e in t)||si(t,e,n)}function ii(t,e){for(var n=t.length;n--;)if(Bs(t[n][0],e))return n;return-1}function ri(t,e,n,i){return fi(t,(function(t,r,o){e(i,t,n(t),o)})),i}function oi(t,e){return t&&Or(e,Da(e),t)}function si(t,e,n){"__proto__"==e&&ne?ne(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ai(t,e){for(var n=-1,o=e.length,s=i(o),a=null==t;++n<o;)s[n]=a?r:Ca(t,e[n]);return s}function li(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function ui(t,e,n,i,o,s){var a,l=1&e,u=2&e,c=4&e;if(n&&(a=o?n(t,i,o,s):n(t)),a!==r)return a;if(!ea(t))return t;var d=Ws(t);if(d){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Nt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Ir(t,a)}else{var h=go(t),f=h==S||h==E;if(Ys(t))return Er(t,l);if(h==C||h==y||f&&!o){if(a=u||f?{}:yo(t),!l)return u?function(t,e){return Or(t,mo(t),e)}(t,function(t,e){return t&&Or(e,Pa(e),t)}(a,t)):function(t,e){return Or(t,po(t),e)}(t,oi(a,t))}else{if(!ue[h])return o?t:{};a=function(t,e,n){var i=t.constructor;switch(e){case R:return xr(t);case w:case T:return new i(+t);case M:return function(t,e){var n=e?xr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case F:case $:case j:case U:case B:case H:case V:case z:return kr(t,n);case x:return new i;case k:case O:return new i(t);case L:return function(t){var e=new t.constructor(t.source,mt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case I:return new i;case D:return r=t,jn?Ct(jn.call(r)):{}}var r}(t,h,l)}}s||(s=new Zn);var p=s.get(t);if(p)return p;s.set(t,a),aa(t)?t.forEach((function(i){a.add(ui(i,e,n,i,t,s))})):ia(t)&&t.forEach((function(i,r){a.set(r,ui(i,e,n,r,t,s))}));var m=d?r:(c?u?oo:ro:u?Pa:Da)(t);return Le(m||t,(function(i,r){m&&(i=t[r=i]),ni(a,r,ui(i,e,n,r,t,s))})),a}function ci(t,e,n){var i=n.length;if(null==t)return!i;for(t=Ct(t);i--;){var o=n[i],s=e[o],a=t[o];if(a===r&&!(o in t)||!s(a))return!1}return!0}function di(t,e,n){if("function"!=typeof t)throw new It(o);return Do((function(){t.apply(r,n)}),e)}function hi(t,e,n,i){var r=-1,o=Pe,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;n&&(e=Me(e,Je(n))),i?(o=Re,s=!1):e.length>=200&&(o=en,s=!1,e=new Yn(e));t:for(;++r<a;){var c=t[r],d=null==n?c:n(c);if(c=i||0!==c?c:0,s&&d==d){for(var h=u;h--;)if(e[h]===d)continue t;l.push(c)}else o(e,d,i)||l.push(c)}return l}Bn.templateSettings={escape:Q,evaluate:J,interpolate:tt,variable:"",imports:{_:Bn}},Bn.prototype=Vn.prototype,Bn.prototype.constructor=Bn,zn.prototype=Hn(Vn.prototype),zn.prototype.constructor=zn,Wn.prototype=Hn(Vn.prototype),Wn.prototype.constructor=Wn,qn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},qn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qn.prototype.get=function(t){var e=this.__data__;if(In){var n=e[t];return n===s?r:n}return Nt.call(e,t)?e[t]:r},qn.prototype.has=function(t){var e=this.__data__;return In?e[t]!==r:Nt.call(e,t)},qn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===r?s:e,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=ii(e,t);return!(n<0)&&(n==e.length-1?e.pop():Zt.call(e,n,1),--this.size,!0)},Gn.prototype.get=function(t){var e=this.__data__,n=ii(e,t);return n<0?r:e[n][1]},Gn.prototype.has=function(t){return ii(this.__data__,t)>-1},Gn.prototype.set=function(t,e){var n=this.__data__,i=ii(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(kn||Gn),string:new qn}},Kn.prototype.delete=function(t){var e=co(this,t).delete(t);return this.size-=e?1:0,e},Kn.prototype.get=function(t){return co(this,t).get(t)},Kn.prototype.has=function(t){return co(this,t).has(t)},Kn.prototype.set=function(t,e){var n=co(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Yn.prototype.add=Yn.prototype.push=function(t){return this.__data__.set(t,s),this},Yn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Zn.prototype.get=function(t){return this.__data__.get(t)},Zn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!kn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Kn(i)}return n.set(t,e),this.size=n.size,this};var fi=Rr(Ti),pi=Rr(_i,!0);function mi(t,e){var n=!0;return fi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function gi(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(l===r?a==a&&!ua(a):n(a,l)))var l=a,u=s}return u}function vi(t,e){var n=[];return fi(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function yi(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=bo),r||(r=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?yi(a,e-1,n,i,r):Ne(r,a):i||(r[r.length]=a)}return r}var bi=Mr(),wi=Mr(!0);function Ti(t,e){return t&&bi(t,e,Da)}function _i(t,e){return t&&wi(t,e,Da)}function Si(t,e){return De(e,(function(e){return Qs(t[e])}))}function Ei(t,e){for(var n=0,i=(e=wr(e,t)).length;null!=t&&n<i;)t=t[$o(e[n++])];return n&&n==i?t:r}function xi(t,e,n){var i=e(t);return Ws(t)?i:Ne(i,n(t))}function ki(t){return null==t?t===r?"[object Undefined]":"[object Null]":Jt&&Jt in Ct(t)?function(t){var e=Nt.call(t,Jt),n=t[Jt];try{t[Jt]=r;var i=!0}catch(t){}var o=jt.call(t);i&&(e?t[Jt]=n:delete t[Jt]);return o}(t):function(t){return jt.call(t)}(t)}function Ci(t,e){return t>e}function Ai(t,e){return null!=t&&Nt.call(t,e)}function Li(t,e){return null!=t&&e in Ct(t)}function Ii(t,e,n){for(var o=n?Re:Pe,s=t[0].length,a=t.length,l=a,u=i(a),c=1/0,d=[];l--;){var h=t[l];l&&e&&(h=Me(h,Je(e))),c=wn(h.length,c),u[l]=!n&&(e||s>=120&&h.length>=120)?new Yn(l&&h):r}h=t[0];var f=-1,p=u[0];t:for(;++f<s&&d.length<c;){var m=h[f],g=e?e(m):m;if(m=n||0!==m?m:0,!(p?en(p,g):o(d,g,n))){for(l=a;--l;){var v=u[l];if(!(v?en(v,g):o(t[l],g,n)))continue t}p&&p.push(g),d.push(m)}}return d}function Oi(t,e,n){var i=null==(t=Lo(t,e=wr(e,t)))?t:t[$o(Xo(e))];return null==i?r:Ce(i,t,n)}function Di(t){return na(t)&&ki(t)==y}function Pi(t,e,n,i,o){return t===e||(null==t||null==e||!na(t)&&!na(e)?t!=t&&e!=e:function(t,e,n,i,o,s){var a=Ws(t),l=Ws(e),u=a?b:go(t),c=l?b:go(e),d=(u=u==y?C:u)==C,h=(c=c==y?C:c)==C,f=u==c;if(f&&Ys(t)){if(!Ys(e))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Zn),a||ca(t)?no(t,e,n,i,o,s):function(t,e,n,i,r,o,s){switch(n){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case R:return!(t.byteLength!=e.byteLength||!o(new Wt(t),new Wt(e)));case w:case T:case k:return Bs(+t,+e);case _:return t.name==e.name&&t.message==e.message;case L:case O:return t==e+"";case x:var a=un;case I:var l=1&i;if(a||(a=hn),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;i|=2,s.set(t,e);var c=no(a(t),a(e),i,r,o,s);return s.delete(t),c;case D:if(jn)return jn.call(t)==jn.call(e)}return!1}(t,e,u,n,i,o,s);if(!(1&n)){var p=d&&Nt.call(t,"__wrapped__"),m=h&&Nt.call(e,"__wrapped__");if(p||m){var g=p?t.value():t,v=m?e.value():e;return s||(s=new Zn),o(g,v,n,i,s)}}if(!f)return!1;return s||(s=new Zn),function(t,e,n,i,o,s){var a=1&n,l=ro(t),u=l.length,c=ro(e),d=c.length;if(u!=d&&!a)return!1;var h=u;for(;h--;){var f=l[h];if(!(a?f in e:Nt.call(e,f)))return!1}var p=s.get(t),m=s.get(e);if(p&&m)return p==e&&m==t;var g=!0;s.set(t,e),s.set(e,t);var v=a;for(;++h<u;){var y=t[f=l[h]],b=e[f];if(i)var w=a?i(b,y,f,e,t,s):i(y,b,f,t,e,s);if(!(w===r?y===b||o(y,b,n,i,s):w)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var T=t.constructor,_=e.constructor;T==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof T&&T instanceof T&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(t),s.delete(e),g}(t,e,n,i,o,s)}(t,e,n,i,Pi,o))}function Ri(t,e,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;for(t=Ct(t);o--;){var l=n[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var u=(l=n[o])[0],c=t[u],d=l[1];if(a&&l[2]){if(c===r&&!(u in t))return!1}else{var h=new Zn;if(i)var f=i(c,d,u,t,e,h);if(!(f===r?Pi(d,c,3,i,h):f))return!1}}return!0}function Mi(t){return!(!ea(t)||(e=t,$t&&$t in e))&&(Qs(t)?Ht:yt).test(jo(t));var e}function Ni(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Ws(t)?Hi(t[0],t[1]):Bi(t):fl(t)}function Fi(t){if(!xo(t))return Ke(t);var e=[];for(var n in Ct(t))Nt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function $i(t){if(!ea(t))return function(t){var e=[];if(null!=t)for(var n in Ct(t))e.push(n);return e}(t);var e=xo(t),n=[];for(var i in t)("constructor"!=i||!e&&Nt.call(t,i))&&n.push(i);return n}function ji(t,e){return t<e}function Ui(t,e){var n=-1,r=Gs(t)?i(t.length):[];return fi(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function Bi(t){var e=ho(t);return 1==e.length&&e[0][2]?Co(e[0][0],e[0][1]):function(n){return n===t||Ri(n,t,e)}}function Hi(t,e){return _o(t)&&ko(e)?Co($o(t),e):function(n){var i=Ca(n,t);return i===r&&i===e?Aa(n,t):Pi(e,i,3)}}function Vi(t,e,n,i,o){t!==e&&bi(e,(function(s,a){if(o||(o=new Zn),ea(s))!function(t,e,n,i,o,s,a){var l=Io(t,n),u=Io(e,n),c=a.get(u);if(c)return void ei(t,n,c);var d=s?s(l,u,n+"",t,e,a):r,h=d===r;if(h){var f=Ws(u),p=!f&&Ys(u),m=!f&&!p&&ca(u);d=u,f||p||m?Ws(l)?d=l:Ks(l)?d=Ir(l):p?(h=!1,d=Er(u,!0)):m?(h=!1,d=kr(u,!0)):d=[]:oa(u)||zs(u)?(d=l,zs(l)?d=ya(l):ea(l)&&!Qs(l)||(d=yo(u))):h=!1}h&&(a.set(u,d),o(d,u,i,s,a),a.delete(u));ei(t,n,d)}(t,e,a,n,Vi,i,o);else{var l=i?i(Io(t,a),s,a+"",t,e,o):r;l===r&&(l=s),ei(t,a,l)}}),Pa)}function zi(t,e){var n=t.length;if(n)return wo(e+=e<0?n:0,n)?t[e]:r}function Wi(t,e,n){e=e.length?Me(e,(function(t){return Ws(t)?function(e){return Ei(e,1===t.length?t[0]:t)}:t})):[rl];var i=-1;e=Me(e,Je(uo()));var r=Ui(t,(function(t,n,r){var o=Me(e,(function(e){return e(t)}));return{criteria:o,index:++i,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(r,(function(t,e){return function(t,e,n){var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;for(;++i<s;){var l=Cr(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}function qi(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=Ei(t,s);n(a,s)&&tr(o,wr(s,t),a)}return o}function Gi(t,e,n,i){var r=i?ze:Ve,o=-1,s=e.length,a=t;for(t===e&&(e=Ir(e)),n&&(a=Me(t,Je(n)));++o<s;)for(var l=0,u=e[o],c=n?n(u):u;(l=r(a,c,l,i))>-1;)a!==t&&Zt.call(a,l,1),Zt.call(t,l,1);return t}function Ki(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;wo(r)?Zt.call(t,r,1):hr(t,r)}}return t}function Yi(t,e){return t+ge(Sn()*(e-t+1))}function Zi(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Xi(t,e){return Po(Ao(t,e,rl),t+"")}function Qi(t){return Qn(Ba(t))}function Ji(t,e){var n=Ba(t);return No(n,li(e,0,n.length))}function tr(t,e,n,i){if(!ea(t))return t;for(var o=-1,s=(e=wr(e,t)).length,a=s-1,l=t;null!=l&&++o<s;){var u=$o(e[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=a){var d=l[u];(c=i?i(d,u,l):r)===r&&(c=ea(d)?d:wo(e[o+1])?[]:{})}ni(l,u,c),l=l[u]}return t}var er=On?function(t,e){return On.set(t,e),t}:rl,nr=ne?function(t,e){return ne(t,"toString",{configurable:!0,enumerable:!1,value:el(e),writable:!0})}:rl;function ir(t){return No(Ba(t))}function rr(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=i(o);++r<o;)s[r]=t[r+e];return s}function or(t,e){var n;return fi(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function sr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=t[o];null!==s&&!ua(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return ar(t,e,rl,n)}function ar(t,e,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,l=null===e,u=ua(e),c=e===r;o<s;){var d=ge((o+s)/2),h=n(t[d]),f=h!==r,p=null===h,m=h==h,g=ua(h);if(a)var v=i||m;else v=c?m&&(i||f):l?m&&f&&(i||!p):u?m&&f&&!p&&(i||!g):!p&&!g&&(i?h<=e:h<e);v?o=d+1:s=d}return wn(s,4294967294)}function lr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!Bs(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function ur(t){return"number"==typeof t?t:ua(t)?m:+t}function cr(t){if("string"==typeof t)return t;if(Ws(t))return Me(t,cr)+"";if(ua(t))return Un?Un.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function dr(t,e,n){var i=-1,r=Pe,o=t.length,s=!0,a=[],l=a;if(n)s=!1,r=Re;else if(o>=200){var u=e?null:Zr(t);if(u)return hn(u);s=!1,r=en,l=new Yn}else l=e?[]:a;t:for(;++i<o;){var c=t[i],d=e?e(c):c;if(c=n||0!==c?c:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;e&&l.push(d),a.push(c)}else r(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function hr(t,e){return null==(t=Lo(t,e=wr(e,t)))||delete t[$o(Xo(e))]}function fr(t,e,n,i){return tr(t,e,n(Ei(t,e)),i)}function pr(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?rr(t,i?0:o,i?o+1:r):rr(t,i?o+1:0,i?r:o)}function mr(t,e){var n=t;return n instanceof Wn&&(n=n.value()),Fe(e,(function(t,e){return e.func.apply(e.thisArg,Ne([t],e.args))}),n)}function gr(t,e,n){var r=t.length;if(r<2)return r?dr(t[0]):[];for(var o=-1,s=i(r);++o<r;)for(var a=t[o],l=-1;++l<r;)l!=o&&(s[o]=hi(s[o]||a,t[l],e,n));return dr(yi(s,1),e,n)}function vr(t,e,n){for(var i=-1,o=t.length,s=e.length,a={};++i<o;){var l=i<s?e[i]:r;n(a,t[i],l)}return a}function yr(t){return Ks(t)?t:[]}function br(t){return"function"==typeof t?t:rl}function wr(t,e){return Ws(t)?t:_o(t,e)?[t]:Fo(ba(t))}var Tr=Xi;function _r(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:rr(t,e,n)}var Sr=re||function(t){return me.clearTimeout(t)};function Er(t,e){if(e)return t.slice();var n=t.length,i=qt?qt(n):new t.constructor(n);return t.copy(i),i}function xr(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function kr(t,e){var n=e?xr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Cr(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,s=ua(t),a=e!==r,l=null===e,u=e==e,c=ua(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&t<e||c&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!u)return-1}return 0}function Ar(t,e,n,r){for(var o=-1,s=t.length,a=n.length,l=-1,u=e.length,c=bn(s-a,0),d=i(u+c),h=!r;++l<u;)d[l]=e[l];for(;++o<a;)(h||o<s)&&(d[n[o]]=t[o]);for(;c--;)d[l++]=t[o++];return d}function Lr(t,e,n,r){for(var o=-1,s=t.length,a=-1,l=n.length,u=-1,c=e.length,d=bn(s-l,0),h=i(d+c),f=!r;++o<d;)h[o]=t[o];for(var p=o;++u<c;)h[p+u]=e[u];for(;++a<l;)(f||o<s)&&(h[p+n[a]]=t[o++]);return h}function Ir(t,e){var n=-1,r=t.length;for(e||(e=i(r));++n<r;)e[n]=t[n];return e}function Or(t,e,n,i){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var l=e[s],u=i?i(n[l],t[l],l,n,t):r;u===r&&(u=t[l]),o?si(n,l,u):ni(n,l,u)}return n}function Dr(t,e){return function(n,i){var r=Ws(n)?Ae:ri,o=e?e():{};return r(n,t,uo(i,2),o)}}function Pr(t){return Xi((function(e,n){var i=-1,o=n.length,s=o>1?n[o-1]:r,a=o>2?n[2]:r;for(s=t.length>3&&"function"==typeof s?(o--,s):r,a&&To(n[0],n[1],a)&&(s=o<3?r:s,o=1),e=Ct(e);++i<o;){var l=n[i];l&&t(e,l,i,s)}return e}))}function Rr(t,e){return function(n,i){if(null==n)return n;if(!Gs(n))return t(n,i);for(var r=n.length,o=e?r:-1,s=Ct(n);(e?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function Mr(t){return function(e,n,i){for(var r=-1,o=Ct(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}}function Nr(t){return function(e){var n=ln(e=ba(e))?mn(e):r,i=n?n[0]:e.charAt(0),o=n?_r(n,1).join(""):e.slice(1);return i[t]()+o}}function Fr(t){return function(e){return Fe(Qa(za(e).replace(te,"")),t,"")}}function $r(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Hn(t.prototype),i=t.apply(n,e);return ea(i)?i:n}}function jr(t){return function(e,n,i){var o=Ct(e);if(!Gs(e)){var s=uo(n,3);e=Da(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,i);return a>-1?o[s?e[a]:a]:r}}function Ur(t){return io((function(e){var n=e.length,i=n,s=zn.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new It(o);if(s&&!l&&"wrapper"==ao(a))var l=new zn([],!0)}for(i=l?i:n;++i<n;){var u=ao(a=e[i]),c="wrapper"==u?so(a):r;l=c&&So(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ao(c[0])].apply(l,c[3]):1==a.length&&So(a)?l[u]():l.thru(a)}return function(){var t=arguments,i=t[0];if(l&&1==t.length&&Ws(i))return l.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}}))}function Br(t,e,n,o,s,a,l,u,c,h){var f=e&d,p=1&e,m=2&e,g=24&e,v=512&e,y=m?r:$r(t);return function d(){for(var b=arguments.length,w=i(b),T=b;T--;)w[T]=arguments[T];if(g)var _=lo(d),S=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(w,_);if(o&&(w=Ar(w,o,s,g)),a&&(w=Lr(w,a,l,g)),b-=S,g&&b<h){var E=dn(w,_);return Kr(t,e,Br,d.placeholder,n,w,E,u,c,h-b)}var x=p?n:this,k=m?x[t]:t;return b=w.length,u?w=function(t,e){var n=t.length,i=wn(e.length,n),o=Ir(t);for(;i--;){var s=e[i];t[i]=wo(s,n)?o[s]:r}return t}(w,u):v&&b>1&&w.reverse(),f&&c<b&&(w.length=c),this&&this!==me&&this instanceof d&&(k=y||$r(k)),k.apply(x,w)}}function Hr(t,e){return function(n,i){return function(t,e,n,i){return Ti(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function Vr(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=cr(n),i=cr(i)):(n=ur(n),i=ur(i)),o=t(n,i)}return o}}function zr(t){return io((function(e){return e=Me(e,Je(uo())),Xi((function(n){var i=this;return t(e,(function(t){return Ce(t,i,n)}))}))}))}function Wr(t,e){var n=(e=e===r?" ":cr(e)).length;if(n<2)return n?Zi(e,t):e;var i=Zi(e,pe(t/pn(e)));return ln(e)?_r(mn(i),0,t).join(""):i.slice(0,t)}function qr(t){return function(e,n,o){return o&&"number"!=typeof o&&To(e,n,o)&&(n=o=r),e=pa(e),n===r?(n=e,e=0):n=pa(n),function(t,e,n,r){for(var o=-1,s=bn(pe((e-t)/(n||1)),0),a=i(s);s--;)a[r?s:++o]=t,t+=n;return a}(e,n,o=o===r?e<n?1:-1:pa(o),t)}}function Gr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=va(e),n=va(n)),t(e,n)}}function Kr(t,e,n,i,o,s,a,l,d,h){var f=8&e;e|=f?u:c,4&(e&=~(f?c:u))||(e&=-4);var p=[t,e,o,f?s:r,f?a:r,f?r:s,f?r:a,l,d,h],m=n.apply(r,p);return So(t)&&Oo(m,p),m.placeholder=i,Ro(m,t,e)}function Yr(t){var e=kt[t];return function(t,n){if(t=va(t),(n=null==n?0:wn(ma(n),292))&&we(t)){var i=(ba(t)+"e").split("e");return+((i=(ba(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Zr=An&&1/hn(new An([,-0]))[1]==f?function(t){return new An(t)}:ul;function Xr(t){return function(e){var n=go(e);return n==x?un(e):n==I?fn(e):function(t,e){return Me(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Qr(t,e,n,s,f,p,m,g){var v=2&e;if(!v&&"function"!=typeof t)throw new It(o);var y=s?s.length:0;if(y||(e&=-97,s=f=r),m=m===r?m:bn(ma(m),0),g=g===r?g:ma(g),y-=f?f.length:0,e&c){var b=s,w=f;s=f=r}var T=v?r:so(t),_=[t,e,n,s,f,b,w,p,m,g];if(T&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,s=i==d&&8==n||i==d&&n==h&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var l=e[3];if(l){var u=t[3];t[3]=u?Ar(u,l,e[4]):l,t[4]=u?dn(t[3],a):e[4]}(l=e[5])&&(u=t[5],t[5]=u?Lr(u,l,e[6]):l,t[6]=u?dn(t[5],a):e[6]);(l=e[7])&&(t[7]=l);i&d&&(t[8]=null==t[8]?e[8]:wn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=r}(_,T),t=_[0],e=_[1],n=_[2],s=_[3],f=_[4],!(g=_[9]=_[9]===r?v?0:t.length:bn(_[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||e==l?function(t,e,n){var o=$r(t);return function s(){for(var a=arguments.length,l=i(a),u=a,c=lo(s);u--;)l[u]=arguments[u];var d=a<3&&l[0]!==c&&l[a-1]!==c?[]:dn(l,c);return(a-=d.length)<n?Kr(t,e,Br,s.placeholder,r,l,d,r,r,n-a):Ce(this&&this!==me&&this instanceof s?o:t,this,l)}}(t,e,g):e!=u&&33!=e||f.length?Br.apply(r,_):function(t,e,n,r){var o=1&e,s=$r(t);return function e(){for(var a=-1,l=arguments.length,u=-1,c=r.length,d=i(c+l),h=this&&this!==me&&this instanceof e?s:t;++u<c;)d[u]=r[u];for(;l--;)d[u++]=arguments[++a];return Ce(h,o?n:this,d)}}(t,e,n,s);else var S=function(t,e,n){var i=1&e,r=$r(t);return function e(){return(this&&this!==me&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n);return Ro((T?er:Oo)(S,_),t,e)}function Jr(t,e,n,i){return t===r||Bs(t,Pt[n])&&!Nt.call(i,n)?e:t}function to(t,e,n,i,o,s){return ea(t)&&ea(e)&&(s.set(e,t),Vi(t,e,r,to,s),s.delete(e)),t}function eo(t){return oa(t)?r:t}function no(t,e,n,i,o,s){var a=1&n,l=t.length,u=e.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(t),d=s.get(e);if(c&&d)return c==e&&d==t;var h=-1,f=!0,p=2&n?new Yn:r;for(s.set(t,e),s.set(e,t);++h<l;){var m=t[h],g=e[h];if(i)var v=a?i(g,m,h,e,t,s):i(m,g,h,t,e,s);if(v!==r){if(v)continue;f=!1;break}if(p){if(!je(e,(function(t,e){if(!en(p,e)&&(m===t||o(m,t,n,i,s)))return p.push(e)}))){f=!1;break}}else if(m!==g&&!o(m,g,n,i,s)){f=!1;break}}return s.delete(t),s.delete(e),f}function io(t){return Po(Ao(t,r,qo),t+"")}function ro(t){return xi(t,Da,po)}function oo(t){return xi(t,Pa,mo)}var so=On?function(t){return On.get(t)}:ul;function ao(t){for(var e=t.name+"",n=Dn[e],i=Nt.call(Dn,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function lo(t){return(Nt.call(Bn,"placeholder")?Bn:t).placeholder}function uo(){var t=Bn.iteratee||ol;return t=t===ol?Ni:t,arguments.length?t(arguments[0],arguments[1]):t}function co(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function ho(t){for(var e=Da(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,ko(r)]}return e}function fo(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Mi(n)?n:r}var po=ve?function(t){return null==t?[]:(t=Ct(t),De(ve(t),(function(e){return Yt.call(t,e)})))}:gl,mo=ve?function(t){for(var e=[];t;)Ne(e,po(t)),t=Gt(t);return e}:gl,go=ki;function vo(t,e,n){for(var i=-1,r=(e=wr(e,t)).length,o=!1;++i<r;){var s=$o(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&ta(r)&&wo(s,r)&&(Ws(t)||zs(t))}function yo(t){return"function"!=typeof t.constructor||xo(t)?{}:Hn(Gt(t))}function bo(t){return Ws(t)||zs(t)||!!(Xt&&t&&t[Xt])}function wo(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&wt.test(t))&&t>-1&&t%1==0&&t<e}function To(t,e,n){if(!ea(n))return!1;var i=typeof e;return!!("number"==i?Gs(n)&&wo(e,n.length):"string"==i&&e in n)&&Bs(n[e],t)}function _o(t,e){if(Ws(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ua(t))||(nt.test(t)||!et.test(t)||null!=e&&t in Ct(e))}function So(t){var e=ao(t),n=Bn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var i=so(n);return!!i&&t===i[0]}(xn&&go(new xn(new ArrayBuffer(1)))!=M||kn&&go(new kn)!=x||Cn&&go(Cn.resolve())!=A||An&&go(new An)!=I||Ln&&go(new Ln)!=P)&&(go=function(t){var e=ki(t),n=e==C?t.constructor:r,i=n?jo(n):"";if(i)switch(i){case Pn:return M;case Rn:return x;case Mn:return A;case Nn:return I;case Fn:return P}return e});var Eo=Rt?Qs:vl;function xo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pt)}function ko(t){return t==t&&!ea(t)}function Co(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==r||t in Ct(n)))}}function Ao(t,e,n){return e=bn(e===r?t.length-1:e,0),function(){for(var r=arguments,o=-1,s=bn(r.length-e,0),a=i(s);++o<s;)a[o]=r[e+o];o=-1;for(var l=i(e+1);++o<e;)l[o]=r[o];return l[e]=n(a),Ce(t,this,l)}}function Lo(t,e){return e.length<2?t:Ei(t,rr(e,0,-1))}function Io(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Oo=Mo(er),Do=fe||function(t,e){return me.setTimeout(t,e)},Po=Mo(nr);function Ro(t,e,n){var i=e+"";return Po(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Le(v,(function(n){var i="_."+n[0];e&n[1]&&!Pe(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(i),n)))}function Mo(t){var e=0,n=0;return function(){var i=Tn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function No(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var s=Yi(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var Fo=function(t){var e=Ms(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(it,(function(t,n,i,r){e.push(i?r.replace(ft,"$1"):n||t)})),e}));function $o(t){if("string"==typeof t||ua(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function jo(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Uo(t){if(t instanceof Wn)return t.clone();var e=new zn(t.__wrapped__,t.__chain__);return e.__actions__=Ir(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Bo=Xi((function(t,e){return Ks(t)?hi(t,yi(e,1,Ks,!0)):[]})),Ho=Xi((function(t,e){var n=Xo(e);return Ks(n)&&(n=r),Ks(t)?hi(t,yi(e,1,Ks,!0),uo(n,2)):[]})),Vo=Xi((function(t,e){var n=Xo(e);return Ks(n)&&(n=r),Ks(t)?hi(t,yi(e,1,Ks,!0),r,n):[]}));function zo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ma(n);return r<0&&(r=bn(i+r,0)),He(t,uo(e,3),r)}function Wo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=ma(n),o=n<0?bn(i+o,0):wn(o,i-1)),He(t,uo(e,3),o,!0)}function qo(t){return(null==t?0:t.length)?yi(t,1):[]}function Go(t){return t&&t.length?t[0]:r}var Ko=Xi((function(t){var e=Me(t,yr);return e.length&&e[0]===t[0]?Ii(e):[]})),Yo=Xi((function(t){var e=Xo(t),n=Me(t,yr);return e===Xo(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Ii(n,uo(e,2)):[]})),Zo=Xi((function(t){var e=Xo(t),n=Me(t,yr);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Ii(n,r,e):[]}));function Xo(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Qo=Xi(Jo);function Jo(t,e){return t&&t.length&&e&&e.length?Gi(t,e):t}var ts=io((function(t,e){var n=null==t?0:t.length,i=ai(t,e);return Ki(t,Me(e,(function(t){return wo(t,n)?+t:t})).sort(Cr)),i}));function es(t){return null==t?t:En.call(t)}var ns=Xi((function(t){return dr(yi(t,1,Ks,!0))})),is=Xi((function(t){var e=Xo(t);return Ks(e)&&(e=r),dr(yi(t,1,Ks,!0),uo(e,2))})),rs=Xi((function(t){var e=Xo(t);return e="function"==typeof e?e:r,dr(yi(t,1,Ks,!0),r,e)}));function os(t){if(!t||!t.length)return[];var e=0;return t=De(t,(function(t){if(Ks(t))return e=bn(t.length,e),!0})),Xe(e,(function(e){return Me(t,Ge(e))}))}function ss(t,e){if(!t||!t.length)return[];var n=os(t);return null==e?n:Me(n,(function(t){return Ce(e,r,t)}))}var as=Xi((function(t,e){return Ks(t)?hi(t,e):[]})),ls=Xi((function(t){return gr(De(t,Ks))})),us=Xi((function(t){var e=Xo(t);return Ks(e)&&(e=r),gr(De(t,Ks),uo(e,2))})),cs=Xi((function(t){var e=Xo(t);return e="function"==typeof e?e:r,gr(De(t,Ks),r,e)})),ds=Xi(os);var hs=Xi((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ss(t,n)}));function fs(t){var e=Bn(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var ms=io((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return ai(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Wn&&wo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:r}),new zn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)}));var gs=Dr((function(t,e,n){Nt.call(t,n)?++t[n]:si(t,n,1)}));var vs=jr(zo),ys=jr(Wo);function bs(t,e){return(Ws(t)?Le:fi)(t,uo(e,3))}function ws(t,e){return(Ws(t)?Ie:pi)(t,uo(e,3))}var Ts=Dr((function(t,e,n){Nt.call(t,n)?t[n].push(e):si(t,n,[e])}));var _s=Xi((function(t,e,n){var r=-1,o="function"==typeof e,s=Gs(t)?i(t.length):[];return fi(t,(function(t){s[++r]=o?Ce(e,t,n):Oi(t,e,n)})),s})),Ss=Dr((function(t,e,n){si(t,n,e)}));function Es(t,e){return(Ws(t)?Me:Ui)(t,uo(e,3))}var xs=Dr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ks=Xi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&To(t,e[0],e[1])?e=[]:n>2&&To(e[0],e[1],e[2])&&(e=[e[0]]),Wi(t,yi(e,1),[])})),Cs=ce||function(){return me.Date.now()};function As(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Qr(t,d,r,r,r,r,e)}function Ls(t,e){var n;if("function"!=typeof e)throw new It(o);return t=ma(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Is=Xi((function(t,e,n){var i=1;if(n.length){var r=dn(n,lo(Is));i|=u}return Qr(t,i,e,n,r)})),Os=Xi((function(t,e,n){var i=3;if(n.length){var r=dn(n,lo(Os));i|=u}return Qr(e,i,t,n,r)}));function Ds(t,e,n){var i,s,a,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof t)throw new It(o);function m(e){var n=i,o=s;return i=s=r,d=e,l=t.apply(o,n)}function g(t){var n=t-c;return c===r||n>=e||n<0||f&&t-d>=a}function v(){var t=Cs();if(g(t))return y(t);u=Do(v,function(t){var n=e-(t-c);return f?wn(n,a-(t-d)):n}(t))}function y(t){return u=r,p&&i?m(t):(i=s=r,l)}function b(){var t=Cs(),n=g(t);if(i=arguments,s=this,c=t,n){if(u===r)return function(t){return d=t,u=Do(v,e),h?m(t):l}(c);if(f)return Sr(u),u=Do(v,e),m(c)}return u===r&&(u=Do(v,e)),l}return e=va(e)||0,ea(n)&&(h=!!n.leading,a=(f="maxWait"in n)?bn(va(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==r&&Sr(u),d=0,i=c=s=u=r},b.flush=function(){return u===r?l:y(Cs())},b}var Ps=Xi((function(t,e){return di(t,1,e)})),Rs=Xi((function(t,e,n){return di(t,va(e)||0,n)}));function Ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new It(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Ms.Cache||Kn),n}function Ns(t){if("function"!=typeof t)throw new It(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ms.Cache=Kn;var Fs=Tr((function(t,e){var n=(e=1==e.length&&Ws(e[0])?Me(e[0],Je(uo())):Me(yi(e,1),Je(uo()))).length;return Xi((function(i){for(var r=-1,o=wn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return Ce(t,this,i)}))})),$s=Xi((function(t,e){var n=dn(e,lo($s));return Qr(t,u,r,e,n)})),js=Xi((function(t,e){var n=dn(e,lo(js));return Qr(t,c,r,e,n)})),Us=io((function(t,e){return Qr(t,h,r,r,r,e)}));function Bs(t,e){return t===e||t!=t&&e!=e}var Hs=Gr(Ci),Vs=Gr((function(t,e){return t>=e})),zs=Di(function(){return arguments}())?Di:function(t){return na(t)&&Nt.call(t,"callee")&&!Yt.call(t,"callee")},Ws=i.isArray,qs=Te?Je(Te):function(t){return na(t)&&ki(t)==R};function Gs(t){return null!=t&&ta(t.length)&&!Qs(t)}function Ks(t){return na(t)&&Gs(t)}var Ys=be||vl,Zs=_e?Je(_e):function(t){return na(t)&&ki(t)==T};function Xs(t){if(!na(t))return!1;var e=ki(t);return e==_||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!oa(t)}function Qs(t){if(!ea(t))return!1;var e=ki(t);return e==S||e==E||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==ma(t)}function ta(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function ea(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function na(t){return null!=t&&"object"==typeof t}var ia=Se?Je(Se):function(t){return na(t)&&go(t)==x};function ra(t){return"number"==typeof t||na(t)&&ki(t)==k}function oa(t){if(!na(t)||ki(t)!=C)return!1;var e=Gt(t);if(null===e)return!0;var n=Nt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Mt.call(n)==Ut}var sa=Ee?Je(Ee):function(t){return na(t)&&ki(t)==L};var aa=xe?Je(xe):function(t){return na(t)&&go(t)==I};function la(t){return"string"==typeof t||!Ws(t)&&na(t)&&ki(t)==O}function ua(t){return"symbol"==typeof t||na(t)&&ki(t)==D}var ca=ke?Je(ke):function(t){return na(t)&&ta(t.length)&&!!le[ki(t)]};var da=Gr(ji),ha=Gr((function(t,e){return t<=e}));function fa(t){if(!t)return[];if(Gs(t))return la(t)?mn(t):Ir(t);if(Qt&&t[Qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Qt]());var e=go(t);return(e==x?un:e==I?hn:Ba)(t)}function pa(t){return t?(t=va(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ma(t){var e=pa(t),n=e%1;return e==e?n?e-n:e:0}function ga(t){return t?li(ma(t),0,g):0}function va(t){if("number"==typeof t)return t;if(ua(t))return m;if(ea(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ea(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Qe(t);var n=vt.test(t);return n||bt.test(t)?he(t.slice(2),n?2:8):gt.test(t)?m:+t}function ya(t){return Or(t,Pa(t))}function ba(t){return null==t?"":cr(t)}var wa=Pr((function(t,e){if(xo(e)||Gs(e))Or(e,Da(e),t);else for(var n in e)Nt.call(e,n)&&ni(t,n,e[n])})),Ta=Pr((function(t,e){Or(e,Pa(e),t)})),_a=Pr((function(t,e,n,i){Or(e,Pa(e),t,i)})),Sa=Pr((function(t,e,n,i){Or(e,Da(e),t,i)})),Ea=io(ai);var xa=Xi((function(t,e){t=Ct(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&To(e[0],e[1],o)&&(i=1);++n<i;)for(var s=e[n],a=Pa(s),l=-1,u=a.length;++l<u;){var c=a[l],d=t[c];(d===r||Bs(d,Pt[c])&&!Nt.call(t,c))&&(t[c]=s[c])}return t})),ka=Xi((function(t){return t.push(r,to),Ce(Ma,r,t)}));function Ca(t,e,n){var i=null==t?r:Ei(t,e);return i===r?n:i}function Aa(t,e){return null!=t&&vo(t,e,Li)}var La=Hr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=jt.call(e)),t[e]=n}),el(rl)),Ia=Hr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=jt.call(e)),Nt.call(t,e)?t[e].push(n):t[e]=[n]}),uo),Oa=Xi(Oi);function Da(t){return Gs(t)?Xn(t):Fi(t)}function Pa(t){return Gs(t)?Xn(t,!0):$i(t)}var Ra=Pr((function(t,e,n){Vi(t,e,n)})),Ma=Pr((function(t,e,n,i){Vi(t,e,n,i)})),Na=io((function(t,e){var n={};if(null==t)return n;var i=!1;e=Me(e,(function(e){return e=wr(e,t),i||(i=e.length>1),e})),Or(t,oo(t),n),i&&(n=ui(n,7,eo));for(var r=e.length;r--;)hr(n,e[r]);return n}));var Fa=io((function(t,e){return null==t?{}:function(t,e){return qi(t,e,(function(e,n){return Aa(t,n)}))}(t,e)}));function $a(t,e){if(null==t)return{};var n=Me(oo(t),(function(t){return[t]}));return e=uo(e),qi(t,n,(function(t,n){return e(t,n[0])}))}var ja=Xr(Da),Ua=Xr(Pa);function Ba(t){return null==t?[]:tn(t,Da(t))}var Ha=Fr((function(t,e,n){return e=e.toLowerCase(),t+(n?Va(e):e)}));function Va(t){return Xa(ba(t).toLowerCase())}function za(t){return(t=ba(t))&&t.replace(Tt,on).replace(ee,"")}var Wa=Fr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qa=Fr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ga=Nr("toLowerCase");var Ka=Fr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ya=Fr((function(t,e,n){return t+(n?" ":"")+Xa(e)}));var Za=Fr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Xa=Nr("toUpperCase");function Qa(t,e,n){return t=ba(t),(e=n?r:e)===r?function(t){return oe.test(t)}(t)?function(t){return t.match(ie)||[]}(t):function(t){return t.match(dt)||[]}(t):t.match(e)||[]}var Ja=Xi((function(t,e){try{return Ce(t,r,e)}catch(t){return Xs(t)?t:new Et(t)}})),tl=io((function(t,e){return Le(e,(function(e){e=$o(e),si(t,e,Is(t[e],t))})),t}));function el(t){return function(){return t}}var nl=Ur(),il=Ur(!0);function rl(t){return t}function ol(t){return Ni("function"==typeof t?t:ui(t,1))}var sl=Xi((function(t,e){return function(n){return Oi(n,t,e)}})),al=Xi((function(t,e){return function(n){return Oi(t,n,e)}}));function ll(t,e,n){var i=Da(e),r=Si(e,i);null!=n||ea(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=Si(e,Da(e)));var o=!(ea(n)&&"chain"in n&&!n.chain),s=Qs(t);return Le(r,(function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ir(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Ne([this.value()],arguments))})})),t}function ul(){}var cl=zr(Me),dl=zr(Oe),hl=zr(je);function fl(t){return _o(t)?Ge($o(t)):function(t){return function(e){return Ei(e,t)}}(t)}var pl=qr(),ml=qr(!0);function gl(){return[]}function vl(){return!1}var yl=Vr((function(t,e){return t+e}),0),bl=Yr("ceil"),wl=Vr((function(t,e){return t/e}),1),Tl=Yr("floor");var _l,Sl=Vr((function(t,e){return t*e}),1),El=Yr("round"),xl=Vr((function(t,e){return t-e}),0);return Bn.after=function(t,e){if("function"!=typeof e)throw new It(o);return t=ma(t),function(){if(--t<1)return e.apply(this,arguments)}},Bn.ary=As,Bn.assign=wa,Bn.assignIn=Ta,Bn.assignInWith=_a,Bn.assignWith=Sa,Bn.at=Ea,Bn.before=Ls,Bn.bind=Is,Bn.bindAll=tl,Bn.bindKey=Os,Bn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ws(t)?t:[t]},Bn.chain=fs,Bn.chunk=function(t,e,n){e=(n?To(t,e,n):e===r)?1:bn(ma(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=i(pe(o/e));s<o;)l[a++]=rr(t,s,s+=e);return l},Bn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},Bn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Ne(Ws(n)?Ir(n):[n],yi(e,1))},Bn.cond=function(t){var e=null==t?0:t.length,n=uo();return t=e?Me(t,(function(t){if("function"!=typeof t[1])throw new It(o);return[n(t[0]),t[1]]})):[],Xi((function(n){for(var i=-1;++i<e;){var r=t[i];if(Ce(r[0],this,n))return Ce(r[1],this,n)}}))},Bn.conforms=function(t){return function(t){var e=Da(t);return function(n){return ci(n,t,e)}}(ui(t,1))},Bn.constant=el,Bn.countBy=gs,Bn.create=function(t,e){var n=Hn(t);return null==e?n:oi(n,e)},Bn.curry=function t(e,n,i){var o=Qr(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},Bn.curryRight=function t(e,n,i){var o=Qr(e,l,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},Bn.debounce=Ds,Bn.defaults=xa,Bn.defaultsDeep=ka,Bn.defer=Ps,Bn.delay=Rs,Bn.difference=Bo,Bn.differenceBy=Ho,Bn.differenceWith=Vo,Bn.drop=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,(e=n||e===r?1:ma(e))<0?0:e,i):[]},Bn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,0,(e=i-(e=n||e===r?1:ma(e)))<0?0:e):[]},Bn.dropRightWhile=function(t,e){return t&&t.length?pr(t,uo(e,3),!0,!0):[]},Bn.dropWhile=function(t,e){return t&&t.length?pr(t,uo(e,3),!0):[]},Bn.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&To(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=ma(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:ma(i))<0&&(i+=o),i=n>i?0:ga(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},Bn.filter=function(t,e){return(Ws(t)?De:vi)(t,uo(e,3))},Bn.flatMap=function(t,e){return yi(Es(t,e),1)},Bn.flatMapDeep=function(t,e){return yi(Es(t,e),f)},Bn.flatMapDepth=function(t,e,n){return n=n===r?1:ma(n),yi(Es(t,e),n)},Bn.flatten=qo,Bn.flattenDeep=function(t){return(null==t?0:t.length)?yi(t,f):[]},Bn.flattenDepth=function(t,e){return(null==t?0:t.length)?yi(t,e=e===r?1:ma(e)):[]},Bn.flip=function(t){return Qr(t,512)},Bn.flow=nl,Bn.flowRight=il,Bn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},Bn.functions=function(t){return null==t?[]:Si(t,Da(t))},Bn.functionsIn=function(t){return null==t?[]:Si(t,Pa(t))},Bn.groupBy=Ts,Bn.initial=function(t){return(null==t?0:t.length)?rr(t,0,-1):[]},Bn.intersection=Ko,Bn.intersectionBy=Yo,Bn.intersectionWith=Zo,Bn.invert=La,Bn.invertBy=Ia,Bn.invokeMap=_s,Bn.iteratee=ol,Bn.keyBy=Ss,Bn.keys=Da,Bn.keysIn=Pa,Bn.map=Es,Bn.mapKeys=function(t,e){var n={};return e=uo(e,3),Ti(t,(function(t,i,r){si(n,e(t,i,r),t)})),n},Bn.mapValues=function(t,e){var n={};return e=uo(e,3),Ti(t,(function(t,i,r){si(n,i,e(t,i,r))})),n},Bn.matches=function(t){return Bi(ui(t,1))},Bn.matchesProperty=function(t,e){return Hi(t,ui(e,1))},Bn.memoize=Ms,Bn.merge=Ra,Bn.mergeWith=Ma,Bn.method=sl,Bn.methodOf=al,Bn.mixin=ll,Bn.negate=Ns,Bn.nthArg=function(t){return t=ma(t),Xi((function(e){return zi(e,t)}))},Bn.omit=Na,Bn.omitBy=function(t,e){return $a(t,Ns(uo(e)))},Bn.once=function(t){return Ls(2,t)},Bn.orderBy=function(t,e,n,i){return null==t?[]:(Ws(e)||(e=null==e?[]:[e]),Ws(n=i?r:n)||(n=null==n?[]:[n]),Wi(t,e,n))},Bn.over=cl,Bn.overArgs=Fs,Bn.overEvery=dl,Bn.overSome=hl,Bn.partial=$s,Bn.partialRight=js,Bn.partition=xs,Bn.pick=Fa,Bn.pickBy=$a,Bn.property=fl,Bn.propertyOf=function(t){return function(e){return null==t?r:Ei(t,e)}},Bn.pull=Qo,Bn.pullAll=Jo,Bn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Gi(t,e,uo(n,2)):t},Bn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Gi(t,e,r,n):t},Bn.pullAt=ts,Bn.range=pl,Bn.rangeRight=ml,Bn.rearg=Us,Bn.reject=function(t,e){return(Ws(t)?De:vi)(t,Ns(uo(e,3)))},Bn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=uo(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return Ki(t,r),n},Bn.rest=function(t,e){if("function"!=typeof t)throw new It(o);return Xi(t,e=e===r?e:ma(e))},Bn.reverse=es,Bn.sampleSize=function(t,e,n){return e=(n?To(t,e,n):e===r)?1:ma(e),(Ws(t)?Jn:Ji)(t,e)},Bn.set=function(t,e,n){return null==t?t:tr(t,e,n)},Bn.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:tr(t,e,n,i)},Bn.shuffle=function(t){return(Ws(t)?ti:ir)(t)},Bn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&To(t,e,n)?(e=0,n=i):(e=null==e?0:ma(e),n=n===r?i:ma(n)),rr(t,e,n)):[]},Bn.sortBy=ks,Bn.sortedUniq=function(t){return t&&t.length?lr(t):[]},Bn.sortedUniqBy=function(t,e){return t&&t.length?lr(t,uo(e,2)):[]},Bn.split=function(t,e,n){return n&&"number"!=typeof n&&To(t,e,n)&&(e=n=r),(n=n===r?g:n>>>0)?(t=ba(t))&&("string"==typeof e||null!=e&&!sa(e))&&!(e=cr(e))&&ln(t)?_r(mn(t),0,n):t.split(e,n):[]},Bn.spread=function(t,e){if("function"!=typeof t)throw new It(o);return e=null==e?0:bn(ma(e),0),Xi((function(n){var i=n[e],r=_r(n,0,e);return i&&Ne(r,i),Ce(t,this,r)}))},Bn.tail=function(t){var e=null==t?0:t.length;return e?rr(t,1,e):[]},Bn.take=function(t,e,n){return t&&t.length?rr(t,0,(e=n||e===r?1:ma(e))<0?0:e):[]},Bn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,(e=i-(e=n||e===r?1:ma(e)))<0?0:e,i):[]},Bn.takeRightWhile=function(t,e){return t&&t.length?pr(t,uo(e,3),!1,!0):[]},Bn.takeWhile=function(t,e){return t&&t.length?pr(t,uo(e,3)):[]},Bn.tap=function(t,e){return e(t),t},Bn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new It(o);return ea(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ds(t,e,{leading:i,maxWait:e,trailing:r})},Bn.thru=ps,Bn.toArray=fa,Bn.toPairs=ja,Bn.toPairsIn=Ua,Bn.toPath=function(t){return Ws(t)?Me(t,$o):ua(t)?[t]:Ir(Fo(ba(t)))},Bn.toPlainObject=ya,Bn.transform=function(t,e,n){var i=Ws(t),r=i||Ys(t)||ca(t);if(e=uo(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:ea(t)&&Qs(o)?Hn(Gt(t)):{}}return(r?Le:Ti)(t,(function(t,i,r){return e(n,t,i,r)})),n},Bn.unary=function(t){return As(t,1)},Bn.union=ns,Bn.unionBy=is,Bn.unionWith=rs,Bn.uniq=function(t){return t&&t.length?dr(t):[]},Bn.uniqBy=function(t,e){return t&&t.length?dr(t,uo(e,2)):[]},Bn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?dr(t,r,e):[]},Bn.unset=function(t,e){return null==t||hr(t,e)},Bn.unzip=os,Bn.unzipWith=ss,Bn.update=function(t,e,n){return null==t?t:fr(t,e,br(n))},Bn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:fr(t,e,br(n),i)},Bn.values=Ba,Bn.valuesIn=function(t){return null==t?[]:tn(t,Pa(t))},Bn.without=as,Bn.words=Qa,Bn.wrap=function(t,e){return $s(br(e),t)},Bn.xor=ls,Bn.xorBy=us,Bn.xorWith=cs,Bn.zip=ds,Bn.zipObject=function(t,e){return vr(t||[],e||[],ni)},Bn.zipObjectDeep=function(t,e){return vr(t||[],e||[],tr)},Bn.zipWith=hs,Bn.entries=ja,Bn.entriesIn=Ua,Bn.extend=Ta,Bn.extendWith=_a,ll(Bn,Bn),Bn.add=yl,Bn.attempt=Ja,Bn.camelCase=Ha,Bn.capitalize=Va,Bn.ceil=bl,Bn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=va(n))==n?n:0),e!==r&&(e=(e=va(e))==e?e:0),li(va(t),e,n)},Bn.clone=function(t){return ui(t,4)},Bn.cloneDeep=function(t){return ui(t,5)},Bn.cloneDeepWith=function(t,e){return ui(t,5,e="function"==typeof e?e:r)},Bn.cloneWith=function(t,e){return ui(t,4,e="function"==typeof e?e:r)},Bn.conformsTo=function(t,e){return null==e||ci(t,e,Da(e))},Bn.deburr=za,Bn.defaultTo=function(t,e){return null==t||t!=t?e:t},Bn.divide=wl,Bn.endsWith=function(t,e,n){t=ba(t),e=cr(e);var i=t.length,o=n=n===r?i:li(ma(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},Bn.eq=Bs,Bn.escape=function(t){return(t=ba(t))&&X.test(t)?t.replace(Y,sn):t},Bn.escapeRegExp=function(t){return(t=ba(t))&&ot.test(t)?t.replace(rt,"\\$&"):t},Bn.every=function(t,e,n){var i=Ws(t)?Oe:mi;return n&&To(t,e,n)&&(e=r),i(t,uo(e,3))},Bn.find=vs,Bn.findIndex=zo,Bn.findKey=function(t,e){return Be(t,uo(e,3),Ti)},Bn.findLast=ys,Bn.findLastIndex=Wo,Bn.findLastKey=function(t,e){return Be(t,uo(e,3),_i)},Bn.floor=Tl,Bn.forEach=bs,Bn.forEachRight=ws,Bn.forIn=function(t,e){return null==t?t:bi(t,uo(e,3),Pa)},Bn.forInRight=function(t,e){return null==t?t:wi(t,uo(e,3),Pa)},Bn.forOwn=function(t,e){return t&&Ti(t,uo(e,3))},Bn.forOwnRight=function(t,e){return t&&_i(t,uo(e,3))},Bn.get=Ca,Bn.gt=Hs,Bn.gte=Vs,Bn.has=function(t,e){return null!=t&&vo(t,e,Ai)},Bn.hasIn=Aa,Bn.head=Go,Bn.identity=rl,Bn.includes=function(t,e,n,i){t=Gs(t)?t:Ba(t),n=n&&!i?ma(n):0;var r=t.length;return n<0&&(n=bn(r+n,0)),la(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Ve(t,e,n)>-1},Bn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ma(n);return r<0&&(r=bn(i+r,0)),Ve(t,e,r)},Bn.inRange=function(t,e,n){return e=pa(e),n===r?(n=e,e=0):n=pa(n),function(t,e,n){return t>=wn(e,n)&&t<bn(e,n)}(t=va(t),e,n)},Bn.invoke=Oa,Bn.isArguments=zs,Bn.isArray=Ws,Bn.isArrayBuffer=qs,Bn.isArrayLike=Gs,Bn.isArrayLikeObject=Ks,Bn.isBoolean=function(t){return!0===t||!1===t||na(t)&&ki(t)==w},Bn.isBuffer=Ys,Bn.isDate=Zs,Bn.isElement=function(t){return na(t)&&1===t.nodeType&&!oa(t)},Bn.isEmpty=function(t){if(null==t)return!0;if(Gs(t)&&(Ws(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||ca(t)||zs(t)))return!t.length;var e=go(t);if(e==x||e==I)return!t.size;if(xo(t))return!Fi(t).length;for(var n in t)if(Nt.call(t,n))return!1;return!0},Bn.isEqual=function(t,e){return Pi(t,e)},Bn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Pi(t,e,r,n):!!i},Bn.isError=Xs,Bn.isFinite=function(t){return"number"==typeof t&&we(t)},Bn.isFunction=Qs,Bn.isInteger=Js,Bn.isLength=ta,Bn.isMap=ia,Bn.isMatch=function(t,e){return t===e||Ri(t,e,ho(e))},Bn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Ri(t,e,ho(e),n)},Bn.isNaN=function(t){return ra(t)&&t!=+t},Bn.isNative=function(t){if(Eo(t))throw new Et("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mi(t)},Bn.isNil=function(t){return null==t},Bn.isNull=function(t){return null===t},Bn.isNumber=ra,Bn.isObject=ea,Bn.isObjectLike=na,Bn.isPlainObject=oa,Bn.isRegExp=sa,Bn.isSafeInteger=function(t){return Js(t)&&t>=-9007199254740991&&t<=p},Bn.isSet=aa,Bn.isString=la,Bn.isSymbol=ua,Bn.isTypedArray=ca,Bn.isUndefined=function(t){return t===r},Bn.isWeakMap=function(t){return na(t)&&go(t)==P},Bn.isWeakSet=function(t){return na(t)&&"[object WeakSet]"==ki(t)},Bn.join=function(t,e){return null==t?"":Ue.call(t,e)},Bn.kebabCase=Wa,Bn.last=Xo,Bn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ma(n))<0?bn(i+o,0):wn(o,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):He(t,We,o,!0)},Bn.lowerCase=qa,Bn.lowerFirst=Ga,Bn.lt=da,Bn.lte=ha,Bn.max=function(t){return t&&t.length?gi(t,rl,Ci):r},Bn.maxBy=function(t,e){return t&&t.length?gi(t,uo(e,2),Ci):r},Bn.mean=function(t){return qe(t,rl)},Bn.meanBy=function(t,e){return qe(t,uo(e,2))},Bn.min=function(t){return t&&t.length?gi(t,rl,ji):r},Bn.minBy=function(t,e){return t&&t.length?gi(t,uo(e,2),ji):r},Bn.stubArray=gl,Bn.stubFalse=vl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Sl,Bn.nth=function(t,e){return t&&t.length?zi(t,ma(e)):r},Bn.noConflict=function(){return me._===this&&(me._=Bt),this},Bn.noop=ul,Bn.now=Cs,Bn.pad=function(t,e,n){t=ba(t);var i=(e=ma(e))?pn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Wr(ge(r),n)+t+Wr(pe(r),n)},Bn.padEnd=function(t,e,n){t=ba(t);var i=(e=ma(e))?pn(t):0;return e&&i<e?t+Wr(e-i,n):t},Bn.padStart=function(t,e,n){t=ba(t);var i=(e=ma(e))?pn(t):0;return e&&i<e?Wr(e-i,n)+t:t},Bn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),_n(ba(t).replace(st,""),e||0)},Bn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&To(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=pa(t),e===r?(e=t,t=0):e=pa(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Sn();return wn(t+o*(e-t+de("1e-"+((o+"").length-1))),e)}return Yi(t,e)},Bn.reduce=function(t,e,n){var i=Ws(t)?Fe:Ye,r=arguments.length<3;return i(t,uo(e,4),n,r,fi)},Bn.reduceRight=function(t,e,n){var i=Ws(t)?$e:Ye,r=arguments.length<3;return i(t,uo(e,4),n,r,pi)},Bn.repeat=function(t,e,n){return e=(n?To(t,e,n):e===r)?1:ma(e),Zi(ba(t),e)},Bn.replace=function(){var t=arguments,e=ba(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Bn.result=function(t,e,n){var i=-1,o=(e=wr(e,t)).length;for(o||(o=1,t=r);++i<o;){var s=null==t?r:t[$o(e[i])];s===r&&(i=o,s=n),t=Qs(s)?s.call(t):s}return t},Bn.round=El,Bn.runInContext=t,Bn.sample=function(t){return(Ws(t)?Qn:Qi)(t)},Bn.size=function(t){if(null==t)return 0;if(Gs(t))return la(t)?pn(t):t.length;var e=go(t);return e==x||e==I?t.size:Fi(t).length},Bn.snakeCase=Ka,Bn.some=function(t,e,n){var i=Ws(t)?je:or;return n&&To(t,e,n)&&(e=r),i(t,uo(e,3))},Bn.sortedIndex=function(t,e){return sr(t,e)},Bn.sortedIndexBy=function(t,e,n){return ar(t,e,uo(n,2))},Bn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=sr(t,e);if(i<n&&Bs(t[i],e))return i}return-1},Bn.sortedLastIndex=function(t,e){return sr(t,e,!0)},Bn.sortedLastIndexBy=function(t,e,n){return ar(t,e,uo(n,2),!0)},Bn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=sr(t,e,!0)-1;if(Bs(t[n],e))return n}return-1},Bn.startCase=Ya,Bn.startsWith=function(t,e,n){return t=ba(t),n=null==n?0:li(ma(n),0,t.length),e=cr(e),t.slice(n,n+e.length)==e},Bn.subtract=xl,Bn.sum=function(t){return t&&t.length?Ze(t,rl):0},Bn.sumBy=function(t,e){return t&&t.length?Ze(t,uo(e,2)):0},Bn.template=function(t,e,n){var i=Bn.templateSettings;n&&To(t,e,n)&&(e=r),t=ba(t),e=_a({},e,i,Jr);var o,s,a=_a({},e.imports,i.imports,Jr),l=Da(a),u=tn(a,l),c=0,d=e.interpolate||_t,h="__p += '",f=At((e.escape||_t).source+"|"+d.source+"|"+(d===tt?pt:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),p="//# sourceURL="+(Nt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ae+"]")+"\n";t.replace(f,(function(e,n,i,r,a,l){return i||(i=r),h+=t.slice(c,l).replace(St,an),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+e.length,e})),h+="';\n";var m=Nt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new Et("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(W,""):h).replace(q,"$1").replace(G,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Ja((function(){return xt(l,p+"return "+h).apply(r,u)}));if(g.source=h,Xs(g))throw g;return g},Bn.times=function(t,e){if((t=ma(t))<1||t>p)return[];var n=g,i=wn(t,g);e=uo(e),t-=g;for(var r=Xe(i,e);++n<t;)e(n);return r},Bn.toFinite=pa,Bn.toInteger=ma,Bn.toLength=ga,Bn.toLower=function(t){return ba(t).toLowerCase()},Bn.toNumber=va,Bn.toSafeInteger=function(t){return t?li(ma(t),-9007199254740991,p):0===t?t:0},Bn.toString=ba,Bn.toUpper=function(t){return ba(t).toUpperCase()},Bn.trim=function(t,e,n){if((t=ba(t))&&(n||e===r))return Qe(t);if(!t||!(e=cr(e)))return t;var i=mn(t),o=mn(e);return _r(i,nn(i,o),rn(i,o)+1).join("")},Bn.trimEnd=function(t,e,n){if((t=ba(t))&&(n||e===r))return t.slice(0,gn(t)+1);if(!t||!(e=cr(e)))return t;var i=mn(t);return _r(i,0,rn(i,mn(e))+1).join("")},Bn.trimStart=function(t,e,n){if((t=ba(t))&&(n||e===r))return t.replace(st,"");if(!t||!(e=cr(e)))return t;var i=mn(t);return _r(i,nn(i,mn(e))).join("")},Bn.truncate=function(t,e){var n=30,i="...";if(ea(e)){var o="separator"in e?e.separator:o;n="length"in e?ma(e.length):n,i="omission"in e?cr(e.omission):i}var s=(t=ba(t)).length;if(ln(t)){var a=mn(t);s=a.length}if(n>=s)return t;var l=n-pn(i);if(l<1)return i;var u=a?_r(a,0,l).join(""):t.slice(0,l);if(o===r)return u+i;if(a&&(l+=u.length-l),sa(o)){if(t.slice(l).search(o)){var c,d=u;for(o.global||(o=At(o.source,ba(mt.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(t.indexOf(cr(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+i},Bn.unescape=function(t){return(t=ba(t))&&Z.test(t)?t.replace(K,vn):t},Bn.uniqueId=function(t){var e=++Ft;return ba(t)+e},Bn.upperCase=Za,Bn.upperFirst=Xa,Bn.each=bs,Bn.eachRight=ws,Bn.first=Go,ll(Bn,(_l={},Ti(Bn,(function(t,e){Nt.call(Bn.prototype,e)||(_l[e]=t)})),_l),{chain:!1}),Bn.VERSION="4.17.21",Le(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bn[t].placeholder=Bn})),Le(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===r?1:bn(ma(n),0);var i=this.__filtered__&&!e?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=wn(n,i.__takeCount__):i.__views__.push({size:wn(n,g),type:t+(i.__dir__<0?"Right":"")}),i},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Le(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:uo(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Le(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),Le(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rl)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=Xi((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Oi(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(Ns(uo(t)))},Wn.prototype.slice=function(t,e){t=ma(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ma(e))<0?n.dropRight(-e):n.take(e-t)),n)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(g)},Ti(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Bn[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(Bn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,l=e instanceof Wn,u=a[0],c=l||Ws(e),d=function(t){var e=o.apply(Bn,Ne([t],a));return i&&h?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=s&&!h,m=l&&!f;if(!s&&c){e=m?e:new Wn(this);var g=t.apply(e,a);return g.__actions__.push({func:ps,args:[d],thisArg:r}),new zn(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})})),Le(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ot[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Bn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Ws(r)?r:[],t)}return this[n]((function(n){return e.apply(Ws(n)?n:[],t)}))}})),Ti(Wn.prototype,(function(t,e){var n=Bn[e];if(n){var i=n.name+"";Nt.call(Dn,i)||(Dn[i]=[]),Dn[i].push({name:e,func:n})}})),Dn[Br(r,2).name]=[{name:"wrapper",func:r}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=Ir(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ir(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ir(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ws(t),i=e<0,r=n?t.length:0,o=function(t,e,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=wn(e,t+s);break;case"takeRight":t=bn(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,u=i?a:s-1,c=this.__iteratees__,d=c.length,h=0,f=wn(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return mr(t,this.__actions__);var p=[];t:for(;l--&&h<f;){for(var m=-1,g=t[u+=e];++m<d;){var v=c[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue t;break t}}p[h++]=g}return p},Bn.prototype.at=ms,Bn.prototype.chain=function(){return fs(this)},Bn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===r&&(this.__values__=fa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var e,n=this;n instanceof Vn;){var i=Uo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:ps,args:[es],thisArg:r}),new zn(e,this.__chain__)}return this.thru(es)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mr(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Qt&&(Bn.prototype[Qt]=function(){return this}),Bn}();me._=yn,(i=function(){return yn}.call(e,n,e,t))===r||(t.exports=i)}.call(this)},9490:(t,e)=>{"use strict";function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function a(t,e,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&s(r,n.prototype),r},a.apply(null,arguments)}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return a(t,arguments,o(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s(i,t)},l(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(t){var e=0;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)))return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}var d=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(l(Error)),h=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return r(e,t),e}(d),f=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return r(e,t),e}(d),p=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return r(e,t),e}(d),m=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(d),g=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return r(e,t),e}(d),v=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(d),y=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return r(e,t),e}(d),b="numeric",w="short",T="long",_={year:b,month:b,day:b},S={year:b,month:w,day:b},E={year:b,month:w,day:b,weekday:w},x={year:b,month:T,day:b},k={year:b,month:T,day:b,weekday:T},C={hour:b,minute:b},A={hour:b,minute:b,second:b},L={hour:b,minute:b,second:b,timeZoneName:w},I={hour:b,minute:b,second:b,timeZoneName:T},O={hour:b,minute:b,hour12:!1},D={hour:b,minute:b,second:b,hour12:!1},P={hour:b,minute:b,second:b,hour12:!1,timeZoneName:w},R={hour:b,minute:b,second:b,hour12:!1,timeZoneName:T},M={year:b,month:b,day:b,hour:b,minute:b},N={year:b,month:b,day:b,hour:b,minute:b,second:b},F={year:b,month:w,day:b,hour:b,minute:b},$={year:b,month:w,day:b,hour:b,minute:b,second:b},j={year:b,month:w,day:b,weekday:w,hour:b,minute:b},U={year:b,month:T,day:b,hour:b,minute:b,timeZoneName:w},B={year:b,month:T,day:b,hour:b,minute:b,second:b,timeZoneName:w},H={year:b,month:T,day:b,weekday:T,hour:b,minute:b,timeZoneName:T},V={year:b,month:T,day:b,weekday:T,hour:b,minute:b,second:b,timeZoneName:T};function z(t){return void 0===t}function W(t){return"number"==typeof t}function q(t){return"number"==typeof t&&t%1==0}function G(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function K(){return!z(Intl.DateTimeFormat.prototype.formatToParts)}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Z(t,e,n){if(0!==t.length)return t.reduce((function(t,i){var r=[e(i),i];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function X(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}function Q(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function J(t,e,n){return q(t)&&t>=e&&t<=n}function tt(t,e){void 0===e&&(e=2);var n=t<0?"-":"",i=n?-1*t:t;return""+n+(i.toString().length<e?("0".repeat(e)+i).slice(-e):i.toString())}function et(t){return z(t)||null===t||""===t?void 0:parseInt(t,10)}function nt(t){if(!z(t)&&null!==t&&""!==t){var e=1e3*parseFloat("0."+t);return Math.floor(e)}}function it(t,e,n){void 0===n&&(n=!1);var i=Math.pow(10,e);return(n?Math.trunc:Math.round)(t*i)/i}function rt(t){return t%4==0&&(t%100!=0||t%400==0)}function ot(t){return rt(t)?366:365}function st(t,e){var n=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===n?rt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function at(t){var e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function lt(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,i=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===i?53:52}function ut(t){return t>99?t:t>60?1900+t:2e3+t}function ct(t,e,n,i){void 0===i&&(i=null);var r=new Date(t),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);var s=Object.assign({timeZoneName:e},o),a=G();if(a&&K()){var l=new Intl.DateTimeFormat(n,s).formatToParts(r).find((function(t){return"timezonename"===t.type.toLowerCase()}));return l?l.value:null}if(a){var u=new Intl.DateTimeFormat(n,o).format(r);return new Intl.DateTimeFormat(n,s).format(r).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function dt(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var i=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function ht(t){var e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new v("Invalid unit value "+t);return e}function ft(t,e,n){var i={};for(var r in t)if(Q(t,r)){if(n.indexOf(r)>=0)continue;var o=t[r];if(null==o)continue;i[e(r)]=ht(o)}return i}function pt(t,e){var n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return""+r+tt(n,2)+":"+tt(i,2);case"narrow":return""+r+n+(i>0?":"+i:"");case"techie":return""+r+tt(n,2)+tt(i,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function mt(t){return X(t,["hour","minute","second","millisecond"])}var gt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function vt(t){return JSON.stringify(t,Object.keys(t).sort())}var yt=["January","February","March","April","May","June","July","August","September","October","November","December"],bt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wt=["J","F","M","A","M","J","J","A","S","O","N","D"];function Tt(t){switch(t){case"narrow":return[].concat(wt);case"short":return[].concat(bt);case"long":return[].concat(yt);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var _t=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],St=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Et=["M","T","W","T","F","S","S"];function xt(t){switch(t){case"narrow":return[].concat(Et);case"short":return[].concat(St);case"long":return[].concat(_t);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var kt=["AM","PM"],Ct=["Before Christ","Anno Domini"],At=["BC","AD"],Lt=["B","A"];function It(t){switch(t){case"narrow":return[].concat(Lt);case"short":return[].concat(At);case"long":return[].concat(Ct);default:return null}}function Ot(t,e){for(var n,i="",r=c(t);!(n=r()).done;){var o=n.value;o.literal?i+=o.val:i+=e(o.val)}return i}var Dt={D:_,DD:S,DDD:x,DDDD:k,t:C,tt:A,ttt:L,tttt:I,T:O,TT:D,TTT:P,TTTT:R,f:M,ff:F,fff:U,ffff:H,F:N,FF:$,FFF:B,FFFF:V},Pt=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.parseFormat=function(t){for(var e=null,n="",i=!1,r=[],o=0;o<t.length;o++){var s=t.charAt(o);"'"===s?(n.length>0&&r.push({literal:i,val:n}),e=null,n="",i=!i):i||s===e?n+=s:(n.length>0&&r.push({literal:!1,val:n}),n=s,e=s)}return n.length>0&&r.push({literal:i,val:n}),r},t.macroTokenToFormatOpts=function(t){return Dt[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return tt(t,e);var n=Object.assign({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},e.formatDateTimeFromString=function(e,n){var i=this,r="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&K(),s=function(t,n){return i.loc.extract(e,t,n)},a=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},l=function(){return r?function(t){return kt[t.hour<12?0:1]}(e):s({hour:"numeric",hour12:!0},"dayperiod")},u=function(t,n){return r?function(t,e){return Tt(e)[t.month-1]}(e,t):s(n?{month:t}:{month:t,day:"numeric"},"month")},c=function(t,n){return r?function(t,e){return xt(e)[t.weekday-1]}(e,t):s(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},d=function(t){return r?function(t,e){return It(e)[t.year<0?0:1]}(e,t):s({era:t},"era")};return Ot(t.parseFormat(n),(function(n){switch(n){case"S":return i.num(e.millisecond);case"u":case"SSS":return i.num(e.millisecond,3);case"s":return i.num(e.second);case"ss":return i.num(e.second,2);case"m":return i.num(e.minute);case"mm":return i.num(e.minute,2);case"h":return i.num(e.hour%12==0?12:e.hour%12);case"hh":return i.num(e.hour%12==0?12:e.hour%12,2);case"H":return i.num(e.hour);case"HH":return i.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:i.opts.allowZ});case"ZZ":return a({format:"short",allowZ:i.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:i.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:i.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:i.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return o?s({day:"numeric"},"day"):i.num(e.day);case"dd":return o?s({day:"2-digit"},"day"):i.num(e.day,2);case"c":case"E":return i.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):i.num(e.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):i.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return o?s({month:"numeric"},"month"):i.num(e.month);case"MM":return o?s({month:"2-digit"},"month"):i.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return o?s({year:"numeric"},"year"):i.num(e.year);case"yy":return o?s({year:"2-digit"},"year"):i.num(e.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):i.num(e.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):i.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return i.num(e.weekYear.toString().slice(-2),2);case"kkkk":return i.num(e.weekYear,4);case"W":return i.num(e.weekNumber);case"WW":return i.num(e.weekNumber,2);case"o":return i.num(e.ordinal);case"ooo":return i.num(e.ordinal,3);case"q":return i.num(e.quarter);case"qq":return i.num(e.quarter,2);case"X":return i.num(Math.floor(e.ts/1e3));case"x":return i.num(e.ts);default:return function(n){var r=t.macroTokenToFormatOpts(n);return r?i.formatWithSystemDefault(e,r):n}(n)}}))},e.formatDurationFromString=function(e,n){var i,r=this,o=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=t.parseFormat(n),a=s.reduce((function(t,e){var n=e.literal,i=e.val;return n?t:t.concat(i)}),[]),l=e.shiftTo.apply(e,a.map(o).filter((function(t){return t})));return Ot(s,(i=l,function(t){var e=o(t);return e?r.num(i.get(e),t.length):t}))},t}(),Rt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Mt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new y},e.formatOffset=function(t,e){throw new y},e.offset=function(t){throw new y},e.equals=function(t){throw new y},i(t,[{key:"type",get:function(){throw new y}},{key:"name",get:function(){throw new y}},{key:"universal",get:function(){throw new y}},{key:"isValid",get:function(){throw new y}}]),t}(),Nt=null,Ft=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.offsetName=function(t,e){return ct(t,e.format,e.locale)},n.formatOffset=function(t,e){return pt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"local"===t.type},i(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return G()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Nt&&(Nt=new e),Nt}}]),e}(Mt),$t=RegExp("^"+gt.source+"$"),jt={};var Ut={year:0,month:1,day:2,hour:3,minute:4,second:5};var Bt={},Ht=function(t){function e(n){var i;return(i=t.call(this)||this).zoneName=n,i.valid=e.isValidZone(n),i}r(e,t),e.create=function(t){return Bt[t]||(Bt[t]=new e(t)),Bt[t]},e.resetCache=function(){Bt={},jt={}},e.isValidSpecifier=function(t){return!(!t||!t.match($t))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var n=e.prototype;return n.offsetName=function(t,e){return ct(t,e.format,e.locale,this.name)},n.formatOffset=function(t,e){return pt(this.offset(t),e)},n.offset=function(t){var e=new Date(t);if(isNaN(e))return NaN;var n,i=(n=this.name,jt[n]||(jt[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),jt[n]),r=i.formatToParts?function(t,e){for(var n=t.formatToParts(e),i=[],r=0;r<n.length;r++){var o=n[r],s=o.type,a=o.value,l=Ut[s];z(l)||(i[l]=parseInt(a,10))}return i}(i,e):function(t,e){var n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),r=i[1],o=i[2];return[i[3],r,o,i[4],i[5],i[6]]}(i,e),o=r[0],s=r[1],a=r[2],l=r[3],u=+e,c=u%1e3;return(at({year:o,month:s,day:a,hour:24===l?0:l,minute:r[4],second:r[5],millisecond:0})-(u-=c>=0?c:1e3+c))/6e4},n.equals=function(t){return"iana"===t.type&&t.name===this.name},i(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Mt),Vt=null,zt=function(t){function e(e){var n;return(n=t.call(this)||this).fixed=e,n}r(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(dt(n[1],n[2]))}return null},i(e,null,[{key:"utcInstance",get:function(){return null===Vt&&(Vt=new e(0)),Vt}}]);var n=e.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(t,e){return pt(this.fixed,e)},n.offset=function(){return this.fixed},n.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},i(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+pt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(Mt),Wt=function(t){function e(e){var n;return(n=t.call(this)||this).zoneName=e,n}r(e,t);var n=e.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Mt);function qt(t,e){var n;if(z(t)||null===t)return e;if(t instanceof Mt)return t;if("string"==typeof t){var i=t.toLowerCase();return"local"===i?e:"utc"===i||"gmt"===i?zt.utcInstance:null!=(n=Ht.parseGMTOffset(t))?zt.instance(n):Ht.isValidSpecifier(i)?Ht.create(t):zt.parseSpecifier(i)||new Wt(t)}return W(t)?zt.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wt(t)}var Gt=function(){return Date.now()},Kt=null,Yt=null,Zt=null,Xt=null,Qt=!1,Jt=function(){function t(){}return t.resetCaches=function(){ce.resetCache(),Ht.resetCache()},i(t,null,[{key:"now",get:function(){return Gt},set:function(t){Gt=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){Kt=t?qt(t):null}},{key:"defaultZone",get:function(){return Kt||Ft.instance}},{key:"defaultLocale",get:function(){return Yt},set:function(t){Yt=t}},{key:"defaultNumberingSystem",get:function(){return Zt},set:function(t){Zt=t}},{key:"defaultOutputCalendar",get:function(){return Xt},set:function(t){Xt=t}},{key:"throwOnInvalid",get:function(){return Qt},set:function(t){Qt=t}}]),t}(),te={};function ee(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),i=te[n];return i||(i=new Intl.DateTimeFormat(t,e),te[n]=i),i}var ne={};var ie={};function re(t,e){void 0===e&&(e={});var n=e,i=(n.base,function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(n,["base"])),r=JSON.stringify([t,i]),o=ie[r];return o||(o=new Intl.RelativeTimeFormat(t,e),ie[r]=o),o}var oe=null;function se(t,e,n,i,r){var o=t.listingMode(n);return"error"===o?null:"en"===o?i(e):r(e)}var ae=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e&&G()){var i={useGrouping:!1};n.padTo>0&&(i.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),i=ne[n];return i||(i=new Intl.NumberFormat(t,e),ne[n]=i),i}(t,i)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return tt(this.floor?Math.floor(t):it(t,3),this.padTo)},t}(),le=function(){function t(t,e,n){var i;if(this.opts=n,this.hasIntl=G(),t.zone.universal&&this.hasIntl){var r=t.offset/60*-1,o=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,s=Ht.isValidZone(o);0!==t.offset&&s?(i=o,this.dt=t):(i="UTC",n.timeZoneName?this.dt=t:this.dt=0===t.offset?t:fi.fromMillis(t.ts+60*t.offset*1e3))}else"local"===t.zone.type?this.dt=t:(this.dt=t,i=t.zone.name);if(this.hasIntl){var a=Object.assign({},this.opts);i&&(a.timeZone=i),this.dtf=ee(e,a)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){var e="EEEE, LLLL d, yyyy, h:mm a";switch(vt(X(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case vt(_):return"M/d/yyyy";case vt(S):return"LLL d, yyyy";case vt(E):return"EEE, LLL d, yyyy";case vt(x):return"LLLL d, yyyy";case vt(k):return"EEEE, LLLL d, yyyy";case vt(C):return"h:mm a";case vt(A):return"h:mm:ss a";case vt(L):case vt(I):return"h:mm a";case vt(O):return"HH:mm";case vt(D):return"HH:mm:ss";case vt(P):case vt(R):return"HH:mm";case vt(M):return"M/d/yyyy, h:mm a";case vt(F):return"LLL d, yyyy, h:mm a";case vt(U):return"LLLL d, yyyy, h:mm a";case vt(H):return e;case vt(N):return"M/d/yyyy, h:mm:ss a";case vt($):return"LLL d, yyyy, h:mm:ss a";case vt(j):return"EEE, d LLL yyyy, h:mm a";case vt(B):return"LLLL d, yyyy, h:mm:ss a";case vt(V):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return e}}(this.opts),e=ce.create("en-US");return Pt.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&K()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),ue=function(){function t(t,e,n){this.opts=Object.assign({style:"long"},n),!e&&Y()&&(this.rtf=re(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,i){void 0===n&&(n="always"),void 0===i&&(i=!1);var r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&o){var s="days"===t;switch(e){case 1:return s?"tomorrow":"next "+r[t][0];case-1:return s?"yesterday":"last "+r[t][0];case 0:return s?"today":"this "+r[t][0]}}var a=Object.is(e,-0)||e<0,l=Math.abs(e),u=1===l,c=r[t],d=i?u?c[1]:c[2]||c[1]:u?r[t][0]:t;return a?l+" "+d+" ago":"in "+l+" "+d}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),ce=function(){function t(t,e,n,i){var r=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,i=t.substring(0,e);try{n=ee(t).resolvedOptions()}catch(t){n=ee(i).resolvedOptions()}var r=n;return[i,r.numberingSystem,r.calendar]}(t),o=r[0],s=r[1],a=r[2];this.locale=o,this.numberingSystem=e||s||null,this.outputCalendar=n||a||null,this.intl=function(t,e,n){return G()?n||e?(t+="-u",n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,n,i,r){void 0===r&&(r=!1);var o=e||Jt.defaultLocale;return new t(o||(r?"en-US":function(){if(oe)return oe;if(G()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return oe=t&&"und"!==t?t:"en-US"}return oe="en-US"}()),n||Jt.defaultNumberingSystem,i||Jt.defaultOutputCalendar,o)},t.resetCache=function(){oe=null,te={},ne={},ie={}},t.fromObject=function(e){var n=void 0===e?{}:e,i=n.locale,r=n.numberingSystem,o=n.outputCalendar;return t.create(i,r,o)};var e=t.prototype;return e.listingMode=function(t){void 0===t&&(t=!0);var e=G()&&K(),n=this.isEnglish(),i=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e||n&&i||t?!e||n&&i?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},e.months=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),se(this,t,n,Tt,(function(){var n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return i.monthsCache[r][t]||(i.monthsCache[r][t]=function(t){for(var e=[],n=1;n<=12;n++){var i=fi.utc(2016,n,1);e.push(t(i))}return e}((function(t){return i.extract(t,n,"month")}))),i.monthsCache[r][t]}))},e.weekdays=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),se(this,t,n,xt,(function(){var n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return i.weekdaysCache[r][t]||(i.weekdaysCache[r][t]=function(t){for(var e=[],n=1;n<=7;n++){var i=fi.utc(2016,11,13+n);e.push(t(i))}return e}((function(t){return i.extract(t,n,"weekday")}))),i.weekdaysCache[r][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),se(this,void 0,t,(function(){return kt}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hour12:!0};e.meridiemCache=[fi.utc(2016,11,13,9),fi.utc(2016,11,13,19)].map((function(n){return e.extract(n,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var n=this;return void 0===e&&(e=!0),se(this,t,e,It,(function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[fi.utc(-40,1,1),fi.utc(2017,1,1)].map((function(t){return n.extract(t,e,"era")}))),n.eraCache[t]}))},e.extract=function(t,e,n){var i=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===n}));return i?i.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new ae(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new le(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new ue(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||G()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},i(t,[{key:"fastNumbers",get:function(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||G()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),t}();function de(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.reduce((function(t,e){return t+e.source}),"");return RegExp("^"+i+"$")}function he(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(e,n){var i=e[0],r=e[1],o=e[2],s=n(t,o),a=s[0],l=s[1],u=s[2];return[Object.assign(i,a),r||l,u]}),[{},null,1]).slice(0,2)}}function fe(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var s=o[r],a=s[0],l=s[1],u=a.exec(t);if(u)return l(u)}return[null,null]}function pe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t,n){var i,r={};for(i=0;i<e.length;i++)r[e[i]]=et(t[n+i]);return[r,null,n+i]}}var me=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ge=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ve=RegExp(""+ge.source+me.source+"?"),ye=RegExp("(?:T"+ve.source+")?"),be=pe("weekYear","weekNumber","weekDay"),we=pe("year","ordinal"),Te=RegExp(ge.source+" ?(?:"+me.source+"|("+gt.source+"))?"),_e=RegExp("(?: "+Te.source+")?");function Se(t,e,n){var i=t[e];return z(i)?n:et(i)}function Ee(t,e){return[{year:Se(t,e),month:Se(t,e+1,1),day:Se(t,e+2,1)},null,e+3]}function xe(t,e){return[{hours:Se(t,e,0),minutes:Se(t,e+1,0),seconds:Se(t,e+2,0),milliseconds:nt(t[e+3])},null,e+4]}function ke(t,e){var n=!t[e]&&!t[e+1],i=dt(t[e+1],t[e+2]);return[{},n?null:zt.instance(i),e+3]}function Ce(t,e){return[{},t[e]?Ht.create(t[e]):null,e+1]}var Ae=RegExp("^T?"+ge.source+"$"),Le=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Ie(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],s=t[5],a=t[6],l=t[7],u=t[8],c="-"===e[0],d=l&&"-"===l[0],h=function(t,e){return void 0===e&&(e=!1),void 0!==t&&(e||t&&c)?-t:t};return[{years:h(et(n)),months:h(et(i)),weeks:h(et(r)),days:h(et(o)),hours:h(et(s)),minutes:h(et(a)),seconds:h(et(l),"-0"===l),milliseconds:h(nt(u),d)}]}var Oe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function De(t,e,n,i,r,o,s){var a={year:2===e.length?ut(et(e)):et(e),month:bt.indexOf(n)+1,day:et(i),hour:et(r),minute:et(o)};return s&&(a.second=et(s)),t&&(a.weekday=t.length>3?_t.indexOf(t)+1:St.indexOf(t)+1),a}var Pe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Re(t){var e,n=t[1],i=t[2],r=t[3],o=t[4],s=t[5],a=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11],f=De(n,o,r,i,s,a,l);return e=u?Oe[u]:c?0:dt(d,h),[f,new zt(e)]}var Me=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ne=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Fe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function $e(t){var e=t[1],n=t[2],i=t[3];return[De(e,t[4],i,n,t[5],t[6],t[7]),zt.utcInstance]}function je(t){var e=t[1],n=t[2],i=t[3],r=t[4],o=t[5],s=t[6];return[De(e,t[7],n,i,r,o,s),zt.utcInstance]}var Ue=de(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ye),Be=de(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ye),He=de(/(\d{4})-?(\d{3})/,ye),Ve=de(ve),ze=he(Ee,xe,ke),We=he(be,xe,ke),qe=he(we,xe,ke),Ge=he(xe,ke);var Ke=he(xe);var Ye=de(/(\d{4})-(\d\d)-(\d\d)/,_e),Ze=de(Te),Xe=he(Ee,xe,ke,Ce),Qe=he(xe,ke,Ce);var Je={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tn=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Je),en=365.2425,nn=30.436875,rn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:en,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:nn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Je),on=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],sn=on.slice(0).reverse();function an(t,e,n){void 0===n&&(n=!1);var i={values:n?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new un(i)}function ln(t,e,n,i,r){var o=t[r][n],s=e[n]/o,a=!(Math.sign(s)===Math.sign(i[r]))&&0!==i[r]&&Math.abs(s)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(s):Math.trunc(s);i[r]+=a,e[n]-=a*o}var un=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||ce.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?rn:tn,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject(Object.assign({milliseconds:e},n))},t.fromObject=function(e){if(null==e||"object"!=typeof e)throw new v("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:ft(e,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ce.fromObject(e),conversionAccuracy:e.conversionAccuracy})},t.fromISO=function(e,n){var i=function(t){return fe(t,[Le,Ie])}(e),r=i[0];if(r){var o=Object.assign(r,n);return t.fromObject(o)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,n){var i=function(t){return fe(t,[Ae,Ke])}(e),r=i[0];if(r){var o=Object.assign(r,n);return t.fromObject(o)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new v("need to specify a reason the Duration is invalid");var i=e instanceof Rt?e:new Rt(e,n);if(Jt.throwOnInvalid)throw new p(i);return new t({invalid:i})},t.normalizeUnit=function(t){var e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new g(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var n=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?Pt.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=it(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toISOTime=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var e=this.toMillis();if(e<0||e>=864e5)return null;t=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),i="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(i+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===n.milliseconds||(i+=".SSS"));var r=n.toFormat(i);return t.includePrefix&&(r="T"+r),r},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(t){if(!this.isValid)return this;for(var e,n=cn(t),i={},r=c(on);!(e=r()).done;){var o=e.value;(Q(n.values,o)||Q(this.values,o))&&(i[o]=n.get(o)+this.get(o))}return an(this,{values:i},!0)},e.minus=function(t){if(!this.isValid)return this;var e=cn(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,i=Object.keys(this.values);n<i.length;n++){var r=i[n];e[r]=ht(t(this.values[r],r))}return an(this,{values:e},!0)},e.get=function(e){return this[t.normalizeUnit(e)]},e.set=function(e){return this.isValid?an(this,{values:Object.assign(this.values,ft(e,t.normalizeUnit,[]))}):this},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,i=e.numberingSystem,r=e.conversionAccuracy,o={loc:this.loc.clone({locale:n,numberingSystem:i})};return r&&(o.conversionAccuracy=r),an(this,o)},e.as=function(t){return this.isValid?this.shiftTo(t).get(t):NaN},e.normalize=function(){if(!this.isValid)return this;var t=this.toObject();return function(t,e){sn.reduce((function(n,i){return z(e[i])?n:(n&&ln(t,e,n,e,i),i)}),null)}(this.matrix,t),an(this,{values:t},!0)},e.shiftTo=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(e){return t.normalizeUnit(e)}));for(var r,o,s={},a={},l=this.toObject(),u=c(on);!(o=u()).done;){var d=o.value;if(n.indexOf(d)>=0){r=d;var h=0;for(var f in a)h+=this.matrix[f][d]*a[f],a[f]=0;W(l[d])&&(h+=l[d]);var p=Math.trunc(h);for(var m in s[d]=p,a[d]=h-p,l)on.indexOf(m)>on.indexOf(d)&&ln(this.matrix,l,m,s,d)}else W(l[d])&&(a[d]=l[d])}for(var g in a)0!==a[g]&&(s[r]+=g===r?a[g]:a[g]/this.matrix[r][g]);return an(this,{values:s},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);e<n.length;e++){var i=n[e];t[i]=-this.values[i]}return an(this,{values:t},!0)},e.equals=function(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(var e,n=c(on);!(e=n()).done;){var i=e.value;if(r=this.values[i],o=t.values[i],!(void 0===r||0===r?void 0===o||0===o:r===o))return!1}var r,o;return!0},i(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}();function cn(t){if(W(t))return un.fromMillis(t);if(un.isDuration(t))return t;if("object"==typeof t)return un.fromObject(t);throw new v("Unknown duration argument "+t+" of type "+typeof t)}var dn="Invalid Interval";function hn(t,e){return t&&t.isValid?e&&e.isValid?e<t?fn.invalid("end before start","The end of an interval must be after its start, but you had start="+t.toISO()+" and end="+e.toISO()):null:fn.invalid("missing or invalid end"):fn.invalid("missing or invalid start")}var fn=function(){function t(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new v("need to specify a reason the Interval is invalid");var i=e instanceof Rt?e:new Rt(e,n);if(Jt.throwOnInvalid)throw new f(i);return new t({invalid:i})},t.fromDateTimes=function(e,n){var i=pi(e),r=pi(n),o=hn(i,r);return null==o?new t({start:i,end:r}):o},t.after=function(e,n){var i=cn(n),r=pi(e);return t.fromDateTimes(r,r.plus(i))},t.before=function(e,n){var i=cn(n),r=pi(e);return t.fromDateTimes(r.minus(i),r)},t.fromISO=function(e,n){var i=(e||"").split("/",2),r=i[0],o=i[1];if(r&&o){var s,a,l,u;try{a=(s=fi.fromISO(r,n)).isValid}catch(o){a=!1}try{u=(l=fi.fromISO(o,n)).isValid}catch(o){u=!1}if(a&&u)return t.fromDateTimes(s,l);if(a){var c=un.fromISO(o,n);if(c.isValid)return t.after(s,c)}else if(u){var d=un.fromISO(r,n);if(d.isValid)return t.before(l,d)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(t){return t&&t.isLuxonInterval||!1};var e=t.prototype;return e.length=function(t){return void 0===t&&(t="milliseconds"),this.isValid?this.toDuration.apply(this,[t]).get(t):NaN},e.count=function(t){if(void 0===t&&(t="milliseconds"),!this.isValid)return NaN;var e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+1},e.hasSame=function(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(t){return!!this.isValid&&this.s>t},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&(this.s<=t&&this.e>t)},e.set=function(e){var n=void 0===e?{}:e,i=n.start,r=n.end;return this.isValid?t.fromDateTimes(i||this.s,r||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var o=i.map(pi).filter((function(t){return e.contains(t)})).sort(),s=[],a=this.s,l=0;a<this.e;){var u=o[l]||this.e,c=+u>+this.e?this.e:u;s.push(t.fromDateTimes(a,c)),a=c,l+=1}return s},e.splitBy=function(e){var n=cn(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var i,r=this.s,o=1,s=[];r<this.e;){var a=this.start.plus(n.mapUnits((function(t){return t*o})));i=+a>+this.e?this.e:a,s.push(t.fromDateTimes(r,i)),r=i,o+=1}return s},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s<t.e},e.abutsStart=function(t){return!!this.isValid&&+this.e==+t.s},e.abutsEnd=function(t){return!!this.isValid&&+t.e==+this.s},e.engulfs=function(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)},e.equals=function(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))},e.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:t.fromDateTimes(n,i)},e.union=function(e){if(!this.isValid)return this;var n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,i)},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var n=t[0],i=t[1];return i?i.overlaps(e)||i.abutsStart(e)?[n,i.union(e)]:[n.concat([i]),e]:[n,e]}),[[],null]),n=e[0],i=e[1];return i&&n.push(i),n},t.xor=function(e){for(var n,i,r=null,o=0,s=[],a=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),l=c((n=Array.prototype).concat.apply(n,a).sort((function(t,e){return t.time-e.time})));!(i=l()).done;){var u=i.value;1===(o+="s"===u.type?1:-1)?r=u.time:(r&&+r!=+u.time&&s.push(t.fromDateTimes(r,u.time)),r=null)}return t.merge(s)},e.difference=function(){for(var e=this,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.xor([this].concat(i)).map((function(t){return e.intersection(t)})).filter((function(t){return t&&!t.isEmpty()}))},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":dn},e.toISO=function(t){return this.isValid?this.s.toISO(t)+"/"+this.e.toISO(t):dn},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():dn},e.toISOTime=function(t){return this.isValid?this.s.toISOTime(t)+"/"+this.e.toISOTime(t):dn},e.toFormat=function(t,e){var n=(void 0===e?{}:e).separator,i=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(t)+i+this.e.toFormat(t):dn},e.toDuration=function(t,e){return this.isValid?this.e.diff(this.s,t,e):un.invalid(this.invalidReason)},e.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},i(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(),pn=function(){function t(){}return t.hasDST=function(t){void 0===t&&(t=Jt.defaultZone);var e=fi.now().setZone(t).set({month:12});return!t.universal&&e.offset!==e.set({month:6}).offset},t.isValidIANAZone=function(t){return Ht.isValidSpecifier(t)&&Ht.isValidZone(t)},t.normalizeZone=function(t){return qt(t,Jt.defaultZone)},t.months=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,r=void 0===i?null:i,o=n.numberingSystem,s=void 0===o?null:o,a=n.locObj,l=void 0===a?null:a,u=n.outputCalendar,c=void 0===u?"gregory":u;return(l||ce.create(r,s,c)).months(t)},t.monthsFormat=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,r=void 0===i?null:i,o=n.numberingSystem,s=void 0===o?null:o,a=n.locObj,l=void 0===a?null:a,u=n.outputCalendar,c=void 0===u?"gregory":u;return(l||ce.create(r,s,c)).months(t,!0)},t.weekdays=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,r=void 0===i?null:i,o=n.numberingSystem,s=void 0===o?null:o,a=n.locObj;return((void 0===a?null:a)||ce.create(r,s,null)).weekdays(t)},t.weekdaysFormat=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,r=void 0===i?null:i,o=n.numberingSystem,s=void 0===o?null:o,a=n.locObj;return((void 0===a?null:a)||ce.create(r,s,null)).weekdays(t,!0)},t.meridiems=function(t){var e=(void 0===t?{}:t).locale,n=void 0===e?null:e;return ce.create(n).meridiems()},t.eras=function(t,e){void 0===t&&(t="short");var n=(void 0===e?{}:e).locale,i=void 0===n?null:n;return ce.create(i,null,"gregory").eras(t)},t.features=function(){var t=!1,e=!1,n=!1,i=!1;if(G()){t=!0,e=K(),i=Y();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(t){n=!1}}return{intl:t,intlTokens:e,zones:n,relative:i}},t}();function mn(t,e){var n=function(t){return t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},i=n(e)-n(t);return Math.floor(un.fromMillis(i).as("days"))}function gn(t,e,n,i){var r=function(t,e,n){for(var i,r,o={},s=0,a=[["years",function(t,e){return e.year-t.year}],["quarters",function(t,e){return e.quarter-t.quarter}],["months",function(t,e){return e.month-t.month+12*(e.year-t.year)}],["weeks",function(t,e){var n=mn(t,e);return(n-n%7)/7}],["days",mn]];s<a.length;s++){var l=a[s],u=l[0],c=l[1];if(n.indexOf(u)>=0){var d;i=u;var h,f=c(t,e);(r=t.plus(((d={})[u]=f,d)))>e?(t=t.plus(((h={})[u]=f-1,h)),f-=1):t=r,o[u]=f}}return[t,o,r,i]}(t,e,n),o=r[0],s=r[1],a=r[2],l=r[3],u=e-o,c=n.filter((function(t){return["hours","minutes","seconds","milliseconds"].indexOf(t)>=0}));if(0===c.length){var d;if(a<e)a=o.plus(((d={})[l]=1,d));a!==o&&(s[l]=(s[l]||0)+u/(a-o))}var h,f=un.fromObject(Object.assign(s,i));return c.length>0?(h=un.fromMillis(u,i)).shiftTo.apply(h,c).plus(f):f}var vn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bn=vn.hanidec.replace(/[\[|\]]/g,"").split("");function wn(t,e){var n=t.numberingSystem;return void 0===e&&(e=""),new RegExp(""+vn[n||"latn"]+e)}var Tn="missing Intl.DateTimeFormat.formatToParts support";function _n(t,e){return void 0===e&&(e=function(t){return t}),{regex:t,deser:function(t){var n=t[0];return e(function(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var n=0;n<t.length;n++){var i=t.charCodeAt(n);if(-1!==t[n].search(vn.hanidec))e+=bn.indexOf(t[n]);else for(var r in yn){var o=yn[r],s=o[0],a=o[1];i>=s&&i<=a&&(e+=i-s)}}return parseInt(e,10)}return e}(n))}}}var Sn="( |"+String.fromCharCode(160)+")",En=new RegExp(Sn,"g");function xn(t){return t.replace(/\./g,"\\.?").replace(En,Sn)}function kn(t){return t.replace(/\./g,"").replace(En," ").toLowerCase()}function Cn(t,e){return null===t?null:{regex:RegExp(t.map(xn).join("|")),deser:function(n){var i=n[0];return t.findIndex((function(t){return kn(i)===kn(t)}))+e}}}function An(t,e){return{regex:t,deser:function(t){return dt(t[1],t[2])},groups:e}}function Ln(t){return{regex:t,deser:function(t){return t[0]}}}var In={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var On=null;function Dn(t,e){if(t.literal)return t;var n=Pt.macroTokenToFormatOpts(t.val);if(!n)return t;var i=Pt.create(e,n).formatDateTimeParts((On||(On=fi.fromMillis(1555555555555)),On)).map((function(t){return function(t,e,n){var i=t.type,r=t.value;if("literal"===i)return{literal:!0,val:r};var o=n[i],s=In[i];return"object"==typeof s&&(s=s[o]),s?{literal:!1,val:s}:void 0}(t,0,n)}));return i.includes(void 0)?t:i}function Pn(t,e,n){var i=function(t,e){var n;return(n=Array.prototype).concat.apply(n,t.map((function(t){return Dn(t,e)})))}(Pt.parseFormat(n),t),r=i.map((function(e){return n=e,r=wn(i=t),o=wn(i,"{2}"),s=wn(i,"{3}"),a=wn(i,"{4}"),l=wn(i,"{6}"),u=wn(i,"{1,2}"),c=wn(i,"{1,3}"),d=wn(i,"{1,6}"),h=wn(i,"{1,9}"),f=wn(i,"{2,4}"),p=wn(i,"{4,6}"),m=function(t){return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(t){return t[0]},literal:!0};var e},g=function(t){if(n.literal)return m(t);switch(t.val){case"G":return Cn(i.eras("short",!1),0);case"GG":return Cn(i.eras("long",!1),0);case"y":return _n(d);case"yy":case"kk":return _n(f,ut);case"yyyy":case"kkkk":return _n(a);case"yyyyy":return _n(p);case"yyyyyy":return _n(l);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return _n(u);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return _n(o);case"MMM":return Cn(i.months("short",!0,!1),1);case"MMMM":return Cn(i.months("long",!0,!1),1);case"LLL":return Cn(i.months("short",!1,!1),1);case"LLLL":return Cn(i.months("long",!1,!1),1);case"o":case"S":return _n(c);case"ooo":case"SSS":return _n(s);case"u":return Ln(h);case"a":return Cn(i.meridiems(),0);case"E":case"c":return _n(r);case"EEE":return Cn(i.weekdays("short",!1,!1),1);case"EEEE":return Cn(i.weekdays("long",!1,!1),1);case"ccc":return Cn(i.weekdays("short",!0,!1),1);case"cccc":return Cn(i.weekdays("long",!0,!1),1);case"Z":case"ZZ":return An(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return An(new RegExp("([+-]"+u.source+")("+o.source+")?"),2);case"z":return Ln(/[a-z_+-/]{1,256}?/i);default:return m(t)}}(n)||{invalidReason:Tn},g.token=n,g;var n,i,r,o,s,a,l,u,c,d,h,f,p,m,g})),o=r.find((function(t){return t.invalidReason}));if(o)return{input:e,tokens:i,invalidReason:o.invalidReason};var s=function(t){return["^"+t.map((function(t){return t.regex})).reduce((function(t,e){return t+"("+e.source+")"}),"")+"$",t]}(r),a=s[0],l=s[1],u=RegExp(a,"i"),c=function(t,e,n){var i=t.match(e);if(i){var r={},o=1;for(var s in n)if(Q(n,s)){var a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(o,o+l))),o+=l}return[i,r]}return[i,{}]}(e,u,l),d=c[0],h=c[1],f=h?function(t){var e;return e=z(t.Z)?z(t.z)?null:Ht.create(t.z):new zt(t.Z),z(t.q)||(t.M=3*(t.q-1)+1),z(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),z(t.u)||(t.S=nt(t.u)),[Object.keys(t).reduce((function(e,n){var i=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return i&&(e[i]=t[n]),e}),{}),e]}(h):[null,null],p=f[0],g=f[1];if(Q(h,"a")&&Q(h,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:u,rawMatches:d,matches:h,result:p,zone:g}}var Rn=[0,31,59,90,120,151,181,212,243,273,304,334],Mn=[0,31,60,91,121,152,182,213,244,274,305,335];function Nn(t,e){return new Rt("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function Fn(t,e,n){var i=new Date(Date.UTC(t,e-1,n)).getUTCDay();return 0===i?7:i}function $n(t,e,n){return n+(rt(t)?Mn:Rn)[e-1]}function jn(t,e){var n=rt(t)?Mn:Rn,i=n.findIndex((function(t){return t<e}));return{month:i+1,day:e-n[i]}}function Un(t){var e,n=t.year,i=t.month,r=t.day,o=$n(n,i,r),s=Fn(n,i,r),a=Math.floor((o-s+10)/7);return a<1?a=lt(e=n-1):a>lt(n)?(e=n+1,a=1):e=n,Object.assign({weekYear:e,weekNumber:a,weekday:s},mt(t))}function Bn(t){var e,n=t.weekYear,i=t.weekNumber,r=t.weekday,o=Fn(n,1,4),s=ot(n),a=7*i+r-o-3;a<1?a+=ot(e=n-1):a>s?(e=n+1,a-=ot(n)):e=n;var l=jn(e,a),u=l.month,c=l.day;return Object.assign({year:e,month:u,day:c},mt(t))}function Hn(t){var e=t.year,n=$n(e,t.month,t.day);return Object.assign({year:e,ordinal:n},mt(t))}function Vn(t){var e=t.year,n=jn(e,t.ordinal),i=n.month,r=n.day;return Object.assign({year:e,month:i,day:r},mt(t))}function zn(t){var e=q(t.year),n=J(t.month,1,12),i=J(t.day,1,st(t.year,t.month));return e?n?!i&&Nn("day",t.day):Nn("month",t.month):Nn("year",t.year)}function Wn(t){var e=t.hour,n=t.minute,i=t.second,r=t.millisecond,o=J(e,0,23)||24===e&&0===n&&0===i&&0===r,s=J(n,0,59),a=J(i,0,59),l=J(r,0,999);return o?s?a?!l&&Nn("millisecond",r):Nn("second",i):Nn("minute",n):Nn("hour",e)}var qn="Invalid DateTime",Gn=864e13;function Kn(t){return new Rt("unsupported zone",'the zone "'+t.name+'" is not supported')}function Yn(t){return null===t.weekData&&(t.weekData=Un(t.c)),t.weekData}function Zn(t,e){var n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new fi(Object.assign({},n,e,{old:n}))}function Xn(t,e,n){var i=t-60*e*1e3,r=n.offset(i);if(e===r)return[i,e];i-=60*(r-e)*1e3;var o=n.offset(i);return r===o?[i,r]:[t-60*Math.min(r,o)*1e3,Math.max(r,o)]}function Qn(t,e){var n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Jn(t,e,n){return Xn(at(t),e,n)}function ti(t,e){var n=t.o,i=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),o=Object.assign({},t.c,{year:i,month:r,day:Math.min(t.c.day,st(i,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),s=un.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Xn(at(o),n,t.zone),l=a[0],u=a[1];return 0!==s&&(l+=s,u=t.zone.offset(l)),{ts:l,o:u}}function ei(t,e,n,i,r){var o=n.setZone,s=n.zone;if(t&&0!==Object.keys(t).length){var a=e||s,l=fi.fromObject(Object.assign(t,n,{zone:a,setZone:void 0}));return o?l:l.setZone(s)}return fi.invalid(new Rt("unparsable",'the input "'+r+"\" can't be parsed as "+i))}function ni(t,e,n){return void 0===n&&(n=!0),t.isValid?Pt.create(ce.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ii(t,e){var n=e.suppressSeconds,i=void 0!==n&&n,r=e.suppressMilliseconds,o=void 0!==r&&r,s=e.includeOffset,a=e.includePrefix,l=void 0!==a&&a,u=e.includeZone,c=void 0!==u&&u,d=e.spaceZone,h=void 0!==d&&d,f=e.format,p=void 0===f?"extended":f,m="basic"===p?"HHmm":"HH:mm";i&&0===t.second&&0===t.millisecond||(m+="basic"===p?"ss":":ss",o&&0===t.millisecond||(m+=".SSS")),(c||s)&&h&&(m+=" "),c?m+="z":s&&(m+="basic"===p?"ZZZ":"ZZ");var g=ni(t,m);return l&&(g="T"+g),g}var ri={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},oi={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},si={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ai=["year","month","day","hour","minute","second","millisecond"],li=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ui=["year","ordinal","hour","minute","second","millisecond"];function ci(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new g(t);return e}function di(t,e){for(var n,i=c(ai);!(n=i()).done;){var r=n.value;z(t[r])&&(t[r]=ri[r])}var o=zn(t)||Wn(t);if(o)return fi.invalid(o);var s=Jt.now(),a=Jn(t,e.offset(s),e),l=a[0],u=a[1];return new fi({ts:l,zone:e,o:u})}function hi(t,e,n){var i=!!z(n.round)||n.round,r=function(t,r){return t=it(t,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,r)},o=function(i){return n.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i)};if(n.unit)return r(o(n.unit),n.unit);for(var s,a=c(n.units);!(s=a()).done;){var l=s.value,u=o(l);if(Math.abs(u)>=1)return r(u,l)}return r(t>e?-0:0,n.units[n.units.length-1])}var fi=function(){function t(t){var e=t.zone||Jt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Rt("invalid input"):null)||(e.isValid?null:Kn(e));this.ts=z(t.ts)?Jt.now():t.ts;var i=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var o=[t.old.c,t.old.o];i=o[0],r=o[1]}else{var s=e.offset(this.ts);i=Qn(this.ts,s),i=(n=Number.isNaN(i.year)?new Rt("invalid input"):null)?null:i,r=n?null:s}this._zone=e,this.loc=t.loc||ce.create(),this.invalid=n,this.weekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(e,n,i,r,o,s,a){return z(e)?t.now():di({year:e,month:n,day:i,hour:r,minute:o,second:s,millisecond:a},Jt.defaultZone)},t.utc=function(e,n,i,r,o,s,a){return z(e)?new t({ts:Jt.now(),zone:zt.utcInstance}):di({year:e,month:n,day:i,hour:r,minute:o,second:s,millisecond:a},zt.utcInstance)},t.fromJSDate=function(e,n){void 0===n&&(n={});var i,r=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);if(Number.isNaN(r))return t.invalid("invalid input");var o=qt(n.zone,Jt.defaultZone);return o.isValid?new t({ts:r,zone:o,loc:ce.fromObject(n)}):t.invalid(Kn(o))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),W(e))return e<-Gn||e>Gn?t.invalid("Timestamp out of range"):new t({ts:e,zone:qt(n.zone,Jt.defaultZone),loc:ce.fromObject(n)});throw new v("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),W(e))return new t({ts:1e3*e,zone:qt(n.zone,Jt.defaultZone),loc:ce.fromObject(n)});throw new v("fromSeconds requires a numerical input")},t.fromObject=function(e){var n=qt(e.zone,Jt.defaultZone);if(!n.isValid)return t.invalid(Kn(n));var i=Jt.now(),r=n.offset(i),o=ft(e,ci,["zone","locale","outputCalendar","numberingSystem"]),s=!z(o.ordinal),a=!z(o.year),l=!z(o.month)||!z(o.day),u=a||l,d=o.weekYear||o.weekNumber,h=ce.fromObject(e);if((u||s)&&d)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new m("Can't mix ordinal dates with month/day");var f,p,g=d||o.weekday&&!u,v=Qn(i,r);g?(f=li,p=oi,v=Un(v)):s?(f=ui,p=si,v=Hn(v)):(f=ai,p=ri);for(var y,b=!1,w=c(f);!(y=w()).done;){var T=y.value;z(o[T])?o[T]=b?p[T]:v[T]:b=!0}var _=g?function(t){var e=q(t.weekYear),n=J(t.weekNumber,1,lt(t.weekYear)),i=J(t.weekday,1,7);return e?n?!i&&Nn("weekday",t.weekday):Nn("week",t.week):Nn("weekYear",t.weekYear)}(o):s?function(t){var e=q(t.year),n=J(t.ordinal,1,ot(t.year));return e?!n&&Nn("ordinal",t.ordinal):Nn("year",t.year)}(o):zn(o),S=_||Wn(o);if(S)return t.invalid(S);var E=Jn(g?Bn(o):s?Vn(o):o,r,n),x=new t({ts:E[0],zone:n,o:E[1],loc:h});return o.weekday&&u&&e.weekday!==x.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+x.toISO()):x},t.fromISO=function(t,e){void 0===e&&(e={});var n=function(t){return fe(t,[Ue,ze],[Be,We],[He,qe],[Ve,Ge])}(t);return ei(n[0],n[1],e,"ISO 8601",t)},t.fromRFC2822=function(t,e){void 0===e&&(e={});var n=function(t){return fe(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Pe,Re])}(t);return ei(n[0],n[1],e,"RFC 2822",t)},t.fromHTTP=function(t,e){void 0===e&&(e={});var n=function(t){return fe(t,[Me,$e],[Ne,$e],[Fe,je])}(t);return ei(n[0],n[1],e,"HTTP",e)},t.fromFormat=function(e,n,i){if(void 0===i&&(i={}),z(e)||z(n))throw new v("fromFormat requires an input string and a format");var r=i,o=r.locale,s=void 0===o?null:o,a=r.numberingSystem,l=void 0===a?null:a,u=function(t,e,n){var i=Pn(t,e,n);return[i.result,i.zone,i.invalidReason]}(ce.fromOpts({locale:s,numberingSystem:l,defaultToEN:!0}),e,n),c=u[0],d=u[1],h=u[2];return h?t.invalid(h):ei(c,d,i,"format "+n,e)},t.fromString=function(e,n,i){return void 0===i&&(i={}),t.fromFormat(e,n,i)},t.fromSQL=function(t,e){void 0===e&&(e={});var n=function(t){return fe(t,[Ye,Xe],[Ze,Qe])}(t);return ei(n[0],n[1],e,"SQL",t)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new v("need to specify a reason the DateTime is invalid");var i=e instanceof Rt?e:new Rt(e,n);if(Jt.throwOnInvalid)throw new h(i);return new t({invalid:i})},t.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(t){return this[t]},e.resolvedLocaleOpts=function(t){void 0===t&&(t={});var e=Pt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(zt.instance(t),e)},e.toLocal=function(){return this.setZone(Jt.defaultZone)},e.setZone=function(e,n){var i=void 0===n?{}:n,r=i.keepLocalTime,o=void 0!==r&&r,s=i.keepCalendarTime,a=void 0!==s&&s;if((e=qt(e,Jt.defaultZone)).equals(this.zone))return this;if(e.isValid){var l=this.ts;if(o||a){var u=e.offset(this.ts);l=Jn(this.toObject(),u,e)[0]}return Zn(this,{ts:l,zone:e})}return t.invalid(Kn(e))},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,i=e.numberingSystem,r=e.outputCalendar;return Zn(this,{loc:this.loc.clone({locale:n,numberingSystem:i,outputCalendar:r})})},e.setLocale=function(t){return this.reconfigure({locale:t})},e.set=function(t){if(!this.isValid)return this;var e,n=ft(t,ci,[]),i=!z(n.weekYear)||!z(n.weekNumber)||!z(n.weekday),r=!z(n.ordinal),o=!z(n.year),s=!z(n.month)||!z(n.day),a=o||s,l=n.weekYear||n.weekNumber;if((a||r)&&l)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new m("Can't mix ordinal dates with month/day");i?e=Bn(Object.assign(Un(this.c),n)):z(n.ordinal)?(e=Object.assign(this.toObject(),n),z(n.day)&&(e.day=Math.min(st(e.year,e.month),e.day))):e=Vn(Object.assign(Hn(this.c),n));var u=Jn(e,this.o,this.zone);return Zn(this,{ts:u[0],o:u[1]})},e.plus=function(t){return this.isValid?Zn(this,ti(this,cn(t))):this},e.minus=function(t){return this.isValid?Zn(this,ti(this,cn(t).negate())):this},e.startOf=function(t){if(!this.isValid)return this;var e={},n=un.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){var i=Math.ceil(this.month/3);e.month=3*(i-1)+1}return this.set(e)},e.endOf=function(t){var e;return this.isValid?this.plus((e={},e[t]=1,e)).startOf(t).minus(1):this},e.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?Pt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):qn},e.toLocaleString=function(t){return void 0===t&&(t=_),this.isValid?Pt.create(this.loc.clone(t),t).formatDateTime(this):qn},e.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?Pt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},e.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate(t)+"T"+this.toISOTime(t):null},e.toISODate=function(t){var e=(void 0===t?{}:t).format,n="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),ni(this,n)},e.toISOWeekDate=function(){return ni(this,"kkkk-'W'WW-c")},e.toISOTime=function(t){var e=void 0===t?{}:t,n=e.suppressMilliseconds,i=void 0!==n&&n,r=e.suppressSeconds,o=void 0!==r&&r,s=e.includeOffset,a=void 0===s||s,l=e.includePrefix,u=void 0!==l&&l,c=e.format;return ii(this,{suppressSeconds:o,suppressMilliseconds:i,includeOffset:a,includePrefix:u,format:void 0===c?"extended":c})},e.toRFC2822=function(){return ni(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return ni(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return ni(this,"yyyy-MM-dd")},e.toSQLTime=function(t){var e=void 0===t?{}:t,n=e.includeOffset,i=void 0===n||n,r=e.includeZone;return ii(this,{includeOffset:i,includeZone:void 0!==r&&r,spaceZone:!0})},e.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},e.toString=function(){return this.isValid?this.toISO():qn},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(t,e,n){if(void 0===e&&(e="milliseconds"),void 0===n&&(n={}),!this.isValid||!t.isValid)return un.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");var i,r=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(i=e,Array.isArray(i)?i:[i]).map(un.normalizeUnit),s=t.valueOf()>this.valueOf(),a=gn(s?this:t,s?t:this,o,r);return s?a.negate():a},e.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.now(),e,n)},e.until=function(t){return this.isValid?fn.fromDateTimes(this,t):this},e.hasSame=function(t,e){if(!this.isValid)return!1;var n=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(e)<=n&&n<=i.endOf(e)},e.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),hi(n,this.plus(i),Object.assign(e,{numeric:"always",units:r,unit:o}))},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?hi(e.base||t.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.every(t.isDateTime))throw new v("min requires all arguments be DateTimes");return Z(n,(function(t){return t.valueOf()}),Math.min)},t.max=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.every(t.isDateTime))throw new v("max requires all arguments be DateTimes");return Z(n,(function(t){return t.valueOf()}),Math.max)},t.fromFormatExplain=function(t,e,n){void 0===n&&(n={});var i=n,r=i.locale,o=void 0===r?null:r,s=i.numberingSystem,a=void 0===s?null:s;return Pn(ce.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),t,e)},t.fromStringExplain=function(e,n,i){return void 0===i&&(i={}),t.fromFormatExplain(e,n,i)},i(t,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Yn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Yn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Yn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Hn(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?pn.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?pn.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?pn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?pn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return rt(this.year)}},{key:"daysInMonth",get:function(){return st(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ot(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?lt(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return _}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return E}},{key:"DATE_FULL",get:function(){return x}},{key:"DATE_HUGE",get:function(){return k}},{key:"TIME_SIMPLE",get:function(){return C}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return L}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return I}},{key:"TIME_24_SIMPLE",get:function(){return O}},{key:"TIME_24_WITH_SECONDS",get:function(){return D}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return P}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return R}},{key:"DATETIME_SHORT",get:function(){return M}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return N}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return $}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return j}},{key:"DATETIME_FULL",get:function(){return U}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return V}}]),t}();function pi(t){if(fi.isDateTime(t))return t;if(t&&t.valueOf&&W(t.valueOf()))return fi.fromJSDate(t);if(t&&"object"==typeof t)return fi.fromObject(t);throw new v("Unknown datetime argument: "+t+", of type "+typeof t)}e.ou=fi,e.nL=un},8751:(t,e,n)=>{var i,r,o;window,r=[n(1794),n(6131)],void 0===(o="function"==typeof(i=function(t,e){"use strict";var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var i=n.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],n=t&&t.element;this.columnWidth=n&&e(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,o=r/i,s=i-r%i;o=Math[s&&s<1?"round":"floor"](o),this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,n=e(t);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,t),r={x:this.columnWidth*i.col,y:i.y},o=i.y+t.size.outerHeight,s=n+i.col,a=i.col;a<s;a++)this.colYs[a]=o;return r},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),n=Math.min.apply(Math,e);return{col:e.indexOf(n),y:n}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;i<n;i++)e[i]=this._getColGroupY(i,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var n=this.colYs.slice(t,t+e);return Math.max.apply(Math,n)},i._getHorizontalColPosition=function(t,e){var n=this.horizontalColIndex%this.cols;n=t>1&&n+t>this.cols?0:n;var i=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=i?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},i._manageStamp=function(t){var n=e(t),i=this._getElementOffset(t),r=this._getOption("originLeft")?i.left:i.right,o=r+n.outerWidth,s=Math.floor(r/this.columnWidth);s=Math.max(0,s);var a=Math.floor(o/this.columnWidth);a-=o%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,u=s;u<=a;u++)this.colYs[u]=Math.max(l,this.colYs[u])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n})?i.apply(e,r):i)||(t.exports=o)},1261:()=>{},8595:()=>{},7685:()=>{},3678:()=>{},652:(t,e,n)=>{var i,r,o;window,r=[n(7158),n(6131)],void 0===(o="function"==typeof(i=function(t,e){"use strict";function n(t){for(var e in t)return!1;return!0}var i=document.documentElement.style,r="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],a={transform:o,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=l.prototype=Object.create(t.prototype);function c(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}u.constructor=l,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var n in t)e[a[n]||n]=t[n]},u.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],r=t[n?"top":"bottom"],o=parseFloat(i),s=parseFloat(r),a=this.layout.size;-1!=i.indexOf("%")&&(o=o/100*a.width),-1!=r.indexOf("%")&&(s=s/100*a.height),o=isNaN(o)?0:o,s=isNaN(s)?0:s,o-=e?a.paddingLeft:a.paddingRight,s-=n?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=s},u.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=n?"paddingLeft":"paddingRight",o=n?"left":"right",s=n?"right":"left",a=this.position.x+t[r];e[o]=this.getXValue(a),e[s]="";var l=i?"paddingTop":"paddingBottom",u=i?"top":"bottom",c=i?"bottom":"top",d=this.position.y+t[l];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var n=this.position.x,i=this.position.y,r=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!r||this.isTransitioning){var o=t-n,s=e-i,a={};a.transform=this.getTranslate(o,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},u.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},u._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},u.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var n in t.onTransitionEnd)e.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)e.ingProperties[n]=!0,t.isCleaning&&(e.clean[n]=!0);t.from&&(this.css(t.from),this.element.offsetHeight),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var d="opacity,"+c(o);u.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1)}},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=h[t.propertyName]||t.propertyName;delete e.ingProperties[i],n(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},u._removeStyles=function(t){var e={};for(var n in t)e[n]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(f)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var n in e)return n},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?i.apply(e,r):i)||(t.exports=o)},1794:(t,e,n)=>{var i,r;!function(o,s){"use strict";i=[n(7158),n(6131),n(9047),n(652)],r=function(t,e,n,i){return function(t,e,n,i,r){var o=t.console,s=t.jQuery,a=function(){},l=0,u={};function c(t,e){var n=i.getQueryElement(t);if(n){this.element=n,s&&(this.$element=s(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e);var r=++l;this.element.outlayerGUID=r,u[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(n||t))}c.namespace="outlayer",c.Item=r,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=c.prototype;function h(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}i.extend(d,e.prototype),d.option=function(t){i.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],r=0;r<e.length;r++){var o=new n(e[r],this);i.push(o)}return i},d._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map((function(t){return t.element}))},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(t,e){var i,r=this.options[t];r?("string"==typeof r?i=this.element.querySelector(r):r instanceof HTMLElement&&(i=r),this[t]=i?n(i)[e]:r):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},d._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach((function(t){var i=this._getItemLayoutPosition(t);i.item=t,i.isInstant=e||t.isLayoutInstant,n.push(i)}),this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)}),this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=p(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,n,i,r){i?t.goTo(e,n):(t.stagger(r*this.stagger),t.moveTo(e,n))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d._getContainerSize=a,d._setContainerMeasure=function(t,e){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(t,e){var n=this;function i(){n.dispatchEvent(t+"Complete",null,[e])}var r=e.length;if(e&&r){var o=0;e.forEach((function(e){e.once(t,s)}))}else i();function s(){++o==r&&i()}},d.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;if(this.emitEvent(t,i),s)if(this.$element=this.$element||s(this.element),e){var r=s.Event(e);r.type=t,this.$element.trigger(r,n)}else this.$element.trigger(t,n)},d.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){i.removeFrom(this.stamps,t),this.unignore(t)}),this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=i.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=a,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,r=n(t);return{left:e.left-i.left-r.marginLeft,top:e.top-i.top-r.marginTop,right:i.right-e.right-r.marginRight,bottom:i.bottom-e.bottom-r.marginBottom}},d.handleEvent=i.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},i.debounceMethod(c,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prepended=function(t){var e=this._itemize(t);if(e.length){var n=this.items.slice(0);this.items=e.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(n)}},d.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,n){t.stagger(n*e),t.reveal()}))}},d.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,n){t.stagger(n*e),t.hide()}))}},d.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},d.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach((function(t){var n=this.getItem(t);n&&e.push(n)}),this),e},d.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach((function(t){t.remove(),i.removeFrom(this.items,t)}),this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,s&&s.removeData(this.element,this.constructor.namespace)},c.data=function(t){var e=(t=i.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},c.create=function(t,e){var n=h(c);return n.defaults=i.extend({},c.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},c.compatOptions),n.namespace=t,n.data=c.data,n.Item=h(r),i.htmlInit(n,t),s&&s.bridget&&s.bridget(t,n),n};var f={ms:1,s:1e3};function p(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),n=e&&e[1],i=e&&e[2];return n.length?(n=parseFloat(n))*(f[i]||1):0}return c.Item=r,c}(o,t,e,n,i)}.apply(e,i),void 0===r||(t.exports=r)}(window)},8411:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";return function(t,e){var n,i,r,o,s,a,l,u,c,d,h,f,p,m,g,v,y,b,w=this,T=!1,_=!0,S=!0,E={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return t.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return t.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},x=function(t){if(v)return!0;t=t||window.event,g.timeToIdle&&g.mouseUsed&&!c&&M();for(var n,i,r=(t.target||t.srcElement).getAttribute("class")||"",o=0;o<V.length;o++)(n=V[o]).onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),i=!0);if(i){t.stopPropagation&&t.stopPropagation(),v=!0;var s=e.features.isOldAndroid?600:30;setTimeout((function(){v=!1}),s)}},k=function(){return!t.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},C=function(t,n,i){e[(i?"add":"remove")+"Class"](t,"pswp__"+n)},A=function(){var t=1===g.getNumItemsFn();t!==m&&(C(i,"ui--one-slide",t),m=t)},L=function(){C(l,"share-modal--hidden",S)},I=function(){return(S=!S)?(e.removeClass(l,"pswp__share-modal--fade-in"),setTimeout((function(){S&&L()}),300)):(L(),setTimeout((function(){S||e.addClass(l,"pswp__share-modal--fade-in")}),30)),S||D(),!1},O=function(e){var n=(e=e||window.event).target||e.srcElement;return t.shout("shareLinkClick",e,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),S||I(),1))},D=function(){for(var t,e,n,i,r="",o=0;o<g.shareButtons.length;o++)t=g.shareButtons[o],e=g.getImageURLForShare(t),n=g.getPageURLForShare(t),i=g.getTextForShare(t),r+='<a href="'+t.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(i))+'" target="_blank" class="pswp__share--'+t.id+'"'+(t.download?"download":"")+">"+t.label+"</a>",g.parseShareButtonOut&&(r=g.parseShareButtonOut(t,r));l.children[0].innerHTML=r,l.children[0].onclick=O},P=function(t){for(var n=0;n<g.closeElClasses.length;n++)if(e.hasClass(t,"pswp__"+g.closeElClasses[n]))return!0},R=0,M=function(){clearTimeout(b),R=0,c&&w.setIdle(!1)},N=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(b),b=setTimeout((function(){w.setIdle(!0)}),g.timeToIdleOutside))},F=function(){g.fullscreenEl&&!e.features.isOldAndroid&&(n||(n=w.getFullscreenAPI()),n?(e.bind(document,n.eventK,w.updateFullscreen),w.updateFullscreen(),e.addClass(t.template,"pswp--supports-fs")):e.removeClass(t.template,"pswp--supports-fs"))},$=function(){g.preloaderEl&&(j(!0),d("beforeChange",(function(){clearTimeout(p),p=setTimeout((function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&j(!1):j(!0)}),g.loadingIndicatorDelay)})),d("imageLoadComplete",(function(e,n){t.currItem===n&&j(!0)})))},j=function(t){f!==t&&(C(h,"preloader--active",!t),f=t)},U=function(t){var n=t.vGap;if(k()){var s=g.barsSize;if(g.captionEl&&"auto"===s.bottom)if(o||((o=e.createEl("pswp__caption pswp__caption--fake")).appendChild(e.createEl("pswp__caption__center")),i.insertBefore(o,r),e.addClass(i,"pswp__ui--fit")),g.addCaptionHTMLFn(t,o,!0)){var a=o.clientHeight;n.bottom=parseInt(a,10)||44}else n.bottom=s.top;else n.bottom="auto"===s.bottom?0:s.bottom;n.top=s.top}else n.top=n.bottom=0},B=function(){g.timeToIdle&&d("mouseUsed",(function(){e.bind(document,"mousemove",M),e.bind(document,"mouseout",N),y=setInterval((function(){2==++R&&w.setIdle(!0)}),g.timeToIdle/2)}))},H=function(){var t;d("onVerticalDrag",(function(t){_&&t<.95?w.hideControls():!_&&t>=.95&&w.showControls()})),d("onPinchClose",(function(e){_&&e<.9?(w.hideControls(),t=!0):t&&!_&&e>.9&&w.showControls()})),d("zoomGestureEnded",(function(){(t=!1)&&!_&&w.showControls()}))},V=[{name:"caption",option:"captionEl",onInit:function(t){r=t}},{name:"share-modal",option:"shareEl",onInit:function(t){l=t},onTap:function(){I()}},{name:"button--share",option:"shareEl",onInit:function(t){a=t},onTap:function(){I()}},{name:"button--zoom",option:"zoomEl",onTap:t.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){s=t}},{name:"button--close",option:"closeEl",onTap:t.close},{name:"button--arrow--left",option:"arrowEl",onTap:t.prev},{name:"button--arrow--right",option:"arrowEl",onTap:t.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){h=t}}],z=function(){var t,n,r,o=function(i){if(i)for(var o=i.length,s=0;s<o;s++){t=i[s],n=t.className;for(var a=0;a<V.length;a++)r=V[a],n.indexOf("pswp__"+r.name)>-1&&(g[r.option]?(e.removeClass(t,"pswp__element--disabled"),r.onInit&&r.onInit(t)):e.addClass(t,"pswp__element--disabled"))}};o(i.children);var s=e.getChildByClass(i,"pswp__top-bar");s&&o(s.children)};w.init=function(){e.extend(t.options,E,!0),g=t.options,i=e.getChildByClass(t.scrollWrap,"pswp__ui"),d=t.listen,H(),d("beforeChange",w.update),d("doubleTap",(function(e){var n=t.currItem.initialZoomLevel;t.getZoomLevel()!==n?t.zoomTo(n,e,333):t.zoomTo(g.getDoubleTapZoom(!1,t.currItem),e,333)})),d("preventDragEvent",(function(t,e,n){var i=t.target||t.srcElement;i&&i.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(i.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=!1)})),d("bindEvents",(function(){e.bind(i,"pswpTap click",x),e.bind(t.scrollWrap,"pswpTap",w.onGlobalTap),t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",w.onMouseOver)})),d("unbindEvents",(function(){S||I(),y&&clearInterval(y),e.unbind(document,"mouseout",N),e.unbind(document,"mousemove",M),e.unbind(i,"pswpTap click",x),e.unbind(t.scrollWrap,"pswpTap",w.onGlobalTap),e.unbind(t.scrollWrap,"mouseover",w.onMouseOver),n&&(e.unbind(document,n.eventK,w.updateFullscreen),n.isFullscreen()&&(g.hideAnimationDuration=0,n.exit()),n=null)})),d("destroy",(function(){g.captionEl&&(o&&i.removeChild(o),e.removeClass(r,"pswp__caption--empty")),l&&(l.children[0].onclick=null),e.removeClass(i,"pswp__ui--over-close"),e.addClass(i,"pswp__ui--hidden"),w.setIdle(!1)})),g.showAnimationDuration||e.removeClass(i,"pswp__ui--hidden"),d("initialZoomIn",(function(){g.showAnimationDuration&&e.removeClass(i,"pswp__ui--hidden")})),d("initialZoomOut",(function(){e.addClass(i,"pswp__ui--hidden")})),d("parseVerticalMargin",U),z(),g.shareEl&&a&&l&&(S=!0),A(),B(),F(),$()},w.setIdle=function(t){c=t,C(i,"ui--idle",t)},w.update=function(){_&&t.currItem?(w.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(t.currItem,r),C(r,"caption--empty",!t.currItem.title)),T=!0):T=!1,S||I(),A()},w.updateFullscreen=function(i){i&&setTimeout((function(){t.setScrollOffset(0,e.getScrollY())}),50),e[(n.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")},w.updateIndexIndicator=function(){g.counterEl&&(s.innerHTML=t.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},w.onGlobalTap=function(n){var i=(n=n||window.event).target||n.srcElement;if(!v)if(n.detail&&"mouse"===n.detail.pointerType){if(P(i))return void t.close();e.hasClass(i,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()<=t.currItem.fitRatio?g.clickToCloseNonZoomable&&t.close():t.toggleDesktopZoom(n.detail.releasePoint))}else if(g.tapToToggleControls&&(_?w.hideControls():w.showControls()),g.tapToClose&&(e.hasClass(i,"pswp__img")||P(i)))return void t.close()},w.onMouseOver=function(t){var e=(t=t||window.event).target||t.srcElement;C(i,"ui--over-close",P(e))},w.hideControls=function(){e.addClass(i,"pswp__ui--hidden"),_=!1},w.showControls=function(){_=!0,T||w.update(),e.removeClass(i,"pswp__ui--hidden")},w.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},w.getFullscreenAPI=function(){var e,n=document.documentElement,i="fullscreenchange";return n.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:n.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:n.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:n.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(u=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return t.template[this.enterK]();t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return g.closeOnScroll=u,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}})?i.call(e,n,e,t):i)||(t.exports=r)},8832:function(t,e,n){var i,r;i=function(){"use strict";var t=function(t,e,n,i){var r={features:null,bind:function(t,e,n,i){var r=(i?"remove":"add")+"EventListener";e=e.split(" ");for(var o=0;o<e.length;o++)e[o]&&t[r](e[o],n,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var n=document.createElement(e||"div");return t&&(n.className=t),n},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,n){r.bind(t,e,n,!0)},removeClass:function(t,e){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){r.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var n=t.firstChild;n;){if(r.hasClass(n,e))return n;n=n.nextSibling}},arraySearch:function(t,e,n){for(var i=t.length;i--;)if(t[i][n]===e)return i;return-1},extend:function(t,e,n){for(var i in e)if(e.hasOwnProperty(i)){if(n&&t.hasOwnProperty(i))continue;t[i]=e[i]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(r.features)return r.features;var t=r.createEl().style,e="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var i=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var o=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);o&&o.length>0&&(o=parseInt(o[1],10))>=1&&o<8&&(n.isOldIOSPhone=!0)}var s=i.match(/Android\s([0-9\.]*)/),a=s?s[1]:0;(a=parseFloat(a))>=1&&(a<4.4&&(n.isOldAndroid=!0),n.androidVersion=a),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,u,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],h=0;h<4;h++){e=d[h];for(var f=0;f<3;f++)l=c[f],u=e+(e?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&u in t&&(n[l]=u);e&&!n.raf&&(e=e.toLowerCase(),n.raf=window[e+"RequestAnimationFrame"],n.raf&&(n.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!n.raf){var p=0;n.raf=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-p)),i=window.setTimeout((function(){t(e+n)}),n);return p=e+n,i},n.caf=function(t){clearTimeout(t)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r.features=n,n}};r.detectFeatures(),r.features.oldIE&&(r.bind=function(t,e,n,i){e=e.split(" ");for(var r,o=(i?"detach":"attach")+"Event",s=function(){n.handleEvent.call(n)},a=0;a<e.length;a++)if(r=e[a])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+r])return!1}else n["oldIE"+r]=s;t[o]("on"+r,n["oldIE"+r])}else t[o]("on"+r,n)});var o=this,s=25,a=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};r.extend(l,i);var u,c,d,h,f,p,m,g,v,y,b,w,T,_,S,E,x,k,C,A,L,I,O,D,P,R,M,N,F,$,j,U,B,H,V,z,W,q,G,K,Y,Z,X,Q,J,tt,et,nt,it,rt,ot,st,at,lt,ut,ct,dt=function(){return{x:0,y:0}},ht=dt(),ft=dt(),pt=dt(),mt={},gt=0,vt={},yt=dt(),bt=0,wt=!0,Tt=[],_t={},St=!1,Et=function(t,e){r.extend(o,e.publicMethods),Tt.push(t)},xt=function(t){var e=Je();return t>e-1?t-e:t<0?e+t:t},kt={},Ct=function(t,e){return kt[t]||(kt[t]=[]),kt[t].push(e)},At=function(t){var e=kt[t];if(e){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<e.length;i++)e[i].apply(o,n)}},Lt=function(){return(new Date).getTime()},It=function(t){lt=t,o.bg.style.opacity=t*l.bgOpacity},Ot=function(t,e,n,i,r){(!St||r&&r!==o.currItem)&&(i/=r?r.fitRatio:o.currItem.fitRatio),t[I]=w+e+"px, "+n+"px"+T+" scale("+i+")"},Dt=function(t){it&&(t&&(y>o.currItem.fitRatio?St||(dn(o.currItem,!1,!0),St=!0):St&&(dn(o.currItem),St=!1)),Ot(it,pt.x,pt.y,y))},Pt=function(t){t.container&&Ot(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Rt=function(t,e){e[I]=w+t+"px, 0px"+T},Mt=function(t,e){if(!l.loop&&e){var n=h+(yt.x*gt-t)/yt.x,i=Math.round(t-ye.x);(n<0&&i>0||n>=Je()-1&&i<0)&&(t=ye.x+i*l.mainScrollEndFriction)}ye.x=t,Rt(t,f)},Nt=function(t,e){var n=be[t]-vt[t];return ft[t]+ht[t]+n-n*(e/b)},Ft=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},$t=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},jt=null,Ut=function(){jt&&(r.unbind(document,"mousemove",Ut),r.addClass(t,"pswp--has_mouse"),l.mouseUsed=!0,At("mouseUsed")),jt=setTimeout((function(){jt=null}),100)},Bt=function(){r.bind(document,"keydown",o),j.transform&&r.bind(o.scrollWrap,"click",o),l.mouseUsed||r.bind(document,"mousemove",Ut),r.bind(window,"resize scroll orientationchange",o),At("bindEvents")},Ht=function(){r.unbind(window,"resize scroll orientationchange",o),r.unbind(window,"scroll",v.scroll),r.unbind(document,"keydown",o),r.unbind(document,"mousemove",Ut),j.transform&&r.unbind(o.scrollWrap,"click",o),G&&r.unbind(window,m,o),clearTimeout(U),At("unbindEvents")},Vt=function(t,e){var n=an(o.currItem,mt,t);return e&&(nt=n),n},zt=function(t){return t||(t=o.currItem),t.initialZoomLevel},Wt=function(t){return t||(t=o.currItem),t.w>0?l.maxSpreadZoom:1},qt=function(t,e,n,i){return i===o.currItem.initialZoomLevel?(n[t]=o.currItem.initialPosition[t],!0):(n[t]=Nt(t,i),n[t]>e.min[t]?(n[t]=e.min[t],!0):n[t]<e.max[t]&&(n[t]=e.max[t],!0))},Gt=function(){if(I){var e=j.perspective&&!D;return w="translate"+(e?"3d(":"("),void(T=j.perspective?", 0px)":")")}I="left",r.addClass(t,"pswp--ie"),Rt=function(t,e){e.left=t+"px"},Pt=function(t){var e=t.fitRatio>1?1:t.fitRatio,n=t.container.style,i=e*t.w,r=e*t.h;n.width=i+"px",n.height=r+"px",n.left=t.initialPosition.x+"px",n.top=t.initialPosition.y+"px"},Dt=function(){if(it){var t=it,e=o.currItem,n=e.fitRatio>1?1:e.fitRatio,i=n*e.w,r=n*e.h;t.width=i+"px",t.height=r+"px",t.left=pt.x+"px",t.top=pt.y+"px"}}},Kt=function(t){var e="";l.escKey&&27===t.keyCode?e="close":l.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,o[e]()))},Yt=function(t){t&&(Z||Y||rt||W)&&(t.preventDefault(),t.stopPropagation())},Zt=function(){o.setScrollOffset(0,r.getScrollY())},Xt={},Qt=0,Jt=function(t){Xt[t]&&(Xt[t].raf&&R(Xt[t].raf),Qt--,delete Xt[t])},te=function(t){Xt[t]&&Jt(t),Xt[t]||(Qt++,Xt[t]={})},ee=function(){for(var t in Xt)Xt.hasOwnProperty(t)&&Jt(t)},ne=function(t,e,n,i,r,o,s){var a,l=Lt();te(t);var u=function(){if(Xt[t]){if((a=Lt()-l)>=i)return Jt(t),o(n),void(s&&s());o((n-e)*r(a/i)+e),Xt[t].raf=P(u)}};u()},ie={shout:At,listen:Ct,viewportSize:mt,options:l,isMainScrollAnimating:function(){return rt},getZoomLevel:function(){return y},getCurrentIndex:function(){return h},isDragging:function(){return G},isZooming:function(){return tt},setScrollOffset:function(t,e){vt.x=t,$=vt.y=e,At("updateScrollOffset",vt)},applyZoomPan:function(t,e,n,i){pt.x=e,pt.y=n,y=t,Dt(i)},init:function(){if(!u&&!c){var n;o.framework=r,o.template=t,o.bg=r.getChildByClass(t,"pswp__bg"),M=t.className,u=!0,j=r.detectFeatures(),P=j.raf,R=j.caf,I=j.transform,F=j.oldIE,o.scrollWrap=r.getChildByClass(t,"pswp__scroll-wrap"),o.container=r.getChildByClass(o.scrollWrap,"pswp__container"),f=o.container.style,o.itemHolders=E=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}],E[0].el.style.display=E[2].el.style.display="none",Gt(),v={resize:o.updateSize,orientationchange:function(){clearTimeout(U),U=setTimeout((function(){mt.x!==o.scrollWrap.clientWidth&&o.updateSize()}),500)},scroll:Zt,keydown:Kt,click:Yt};var i=j.isOldIOSPhone||j.isOldAndroid||j.isMobileOpera;for(j.animationName&&j.transform&&!i||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<Tt.length;n++)o["init"+Tt[n]]();e&&(o.ui=new e(o,r)).init(),At("firstUpdate"),h=h||l.index||0,(isNaN(h)||h<0||h>=Je())&&(h=0),o.currItem=Qe(h),(j.isOldIOSPhone||j.isOldAndroid)&&(wt=!1),t.setAttribute("aria-hidden","false"),l.modal&&(wt?t.style.position="fixed":(t.style.position="absolute",t.style.top=r.getScrollY()+"px")),void 0===$&&(At("initialLayout"),$=N=r.getScrollY());var s="pswp--open ";for(l.mainClass&&(s+=l.mainClass+" "),l.showHideOpacity&&(s+="pswp--animate_opacity "),s+=D?"pswp--touch":"pswp--notouch",s+=j.animationName?" pswp--css_animation":"",s+=j.svg?" pswp--svg":"",r.addClass(t,s),o.updateSize(),p=-1,bt=null,n=0;n<a;n++)Rt((n+p)*yt.x,E[n].el.style);F||r.bind(o.scrollWrap,g,o),Ct("initialZoomInEnd",(function(){o.setContent(E[0],h-1),o.setContent(E[2],h+1),E[0].el.style.display=E[2].el.style.display="block",l.focus&&t.focus(),Bt()})),o.setContent(E[1],h),o.updateCurrItem(),At("afterInit"),wt||(_=setInterval((function(){Qt||G||tt||y!==o.currItem.initialZoomLevel||o.updateSize()}),1e3)),r.addClass(t,"pswp--visible")}},close:function(){u&&(u=!1,c=!0,At("close"),Ht(),tn(o.currItem,null,!0,o.destroy))},destroy:function(){At("destroy"),Ke&&clearTimeout(Ke),t.setAttribute("aria-hidden","true"),t.className=M,_&&clearInterval(_),r.unbind(o.scrollWrap,g,o),r.unbind(window,"scroll",o),Ee(),ee(),kt=null},panTo:function(t,e,n){n||(t>nt.min.x?t=nt.min.x:t<nt.max.x&&(t=nt.max.x),e>nt.min.y?e=nt.min.y:e<nt.max.y&&(e=nt.max.y)),pt.x=t,pt.y=e,Dt()},handleEvent:function(t){t=t||window.event,v[t.type]&&v[t.type](t)},goTo:function(t){var e=(t=xt(t))-h;bt=e,h=t,o.currItem=Qe(h),gt-=e,Mt(yt.x*gt),ee(),rt=!1,o.updateCurrItem()},next:function(){o.goTo(h+1)},prev:function(){o.goTo(h-1)},updateCurrZoomItem:function(t){if(t&&At("beforeChange",0),E[1].el.children.length){var e=E[1].el.children[0];it=r.hasClass(e,"pswp__zoom-wrap")?e.style:null}else it=null;nt=o.currItem.bounds,b=y=o.currItem.initialZoomLevel,pt.x=nt.center.x,pt.y=nt.center.y,t&&At("afterChange")},invalidateCurrItems:function(){S=!0;for(var t=0;t<a;t++)E[t].item&&(E[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==bt){var e,n=Math.abs(bt);if(!(t&&n<2)){o.currItem=Qe(h),St=!1,At("beforeChange",bt),n>=a&&(p+=bt+(bt>0?-a:a),n=a);for(var i=0;i<n;i++)bt>0?(e=E.shift(),E[a-1]=e,p++,Rt((p+2)*yt.x,e.el.style),o.setContent(e,h-n+i+1+1)):(e=E.pop(),E.unshift(e),p--,Rt(p*yt.x,e.el.style),o.setContent(e,h+n-i-1-1));if(it&&1===Math.abs(bt)){var r=Qe(x);r.initialZoomLevel!==y&&(an(r,mt),dn(r),Pt(r))}bt=0,o.updateCurrZoomItem(),x=h,At("afterChange")}}},updateSize:function(e){if(!wt&&l.modal){var n=r.getScrollY();if($!==n&&(t.style.top=n+"px",$=n),!e&&_t.x===window.innerWidth&&_t.y===window.innerHeight)return;_t.x=window.innerWidth,_t.y=window.innerHeight,t.style.height=_t.y+"px"}if(mt.x=o.scrollWrap.clientWidth,mt.y=o.scrollWrap.clientHeight,Zt(),yt.x=mt.x+Math.round(mt.x*l.spacing),yt.y=mt.y,Mt(yt.x*gt),At("beforeResize"),void 0!==p){for(var i,s,u,c=0;c<a;c++)i=E[c],Rt((c+p)*yt.x,i.el.style),u=h+c-1,l.loop&&Je()>2&&(u=xt(u)),(s=Qe(u))&&(S||s.needsUpdate||!s.bounds)?(o.cleanSlide(s),o.setContent(i,u),1===c&&(o.currItem=s,o.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===i.index&&u>=0&&o.setContent(i,u),s&&s.container&&(an(s,mt),dn(s),Pt(s));S=!1}b=y=o.currItem.initialZoomLevel,(nt=o.currItem.bounds)&&(pt.x=nt.center.x,pt.y=nt.center.y,Dt(!0)),At("resize")},zoomTo:function(t,e,n,i,o){e&&(b=y,be.x=Math.abs(e.x)-pt.x,be.y=Math.abs(e.y)-pt.y,Ft(ft,pt));var s=Vt(t,!1),a={};qt("x",s,a,t),qt("y",s,a,t);var l=y,u={x:pt.x,y:pt.y};$t(a);var c=function(e){1===e?(y=t,pt.x=a.x,pt.y=a.y):(y=(t-l)*e+l,pt.x=(a.x-u.x)*e+u.x,pt.y=(a.y-u.y)*e+u.y),o&&o(e),Dt(1===e)};n?ne("customZoomTo",0,1,n,i||r.easing.sine.inOut,c):c(1)}},re=30,oe=10,se={},ae={},le={},ue={},ce={},de=[],he={},fe=[],pe={},me=0,ge=dt(),ve=0,ye=dt(),be=dt(),we=dt(),Te=function(t,e){return t.x===e.x&&t.y===e.y},_e=function(t,e){return Math.abs(t.x-e.x)<s&&Math.abs(t.y-e.y)<s},Se=function(t,e){return pe.x=Math.abs(t.x-e.x),pe.y=Math.abs(t.y-e.y),Math.sqrt(pe.x*pe.x+pe.y*pe.y)},Ee=function(){X&&(R(X),X=null)},xe=function(){G&&(X=P(xe),Be())},ke=function(){return!("fit"===l.scaleMode&&y===o.currItem.initialZoomLevel)},Ce=function(t,e){return!(!t||t===document)&&!(t.getAttribute("class")&&t.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(e(t)?t:Ce(t.parentNode,e))},Ae={},Le=function(t,e){return Ae.prevent=!Ce(t.target,l.isClickableElement),At("preventDragEvent",t,e,Ae),Ae.prevent},Ie=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},Oe=function(t,e,n){n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y)},De=function(t,e,n){if(t-H>50){var i=fe.length>2?fe.shift():{};i.x=e,i.y=n,fe.push(i),H=t}},Pe=function(){var t=pt.y-o.currItem.initialPosition.y;return 1-Math.abs(t/(mt.y/2))},Re={},Me={},Ne=[],Fe=function(t){for(;Ne.length>0;)Ne.pop();return O?(ct=0,de.forEach((function(t){0===ct?Ne[0]=t:1===ct&&(Ne[1]=t),ct++}))):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Ne[0]=Ie(t.touches[0],Re),t.touches.length>1&&(Ne[1]=Ie(t.touches[1],Me))):(Re.x=t.pageX,Re.y=t.pageY,Re.id="",Ne[0]=Re),Ne},$e=function(t,e){var n,i,r,s,a=pt[t]+e[t],u=e[t]>0,c=ye.x+e.x,d=ye.x-he.x;if(n=a>nt.min[t]||a<nt.max[t]?l.panEndFriction:1,a=pt[t]+e[t]*n,(l.allowPanToNext||y===o.currItem.initialZoomLevel)&&(it?"h"!==ot||"x"!==t||Y||(u?(a>nt.min[t]&&(n=l.panEndFriction,nt.min[t],i=nt.min[t]-ft[t]),(i<=0||d<0)&&Je()>1?(s=c,d<0&&c>he.x&&(s=he.x)):nt.min.x!==nt.max.x&&(r=a)):(a<nt.max[t]&&(n=l.panEndFriction,nt.max[t],i=ft[t]-nt.max[t]),(i<=0||d>0)&&Je()>1?(s=c,d>0&&c<he.x&&(s=he.x)):nt.min.x!==nt.max.x&&(r=a))):s=c,"x"===t))return void 0!==s&&(Mt(s,!0),Q=s!==he.x),nt.min.x!==nt.max.x&&(void 0!==r?pt.x=r:Q||(pt.x+=e.x*n)),void 0!==s;rt||Q||y>o.currItem.fitRatio&&(pt[t]+=e[t]*n)},je=function(t){if(!("mousedown"===t.type&&t.button>0))if(Xe)t.preventDefault();else if(!q||"mousedown"!==t.type){if(Le(t,!0)&&t.preventDefault(),At("pointerDown"),O){var e=r.arraySearch(de,t.pointerId,"id");e<0&&(e=de.length),de[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var n=Fe(t),i=n.length;J=null,ee(),G&&1!==i||(G=st=!0,r.bind(window,m,o),z=ut=at=W=Q=Z=K=Y=!1,ot=null,At("firstTouchStart",n),Ft(ft,pt),ht.x=ht.y=0,Ft(ue,n[0]),Ft(ce,ue),he.x=yt.x*gt,fe=[{x:ue.x,y:ue.y}],H=B=Lt(),Vt(y,!0),Ee(),xe()),!tt&&i>1&&!rt&&!Q&&(b=y,Y=!1,tt=K=!0,ht.y=ht.x=0,Ft(ft,pt),Ft(se,n[0]),Ft(ae,n[1]),Oe(se,ae,we),be.x=Math.abs(we.x)-pt.x,be.y=Math.abs(we.y)-pt.y,et=Se(se,ae))}},Ue=function(t){if(t.preventDefault(),O){var e=r.arraySearch(de,t.pointerId,"id");if(e>-1){var n=de[e];n.x=t.pageX,n.y=t.pageY}}if(G){var i=Fe(t);if(ot||Z||tt)J=i;else if(ye.x!==yt.x*gt)ot="h";else{var o=Math.abs(i[0].x-ue.x)-Math.abs(i[0].y-ue.y);Math.abs(o)>=oe&&(ot=o>0?"h":"v",J=i)}}},Be=function(){if(J){var t=J.length;if(0!==t)if(Ft(se,J[0]),le.x=se.x-ue.x,le.y=se.y-ue.y,tt&&t>1){if(ue.x=se.x,ue.y=se.y,!le.x&&!le.y&&Te(J[1],ae))return;Ft(ae,J[1]),Y||(Y=!0,At("zoomGestureStarted"));var e=Se(se,ae),n=qe(e);n>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(ut=!0);var i=1,r=zt(),s=Wt();if(n<r)if(l.pinchToClose&&!ut&&b<=o.currItem.initialZoomLevel){var a=1-(r-n)/(r/1.2);It(a),At("onPinchClose",a),at=!0}else(i=(r-n)/r)>1&&(i=1),n=r-i*(r/3);else n>s&&((i=(n-s)/(6*r))>1&&(i=1),n=s+i*r);i<0&&(i=0),Oe(se,ae,ge),ht.x+=ge.x-we.x,ht.y+=ge.y-we.y,Ft(we,ge),pt.x=Nt("x",n),pt.y=Nt("y",n),z=n>y,y=n,Dt()}else{if(!ot)return;if(st&&(st=!1,Math.abs(le.x)>=oe&&(le.x-=J[0].x-ce.x),Math.abs(le.y)>=oe&&(le.y-=J[0].y-ce.y)),ue.x=se.x,ue.y=se.y,0===le.x&&0===le.y)return;if("v"===ot&&l.closeOnVerticalDrag&&!ke()){ht.y+=le.y,pt.y+=le.y;var u=Pe();return W=!0,At("onVerticalDrag",u),It(u),void Dt()}De(Lt(),se.x,se.y),Z=!0,nt=o.currItem.bounds,$e("x",le)||($e("y",le),$t(pt),Dt())}}},He=function(t){if(j.isOldAndroid){if(q&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(q),q=setTimeout((function(){q=0}),600))}var e;if(At("pointerUp"),Le(t,!1)&&t.preventDefault(),O){var n=r.arraySearch(de,t.pointerId,"id");if(n>-1)if(e=de.splice(n,1)[0],navigator.msPointerEnabled){var i={4:"mouse",2:"touch",3:"pen"};e.type=i[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}var s,a=Fe(t),u=a.length;if("mouseup"===t.type&&(u=0),2===u)return J=null,!0;1===u&&Ft(ce,a[0]),0!==u||ot||rt||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),At("touchRelease",t,e));var c=-1;if(0===u&&(G=!1,r.unbind(window,m,o),Ee(),tt?c=0:-1!==ve&&(c=Lt()-ve)),ve=1===u?Lt():-1,s=-1!==c&&c<150?"zoom":"swipe",tt&&u<2&&(tt=!1,1===u&&(s="zoomPointerUp"),At("zoomGestureEnded")),J=null,Z||Y||rt||W)if(ee(),V||(V=Ve()),V.calculateSwipeSpeed("x"),W)if(Pe()<l.verticalDragRange)o.close();else{var d=pt.y,h=lt;ne("verticalDrag",0,1,300,r.easing.cubic.out,(function(t){pt.y=(o.currItem.initialPosition.y-d)*t+d,It((1-h)*t+h),Dt()})),At("onVerticalDrag",1)}else{if((Q||rt)&&0===u){if(We(s,V))return;s="zoomPointerUp"}rt||("swipe"===s?!Q&&y>o.currItem.fitRatio&&ze(V):Ge())}},Ve=function(){var t,e,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){fe.length>1?(t=Lt()-H+50,e=fe[fe.length-2][i]):(t=Lt()-B,e=ce[i]),n.lastFlickOffset[i]=ue[i]-e,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/t:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(t,e){n.backAnimStarted[t]||(pt[t]>nt.min[t]?n.backAnimDestination[t]=nt.min[t]:pt[t]<nt.max[t]&&(n.backAnimDestination[t]=nt.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,ne("bounceZoomPan"+t,pt[t],n.backAnimDestination[t],e||300,r.easing.sine.out,(function(e){pt[t]=e,Dt()})))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,pt[t]+=n.distanceOffset[t])},panAnimLoop:function(){if(Xt.zoomPan&&(Xt.zoomPan.raf=P(n.panAnimLoop),n.now=Lt(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Dt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return pt.x=Math.round(pt.x),pt.y=Math.round(pt.y),Dt(),void Jt("zoomPan")}};return n},ze=function(t){if(t.calculateSwipeSpeed("y"),nt=o.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05)return t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0;te("zoomPan"),t.lastNow=Lt(),t.panAnimLoop()},We=function(t,e){var n,i,s;if(rt||(me=h),"swipe"===t){var a=ue.x-ce.x,u=e.lastFlickDist.x<10;a>re&&(u||e.lastFlickOffset.x>20)?i=-1:a<-re&&(u||e.lastFlickOffset.x<-20)&&(i=1)}i&&((h+=i)<0?(h=l.loop?Je()-1:0,s=!0):h>=Je()&&(h=l.loop?0:Je()-1,s=!0),s&&!l.loop||(bt+=i,gt-=i,n=!0));var c,d=yt.x*gt,f=Math.abs(d-ye.x);return n||d>ye.x==e.lastFlickSpeed.x>0?(c=Math.abs(e.lastFlickSpeed.x)>0?f/Math.abs(e.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,me===h&&(n=!1),rt=!0,At("mainScrollAnimStart"),ne("mainScroll",ye.x,d,c,r.easing.cubic.out,Mt,(function(){ee(),rt=!1,me=-1,(n||me!==h)&&o.updateCurrItem(),At("mainScrollAnimComplete")})),n&&o.updateCurrItem(!0),n},qe=function(t){return 1/et*t*b},Ge=function(){var t=y,e=zt(),n=Wt();y<e?t=e:y>n&&(t=n);var i,s=1,a=lt;return at&&!z&&!ut&&y<e?(o.close(),!0):(at&&(i=function(t){It((s-a)*t+a)}),o.zoomTo(t,0,200,r.easing.cubic.out,i),!0)};Et("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,n,i,r){k=t+e,C=t+n,A=t+i,L=r?t+r:""};(O=j.pointerEvent)&&j.touch&&(j.touch=!1),O?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):j.touch?(t("touch","start","move","end","cancel"),D=!0):t("mouse","down","move","up"),m=C+" "+A+" "+L,g=k,O&&!D&&(D=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),o.likelyTouchDevice=D,v[k]=je,v[C]=Ue,v[A]=He,L&&(v[L]=v[A]),j.touch&&(g+=" mousedown",m+=" mousemove mouseup",v.mousedown=v[k],v.mousemove=v[C],v.mouseup=v[A]),D||(l.allowPanToNext=!1)}}});var Ke,Ye,Ze,Xe,Qe,Je,tn=function(e,n,i,s){var a;Ke&&clearTimeout(Ke),Xe=!0,Ze=!0,e.initialLayout?(a=e.initialLayout,e.initialLayout=null):a=l.getThumbBoundsFn&&l.getThumbBoundsFn(h);var u,c,f=i?l.hideAnimationDuration:l.showAnimationDuration,p=function(){Jt("initialZoom"),i?(o.template.removeAttribute("style"),o.bg.removeAttribute("style")):(It(1),n&&(n.style.display="block"),r.addClass(t,"pswp--animated-in"),At("initialZoom"+(i?"OutEnd":"InEnd"))),s&&s(),Xe=!1};if(!f||!a||void 0===a.x)return At("initialZoom"+(i?"Out":"In")),y=e.initialZoomLevel,Ft(pt,e.initialPosition),Dt(),t.style.opacity=i?0:1,It(1),void(f?setTimeout((function(){p()}),f):p());u=d,c=!o.currItem.src||o.currItem.loadError||l.showHideOpacity,e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),i||(y=a.w/e.w,pt.x=a.x,pt.y=a.y-N,o[c?"template":"bg"].style.opacity=.001,Dt()),te("initialZoom"),i&&!u&&r.removeClass(t,"pswp--animated-in"),c&&(i?r[(u?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout((function(){r.addClass(t,"pswp--animate_opacity")}),30)),Ke=setTimeout((function(){if(At("initialZoom"+(i?"Out":"In")),i){var n=a.w/e.w,o={x:pt.x,y:pt.y},s=y,l=lt,d=function(e){1===e?(y=n,pt.x=a.x,pt.y=a.y-$):(y=(n-s)*e+s,pt.x=(a.x-o.x)*e+o.x,pt.y=(a.y-$-o.y)*e+o.y),Dt(),c?t.style.opacity=1-e:It(l-e*l)};u?ne("initialZoom",0,1,f,r.easing.cubic.out,d,p):(d(1),Ke=setTimeout(p,f+20))}else y=e.initialZoomLevel,Ft(pt,e.initialPosition),Dt(),It(1),c?t.style.opacity=1:It(1),Ke=setTimeout(p,f+20)}),i?25:90)},en={},nn=[],rn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ye.length}},on=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},sn=function(t,e,n){var i=t.bounds;i.center.x=Math.round((en.x-e)/2),i.center.y=Math.round((en.y-n)/2)+t.vGap.top,i.max.x=e>en.x?Math.round(en.x-e):i.center.x,i.max.y=n>en.y?Math.round(en.y-n)+t.vGap.top:i.center.y,i.min.x=e>en.x?0:i.center.x,i.min.y=n>en.y?t.vGap.top:i.center.y},an=function(t,e,n){if(t.src&&!t.loadError){var i=!n;if(i&&(t.vGap||(t.vGap={top:0,bottom:0}),At("parseVerticalMargin",t)),en.x=e.x,en.y=e.y-t.vGap.top-t.vGap.bottom,i){var r=en.x/t.w,o=en.y/t.h;t.fitRatio=r<o?r:o;var s=l.scaleMode;"orig"===s?n=1:"fit"===s&&(n=t.fitRatio),n>1&&(n=1),t.initialZoomLevel=n,t.bounds||(t.bounds=on())}if(!n)return;return sn(t,t.w*n,t.h*n),i&&n===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=on(),t.initialPosition=t.bounds.center,t.bounds},ln=function(t,e,n,i,r,s){e.loadError||i&&(e.imageAppended=!0,dn(e,i,e===o.currItem&&St),n.appendChild(i),s&&setTimeout((function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)}),500))},un=function(t){t.loading=!0,t.loaded=!1;var e=t.img=r.createEl("pswp__img","img"),n=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=n,e.onerror=function(){t.loadError=!0,n()},e.src=t.src,e},cn=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=l.errorMsg.replace("%url%",t.src),!0},dn=function(t,e,n){if(t.src){e||(e=t.container.lastChild);var i=n?t.w:Math.round(t.w*t.fitRatio),r=n?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=i+"px",t.placeholder.style.height=r+"px"),e.style.width=i+"px",e.style.height=r+"px"}},hn=function(){if(nn.length){for(var t,e=0;e<nn.length;e++)(t=nn[e]).holder.index===t.index&&ln(t.index,t.item,t.baseDiv,t.img,!1,t.clearPlaceholder);nn=[]}};Et("Controller",{publicMethods:{lazyLoadItem:function(t){t=xt(t);var e=Qe(t);e&&(!e.loaded&&!e.loading||S)&&(At("gettingData",t,e),e.src&&un(e))},initController:function(){r.extend(l,rn,!0),o.items=Ye=n,Qe=o.getItemAt,Je=l.getNumItemsFn,l.loop,Je()<3&&(l.loop=!1),Ct("beforeChange",(function(t){var e,n=l.preload,i=null===t||t>=0,r=Math.min(n[0],Je()),s=Math.min(n[1],Je());for(e=1;e<=(i?s:r);e++)o.lazyLoadItem(h+e);for(e=1;e<=(i?r:s);e++)o.lazyLoadItem(h-e)})),Ct("initialLayout",(function(){o.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(h)})),Ct("mainScrollAnimComplete",hn),Ct("initialZoomInEnd",hn),Ct("destroy",(function(){for(var t,e=0;e<Ye.length;e++)(t=Ye[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);nn=null}))},getItemAt:function(t){return t>=0&&void 0!==Ye[t]&&Ye[t]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!D||l.mouseUsed||screen.width>1200},setContent:function(t,e){l.loop&&(e=xt(e));var n=o.getItemAt(t.index);n&&(n.container=null);var i,s=o.getItemAt(e);if(s){At("gettingData",e,s),t.index=e,t.item=s;var a=s.container=r.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?a.appendChild(s.html):a.innerHTML=s.html),cn(s),an(s,mt),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&((i=r.createEl("pswp__img","img")).style.opacity=1,i.src=s.src,dn(s,i),ln(e,s,a,i,!0));else{if(s.loadComplete=function(n){if(u){if(t&&t.index===e){if(cn(n,!0))return n.loadComplete=n.img=null,an(n,mt),Pt(n),void(t.index===h&&o.updateCurrZoomItem());n.imageAppended?!Xe&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):j.transform&&(rt||Xe)?nn.push({item:n,baseDiv:a,img:n.img,index:e,holder:t,clearPlaceholder:!0}):ln(e,n,a,n.img,rt||Xe,!0)}n.loadComplete=null,n.img=null,At("imageLoadComplete",e,n)}},r.features.transform){var c="pswp__img pswp__img--placeholder";c+=s.msrc?"":" pswp__img--placeholder--blank";var d=r.createEl(c,s.msrc?"img":"");s.msrc&&(d.src=s.msrc),dn(s,d),a.appendChild(d),s.placeholder=d}s.loading||un(s),o.allowProgressiveImg()&&(!Ze&&j.transform?nn.push({item:s,baseDiv:a,img:s.img,index:e,holder:t}):ln(e,s,a,s.img,!0,!0))}Ze||e!==h?Pt(s):(it=a.style,tn(s,i||s.img)),t.el.innerHTML="",t.el.appendChild(a)}else t.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var fn,pn,mn={},gn=function(t,e,n){var i=document.createEvent("CustomEvent"),r={origEvent:t,target:t.target,releasePoint:e,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,r),t.target.dispatchEvent(i)};Et("Tap",{publicMethods:{initTap:function(){Ct("firstTouchStart",o.onTapStart),Ct("touchRelease",o.onTapRelease),Ct("destroy",(function(){mn={},fn=null}))},onTapStart:function(t){t.length>1&&(clearTimeout(fn),fn=null)},onTapRelease:function(t,e){if(e&&!Z&&!K&&!Qt){var n=e;if(fn&&(clearTimeout(fn),fn=null,_e(n,mn)))return void At("doubleTap",n);if("mouse"===e.type)return void gn(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||r.hasClass(t.target,"pswp__single-tap"))return void gn(t,e);Ft(mn,n),fn=setTimeout((function(){gn(t,e),fn=null}),300)}}}}),Et("DesktopZoom",{publicMethods:{initDesktopZoom:function(){F||(D?Ct("mouseUsed",(function(){o.setupDesktopZoom()})):o.setupDesktopZoom(!0))},setupDesktopZoom:function(e){pn={};var n="wheel mousewheel DOMMouseScroll";Ct("bindEvents",(function(){r.bind(t,n,o.handleMouseWheel)})),Ct("unbindEvents",(function(){pn&&r.unbind(t,n,o.handleMouseWheel)})),o.mouseZoomedIn=!1;var i,s=function(){o.mouseZoomedIn&&(r.removeClass(t,"pswp--zoomed-in"),o.mouseZoomedIn=!1),y<1?r.addClass(t,"pswp--zoom-allowed"):r.removeClass(t,"pswp--zoom-allowed"),a()},a=function(){i&&(r.removeClass(t,"pswp--dragging"),i=!1)};Ct("resize",s),Ct("afterChange",s),Ct("pointerDown",(function(){o.mouseZoomedIn&&(i=!0,r.addClass(t,"pswp--dragging"))})),Ct("pointerUp",a),e||s()},handleMouseWheel:function(t){if(y<=o.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Qt||G?t.preventDefault():I&&Math.abs(t.deltaY)>2&&(d=!0,o.close())),!0;if(t.stopPropagation(),pn.x=0,"deltaX"in t)1===t.deltaMode?(pn.x=18*t.deltaX,pn.y=18*t.deltaY):(pn.x=t.deltaX,pn.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(pn.x=-.16*t.wheelDeltaX),t.wheelDeltaY?pn.y=-.16*t.wheelDeltaY:pn.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;pn.y=t.detail}Vt(y,!0);var e=pt.x-pn.x,n=pt.y-pn.y;(l.modal||e<=nt.min.x&&e>=nt.max.x&&n<=nt.min.y&&n>=nt.max.y)&&t.preventDefault(),o.panTo(e,n)},toggleDesktopZoom:function(e){e=e||{x:mt.x/2+vt.x,y:mt.y/2+vt.y};var n=l.getDoubleTapZoom(!0,o.currItem),i=y===n;o.mouseZoomedIn=!i,o.zoomTo(i?o.currItem.initialZoomLevel:n,e,333),r[(i?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}});var vn,yn,bn,wn,Tn,_n,Sn,En,xn,kn,Cn,An,Ln={history:!0,galleryUID:1},In=function(){return Cn.hash.substring(1)},On=function(){vn&&clearTimeout(vn),bn&&clearTimeout(bn)},Dn=function(){var t=In(),e={};if(t.length<5)return e;var n,i=t.split("&");for(n=0;n<i.length;n++)if(i[n]){var r=i[n].split("=");r.length<2||(e[r[0]]=r[1])}if(l.galleryPIDs){var o=e.pid;for(e.pid=0,n=0;n<Ye.length;n++)if(Ye[n].pid===o){e.pid=n;break}}else e.pid=parseInt(e.pid,10)-1;return e.pid<0&&(e.pid=0),e},Pn=function(){if(bn&&clearTimeout(bn),Qt||G)bn=setTimeout(Pn,500);else{wn?clearTimeout(yn):wn=!0;var t=h+1,e=Qe(h);e.hasOwnProperty("pid")&&(t=e.pid);var n=Sn+"&gid="+l.galleryUID+"&pid="+t;En||-1===Cn.hash.indexOf(n)&&(kn=!0);var i=Cn.href.split("#")[0]+"#"+n;An?"#"+n!==window.location.hash&&history[En?"replaceState":"pushState"]("",document.title,i):En?Cn.replace(i):Cn.hash=n,En=!0,yn=setTimeout((function(){wn=!1}),60)}};Et("History",{publicMethods:{initHistory:function(){if(r.extend(l,Ln,!0),l.history){Cn=window.location,kn=!1,xn=!1,En=!1,Sn=In(),An="pushState"in history,Sn.indexOf("gid=")>-1&&(Sn=(Sn=Sn.split("&gid=")[0]).split("?gid=")[0]),Ct("afterChange",o.updateURL),Ct("unbindEvents",(function(){r.unbind(window,"hashchange",o.onHashChange)}));var t=function(){_n=!0,xn||(kn?history.back():Sn?Cn.hash=Sn:An?history.pushState("",document.title,Cn.pathname+Cn.search):Cn.hash=""),On()};Ct("unbindEvents",(function(){d&&t()})),Ct("destroy",(function(){_n||t()})),Ct("firstUpdate",(function(){h=Dn().pid}));var e=Sn.indexOf("pid=");e>-1&&"&"===(Sn=Sn.substring(0,e)).slice(-1)&&(Sn=Sn.slice(0,-1)),setTimeout((function(){u&&r.bind(window,"hashchange",o.onHashChange)}),40)}},onHashChange:function(){if(In()===Sn)return xn=!0,void o.close();wn||(Tn=!0,o.goTo(Dn().pid),Tn=!1)},updateURL:function(){On(),Tn||(En?vn=setTimeout(Pn,800):Pn())}}}),r.extend(o,ie)};return t},void 0===(r="function"==typeof i?i.call(e,n,e,t):i)||(t.exports=r)},1443:function(t,e,n){"object"==typeof navigator&&(t.exports=function(){"use strict";function t(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={addCSS:!0,thumbWidth:15,watch:!0},a=function(t){return null!=t?t.constructor:null},l=function(t,e){return!!(t&&e&&t instanceof e)},u=function(t){return null==t},c=function(t){return a(t)===Object},d=function(t){return a(t)===String},h=function(t){return Array.isArray(t)},f=function(t){return l(t,NodeList)},p={nullOrUndefined:u,object:c,number:function(t){return a(t)===Number&&!Number.isNaN(t)},string:d,boolean:function(t){return a(t)===Boolean},function:function(t){return a(t)===Function},array:h,nodeList:f,element:function(t){return l(t,Element)},event:function(t){return l(t,Event)},empty:function(t){return u(t)||(d(t)||h(t)||f(t))&&!t.length||c(t)&&!Object.keys(t).length}};function m(t,e){if(1>e){var n=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(n))}return Math.round(t/e)*e}var g=function(){function t(e,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),p.element(e)?this.element=e:p.string(e)&&(this.element=document.querySelector(e)),p.element(this.element)&&p.empty(this.element.rangeTouch)&&(this.config=o({},s,{},n),this.init())}return function(t,n,i){n&&e(t.prototype,n),i&&e(t,i)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var e=this,n=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[n](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!p.event(e))return null;var n,i=e.target,r=e.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,s=parseFloat(i.getAttribute("max"))||100,a=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),u=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(r.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*u:50<n&&(n+=2*(n-50)*u),o+m(n/100*(s-o),a)}},{key:"set",value:function(e){t.enabled&&p.event(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var n=new Event(e,{bubbles:!0});t.dispatchEvent(n)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(p.empty(e)||p.string(e)?i=Array.from(document.querySelectorAll(p.string(e)?e:'input[type="range"]')):p.element(e)?i=[e]:p.nodeList(e)?i=Array.from(e):p.array(e)&&(i=e.filter(p.element)),p.empty(i))return null;var r=o({},s,{},n);if(p.string(e)&&r.watch){var a=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){p.element(n)&&function(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}(n,e)&&new t(n,r)}))}))}));a.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(e){return new t(e,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}();const v=t=>null!=t?t.constructor:null,y=(t,e)=>Boolean(t&&e&&t instanceof e),b=t=>null==t,w=t=>v(t)===Object,T=t=>v(t)===String,_=t=>"function"==typeof t,S=t=>Array.isArray(t),E=t=>y(t,NodeList),x=t=>b(t)||(T(t)||S(t)||E(t))&&!t.length||w(t)&&!Object.keys(t).length;var k={nullOrUndefined:b,object:w,number:t=>v(t)===Number&&!Number.isNaN(t),string:T,boolean:t=>v(t)===Boolean,function:_,array:S,weakMap:t=>y(t,WeakMap),nodeList:E,element:t=>null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument,textNode:t=>v(t)===Text,event:t=>y(t,Event),keyboardEvent:t=>y(t,KeyboardEvent),cue:t=>y(t,window.TextTrackCue)||y(t,window.VTTCue),track:t=>y(t,TextTrack)||!b(t)&&T(t.kind),promise:t=>y(t,Promise)&&_(t.then),url:t=>{if(y(t,window.URL))return!0;if(!T(t))return!1;let e=t;t.startsWith("http://")&&t.startsWith("https://")||(e=`http://${t}`);try{return!x(new URL(e).hostname)}catch(t){return!1}},empty:x};const C=(()=>{const t=document.createElement("span"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(e).find((e=>void 0!==t.style[e]));return!!k.string(n)&&e[n]})();function A(t,e){setTimeout((()=>{try{t.hidden=!0,t.offsetHeight,t.hidden=!1}catch(t){}}),e)}var L={isIE:Boolean(window.document.documentMode),isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function I(t,e){return e.split(".").reduce(((t,e)=>t&&t[e]),t)}function O(t={},...e){if(!e.length)return t;const n=e.shift();return k.object(n)?(Object.keys(n).forEach((e=>{k.object(n[e])?(Object.keys(t).includes(e)||Object.assign(t,{[e]:{}}),O(t[e],n[e])):Object.assign(t,{[e]:n[e]})})),O(t,...e)):t}function D(t,e){const n=t.length?t:[t];Array.from(n).reverse().forEach(((t,n)=>{const i=n>0?e.cloneNode(!0):e,r=t.parentNode,o=t.nextSibling;i.appendChild(t),o?r.insertBefore(i,o):r.appendChild(i)}))}function P(t,e){k.element(t)&&!k.empty(e)&&Object.entries(e).filter((([,t])=>!k.nullOrUndefined(t))).forEach((([e,n])=>t.setAttribute(e,n)))}function R(t,e,n){const i=document.createElement(t);return k.object(e)&&P(i,e),k.string(n)&&(i.innerText=n),i}function M(t,e,n,i){k.element(e)&&e.appendChild(R(t,n,i))}function N(t){k.nodeList(t)||k.array(t)?Array.from(t).forEach(N):k.element(t)&&k.element(t.parentNode)&&t.parentNode.removeChild(t)}function F(t){if(!k.element(t))return;let{length:e}=t.childNodes;for(;e>0;)t.removeChild(t.lastChild),e-=1}function $(t,e){return k.element(e)&&k.element(e.parentNode)&&k.element(t)?(e.parentNode.replaceChild(t,e),t):null}function j(t,e){if(!k.string(t)||k.empty(t))return{};const n={},i=O({},e);return t.split(",").forEach((t=>{const e=t.trim(),r=e.replace(".",""),o=e.replace(/[[\]]/g,"").split("="),[s]=o,a=o.length>1?o[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":k.string(i.class)?n.class=`${i.class} ${r}`:n.class=r;break;case"#":n.id=e.replace("#","");break;case"[":n[s]=a}})),O(i,n)}function U(t,e){if(!k.element(t))return;let n=e;k.boolean(n)||(n=!t.hidden),t.hidden=n}function B(t,e,n){if(k.nodeList(t))return Array.from(t).map((t=>B(t,e,n)));if(k.element(t)){let i="toggle";return void 0!==n&&(i=n?"add":"remove"),t.classList[i](e),t.classList.contains(e)}return!1}function H(t,e){return k.element(t)&&t.classList.contains(e)}function V(t,e){const{prototype:n}=Element;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function z(t){return this.elements.container.querySelectorAll(t)}function W(t){return this.elements.container.querySelector(t)}function q(t=null,e=!1){k.element(t)&&t.focus({preventScroll:!0,focusVisible:e})}const G={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},K={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(t,e){const n=K[t]||"html5"!==e;return{api:n,ui:n&&K.rangeInput}},pip:!(L.isIPhone||!k.function(R("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||R("video").disablePictureInPicture)),airplay:k.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(t){if(k.empty(t))return!1;const[e]=t.split("/");let n=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(G).includes(n)&&(n+=`; codecs="${G[t]}"`);try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const t=document.createElement("input");return t.type="range","range"===t.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==C,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Y=(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,null)});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t})();function Z(t,e,n,i=!1,r=!0,o=!1){if(!t||!("addEventListener"in t)||k.empty(e)||!k.function(n))return;const s=e.split(" ");let a=o;Y&&(a={passive:r,capture:o}),s.forEach((e=>{this&&this.eventListeners&&i&&this.eventListeners.push({element:t,type:e,callback:n,options:a}),t[i?"addEventListener":"removeEventListener"](e,n,a)}))}function X(t,e="",n,i=!0,r=!1){Z.call(this,t,e,n,!0,i,r)}function Q(t,e="",n,i=!0,r=!1){Z.call(this,t,e,n,!1,i,r)}function J(t,e="",n,i=!0,r=!1){const o=(...s)=>{Q(t,e,o,i,r),n.apply(this,s)};Z.call(this,t,e,o,!0,i,r)}function tt(t,e="",n=!1,i={}){if(!k.element(t)||k.empty(e))return;const r=new CustomEvent(e,{bubbles:n,detail:{...i,plyr:this}});t.dispatchEvent(r)}function et(){this&&this.eventListeners&&(this.eventListeners.forEach((t=>{const{element:e,type:n,callback:i,options:r}=t;e.removeEventListener(n,i,r)})),this.eventListeners=[])}function nt(){return new Promise((t=>this.ready?setTimeout(t,0):X.call(this,this.elements.container,"ready",t))).then((()=>{}))}function it(t){k.promise(t)&&t.then(null,(()=>{}))}function rt(t){return k.array(t)?t.filter(((e,n)=>t.indexOf(e)===n)):t}function ot(t,e){return k.array(t)&&t.length?t.reduce(((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t)):null}function st(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}const at=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce(((t,[e,n])=>({...t,[e/n]:[e,n]})),{});function lt(t){return!!(k.array(t)||k.string(t)&&t.includes(":"))&&(k.array(t)?t:t.split(":")).map(Number).every(k.number)}function ut(t){if(!k.array(t)||!t.every(k.number))return null;const[e,n]=t,i=(t,e)=>0===e?t:i(e,t%e),r=i(e,n);return[e/r,n/r]}function ct(t){const e=t=>lt(t)?t.split(":").map(Number):null;let n=e(t);if(null===n&&(n=e(this.config.ratio)),null===n&&!k.empty(this.embed)&&k.array(this.embed.ratio)&&({ratio:n}=this.embed),null===n&&this.isHTML5){const{videoWidth:t,videoHeight:e}=this.media;n=[t,e]}return ut(n)}function dt(t){if(!this.isVideo)return{};const{wrapper:e}=this.elements,n=ct.call(this,t);if(!k.array(n))return{};const[i,r]=ut(n),o=100/i*r;if(st(`aspect-ratio: ${i}/${r}`)?e.style.aspectRatio=`${i}/${r}`:e.style.paddingBottom=`${o}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const t=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(t-o)/(t/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function ht(t,e,n=.05){const i=t/e,r=ot(Object.keys(at),i);return Math.abs(r-i)<=n?at[r]:[t,e]}const ft={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((t=>{const e=t.getAttribute("type");return!!k.empty(e)||K.mime.call(this,e)})):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:ft.getSources.call(this).map((t=>Number(t.getAttribute("size")))).filter(Boolean)},setup(){if(!this.isHTML5)return;const t=this;t.options.speed=t.config.speed.options,k.empty(this.config.ratio)||dt.call(t),Object.defineProperty(t.media,"quality",{get(){const e=ft.getSources.call(t).find((e=>e.getAttribute("src")===t.source));return e&&Number(e.getAttribute("size"))},set(e){if(t.quality!==e){if(t.config.quality.forced&&k.function(t.config.quality.onChange))t.config.quality.onChange(e);else{const n=ft.getSources.call(t).find((t=>Number(t.getAttribute("size"))===e));if(!n)return;const{currentTime:i,paused:r,preload:o,readyState:s,playbackRate:a}=t.media;t.media.src=n.getAttribute("src"),("none"!==o||s)&&(t.once("loadedmetadata",(()=>{t.speed=a,t.currentTime=i,r||it(t.play())})),t.media.load())}tt.call(t,t.media,"qualitychange",!1,{quality:e})}}})},cancelRequests(){this.isHTML5&&(N(ft.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function pt(t,...e){return k.empty(t)?t:t.toString().replace(/{(\d+)}/g,((t,n)=>e[n].toString()))}const mt=(t="",e="",n="")=>t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString()),gt=(t="")=>t.toString().replace(/\w\S*/g,(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()));function vt(t=""){let e=t.toString();return e=function(t=""){let e=t.toString();return e=mt(e,"-"," "),e=mt(e,"_"," "),e=gt(e),mt(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}function yt(t){const e=document.createElement("div");return e.appendChild(t),e.innerHTML}const bt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},wt={get(t="",e={}){if(k.empty(t)||k.empty(e))return"";let n=I(e.i18n,t);if(k.empty(n))return Object.keys(bt).includes(t)?bt[t]:"";const i={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(i).forEach((([t,e])=>{n=mt(n,t,e)})),n}};class Tt{constructor(e){t(this,"get",(t=>{if(!Tt.supported||!this.enabled)return null;const e=window.localStorage.getItem(this.key);if(k.empty(e))return null;const n=JSON.parse(e);return k.string(t)&&t.length?n[t]:n})),t(this,"set",(t=>{if(!Tt.supported||!this.enabled)return;if(!k.object(t))return;let e=this.get();k.empty(e)&&(e={}),O(e,t);try{window.localStorage.setItem(this.key,JSON.stringify(e))}catch(t){}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}function _t(t,e="text"){return new Promise(((n,i)=>{try{const i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",(()=>{if("text"===e)try{n(JSON.parse(i.responseText))}catch(t){n(i.responseText)}else n(i.response)})),i.addEventListener("error",(()=>{throw new Error(i.status)})),i.open("GET",t,!0),i.responseType=e,i.send()}catch(t){i(t)}}))}function St(t,e){if(!k.string(t))return;const n="cache",i=k.string(e);let r=!1;const o=()=>null!==document.getElementById(e),s=(t,e)=>{t.innerHTML=e,i&&o()||document.body.insertAdjacentElement("afterbegin",t)};if(!i||!o()){const o=Tt.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),i&&a.setAttribute("id",e),o){const t=window.localStorage.getItem(`${n}-${e}`);if(r=null!==t,r){const e=JSON.parse(t);s(a,e.content)}}_t(t).then((t=>{if(!k.empty(t)){if(o)try{window.localStorage.setItem(`${n}-${e}`,JSON.stringify({content:t}))}catch(t){}s(a,t)}})).catch((()=>{}))}}const Et=t=>Math.trunc(t/60/60%60,10),xt=t=>Math.trunc(t/60%60,10),kt=t=>Math.trunc(t%60,10);function Ct(t=0,e=!1,n=!1){if(!k.number(t))return Ct(void 0,e,n);const i=t=>`0${t}`.slice(-2);let r=Et(t);const o=xt(t),s=kt(t);return r=e||r>0?`${r}:`:"",`${n&&t>0?"-":""}${r}${i(o)}:${i(s)}`}const At={getIconUrl(){const t=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,n=t.host!==e||L.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=W.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:z.call(this,this.config.selectors.buttons.play),pause:W.call(this,this.config.selectors.buttons.pause),restart:W.call(this,this.config.selectors.buttons.restart),rewind:W.call(this,this.config.selectors.buttons.rewind),fastForward:W.call(this,this.config.selectors.buttons.fastForward),mute:W.call(this,this.config.selectors.buttons.mute),pip:W.call(this,this.config.selectors.buttons.pip),airplay:W.call(this,this.config.selectors.buttons.airplay),settings:W.call(this,this.config.selectors.buttons.settings),captions:W.call(this,this.config.selectors.buttons.captions),fullscreen:W.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=W.call(this,this.config.selectors.progress),this.elements.inputs={seek:W.call(this,this.config.selectors.inputs.seek),volume:W.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:W.call(this,this.config.selectors.display.buffer),currentTime:W.call(this,this.config.selectors.display.currentTime),duration:W.call(this,this.config.selectors.display.duration)},k.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon(t,e){const n="http://www.w3.org/2000/svg",i=At.getIconUrl.call(this),r=`${i.cors?"":i.url}#${this.config.iconPrefix}`,o=document.createElementNS(n,"svg");P(o,O(e,{"aria-hidden":"true",focusable:"false"}));const s=document.createElementNS(n,"use"),a=`${r}-${t}`;return"href"in s&&s.setAttributeNS("http://www.w3.org/1999/xlink","href",a),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),o.appendChild(s),o},createLabel(t,e={}){const n=wt.get(t,this.config);return R("span",{...e,class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")},n)},createBadge(t){if(k.empty(t))return null;const e=R("span",{class:this.config.classNames.menu.value});return e.appendChild(R("span",{class:this.config.classNames.menu.badge},t)),e},createButton(t,e){const n=O({},e);let i=vt(t);const r={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((t=>{Object.keys(n).includes(t)&&(r[t]=n[t],delete n[t])})),"button"!==r.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some((t=>t===this.config.classNames.control))||O(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,t){case"play":r.toggle=!0,r.label="play",r.labelPressed="pause",r.icon="play",r.iconPressed="pause";break;case"mute":r.toggle=!0,r.label="mute",r.labelPressed="unmute",r.icon="volume",r.iconPressed="muted";break;case"captions":r.toggle=!0,r.label="enableCaptions",r.labelPressed="disableCaptions",r.icon="captions-off",r.iconPressed="captions-on";break;case"fullscreen":r.toggle=!0,r.label="enterFullscreen",r.labelPressed="exitFullscreen",r.icon="enter-fullscreen",r.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,i="play",r.label="play",r.icon="play";break;default:k.empty(r.label)&&(r.label=i),k.empty(r.icon)&&(r.icon=t)}const o=R(r.element);return r.toggle?(o.appendChild(At.createIcon.call(this,r.iconPressed,{class:"icon--pressed"})),o.appendChild(At.createIcon.call(this,r.icon,{class:"icon--not-pressed"})),o.appendChild(At.createLabel.call(this,r.labelPressed,{class:"label--pressed"})),o.appendChild(At.createLabel.call(this,r.label,{class:"label--not-pressed"}))):(o.appendChild(At.createIcon.call(this,r.icon)),o.appendChild(At.createLabel.call(this,r.label))),O(n,j(this.config.selectors.buttons[i],n)),P(o,n),"play"===i?(k.array(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(o)):this.elements.buttons[i]=o,o},createRange(t,e){const n=R("input",O(j(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":wt.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=n,At.updateRangeFill.call(this,n),g.setup(n),n},createProgress(t,e){const n=R("progress",O(j(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){n.appendChild(R("span",null,"0"));const e={played:"played",buffer:"buffered"}[t],i=e?wt.get(e,this.config):"";n.innerText=`% ${i.toLowerCase()}`}return this.elements.display[t]=n,n},createTime(t,e){const n=j(this.config.selectors.display[t],e),i=R("div",O(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":wt.get(t,this.config),role:"timer"}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts(t,e){X.call(this,t,"keydown keyup",(n=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(n.key))return;if(n.preventDefault(),n.stopPropagation(),"keydown"===n.type)return;const i=V(t,'[role="menuitemradio"]');if(!i&&[" ","ArrowRight"].includes(n.key))At.showMenuPanel.call(this,e,!0);else{let e;" "!==n.key&&("ArrowDown"===n.key||i&&"ArrowRight"===n.key?(e=t.nextElementSibling,k.element(e)||(e=t.parentNode.firstElementChild)):(e=t.previousElementSibling,k.element(e)||(e=t.parentNode.lastElementChild)),q.call(this,e,!0))}}),!1),X.call(this,t,"keyup",(t=>{"Return"===t.key&&At.focusFirstMenuItem.call(this,null,!0)}))},createMenuItem({value:t,list:e,type:n,title:i,badge:r=null,checked:o=!1}){const s=j(this.config.selectors.inputs[n]),a=R("button",O(s,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${s.class?s.class:""}`.trim(),"aria-checked":o,value:t})),l=R("span");l.innerHTML=i,k.element(r)&&l.appendChild(r),a.appendChild(l),Object.defineProperty(a,"checked",{enumerable:!0,get:()=>"true"===a.getAttribute("aria-checked"),set(t){t&&Array.from(a.parentNode.children).filter((t=>V(t,'[role="menuitemradio"]'))).forEach((t=>t.setAttribute("aria-checked","false"))),a.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(a,"click keyup",(e=>{if(!k.keyboardEvent(e)||" "===e.key){switch(e.preventDefault(),e.stopPropagation(),a.checked=!0,n){case"language":this.currentTrack=Number(t);break;case"quality":this.quality=t;break;case"speed":this.speed=parseFloat(t)}At.showMenuPanel.call(this,"home",k.keyboardEvent(e))}}),n,!1),At.bindMenuItemShortcuts.call(this,a,n),e.appendChild(a)},formatTime(t=0,e=!1){return k.number(t)?Ct(t,Et(this.duration)>0,e):t},updateTimeDisplay(t=null,e=0,n=!1){k.element(t)&&k.number(e)&&(t.innerText=At.formatTime(e,n))},updateVolume(){this.supported.ui&&(k.element(this.elements.inputs.volume)&&At.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),k.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(t,e=0){k.element(t)&&(t.value=e,At.updateRangeFill.call(this,t))},updateProgress(t){if(!this.supported.ui||!k.event(t))return;let e=0;const n=(t,e)=>{const n=k.number(e)?e:0,i=k.element(t)?t:this.elements.display.buffer;if(k.element(i)){i.value=n;const t=i.getElementsByTagName("span")[0];k.element(t)&&(t.childNodes[0].nodeValue=n)}};if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":i=this.currentTime,r=this.duration,e=0===i||0===r||Number.isNaN(i)||Number.isNaN(r)?0:(i/r*100).toFixed(2),"timeupdate"===t.type&&At.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":n(this.elements.display.buffer,100*this.buffered)}var i,r},updateRangeFill(t){const e=k.event(t)?t.target:t;if(k.element(e)&&"range"===e.getAttribute("type")){if(V(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);const t=At.formatTime(this.currentTime),n=At.formatTime(this.duration),i=wt.get("seekLabel",this.config);e.setAttribute("aria-valuetext",i.replace("{currentTime}",t).replace("{duration}",n))}else if(V(e,this.config.selectors.inputs.volume)){const t=100*e.value;e.setAttribute("aria-valuenow",t),e.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else e.setAttribute("aria-valuenow",e.value);(L.isWebKit||L.isIPadOS)&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip(t){var e,n;if(!this.config.tooltips.seek||!k.element(this.elements.inputs.seek)||!k.element(this.elements.display.seekTooltip)||0===this.duration)return;const i=this.elements.display.seekTooltip,r=`${this.config.classNames.tooltip}--visible`,o=t=>B(i,r,t);if(this.touch)return void o(!1);let s=0;const a=this.elements.progress.getBoundingClientRect();if(k.event(t))s=100/a.width*(t.pageX-a.left);else{if(!H(i,r))return;s=parseFloat(i.style.left,10)}s<0?s=0:s>100&&(s=100);const l=this.duration/100*s;i.innerText=At.formatTime(l);const u=null===(e=this.config.markers)||void 0===e||null===(n=e.points)||void 0===n?void 0:n.find((({time:t})=>t===Math.round(l)));u&&i.insertAdjacentHTML("afterbegin",`${u.label}<br>`),i.style.left=`${s}%`,k.event(t)&&["mouseenter","mouseleave"].includes(t.type)&&o("mouseenter"===t.type)},timeUpdate(t){const e=!k.element(this.elements.display.duration)&&this.config.invertTime;At.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||At.updateProgress.call(this,t)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return U(this.elements.display.currentTime,!0),void U(this.elements.progress,!0);k.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const t=k.element(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&At.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&At.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&At.setMarkers.call(this),At.updateSeekTooltip.call(this)},toggleMenuButton(t,e){U(this.elements.settings.buttons[t],!e)},updateSetting(t,e,n){const i=this.elements.settings.panels[t];let r=null,o=e;if("captions"===t)r=this.currentTrack;else{if(r=k.empty(n)?this[t]:n,k.empty(r)&&(r=this.config[t].default),!k.empty(this.options[t])&&!this.options[t].includes(r))return void this.debug.warn(`Unsupported value of '${r}' for ${t}`);if(!this.config[t].options.includes(r))return void this.debug.warn(`Disabled value of '${r}' for ${t}`)}if(k.element(o)||(o=i&&i.querySelector('[role="menu"]')),!k.element(o))return;this.elements.settings.buttons[t].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=At.getLabel.call(this,t,r);const s=o&&o.querySelector(`[value="${r}"]`);k.element(s)&&(s.checked=!0)},getLabel(t,e){switch(t){case"speed":return 1===e?wt.get("normal",this.config):`${e}&times;`;case"quality":if(k.number(e)){const t=wt.get(`qualityLabel.${e}`,this.config);return t.length?t:`${e}p`}return gt(e);case"captions":return Ot.getLabel.call(this);default:return null}},setQualityMenu(t){if(!k.element(this.elements.settings.panels.quality))return;const e="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');k.array(t)&&(this.options.quality=rt(t).filter((t=>this.config.quality.options.includes(t))));const i=!k.empty(this.options.quality)&&this.options.quality.length>1;if(At.toggleMenuButton.call(this,e,i),F(n),At.checkMenu.call(this),!i)return;const r=t=>{const e=wt.get(`qualityBadge.${t}`,this.config);return e.length?At.createBadge.call(this,e):null};this.options.quality.sort(((t,e)=>{const n=this.config.quality.options;return n.indexOf(t)>n.indexOf(e)?1:-1})).forEach((t=>{At.createMenuItem.call(this,{value:t,list:n,type:e,title:At.getLabel.call(this,"quality",t),badge:r(t)})})),At.updateSetting.call(this,e,n)},setCaptionsMenu(){if(!k.element(this.elements.settings.panels.captions))return;const t="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Ot.getTracks.call(this),i=Boolean(n.length);if(At.toggleMenuButton.call(this,t,i),F(e),At.checkMenu.call(this),!i)return;const r=n.map(((t,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:Ot.getLabel.call(this,t),badge:t.language&&At.createBadge.call(this,t.language.toUpperCase()),list:e,type:"language"})));r.unshift({value:-1,checked:!this.captions.toggled,title:wt.get("disabled",this.config),list:e,type:"language"}),r.forEach(At.createMenuItem.bind(this)),At.updateSetting.call(this,t,e)},setSpeedMenu(){if(!k.element(this.elements.settings.panels.speed))return;const t="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((t=>t>=this.minimumSpeed&&t<=this.maximumSpeed));const n=!k.empty(this.options.speed)&&this.options.speed.length>1;At.toggleMenuButton.call(this,t,n),F(e),At.checkMenu.call(this),n&&(this.options.speed.forEach((n=>{At.createMenuItem.call(this,{value:n,list:e,type:t,title:At.getLabel.call(this,"speed",n)})})),At.updateSetting.call(this,t,e))},checkMenu(){const{buttons:t}=this.elements.settings,e=!k.empty(t)&&Object.values(t).some((t=>!t.hidden));U(this.elements.settings.menu,!e)},focusFirstMenuItem(t,e=!1){if(this.elements.settings.popup.hidden)return;let n=t;k.element(n)||(n=Object.values(this.elements.settings.panels).find((t=>!t.hidden)));const i=n.querySelector('[role^="menuitem"]');q.call(this,i,e)},toggleMenu(t){const{popup:e}=this.elements.settings,n=this.elements.buttons.settings;if(!k.element(e)||!k.element(n))return;const{hidden:i}=e;let r=i;if(k.boolean(t))r=t;else if(k.keyboardEvent(t)&&"Escape"===t.key)r=!1;else if(k.event(t)){const i=k.function(t.composedPath)?t.composedPath()[0]:t.target,o=e.contains(i);if(o||!o&&t.target!==n&&r)return}n.setAttribute("aria-expanded",r),U(e,!r),B(this.elements.container,this.config.classNames.menu.open,r),r&&k.keyboardEvent(t)?At.focusFirstMenuItem.call(this,null,!0):r||i||q.call(this,n,k.keyboardEvent(t))},getMenuSize(t){const e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);const n=e.scrollWidth,i=e.scrollHeight;return N(e),{width:n,height:i}},showMenuPanel(t="",e=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${t}`);if(!k.element(n))return;const i=n.parentNode,r=Array.from(i.children).find((t=>!t.hidden));if(K.transitions&&!K.reducedMotion){i.style.width=`${r.scrollWidth}px`,i.style.height=`${r.scrollHeight}px`;const t=At.getMenuSize.call(this,n),e=t=>{t.target===i&&["width","height"].includes(t.propertyName)&&(i.style.width="",i.style.height="",Q.call(this,i,C,e))};X.call(this,i,C,e),i.style.width=`${t.width}px`,i.style.height=`${t.height}px`}U(r,!0),U(n,!1),At.focusFirstMenuItem.call(this,n,e)},setDownloadUrl(){const t=this.elements.buttons.download;k.element(t)&&t.setAttribute("href",this.download)},create(t){const{bindMenuItemShortcuts:e,createButton:n,createProgress:i,createRange:r,createTime:o,setQualityMenu:s,setSpeedMenu:a,showMenuPanel:l}=At;this.elements.controls=null,k.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const u=R("div",j(this.config.selectors.controls.wrapper));this.elements.controls=u;const c={class:"plyr__controls__item"};return rt(k.array(this.config.controls)?this.config.controls:[]).forEach((s=>{if("restart"===s&&u.appendChild(n.call(this,"restart",c)),"rewind"===s&&u.appendChild(n.call(this,"rewind",c)),"play"===s&&u.appendChild(n.call(this,"play",c)),"fast-forward"===s&&u.appendChild(n.call(this,"fast-forward",c)),"progress"===s){const e=R("div",{class:`${c.class} plyr__progress__container`}),n=R("div",j(this.config.selectors.progress));if(n.appendChild(r.call(this,"seek",{id:`plyr-seek-${t.id}`})),n.appendChild(i.call(this,"buffer")),this.config.tooltips.seek){const t=R("span",{class:this.config.classNames.tooltip},"00:00");n.appendChild(t),this.elements.display.seekTooltip=t}this.elements.progress=n,e.appendChild(this.elements.progress),u.appendChild(e)}if("current-time"===s&&u.appendChild(o.call(this,"currentTime",c)),"duration"===s&&u.appendChild(o.call(this,"duration",c)),"mute"===s||"volume"===s){let{volume:e}=this.elements;if(k.element(e)&&u.contains(e)||(e=R("div",O({},c,{class:`${c.class} plyr__volume`.trim()})),this.elements.volume=e,u.appendChild(e)),"mute"===s&&e.appendChild(n.call(this,"mute")),"volume"===s&&!L.isIos&&!L.isIPadOS){const n={max:1,step:.05,value:this.config.volume};e.appendChild(r.call(this,"volume",O(n,{id:`plyr-volume-${t.id}`})))}}if("captions"===s&&u.appendChild(n.call(this,"captions",c)),"settings"===s&&!k.empty(this.config.settings)){const i=R("div",O({},c,{class:`${c.class} plyr__menu`.trim(),hidden:""}));i.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${t.id}`,"aria-expanded":!1}));const r=R("div",{class:"plyr__menu__container",id:`plyr-settings-${t.id}`,hidden:""}),o=R("div"),s=R("div",{id:`plyr-settings-${t.id}-home`}),a=R("div",{role:"menu"});s.appendChild(a),o.appendChild(s),this.elements.settings.panels.home=s,this.config.settings.forEach((n=>{const i=R("button",O(j(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(this,i,n),X.call(this,i,"click",(()=>{l.call(this,n,!1)}));const r=R("span",null,wt.get(n,this.config)),s=R("span",{class:this.config.classNames.menu.value});s.innerHTML=t[n],r.appendChild(s),i.appendChild(r),a.appendChild(i);const u=R("div",{id:`plyr-settings-${t.id}-${n}`,hidden:""}),c=R("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});c.appendChild(R("span",{"aria-hidden":!0},wt.get(n,this.config))),c.appendChild(R("span",{class:this.config.classNames.hidden},wt.get("menuBack",this.config))),X.call(this,u,"keydown",(t=>{"ArrowLeft"===t.key&&(t.preventDefault(),t.stopPropagation(),l.call(this,"home",!0))}),!1),X.call(this,c,"click",(()=>{l.call(this,"home",!1)})),u.appendChild(c),u.appendChild(R("div",{role:"menu"})),o.appendChild(u),this.elements.settings.buttons[n]=i,this.elements.settings.panels[n]=u})),r.appendChild(o),i.appendChild(r),u.appendChild(i),this.elements.settings.popup=r,this.elements.settings.menu=i}if("pip"===s&&K.pip&&u.appendChild(n.call(this,"pip",c)),"airplay"===s&&K.airplay&&u.appendChild(n.call(this,"airplay",c)),"download"===s){const t=O({},c,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(t.download="");const{download:e}=this.config.urls;!k.url(e)&&this.isEmbed&&O(t,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(n.call(this,"download",t))}"fullscreen"===s&&u.appendChild(n.call(this,"fullscreen",c))})),this.isHTML5&&s.call(this,ft.getQualityOptions.call(this)),a.call(this),u},inject(){if(this.config.loadSprite){const t=At.getIconUrl.call(this);t.cors&&St(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let t=null;this.elements.controls=null;const e={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n,i=!0;if(k.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),k.element(this.config.controls)||k.string(this.config.controls)?t=this.config.controls:(t=At.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Ot.getLabel.call(this)}),i=!1),i&&k.string(this.config.controls)&&(t=(t=>{let n=t;return Object.entries(e).forEach((([t,e])=>{n=mt(n,`{${t}}`,e)})),n})(t)),k.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),k.element(n)||(n=this.elements.container),n[k.element(t)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",t),k.element(this.elements.controls)||At.findElements.call(this),!k.empty(this.elements.buttons)){const t=t=>{const e=this.config.classNames.controlPressed;t.setAttribute("aria-pressed","false"),Object.defineProperty(t,"pressed",{configurable:!0,enumerable:!0,get:()=>H(t,e),set(n=!1){B(t,e,n),t.setAttribute("aria-pressed",n?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach((e=>{k.array(e)||k.nodeList(e)?Array.from(e).filter(Boolean).forEach(t):t(e)}))}if(L.isEdge&&A(n),this.config.tooltips.controls){const{classNames:t,selectors:e}=this.config,n=`${e.controls.wrapper} ${e.labels} .${t.hidden}`,i=z.call(this,n);Array.from(i).forEach((t=>{B(t,this.config.classNames.hidden,!1),B(t,this.config.classNames.tooltip,!0)}))}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(t){}},setMarkers(){var t,e;if(!this.duration||this.elements.markers)return;const n=null===(t=this.config.markers)||void 0===t||null===(e=t.points)||void 0===e?void 0:e.filter((({time:t})=>t>0&&t<this.duration));if(null==n||!n.length)return;const i=document.createDocumentFragment(),r=document.createDocumentFragment();let o=null;const s=`${this.config.classNames.tooltip}--visible`,a=t=>B(o,s,t);n.forEach((t=>{const e=R("span",{class:this.config.classNames.marker},""),n=t.time/this.duration*100+"%";o&&(e.addEventListener("mouseenter",(()=>{t.label||(o.style.left=n,o.innerHTML=t.label,a(!0))})),e.addEventListener("mouseleave",(()=>{a(!1)}))),e.addEventListener("click",(()=>{this.currentTime=t.time})),e.style.left=n,r.appendChild(e)})),i.appendChild(r),this.config.tooltips.seek||(o=R("span",{class:this.config.classNames.tooltip},""),i.appendChild(o)),this.elements.markers={points:r,tip:o},this.elements.progress.appendChild(i)}};function Lt(t,e=!0){let n=t;if(e){const t=document.createElement("a");t.href=n,n=t.href}try{return new URL(n)}catch(t){return null}}function It(t){const e=new URLSearchParams;return k.object(t)&&Object.entries(t).forEach((([t,n])=>{e.set(t,n)})),e}const Ot={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!K.textTracks)return void(k.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&At.setCaptionsMenu.call(this));var t,e;if(k.element(this.elements.captions)||(this.elements.captions=R("div",j(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),t=this.elements.captions,e=this.elements.wrapper,k.element(t)&&k.element(e)&&e.parentNode.insertBefore(t,e.nextSibling)),L.isIE&&window.URL){const t=this.media.querySelectorAll("track");Array.from(t).forEach((t=>{const e=t.getAttribute("src"),n=Lt(e);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&_t(e,"blob").then((e=>{t.setAttribute("src",window.URL.createObjectURL(e))})).catch((()=>{N(t)}))}))}const n=rt((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((t=>t.split("-")[0])));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&([i]=n);let r=this.storage.get("captions");if(k.boolean(r)||({active:r}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:r,language:i,languages:n}),this.isHTML5){const t=this.config.captions.update?"addtrack removetrack":"removetrack";X.call(this,this.media.textTracks,t,Ot.update.bind(this))}setTimeout(Ot.update.bind(this),0)},update(){const t=Ot.getTracks.call(this,!0),{active:e,language:n,meta:i,currentTrackNode:r}=this.captions,o=Boolean(t.find((t=>t.language===n)));this.isHTML5&&this.isVideo&&t.filter((t=>!i.get(t))).forEach((t=>{this.debug.log("Track added",t),i.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),X.call(this,t,"cuechange",(()=>Ot.updateCues.call(this)))})),(o&&this.language!==n||!t.includes(r))&&(Ot.setLanguage.call(this,n),Ot.toggle.call(this,e&&o)),this.elements&&B(this.elements.container,this.config.classNames.captions.enabled,!k.empty(t)),k.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&At.setCaptionsMenu.call(this)},toggle(t,e=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,i=this.config.classNames.captions.active,r=k.nullOrUndefined(t)?!n:t;if(r!==n){if(e||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!e){const t=Ot.getTracks.call(this),e=Ot.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=e.language,void Ot.set.call(this,t.indexOf(e))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r),B(this.elements.container,i,r),this.captions.toggled=r,At.updateSetting.call(this,"captions"),tt.call(this,this.media,r?"captionsenabled":"captionsdisabled")}setTimeout((()=>{r&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")}))},set(t,e=!0){const n=Ot.getTracks.call(this);if(-1!==t)if(k.number(t))if(t in n){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;const i=n[t],{language:r}=i||{};this.captions.currentTrackNode=i,At.updateSetting.call(this,"captions"),e||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),tt.call(this,this.media,"languagechange")}Ot.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Ot.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Ot.toggle.call(this,!1,e)},setLanguage(t,e=!0){if(!k.string(t))return void this.debug.warn("Invalid language argument",t);const n=t.toLowerCase();this.captions.language=n;const i=Ot.getTracks.call(this),r=Ot.findTrack.call(this,[n]);Ot.set.call(this,i.indexOf(r),e)},getTracks(t=!1){return Array.from((this.media||{}).textTracks||[]).filter((e=>!this.isHTML5||t||this.captions.meta.has(e))).filter((t=>["captions","subtitles"].includes(t.kind)))},findTrack(t,e=!1){const n=Ot.getTracks.call(this),i=t=>Number((this.captions.meta.get(t)||{}).default),r=Array.from(n).sort(((t,e)=>i(e)-i(t)));let o;return t.every((t=>(o=r.find((e=>e.language===t)),!o))),o||(e?r[0]:void 0)},getCurrentTrack(){return Ot.getTracks.call(this)[this.currentTrack]},getLabel(t){let e=t;return!k.track(e)&&K.textTracks&&this.captions.toggled&&(e=Ot.getCurrentTrack.call(this)),k.track(e)?k.empty(e.label)?k.empty(e.language)?wt.get("enabled",this.config):t.language.toUpperCase():e.label:wt.get("disabled",this.config)},updateCues(t){if(!this.supported.ui)return;if(!k.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!k.nullOrUndefined(t)&&!Array.isArray(t))return void this.debug.warn("updateCues: Invalid input",t);let e=t;if(!e){const t=Ot.getCurrentTrack.call(this);e=Array.from((t||{}).activeCues||[]).map((t=>t.getCueAsHTML())).map(yt)}const n=e.map((t=>t.trim())).join("\n");if(n!==this.elements.captions.innerHTML){F(this.elements.captions);const t=R("span",j(this.config.selectors.caption));t.innerHTML=n,this.elements.captions.appendChild(t),tt.call(this,this.media,"cuechange")}}},Dt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Pt="picture-in-picture",Rt="inline",Mt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Nt="audio",Ft="video",$t=()=>{};class jt{constructor(t=!1){this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):$t}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):$t}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):$t}}class Ut{constructor(e){t(this,"onChange",(()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;k.element(t)&&(t.pressed=this.active);const e=this.target===this.player.media?this.target:this.player.elements.container;tt.call(this.player,e,this.active?"enterfullscreen":"exitfullscreen",!0)})),t(this,"toggleFallback",((t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",B(this.target,this.player.config.classNames.fullscreen.fallback,t),L.isIos){let e=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";e||(e=document.createElement("meta"),e.setAttribute("name","viewport"));const i=k.string(e.content)&&e.content.includes(n);t?(this.cleanupViewport=!i,i||(e.content+=`,${n}`)):this.cleanupViewport&&(e.content=e.content.split(",").filter((t=>t.trim()!==n)).join(","))}this.onChange()})),t(this,"trapFocus",(t=>{if(L.isIos||L.isIPadOS||!this.active||"Tab"!==t.key)return;const e=document.activeElement,n=z.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=n,r=n[n.length-1];e!==r||t.shiftKey?e===i&&t.shiftKey&&(r.focus(),t.preventDefault()):(i.focus(),t.preventDefault())})),t(this,"update",(()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":Ut.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");B(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)})),t(this,"enter",(()=>{this.supported&&(L.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Ut.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?k.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))})),t(this,"exit",(()=>{if(this.supported)if(L.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),it(this.player.play());else if(!Ut.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!k.empty(this.prefix)){const t="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),t(this,"toggle",(()=>{this.active?this.exit():this.enter()})),this.player=e,this.prefix=Ut.prefix,this.property=Ut.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){const{prototype:n}=Element;return(n.closest||function(){let t=this;do{if(V.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),X.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,(()=>{this.onChange()})),X.call(this.player,this.player.elements.container,"dblclick",(t=>{k.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")})),X.call(this,this.player.elements.container,"keydown",(t=>this.trapFocus(t))),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Ut.nativeSupported&&!this.forceFallback}static get prefix(){if(k.function(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some((e=>!(!k.function(document[`${e}ExitFullscreen`])&&!k.function(document[`${e}CancelFullScreen`])||(t=e,0)))),t}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Ut.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Ut.nativeSupported||!L.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Ut.nativeSupported||this.forceFallback)return H(this.target,this.player.config.classNames.fullscreen.fallback);const t=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){return L.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function Bt(t,e=1){return new Promise(((n,i)=>{const r=new Image,o=()=>{delete r.onload,delete r.onerror,(r.naturalWidth>=e?n:i)(r)};Object.assign(r,{onload:o,onerror:o,src:t})}))}const Ht={addStyleHook(){B(this.elements.container,this.config.selectors.container.replace(".",""),!0),B(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(t=!1){t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void Ht.toggleNativeControls.call(this,!0);k.element(this.elements.controls)||(At.inject.call(this),this.listeners.controls()),Ht.toggleNativeControls.call(this),this.isHTML5&&Ot.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,At.updateVolume.call(this),At.timeUpdate.call(this),At.durationUpdate.call(this),Ht.checkPlaying.call(this),B(this.elements.container,this.config.classNames.pip.supported,K.pip&&this.isHTML5&&this.isVideo),B(this.elements.container,this.config.classNames.airplay.supported,K.airplay&&this.isHTML5),B(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((()=>{tt.call(this,this.media,"ready")}),0),Ht.setTitle.call(this),this.poster&&Ht.setPoster.call(this,this.poster,!1).catch((()=>{})),this.config.duration&&At.durationUpdate.call(this),this.config.mediaMetadata&&At.setMediaMetadata.call(this)},setTitle(){let t=wt.get("play",this.config);if(k.string(this.config.title)&&!k.empty(this.config.title)&&(t+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach((e=>{e.setAttribute("aria-label",t)})),this.isEmbed){const t=W.call(this,"iframe");if(!k.element(t))return;const e=k.empty(this.config.title)?"video":this.config.title,n=wt.get("frameTitle",this.config);t.setAttribute("title",n.replace("{title}",e))}},togglePoster(t){B(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster(t,e=!0){return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),nt.call(this).then((()=>Bt(t))).catch((e=>{throw t===this.poster&&Ht.togglePoster.call(this,!1),e})).then((()=>{if(t!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${t}')`,backgroundSize:""}),Ht.togglePoster.call(this,!0),t))))},checkPlaying(t){B(this.elements.container,this.config.classNames.playing,this.playing),B(this.elements.container,this.config.classNames.paused,this.paused),B(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((t=>{Object.assign(t,{pressed:this.playing}),t.setAttribute("aria-label",wt.get(this.playing?"pause":"play",this.config))})),k.event(t)&&"timeupdate"===t.type||Ht.toggleControls.call(this)},checkLoading(t){this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((()=>{B(this.elements.container,this.config.classNames.loading,this.loading),Ht.toggleControls.call(this)}),this.loading?250:0)},toggleControls(t){const{controls:e}=this.elements;if(e&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter((t=>!k.empty(t)&&k.string(t)&&t.startsWith("--plyr"))).forEach((t=>{this.elements.container.style.setProperty(t,this.media.style.getPropertyValue(t)),this.media.style.removeProperty(t)})),k.empty(this.media.style)&&this.media.removeAttribute("style")}};class Vt{constructor(e){t(this,"firstTouch",(()=>{const{player:t}=this,{elements:e}=t;t.touch=!0,B(e.container,t.config.classNames.isTouch,!0)})),t(this,"global",((t=!0)=>{const{player:e}=this;e.config.keyboard.global&&Z.call(e,window,"keydown keyup",this.handleKey,t,!1),Z.call(e,document.body,"click",this.toggleMenu,t),J.call(e,document.body,"touchstart",this.firstTouch)})),t(this,"container",(()=>{const{player:t}=this,{config:e,elements:n,timers:i}=t;!e.keyboard.global&&e.keyboard.focused&&X.call(t,n.container,"keydown keyup",this.handleKey,!1),X.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(e=>{const{controls:r}=n;r&&"enterfullscreen"===e.type&&(r.pressed=!1,r.hover=!1);let o=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Ht.toggleControls.call(t,!0),o=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout((()=>Ht.toggleControls.call(t,!1)),o)}));const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const e=n.wrapper,{active:i}=t.fullscreen,[r,o]=ct.call(t),s=st(`aspect-ratio: ${r} / ${o}`);if(!i)return void(s?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null));const[a,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],u=a/l>r/o;s?(e.style.width=u?"auto":"100%",e.style.height=u?"100%":"auto"):(e.style.maxWidth=u?l/o*r+"px":null,e.style.margin=u?"0 auto":null)},o=()=>{clearTimeout(i.resized),i.resized=setTimeout(r,50)};X.call(t,n.container,"enterfullscreen exitfullscreen",(e=>{const{target:i}=t.fullscreen;i===n.container&&(!t.isEmbed&&k.empty(t.config.ratio)||(r(),("enterfullscreen"===e.type?X:Q).call(t,window,"resize",o)))}))})),t(this,"media",(()=>{const{player:t}=this,{elements:e}=t;if(X.call(t,t.media,"timeupdate seeking seeked",(e=>At.timeUpdate.call(t,e))),X.call(t,t.media,"durationchange loadeddata loadedmetadata",(e=>At.durationUpdate.call(t,e))),X.call(t,t.media,"ended",(()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),X.call(t,t.media,"progress playing seeking seeked",(e=>At.updateProgress.call(t,e))),X.call(t,t.media,"volumechange",(e=>At.updateVolume.call(t,e))),X.call(t,t.media,"playing play pause ended emptied timeupdate",(e=>Ht.checkPlaying.call(t,e))),X.call(t,t.media,"waiting canplay seeked playing",(e=>Ht.checkLoading.call(t,e))),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=W.call(t,`.${t.config.classNames.video}`);if(!k.element(n))return;X.call(t,e.container,"click",(i=>{([e.container,n].includes(i.target)||n.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(i,t.restart,"restart"),this.proxy(i,(()=>{it(t.play())}),"play")):this.proxy(i,(()=>{it(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&X.call(t,e.wrapper,"contextmenu",(t=>{t.preventDefault()}),!1),X.call(t,t.media,"volumechange",(()=>{t.storage.set({volume:t.volume,muted:t.muted})})),X.call(t,t.media,"ratechange",(()=>{At.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),X.call(t,t.media,"qualitychange",(e=>{At.updateSetting.call(t,"quality",null,e.detail.quality)})),X.call(t,t.media,"ready qualitychange",(()=>{At.setDownloadUrl.call(t)}));const n=t.config.events.concat(["keyup","keydown"]).join(" ");X.call(t,t.media,n,(n=>{let{detail:i={}}=n;"error"===n.type&&(i=t.media.error),tt.call(t,e.container,n.type,!0,i)}))})),t(this,"proxy",((t,e,n)=>{const{player:i}=this,r=i.config.listeners[n];let o=!0;k.function(r)&&(o=r.call(i,t)),!1!==o&&k.function(e)&&e.call(i,t)})),t(this,"bind",((t,e,n,i,r=!0)=>{const{player:o}=this,s=o.config.listeners[i],a=k.function(s);X.call(o,t,e,(t=>this.proxy(t,n,i)),r&&!a)})),t(this,"controls",(()=>{const{player:t}=this,{elements:e}=t,n=L.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((e=>{this.bind(e,"click",(()=>{it(t.togglePlay())}),"play")})),this.bind(e.buttons.restart,"click",t.restart,"restart"),this.bind(e.buttons.rewind,"click",(()=>{t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),this.bind(e.buttons.fastForward,"click",(()=>{t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),this.bind(e.buttons.mute,"click",(()=>{t.muted=!t.muted}),"mute"),this.bind(e.buttons.captions,"click",(()=>t.toggleCaptions())),this.bind(e.buttons.download,"click",(()=>{tt.call(t,t.media,"download")}),"download"),this.bind(e.buttons.fullscreen,"click",(()=>{t.fullscreen.toggle()}),"fullscreen"),this.bind(e.buttons.pip,"click",(()=>{t.pip="toggle"}),"pip"),this.bind(e.buttons.airplay,"click",t.airplay,"airplay"),this.bind(e.buttons.settings,"click",(e=>{e.stopPropagation(),e.preventDefault(),At.toggleMenu.call(t,e)}),null,!1),this.bind(e.buttons.settings,"keyup",(e=>{[" ","Enter"].includes(e.key)&&("Enter"!==e.key?(e.preventDefault(),e.stopPropagation(),At.toggleMenu.call(t,e)):At.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(e.settings.menu,"keydown",(e=>{"Escape"===e.key&&At.toggleMenu.call(t,e)})),this.bind(e.inputs.seek,"mousedown mousemove",(t=>{const n=e.progress.getBoundingClientRect(),i=100/n.width*(t.pageX-n.left);t.currentTarget.setAttribute("seek-value",i)})),this.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(e=>{const n=e.currentTarget,i="play-on-seeked";if(k.keyboardEvent(e)&&!["ArrowLeft","ArrowRight"].includes(e.key))return;t.lastSeekTime=Date.now();const r=n.hasAttribute(i),o=["mouseup","touchend","keyup"].includes(e.type);r&&o?(n.removeAttribute(i),it(t.play())):!o&&t.playing&&(n.setAttribute(i,""),t.pause())})),L.isIos){const e=z.call(t,'input[type="range"]');Array.from(e).forEach((t=>this.bind(t,n,(t=>A(t.target)))))}this.bind(e.inputs.seek,n,(e=>{const n=e.currentTarget;let i=n.getAttribute("seek-value");k.empty(i)&&(i=n.value),n.removeAttribute("seek-value"),t.currentTime=i/n.max*t.duration}),"seek"),this.bind(e.progress,"mouseenter mouseleave mousemove",(e=>At.updateSeekTooltip.call(t,e))),this.bind(e.progress,"mousemove touchmove",(e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.startMove(e)})),this.bind(e.progress,"mouseleave touchend click",(()=>{const{previewThumbnails:e}=t;e&&e.loaded&&e.endMove(!1,!0)})),this.bind(e.progress,"mousedown touchstart",(e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.startScrubbing(e)})),this.bind(e.progress,"mouseup touchend",(e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endScrubbing(e)})),L.isWebKit&&Array.from(z.call(t,'input[type="range"]')).forEach((e=>{this.bind(e,"input",(e=>At.updateRangeFill.call(t,e.target)))})),t.config.toggleInvert&&!k.element(e.display.duration)&&this.bind(e.display.currentTime,"click",(()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,At.timeUpdate.call(t))})),this.bind(e.inputs.volume,n,(e=>{t.volume=e.target.value}),"volume"),this.bind(e.controls,"mouseenter mouseleave",(n=>{e.controls.hover=!t.touch&&"mouseenter"===n.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((t=>!t.contains(e.container))).forEach((n=>{this.bind(n,"mouseenter mouseleave",(n=>{e.controls&&(e.controls.hover=!t.touch&&"mouseenter"===n.type)}))})),this.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(t=>{e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),this.bind(e.controls,"focusin",(()=>{const{config:n,timers:i}=t;B(e.controls,n.classNames.noTransition,!0),Ht.toggleControls.call(t,!0),setTimeout((()=>{B(e.controls,n.classNames.noTransition,!1)}),0);const r=this.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((()=>Ht.toggleControls.call(t,!1)),r)})),this.bind(e.inputs.volume,"wheel",(e=>{const n=e.webkitDirectionInvertedFromDevice,[i,r]=[e.deltaX,-e.deltaY].map((t=>n?-t:t)),o=Math.sign(Math.abs(i)>Math.abs(r)?i:r);t.increaseVolume(o/50);const{volume:s}=t.media;(1===o&&s<1||-1===o&&s>0)&&e.preventDefault()}),"volume",!1)})),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:e}=this,{elements:n}=e,{key:i,type:r,altKey:o,ctrlKey:s,metaKey:a,shiftKey:l}=t,u="keydown"===r,c=u&&i===this.lastKey;var d;if(!(o||s||a||l)&&i)if(u){const r=document.activeElement;if(k.element(r)){const{editable:i}=e.config.selectors,{seek:o}=n.inputs;if(r!==o&&V(r,i))return;if(" "===t.key&&V(r,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":c||(d=parseInt(i,10),e.currentTime=e.duration/10*d);break;case" ":case"k":c||it(e.togglePlay());break;case"ArrowUp":e.increaseVolume(.1);break;case"ArrowDown":e.decreaseVolume(.1);break;case"m":c||(e.muted=!e.muted);break;case"ArrowRight":e.forward();break;case"ArrowLeft":e.rewind();break;case"f":e.fullscreen.toggle();break;case"c":c||e.toggleCaptions();break;case"l":e.loop=!e.loop}"Escape"===i&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}toggleMenu(t){At.toggleMenu.call(this.player,t)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var zt=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports=function(){var t=function(){},e={},n={},i={};function r(t,e){t=t.push?t:[t];var r,o,s,a=[],l=t.length,u=l;for(r=function(t,n){n.length&&a.push(t),--u||e(a)};l--;)o=t[l],(s=n[o])?r(o,s):(i[o]=i[o]||[]).push(r)}function o(t,e){if(t){var r=i[t];if(n[t]=e,r)for(;r.length;)r[0](t,e),r.splice(0,1)}}function s(e,n){e.call&&(e={success:e}),n.length?(e.error||t)(n):(e.success||t)(e)}function a(e,n,i,r){var o,s,l=document,u=i.async,c=(i.numRetries||0)+1,d=i.before||t,h=e.replace(/[\?|#].*$/,""),f=e.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(h)?((s=l.createElement("link")).rel="stylesheet",s.href=f,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(s=l.createElement("img")).src=f:((s=l.createElement("script")).src=e,s.async=void 0===u||u),s.onload=s.onerror=s.onbeforeload=function(t){var l=t.type[0];if(o)try{s.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((r+=1)<c)return a(e,n,i,r)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(e,l,t.defaultPrevented)},!1!==d(e,s)&&l.head.appendChild(s)}function l(t,e,n){var i,r,o=(t=t.push?t:[t]).length,s=o,l=[];for(i=function(t,n,i){if("e"==n&&l.push(t),"b"==n){if(!i)return;l.push(t)}--o||e(l)},r=0;r<s;r++)a(t[r],i,n)}function u(t,n,i){var r,a;if(n&&n.trim&&(r=n),a=(r?i:n)||{},r){if(r in e)throw"LoadJS";e[r]=!0}function u(e,n){l(t,(function(t){s(a,t),e&&s({success:e,error:n},t),o(r,t)}),a)}if(a.returnPromise)return new Promise(u);u()}return u.ready=function(t,e){return r(t,(function(t){s(e,t)})),u},u.done=function(t){o(t,[])},u.reset=function(){e={},n={},i={}},u.isDefined=function(t){return t in e},u}()}));function Wt(t){return new Promise(((e,n)=>{zt(t,{success:e,error:n})}))}function qt(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,tt.call(this,this.media,t?"play":"pause"))}const Gt={setup(){const t=this;B(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,dt.call(t),k.object(window.Vimeo)?Gt.ready.call(t):Wt(t.config.urls.vimeo.sdk).then((()=>{Gt.ready.call(t)})).catch((e=>{t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready(){const t=this,e=t.config.vimeo,{premium:n,referrerPolicy:i,...r}=e;let o=t.media.getAttribute("src"),s="";k.empty(o)?(o=t.media.getAttribute(t.config.attributes.embed.id),s=t.media.getAttribute(t.config.attributes.embed.hash)):s=function(t){const e=t.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return e&&5===e.length?e[4]:null}(o);const a=s?{h:s}:{};n&&Object.assign(r,{controls:!1,sidedock:!1});const l=It({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:t.config.playsinline,...a,...r}),u=(c=o,k.empty(c)?null:k.number(Number(c))?c:c.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:c);var c;const d=R("iframe"),h=pt(t.config.urls.vimeo.iframe,u,l);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),k.empty(i)||d.setAttribute("referrerPolicy",i),n||!e.customControls)d.setAttribute("data-poster",t.poster),t.media=$(d,t.media);else{const e=R("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});e.appendChild(d),t.media=$(e,t.media)}e.customControls||_t(pt(t.config.urls.vimeo.api,h)).then((e=>{!k.empty(e)&&e.thumbnail_url&&Ht.setPoster.call(t,e.thumbnail_url).catch((()=>{}))})),t.embed=new window.Vimeo.Player(d,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=()=>(qt.call(t,!0),t.embed.play()),t.media.pause=()=>(qt.call(t,!1),t.embed.pause()),t.media.stop=()=>{t.pause(),t.currentTime=0};let{currentTime:f}=t.media;Object.defineProperty(t.media,"currentTime",{get:()=>f,set(e){const{embed:n,media:i,paused:r,volume:o}=t,s=r&&!n.hasPlayed;i.seeking=!0,tt.call(t,i,"seeking"),Promise.resolve(s&&n.setVolume(0)).then((()=>n.setCurrentTime(e))).then((()=>s&&n.pause())).then((()=>s&&n.setVolume(o))).catch((()=>{}))}});let p=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:()=>p,set(e){t.embed.setPlaybackRate(e).then((()=>{p=e,tt.call(t,t.media,"ratechange")})).catch((()=>{t.options.speed=[1]}))}});let{volume:m}=t.config;Object.defineProperty(t.media,"volume",{get:()=>m,set(e){t.embed.setVolume(e).then((()=>{m=e,tt.call(t,t.media,"volumechange")}))}});let{muted:g}=t.config;Object.defineProperty(t.media,"muted",{get:()=>g,set(e){const n=!!k.boolean(e)&&e;t.embed.setMuted(!!n||t.config.muted).then((()=>{g=n,tt.call(t,t.media,"volumechange")}))}});let v,{loop:y}=t.config;Object.defineProperty(t.media,"loop",{get:()=>y,set(e){const n=k.boolean(e)?e:t.config.loop.active;t.embed.setLoop(n).then((()=>{y=n}))}}),t.embed.getVideoUrl().then((e=>{v=e,At.setDownloadUrl.call(t)})).catch((t=>{this.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:()=>v}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((e=>{const[n,i]=e;t.embed.ratio=ht(n,i),dt.call(this)})),t.embed.setAutopause(t.config.autopause).then((e=>{t.config.autopause=e})),t.embed.getVideoTitle().then((e=>{t.config.title=e,Ht.setTitle.call(this)})),t.embed.getCurrentTime().then((e=>{f=e,tt.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((e=>{t.media.duration=e,tt.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((e=>{t.media.textTracks=e,Ot.setup.call(t)})),t.embed.on("cuechange",(({cues:e=[]})=>{const n=e.map((t=>function(t){const e=document.createDocumentFragment(),n=document.createElement("div");return e.appendChild(n),n.innerHTML=t,e.firstChild.innerText}(t.text)));Ot.updateCues.call(t,n)})),t.embed.on("loaded",(()=>{t.embed.getPaused().then((e=>{qt.call(t,!e),e||tt.call(t,t.media,"playing")})),k.element(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(()=>{tt.call(t,t.media,"waiting")})),t.embed.on("bufferend",(()=>{tt.call(t,t.media,"playing")})),t.embed.on("play",(()=>{qt.call(t,!0),tt.call(t,t.media,"playing")})),t.embed.on("pause",(()=>{qt.call(t,!1)})),t.embed.on("timeupdate",(e=>{t.media.seeking=!1,f=e.seconds,tt.call(t,t.media,"timeupdate")})),t.embed.on("progress",(e=>{t.media.buffered=e.percent,tt.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&tt.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((e=>{e!==t.media.duration&&(t.media.duration=e,tt.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(()=>{t.media.seeking=!1,tt.call(t,t.media,"seeked")})),t.embed.on("ended",(()=>{t.media.paused=!0,tt.call(t,t.media,"ended")})),t.embed.on("error",(e=>{t.media.error=e,tt.call(t,t.media,"error")})),e.customControls&&setTimeout((()=>Ht.build.call(t)),0)}};function Kt(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,tt.call(this,this.media,t?"play":"pause"))}function Yt(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const Zt={setup(){if(B(this.elements.wrapper,this.config.classNames.embed,!0),k.object(window.YT)&&k.function(window.YT.Player))Zt.ready.call(this);else{const t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{k.function(t)&&t(),Zt.ready.call(this)},Wt(this.config.urls.youtube.sdk).catch((t=>{this.debug.warn("YouTube API failed to load",t)}))}},getTitle(t){_t(pt(this.config.urls.youtube.api,t)).then((t=>{if(k.object(t)){const{title:e,height:n,width:i}=t;this.config.title=e,Ht.setTitle.call(this),this.embed.ratio=ht(i,n)}dt.call(this)})).catch((()=>{dt.call(this)}))},ready(){const t=this,e=t.config.youtube,n=t.media&&t.media.getAttribute("id");if(!k.empty(n)&&n.startsWith("youtube-"))return;let i=t.media.getAttribute("src");k.empty(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));const r=(o=i,k.empty(o)?null:o.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:o);var o;const s=R("div",{id:`${t.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":e.customControls?t.poster:void 0});if(t.media=$(s,t.media),e.customControls){const e=t=>`https://i.ytimg.com/vi/${r}/${t}default.jpg`;Bt(e("maxres"),121).catch((()=>Bt(e("sd"),121))).catch((()=>Bt(e("hq")))).then((e=>Ht.setPoster.call(t,e.src))).then((e=>{e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((()=>{}))}t.embed=new window.YT.Player(t.media,{videoId:r,host:Yt(e),playerVars:O({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:t.config.playsinline&&!t.config.fullscreen.iosNative?1:0,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},e),events:{onError(e){if(!t.media.error){const n=e.data,i={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occurred";t.media.error={code:n,message:i},tt.call(t,t.media,"error")}},onPlaybackRateChange(e){const n=e.target;t.media.playbackRate=n.getPlaybackRate(),tt.call(t,t.media,"ratechange")},onReady(n){if(k.function(t.media.play))return;const i=n.target;Zt.getTitle.call(t,r),t.media.play=()=>{Kt.call(t,!0),i.playVideo()},t.media.pause=()=>{Kt.call(t,!1),i.pauseVideo()},t.media.stop=()=>{i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:()=>Number(i.getCurrentTime()),set(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,tt.call(t,t.media,"seeking"),i.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:()=>i.getPlaybackRate(),set(t){i.setPlaybackRate(t)}});let{volume:o}=t.config;Object.defineProperty(t.media,"volume",{get:()=>o,set(e){o=e,i.setVolume(100*o),tt.call(t,t.media,"volumechange")}});let{muted:s}=t.config;Object.defineProperty(t.media,"muted",{get:()=>s,set(e){const n=k.boolean(e)?e:s;s=n,i[n?"mute":"unMute"](),i.setVolume(100*o),tt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:()=>i.getVideoUrl()}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration});const a=i.getAvailablePlaybackRates();t.options.speed=a.filter((e=>t.config.speed.options.includes(e))),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),tt.call(t,t.media,"timeupdate"),tt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((()=>{t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&tt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),tt.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((()=>Ht.build.call(t)),50)},onStateChange(n){const i=n.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(n.data)&&(t.media.seeking=!1,tt.call(t,t.media,"seeked")),n.data){case-1:tt.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),tt.call(t,t.media,"progress");break;case 0:Kt.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):tt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(Kt.call(t,!0),tt.call(t,t.media,"playing"),t.timers.playing=setInterval((()=>{tt.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),tt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),Kt.call(t,!1);break;case 3:tt.call(t,t.media,"waiting")}tt.call(t,t.elements.container,"statechange",!1,{code:n.data})}}})}},Xt={setup(){this.media?(B(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),B(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&B(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=R("div",{class:this.config.classNames.video}),D(this.media,this.elements.wrapper),this.elements.poster=R("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?ft.setup.call(this):this.isYouTube?Zt.setup.call(this):this.isVimeo&&Gt.setup.call(this)):this.debug.warn("No media element found!")}};class Qt{constructor(e){t(this,"load",(()=>{this.enabled&&(k.object(window.google)&&k.object(window.google.ima)?this.ready():Wt(this.player.config.urls.googleIMA.sdk).then((()=>{this.ready()})).catch((()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))})))})),t(this,"ready",(()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((()=>{this.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()})),t(this,"setupIMA",(()=>{this.elements.container=R("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(t=>this.onAdsManagerLoaded(t)),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(t=>this.onAdError(t)),!1),this.requestAds()})),t(this,"requestAds",(()=>{const{container:t}=this.player.elements;try{const e=new google.ima.AdsRequest;e.adTagUrl=this.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(e)}catch(t){this.onAdError(t)}})),t(this,"pollCountdown",((t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval((()=>{const t=Ct(Math.max(this.manager.getRemainingTime(),0)),e=`${wt.get("advertisement",this.player.config)} - ${t}`;this.elements.container.setAttribute("data-badge-text",e)}),100)})),t(this,"onAdsManagerLoaded",(t=>{if(!this.enabled)return;const e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,this.manager=t.getAdsManager(this.player,e),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(t=>this.onAdError(t))),Object.keys(google.ima.AdEvent.Type).forEach((t=>{this.manager.addEventListener(google.ima.AdEvent.Type[t],(t=>this.onAdEvent(t)))})),this.trigger("loaded")})),t(this,"addCuePoints",(()=>{k.empty(this.cuePoints)||this.cuePoints.forEach((t=>{if(0!==t&&-1!==t&&t<this.player.duration){const e=this.player.elements.progress;if(k.element(e)){const n=100/this.player.duration*t,i=R("span",{class:this.player.config.classNames.cues});i.style.left=`${n.toString()}%`,e.appendChild(i)}}}))})),t(this,"onAdEvent",(t=>{const{container:e}=this.player.elements,n=t.getAd(),i=t.getAdData();switch((t=>{tt.call(this.player,this.player.media,`ads${t.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=e.offsetWidth,n.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.adError.getMessage()}`)}})),t(this,"onAdError",(t=>{this.cancel(),this.player.debug.warn("Ads error",t)})),t(this,"listeners",(()=>{const{container:t}=this.player.elements;let e;this.player.on("canplay",(()=>{this.addCuePoints()})),this.player.on("ended",(()=>{this.loader.contentComplete()})),this.player.on("timeupdate",(()=>{e=this.player.currentTime})),this.player.on("seeked",(()=>{const t=this.player.currentTime;k.empty(this.cuePoints)||this.cuePoints.forEach(((n,i)=>{e<n&&n<t&&(this.manager.discardAdBreak(),this.cuePoints.splice(i,1))}))})),window.addEventListener("resize",(()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),t(this,"play",(()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then((()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(t){this.onAdError(t)}})).catch((()=>{}))})),t(this,"resumeContent",(()=>{this.elements.container.style.zIndex="",this.playing=!1,it(this.player.media.play())})),t(this,"pauseContent",(()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()})),t(this,"cancel",(()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()})),t(this,"loadAds",(()=>{this.managerPromise.then((()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise((t=>{this.on("loaded",t),this.player.debug.log(this.manager)})),this.initialized=!1,this.requestAds()})).catch((()=>{}))})),t(this,"trigger",((t,...e)=>{const n=this.events[t];k.array(n)&&n.forEach((t=>{k.function(t)&&t.apply(this,e)}))})),t(this,"on",((t,e)=>(k.array(this.events[t])||(this.events[t]=[]),this.events[t].push(e),this))),t(this,"startSafetyTimer",((t,e)=>{this.player.debug.log(`Safety timer invoked from: ${e}`),this.safetyTimer=setTimeout((()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")}),t)})),t(this,"clearSafetyTimer",(t=>{k.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)})),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(((t,e)=>{this.on("loaded",t),this.on("error",e)})),this.load()}get enabled(){const{config:t}=this;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!k.empty(t.publisherId)||k.url(t.tagUrl))}get tagUrl(){const{config:t}=this;return k.url(t.tagUrl)?t.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${It({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId})}`}}function Jt(t=0,e=0,n=255){return Math.min(Math.max(t,e),n)}const te=t=>{const e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((t=>{const n={};t.split(/\r\n|\n|\r/).forEach((t=>{if(k.number(n.startTime)){if(!k.empty(t.trim())&&k.empty(n.text)){const e=t.trim().split("#xywh=");[n.text]=e,e[1]&&([n.x,n.y,n.w,n.h]=e[1].split(","))}}else{const e=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);e&&(n.startTime=60*Number(e[1]||0)*60+60*Number(e[2])+Number(e[3])+Number(`0.${e[4]}`),n.endTime=60*Number(e[6]||0)*60+60*Number(e[7])+Number(e[8])+Number(`0.${e[9]}`))}})),n.text&&e.push(n)})),e},ee=(t,e)=>{const n={};return t>e.width/e.height?(n.width=e.width,n.height=1/t*e.width):(n.height=e.height,n.width=t*e.height),n};class ne{constructor(e){t(this,"load",(()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)}))})),t(this,"getThumbnails",(()=>new Promise((t=>{const{src:e}=this.player.config.previewThumbnails;if(k.empty(e))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort(((t,e)=>t.height-e.height)),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(k.function(e))e((t=>{this.thumbnails=t,n()}));else{const t=(k.string(e)?[e]:e).map((t=>this.getThumbnail(t)));Promise.all(t).then(n)}})))),t(this,"getThumbnail",(t=>new Promise((e=>{_t(t).then((n=>{const i={frames:te(n),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{i.height=r.naturalHeight,i.width=r.naturalWidth,this.thumbnails.push(i),e()},r.src=i.urlPrefix+i.frames[0].text}))})))),t(this,"startMove",(t=>{if(this.loaded&&k.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var e,n;const i=this.player.elements.progress.getBoundingClientRect(),r=100/i.width*(t.pageX-i.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Ct(this.seekTime);const o=null===(e=this.player.config.markers)||void 0===e||null===(n=e.points)||void 0===n?void 0:n.find((({time:t})=>t===Math.round(this.seekTime)));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`)}this.showImageAtCurrentTime()}})),t(this,"endMove",(()=>{this.toggleThumbContainer(!1,!0)})),t(this,"startScrubbing",(t=>{(k.nullOrUndefined(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))})),t(this,"endScrubbing",(()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):J.call(this.player,this.player.media,"timeupdate",(()=>{this.mouseDown||this.toggleScrubbingContainer(!1)}))})),t(this,"listeners",(()=>{this.player.on("play",(()=>{this.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(()=>{this.toggleThumbContainer(!1)})),this.player.on("timeupdate",(()=>{this.lastTime=this.player.media.currentTime}))})),t(this,"render",(()=>{this.elements.thumb.container=R("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=R("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=R("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=R("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),k.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=R("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)})),t(this,"destroy",(()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()})),t(this,"showImageAtCurrentTime",(()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex((t=>this.seekTime>=t.startTime&&this.seekTime<=t.endTime)),e=t>=0;let n=0;this.mouseDown||this.toggleThumbContainer(e),e&&(this.thumbnails.forEach(((e,i)=>{this.loadedImages.includes(e.frames[t].text)&&(n=i)})),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)))})),t(this,"loadImage",((t=0)=>{const e=this.showingThumb,n=this.thumbnails[t],{urlPrefix:i}=n,r=n.frames[e],o=n.frames[e].text,s=i+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,r,t,e,o,!1),this.currentImageElement.dataset.index=e,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const n=new Image;n.src=s,n.dataset.index=e,n.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${s}`),n.onload=()=>this.showImage(n,r,t,e,o,!0),this.loadingImage=n,this.removeOldImages(n)}})),t(this,"showImage",((t,e,n,i,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${i}. qual: ${n}. newimg: ${o}`),this.setImageSizeAndOffset(t,e),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(n,t,e,r))})),t(this,"removeOldImages",(t=>{Array.from(this.currentImageContainer.children).forEach((e=>{if("img"!==e.tagName.toLowerCase())return;const n=this.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;const{currentImageContainer:t}=this;setTimeout((()=>{t.removeChild(e),this.player.debug.log(`Removing thumb: ${e.dataset.filename}`)}),n)}}))})),t(this,"preloadNearby",((t,e=!0)=>new Promise((n=>{setTimeout((()=>{const i=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===i){let r;r=e?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach((t=>{const e=t.text;if(e!==i&&!this.loadedImages.includes(e)){o=!0,this.player.debug.log(`Preloading thumb filename: ${e}`);const{urlPrefix:t}=this.thumbnails[0],i=t+e,r=new Image;r.src=i,r.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${e}`),this.loadedImages.includes(e)||this.loadedImages.push(e),n()}}})),o||n()}}),300)})))),t(this,"getHigherQuality",((t,e,n,i)=>{if(t<this.thumbnails.length-1){let r=e.naturalHeight;this.usingSprites&&(r=n.h),r<this.thumbContainerHeight&&setTimeout((()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(t+1))}),300)}})),t(this,"toggleThumbContainer",((t=!1,e=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,t),!t&&e&&(this.showingThumb=null,this.showingThumbFilename=null)})),t(this,"toggleScrubbingContainer",((t=!1)=>{const e=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(e,t),t||(this.showingThumb=null,this.showingThumbFilename=null)})),t(this,"determineContainerAutoSizing",(()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)})),t(this,"setThumbContainerSizeAndPos",(()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const e=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${e}px`}else if(t.clientHeight<20&&t.clientWidth>20){const e=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${e}px`}}else{const e=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${e}px`}this.setThumbContainerPos()})),t(this,"setThumbContainerPos",(()=>{const t=this.player.elements.progress.getBoundingClientRect(),e=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,i=e.left-t.left+10,r=e.right-t.left-n.clientWidth-10,o=this.mousePosX-t.left-n.clientWidth/2,s=Jt(o,i,r);n.style.left=`${s}px`,n.style.setProperty("--preview-arrow-offset",o-s+"px")})),t(this,"setScrubbingContainerSize",(()=>{const{width:t,height:e}=ee(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${e}px`})),t(this,"setImageSizeAndOffset",((t,e)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*n+"px",t.style.width=t.naturalWidth*n+"px",t.style.left=`-${e.x*n}px`,t.style.top=`-${e.y*n}px`})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:t}=ee(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return t}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}const ie={insertElements(t,e){k.string(e)?M(t,this.media,{src:e}):k.array(e)&&e.forEach((e=>{M(t,this.media,e)}))},change(t){I(t,"sources.length")?(ft.cancelRequests.call(this),this.destroy.call(this,(()=>{this.options.quality=[],N(this.media),this.media=null,k.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:e,type:n}=t,[{provider:i=Mt.html5,src:r}]=e,o="html5"===i?n:"div",s="html5"===i?{}:{src:r};Object.assign(this,{provider:i,type:n,supported:K.check(n,i,this.config.playsinline),media:R(o,s)}),this.elements.container.appendChild(this.media),k.boolean(t.autoplay)&&(this.config.autoplay=t.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),k.empty(t.poster)||(this.poster=t.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Ht.addStyleHook.call(this),this.isHTML5&&ie.insertElements.call(this,"source",e),this.config.title=t.title,Xt.setup.call(this),this.isHTML5&&Object.keys(t).includes("tracks")&&ie.insertElements.call(this,"track",t.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Ht.build.call(this),this.isHTML5&&this.media.load(),k.empty(t.previewThumbnails)||(Object.assign(this.config.previewThumbnails,t.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))),this.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};class re{constructor(e,n){if(t(this,"play",(()=>k.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((()=>this.ads.play())).catch((()=>it(this.media.play()))),this.media.play()):null)),t(this,"pause",(()=>this.playing&&k.function(this.media.pause)?this.media.pause():null)),t(this,"togglePlay",(t=>(k.boolean(t)?t:!this.playing)?this.play():this.pause())),t(this,"stop",(()=>{this.isHTML5?(this.pause(),this.restart()):k.function(this.media.stop)&&this.media.stop()})),t(this,"restart",(()=>{this.currentTime=0})),t(this,"rewind",(t=>{this.currentTime-=k.number(t)?t:this.config.seekTime})),t(this,"forward",(t=>{this.currentTime+=k.number(t)?t:this.config.seekTime})),t(this,"increaseVolume",(t=>{const e=this.media.muted?0:this.volume;this.volume=e+(k.number(t)?t:0)})),t(this,"decreaseVolume",(t=>{this.increaseVolume(-t)})),t(this,"airplay",(()=>{K.airplay&&this.media.webkitShowPlaybackTargetPicker()})),t(this,"toggleControls",(t=>{if(this.supported.ui&&!this.isAudio){const e=H(this.elements.container,this.config.classNames.hideControls),n=void 0===t?void 0:!t,i=B(this.elements.container,this.config.classNames.hideControls,n);if(i&&k.array(this.config.controls)&&this.config.controls.includes("settings")&&!k.empty(this.config.settings)&&At.toggleMenu.call(this,!1),i!==e){const t=i?"controlshidden":"controlsshown";tt.call(this,this.media,t)}return!i}return!1})),t(this,"on",((t,e)=>{X.call(this,this.elements.container,t,e)})),t(this,"once",((t,e)=>{J.call(this,this.elements.container,t,e)})),t(this,"off",((t,e)=>{Q(this.elements.container,t,e)})),t(this,"destroy",((t,e=!1)=>{if(!this.ready)return;const n=()=>{document.body.style.overflow="",this.embed=null,e?(Object.keys(this.elements).length&&(N(this.elements.buttons.play),N(this.elements.captions),N(this.elements.controls),N(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),k.function(t)&&t()):(et.call(this),ft.cancelRequests.call(this),$(this.elements.original,this.elements.container),tt.call(this,this.elements.original,"destroyed",!0),k.function(t)&&t.call(this.elements.original),this.ready=!1,setTimeout((()=>{this.elements=null,this.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Ht.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&k.function(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))})),t(this,"supports",(t=>K.mime.call(this,t))),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=K.touch,this.media=e,k.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||k.nodeList(this.media)||k.array(this.media))&&(this.media=this.media[0]),this.config=O({},Dt,re.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(t){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new jt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",K),k.nullOrUndefined(this.media)||!k.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!K.check().api)return void this.debug.error("Setup failed: no support");const i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;const r=this.media.tagName.toLowerCase();let o=null,s=null;switch(r){case"div":if(o=this.media.querySelector("iframe"),k.element(o)){if(s=Lt(o.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Mt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Mt.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length){const t=["1","true"];t.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),t.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=t.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(k.empty(this.provider)||!Object.values(Mt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Ft;break;case"video":case"audio":this.type=r,this.provider=Mt.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=K.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Vt(this),this.storage=new Tt(this),this.media.plyr=this,k.element(this.elements.container)||(this.elements.container=R("div"),D(this.media,this.elements.container)),Ht.migrateStyles.call(this),Ht.addStyleHook.call(this),Xt.setup.call(this),this.config.debug&&X.call(this,this.elements.container,this.config.events.join(" "),(t=>{this.debug.log(`event: ${t.type}`)})),this.fullscreen=new Ut(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Ht.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Qt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(()=>it(this.play()))),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Mt.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Mt.youtube}get isVimeo(){return this.provider===Mt.vimeo}get isVideo(){return this.type===Ft}get isAudio(){return this.type===Nt}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(t){if(!this.duration)return;const e=k.number(t)&&t>0;this.media.currentTime=e?Math.min(t,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:t}=this.media;return k.number(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const t=parseFloat(this.config.duration),e=(this.media||{}).duration,n=k.number(e)&&e!==1/0?e:0;return t||n}set volume(t){let e=t;k.string(e)&&(e=Number(e)),k.number(e)||(e=this.storage.get("volume")),k.number(e)||({volume:e}=this.config),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!k.empty(t)&&this.muted&&e>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let e=t;k.boolean(e)||(e=this.storage.get("muted")),k.boolean(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(t){let e=null;k.number(t)&&(e=t),k.number(e)||(e=this.storage.get("speed")),k.number(e)||(e=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:i}=this;e=Jt(e,n,i),this.config.speed.selected=e,setTimeout((()=>{this.media&&(this.media.playbackRate=e)}),0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(t){const e=this.config.quality,n=this.options.quality;if(!n.length)return;let i=[!k.empty(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(k.number),r=!0;if(!n.includes(i)){const t=ot(n,i);this.debug.warn(`Unsupported quality option: ${i}, using ${t} instead`),i=t,r=!1}e.selected=i,this.media.quality=i,r&&this.storage.set({quality:i})}get quality(){return this.media.quality}set loop(t){const e=k.boolean(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}get loop(){return Boolean(this.media.loop)}set source(t){ie.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return k.url(t)?t:this.source}set download(t){k.url(t)&&(this.config.urls.download=t,At.setDownloadUrl.call(this))}set poster(t){this.isVideo?Ht.setPoster.call(this,t,!1).catch((()=>{})):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const t=ut(ct.call(this));return k.array(t)?t.join(":"):t}set ratio(t){this.isVideo?k.string(t)&&lt(t)?(this.config.ratio=ut(t),dt.call(this)):this.debug.error(`Invalid aspect ratio specified (${t})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(t){this.config.autoplay=k.boolean(t)?t:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(t){Ot.toggle.call(this,t,!1)}set currentTrack(t){Ot.set.call(this,t,!1),Ot.setup.call(this)}get currentTrack(){const{toggled:t,currentTrack:e}=this.captions;return t?e:-1}set language(t){Ot.setLanguage.call(this,t,!1)}get language(){return(Ot.getCurrentTrack.call(this)||{}).language}set pip(t){if(!K.pip)return;const e=k.boolean(t)?t:!this.pip;k.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?Pt:Rt),k.function(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}get pip(){return K.pip?k.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Pt:null}setPreviewThumbnails(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))}static supported(t,e){return K.check(t,e)}static loadSprite(t,e){return St(t,e)}static setup(t,e={}){let n=null;return k.string(t)?n=Array.from(document.querySelectorAll(t)):k.nodeList(t)?n=Array.from(t):k.array(t)&&(n=t.filter(k.element)),k.empty(n)?null:n.map((t=>new re(t,e)))}}var oe;return re.defaults=(oe=Dt,JSON.parse(JSON.stringify(oe))),re}())},8981:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>st});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var o=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function s(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:u(l(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var d=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function f(t){return 11===t?d:10===t?h:d||h}function p(t){if(!t)return document.documentElement;for(var e=f(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function m(t){return null!==t.parentNode?m(t.parentNode):t}function g(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&p(s.firstElementChild)!==s?p(l):l;var u=m(t);return u.host?g(u.host,e):g(t,m(e).host)}function v(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function y(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function b(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],f(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,i=f(10)&&getComputedStyle(n);return{height:b("Height",e,n,i),width:b("Width",e,n,i)}}var T=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),_=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function E(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function x(t){var e={};try{if(f(10)){e=t.getBoundingClientRect();var n=v(t,"top"),i=v(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?w(t.ownerDocument):{},s=o.width||t.clientWidth||r.width,l=o.height||t.clientHeight||r.height,u=t.offsetWidth-s,c=t.offsetHeight-l;if(u||c){var d=a(t);u-=y(d,"x"),c-=y(d,"y"),r.width-=u,r.height-=c}return E(r)}function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(10),r="HTML"===e.nodeName,o=x(t),s=x(e),l=u(t),c=a(e),d=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=E({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!i&&r){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-g,p.right-=h-g,p.marginTop=m,p.marginLeft=g}return(i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(e,"top"),r=v(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(p,e)),p}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=l(t);return!!n&&C(n)}function A(t){if(!t||!t.parentElement||f())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function L(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=r?A(t):g(t,c(e));if("viewport"===i)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=k(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:v(n),a=e?0:v(n,"left");return E({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o})}(s,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=u(l(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var d=k(a,s,r);if("HTML"!==a.nodeName||C(s))o=d;else{var h=w(t.ownerDocument),f=h.height,p=h.width;o.top+=d.top-d.marginTop,o.bottom=f+d.top,o.left+=d.left-d.marginLeft,o.right=p+d.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function I(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=L(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return S({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function O(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,i?A(e):g(e,c(n)),i)}function D(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function P(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function R(t,e,n){n=n.split("-")[0];var i=D(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[u]:e[P(a)],r}function M(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function N(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=M(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&s(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))})),e}function F(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=I(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=R(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=N(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function $(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function j(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function U(){return this.state.isDestroyed=!0,$(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e,n,i){var r="BODY"===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),r||H(u(o.parentNode),e,n,i),i.push(o)}function V(t,e,n,i){n.updateBound=i,B(t).addEventListener("resize",n.updateBound,{passive:!0});var r=u(t);return H(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function W(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,B(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function G(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var K=i&&/Firefox/i.test(navigator.userAgent);function Y(t,e,n){var i=M(t,(function(t){return t.name===e})),r=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!r);return r}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=Z.slice(3);function Q(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X.indexOf(t),i=X.slice(n+1).concat(X.slice(0,n));return e?i.reverse():i}var J="flip",tt="clockwise",et="counterclockwise";function nt(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(M(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map((function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){return E("%p"===s?n:i)[e]/100*o}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)}))})),u.forEach((function(t,e){t.forEach((function(n,i){q(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))}))})),r}var it={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:_({},l,o[l]),end:_({},l,o[l]+o[u]-s[u])};t.offsets.popper=S({},s,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=q(+n)?[+n,0]:nt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var i=j("transform"),r=t.instance.popper.style,o=r.top,s=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=L(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=s,r[i]=a,e.boundaries=l;var u=e.priority,c=t.offsets.popper,d={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),_({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),_({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=S({},c,d[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Y(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(r),c=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),f=u?"left":"top",p=u?"bottom":"right",m=D(i)[c];l[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-m)),l[h]+m>s[p]&&(t.offsets.popper[h]+=l[h]+m-s[p]),t.offsets.popper=E(t.offsets.popper);var g=l[h]+l[c]/2-m/2,v=a(t.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),w=g-t.offsets.popper[h]-y-b;return w=Math.max(Math.min(s[c]-m,w),0),t.arrowElement=i,t.offsets.arrow=(_(n={},h,Math.round(w)),_(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if($(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=L(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=P(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case J:s=[i,r];break;case tt:s=Q(i);break;case et:s=Q(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=P(i);var u=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===i&&d(u.right)>d(c.left)||"right"===i&&d(u.left)<d(c.right)||"top"===i&&d(u.bottom)>d(c.top)||"bottom"===i&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),p=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&g||!y&&"end"===o&&m),T=b||w;(h||v||T)&&(t.flipped=!0,(h||v)&&(i=s[l+1]),T&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=S({},t.offsets.popper,R(t.instance.popper,t.offsets.reference,t.placement)),t=N(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=P(e),t.offsets.popper=E(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Y(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=M(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=M(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,s=void 0!==o?o:e.gpuAcceleration,a=p(t.instance.popper),l=x(a),u={position:r.position},c=function(t,e){var n=t.offsets,i=n.popper,r=n.reference,o=Math.round,s=Math.floor,a=function(t){return t},l=o(r.width),u=o(i.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?c||d||l%2==u%2?o:s:a,f=e?o:a;return{left:h(l%2==1&&u%2==1&&!d&&e?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!K),d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",f=j("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===h?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,s&&f)u[f]="translate3d("+m+"px, "+g+"px, 0)",u[d]=0,u[h]=0,u.willChange="transform";else{var v="bottom"===d?-1:1,y="right"===h?-1:1;u[d]=g*v,u[h]=m*y,u.willChange=d+", "+h}var b={"x-placement":t.placement};return t.attributes=S({},b,t.attributes),t.styles=S({},u,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return G(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&G(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=O(r,e,t,n.positionFixed),s=I(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),G(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:it},ot=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=S({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,r.modifiers)).forEach((function(e){i.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return S({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&s(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return T(t,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),t}();ot.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ot.placements=Z,ot.Defaults=rt;const st=ot},4155:t=>{var e,n,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,l=[],u=!1,c=-1;function d(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&h())}function h(){if(!u){var t=s(d);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},9154:(t,e,n)=>{var i,r,o;!function(s){"use strict";r=[n(9755)],i=function(t){var e=window.Slick||{};(e=function(){var e=0;function n(n,i){var r,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(n),appendDots:t(n),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,n){return t('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(n),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,r=t(n).data("slick")||{},o.options=t.extend({},o.defaults,i,r),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=e++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}return n}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,n,i){var r=this;if("boolean"==typeof n)i=n,n=null;else if(n<0||n>=r.slideCount)return!1;r.unload(),"number"==typeof n?0===n&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):i?t(e).insertBefore(r.$slides.eq(n)):t(e).insertAfter(r.$slides.eq(n)):!0===i?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each((function(e,n){t(n).attr("data-slick-index",e)})),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,n){var i={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(e=-e),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,n):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,n):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),!1===r.options.vertical?(i[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(i)):(i[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(r.applyTransition(),e=Math.ceil(e),!1===r.options.vertical?i[r.animType]="translate3d("+e+"px, 0px, 0px)":i[r.animType]="translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(i),n&&setTimeout((function(){r.disableTransition(),n.call()}),r.options.speed))},e.prototype.getNavTarget=function(){var e=this,n=e.options.asNavFor;return n&&null!==n&&(n=t(n).not(e.$slider)),n},e.prototype.asNavFor=function(e){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each((function(){var n=t(this).slick("getSlick");n.unslicked||n.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,n={};!1===e.options.fade?n[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:n[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,n,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),n=t("<ul />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)n.append(t("<li />").append(i.options.customPaging.call(this,i,e)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,n){t(n).attr("data-slick-index",e).data("originalStyling",t(n).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,n,i,r,o,s,a=this;if(i=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>0){for(s=a.options.slidesPerRow*a.options.rows,r=Math.ceil(o.length/s),t=0;t<r;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var u=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var c=t*s+(e*a.options.slidesPerRow+n);o.get(c)&&u.appendChild(o.get(c))}l.appendChild(u)}i.appendChild(l)}a.$slider.empty().append(i),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,n){var i,r,o,s=this,a=!1,l=s.$slider.width(),u=window.innerWidth||t(window).width();if("window"===s.respondTo?o=u:"slider"===s.respondTo?o=l:"min"===s.respondTo&&(o=Math.min(u,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in r=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?o<s.breakpoints[i]&&(r=s.breakpoints[i]):o>s.breakpoints[i]&&(r=s.breakpoints[i]));null!==r?null!==s.activeBreakpoint?(r!==s.activeBreakpoint||n)&&(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=r):(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=r):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e),a=r),e||!1===a||s.$slider.trigger("breakpoint",[s,a])}},e.prototype.changeSlide=function(e,n){var i,r,o=this,s=t(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),i=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":r=0===i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-r,!1,n);break;case"next":r=0===i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+r,!1,n);break;case"index":var a=0===e.data.index?0:e.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(a),!1,n),s.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,n;if(n=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var i in e){if(t<e[i]){t=n;break}n=e[i]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),t(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,e||n.$slider.trigger("destroy",[n])},e.prototype.disableTransition=function(t){var e=this,n={};n[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.fadeSlide=function(t,e){var n=this;!1===n.cssTransitions?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout((function(){n.disableTransition(t),e.call()}),n.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(n){n.stopImmediatePropagation();var i=t(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=i.is(":focus"),e.autoPlay())}),0)}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++i;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)i=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else i=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return i-1},e.prototype.getLeft=function(t){var e,n,i,r,o=this,s=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?r=-1.5:1===o.options.slidesToShow&&(r=-2)),s=n*o.options.slidesToShow*r),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,s=(o.options.slidesToShow-(t-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,s=o.slideCount%o.options.slidesToScroll*n*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,s=(t+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,s=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*n*-1+s,!0===o.options.variableWidth&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===o.options.centerMode&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,e+=(o.$list.width()-i.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,n=0,i=0,r=[];for(!1===e.options.infinite?t=e.slideCount:(n=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,t=2*e.slideCount);n<t;)r.push(n),n=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each((function(r,o){if(o.offsetLeft-n+t(o).outerWidth()/2>-1*i.swipeLeft)return e=o,!1})),Math.abs(t(e).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var n=this;t(n.$slider).hasClass("slick-initialized")||(t(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),e&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},e.prototype.initADA=function(){var e=this,n=Math.ceil(e.slideCount/e.options.slidesToShow),i=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(n){var r=i.indexOf(n);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+n,tabindex:-1}),-1!==r){var o="slick-slide-control"+e.instanceUid+r;t("#"+o).length&&t(this).attr({"aria-describedby":o})}})),e.$dots.attr("role","tablist").find("li").each((function(r){var o=i[r];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+r,"aria-controls":"slick-slide"+e.instanceUid+o,"aria-label":r+1+" of "+n,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=e.currentSlide,o=r+e.options.slidesToShow;r<o;r++)e.options.focusOnChange?e.$slides.eq(r).attr({tabindex:"0"}):e.$slides.eq(r).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){var e,n,i,r=this;function o(e){t("img[data-lazy]",e).each((function(){var e=t(this),n=t(this).attr("data-lazy"),i=t(this).attr("data-srcset"),o=t(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0},100,(function(){i&&(e.attr("srcset",i),o&&e.attr("sizes",o)),e.attr("src",n).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),r.$slider.trigger("lazyLoaded",[r,e,n])}))},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,n])},s.src=n}))}if(!0===r.options.centerMode?!0===r.options.infinite?i=(n=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),i=r.options.slidesToShow/2+1+2+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,i=Math.ceil(n+r.options.slidesToShow),!0===r.options.fade&&(n>0&&n--,i<=r.slideCount&&i++)),e=r.$slider.find(".slick-slide").slice(n,i),"anticipated"===r.options.lazyLoad)for(var s=n-1,a=i,l=r.$slider.find(".slick-slide"),u=0;u<r.options.slidesToScroll;u++)s<0&&(s=r.slideCount-1),e=(e=e.add(l.eq(s))).add(l.eq(a)),s--,a++;o(e),r.slideCount<=r.options.slidesToShow?o(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?o(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&o(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,e]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&t(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var n,i,r,o,s,a=this,l=t("img[data-lazy]",a.$slider);l.length?(n=l.first(),i=n.attr("data-lazy"),r=n.attr("data-srcset"),o=n.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){r&&(n.attr("srcset",r),o&&n.attr("sizes",o)),n.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,n,i]),a.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,n,i]),a.progressiveLazyLoad())},s.src=i):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var n,i,r=this;i=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>i&&(r.currentSlide=i),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),n=r.currentSlide,r.destroy(!0),t.extend(r,r.initials,{currentSlide:n}),r.init(),e||r.changeSlide({data:{message:"index",index:n}},!1)},e.prototype.registerBreakpoints=function(){var e,n,i,r=this,o=r.options.responsive||null;if("array"===t.type(o)&&o.length){for(e in r.respondTo=r.options.respondTo||"window",o)if(i=r.breakpoints.length-1,o.hasOwnProperty(e)){for(n=o[e].breakpoint;i>=0;)r.breakpoints[i]&&r.breakpoints[i]===n&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(n),r.breakpointSettings[n]=o[e].settings}r.breakpoints.sort((function(t,e){return r.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,n){var i=this;if(t="boolean"==typeof t?!0===(e=t)?0:i.slideCount-1:!0===e?--t:t,i.slideCount<1||t<0||t>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(t).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},e.prototype.setCSS=function(t){var e,n,i=this,r={};!0===i.options.rtl&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",r[i.positionProp]=t,!1===i.transformsEnabled?i.$slideTrack.css(r):(r={},!1===i.cssTransitions?(r[i.animType]="translate("+e+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+e+", "+n+", 0px)",i.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,n=this;n.$slides.each((function(i,r){e=n.slideWidth*i*-1,!0===n.options.rtl?t(r).css({position:"relative",right:e,top:0,zIndex:n.options.zIndex-2,opacity:0}):t(r).css({position:"relative",left:e,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,n,i,r,o,s=this,a=!1;if("object"===t.type(arguments[0])?(i=arguments[0],a=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(i=arguments[0],r=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)s.options[i]=r;else if("multiple"===o)t.each(i,(function(t,e){s.options[t]=e}));else if("responsive"===o)for(n in r)if("array"!==t.type(s.options.responsive))s.options.responsive=[r[n]];else{for(e=s.options.responsive.length-1;e>=0;)s.options.responsive[e].breakpoint===r[n].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(r[n])}a&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,n,i,r,o=this;if(n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var s=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(i=o.options.slidesToShow+t,n.slice(i-e+1+s,i+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,i=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?n.slice(i-(o.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},e.prototype.setupInfinite=function(){var e,n,i,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(n=null,r.slideCount>r.options.slidesToShow)){for(i=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-i;e-=1)n=e-1,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;e<i+r.slideCount;e+=1)n=e,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var n=this,i=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),r=parseInt(i.attr("data-slick-index"));r||(r=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(r,!1,!0):n.slideHandler(r)},e.prototype.slideHandler=function(t,e,n){var i,r,o,s,a,l=null,u=this;if(e=e||!1,!(!0===u.animating&&!0===u.options.waitForAnimate||!0===u.options.fade&&u.currentSlide===t))if(!1===e&&u.asNavFor(t),i=t,l=u.getLeft(i),s=u.getLeft(u.currentSlide),u.currentLeft=null===u.swipeLeft?s:u.swipeLeft,!1===u.options.infinite&&!1===u.options.centerMode&&(t<0||t>u.getDotCount()*u.options.slidesToScroll))!1===u.options.fade&&(i=u.currentSlide,!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,(function(){u.postSlide(i)})):u.postSlide(i));else if(!1===u.options.infinite&&!0===u.options.centerMode&&(t<0||t>u.slideCount-u.options.slidesToScroll))!1===u.options.fade&&(i=u.currentSlide,!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,(function(){u.postSlide(i)})):u.postSlide(i));else{if(u.options.autoplay&&clearInterval(u.autoPlayTimer),r=i<0?u.slideCount%u.options.slidesToScroll!=0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+i:i>=u.slideCount?u.slideCount%u.options.slidesToScroll!=0?0:i-u.slideCount:i,u.animating=!0,u.$slider.trigger("beforeChange",[u,u.currentSlide,r]),o=u.currentSlide,u.currentSlide=r,u.setSlideClasses(u.currentSlide),u.options.asNavFor&&(a=(a=u.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(u.currentSlide),u.updateDots(),u.updateArrows(),!0===u.options.fade)return!0!==n?(u.fadeSlideOut(o),u.fadeSlide(r,(function(){u.postSlide(r)}))):u.postSlide(r),void u.animateHeight();!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(l,(function(){u.postSlide(r)})):u.postSlide(r)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,n,i,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(e,t),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?!1===r.options.rtl?"left":"right":i>=135&&i<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(e),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!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)}},e.prototype.swipeMove=function(t){var e,n,i,r,o,s,a=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,a.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),n=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),r=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(r=a.touchObject.curY>a.touchObject.startY?1:-1),i=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(i=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+i*r:a.swipeLeft=e+i*(a.$list.height()/a.listWidth)*r,!0===a.options.verticalSwiping&&(a.swipeLeft=e+i*r),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,n.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,n,i=this,r=arguments[0],o=Array.prototype.slice.call(arguments,1),s=i.length;for(t=0;t<s;t++)if("object"==typeof r||void 0===r?i[t].slick=new e(i[t],r):n=i[t].slick[r].apply(i[t].slick,o),void 0!==n)return n;return i}},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},3379:(t,e,n)=>{"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=a(c),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:c,updater:g(h,e),references:1}),i.push(c)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var c,d=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function h(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function f(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,m=0;function g(t,e){var n,i,r;if(e.singleton){var o=m++;n=p||(p=u(e)),i=h.bind(null,n,o,!1),r=h.bind(null,n,o,!0)}else n=u(e),i=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=a(n[i]);s[r].references--}for(var o=l(t,e),u=0;u<n.length;u++){var c=a(n[u]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}n=o}}}},2641:(t,e,n)=>{var i,r;!function(t){"use strict";if(!t.jQuery){var e=function(t,n){return new e.fn.init(t,n)};e.isWindow=function(t){return t&&t===t.window},e.type=function(t){return t?"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t:t+""},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isPlainObject=function(t){var n;if(!t||"object"!==e.type(t)||t.nodeType||e.isWindow(t))return!1;try{if(t.constructor&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(n in t);return void 0===n||r.call(t,n)},e.each=function(t,e,n){var i=0,r=t.length,o=l(t);if(n){if(o)for(;i<r&&!1!==e.apply(t[i],n);i++);else for(i in t)if(t.hasOwnProperty(i)&&!1===e.apply(t[i],n))break}else if(o)for(;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(t.hasOwnProperty(i)&&!1===e.call(t[i],i,t[i]))break;return t},e.data=function(t,i,r){if(void 0===r){var o=t[e.expando],s=o&&n[o];if(void 0===i)return s;if(s&&i in s)return s[i]}else if(void 0!==i){var a=t[e.expando]||(t[e.expando]=++e.uuid);return n[a]=n[a]||{},n[a][i]=r,r}},e.removeData=function(t,i){var r=t[e.expando],o=r&&n[r];o&&(i?e.each(i,(function(t,e){delete o[e]})):delete n[r])},e.extend=function(){var t,n,i,r,o,s,a=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==e.type(a)&&(a={}),l===u&&(a=this,l--);l<u;l++)if(o=arguments[l])for(r in o)o.hasOwnProperty(r)&&(t=a[r],a!==(i=o[r])&&(c&&i&&(e.isPlainObject(i)||(n=e.isArray(i)))?(n?(n=!1,s=t&&e.isArray(t)?t:[]):s=t&&e.isPlainObject(t)?t:{},a[r]=e.extend(c,s,i)):void 0!==i&&(a[r]=i)));return a},e.queue=function(t,n,i){if(t){n=(n||"fx")+"queue";var r,o,s,a=e.data(t,n);return i?(!a||e.isArray(i)?a=e.data(t,n,(s=o||[],(r=i)&&(l(Object(r))?function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;)t[r++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[r++]=e[i++];t.length=r}(s,"string"==typeof r?[r]:r):[].push.call(s,r)),s)):a.push(i),a):a||[]}},e.dequeue=function(t,n){e.each(t.nodeType?[t]:t,(function(t,i){n=n||"fx";var r=e.queue(i,n),o=r.shift();"inprogress"===o&&(o=r.shift()),o&&("fx"===n&&r.unshift("inprogress"),o.call(i,(function(){e.dequeue(i,n)})))}))},e.fn=e.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var t=this[0],n=function(t){for(var e=t.offsetParent;e&&"html"!==e.nodeName.toLowerCase()&&e.style&&"static"===e.style.position.toLowerCase();)e=e.offsetParent;return e||document}(t),i=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:e(n).offset();return i.top-=parseFloat(t.style.marginTop)||0,i.left-=parseFloat(t.style.marginLeft)||0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};var n={};e.expando="velocity"+(new Date).getTime(),e.uuid=0;for(var i={},r=i.hasOwnProperty,o=i.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),a=0;a<s.length;a++)i["[object "+s[a]+"]"]=s[a].toLowerCase();e.fn.init.prototype=e.fn,t.Velocity={Utilities:e}}function l(t){var n=t.length,i=e.type(t);return"function"!==i&&!e.isWindow(t)&&(!(1!==t.nodeType||!n)||("array"===i||0===n||"number"==typeof n&&n>0&&n-1 in t))}}(window),function(o){"use strict";"object"==typeof t.exports?t.exports=o():void 0===(r="function"==typeof(i=o)?i.call(e,n,e,t):i)||(t.exports=r)}((function(){"use strict";return function(t,e,n,i){var r,o=function(){if(n.documentMode)return n.documentMode;for(var t=7;t>4;t--){var e=n.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return i}(),s=(r=0,e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(t){var e,n=(new Date).getTime();return e=Math.max(0,16-(n-r)),r=n+e,setTimeout((function(){t(n+e)}),e)}),a=function(){var t=e.performance||{};if("function"!=typeof t.now){var n=t.timing&&t.timing.navigationStart?t.timing.navigationStart:(new Date).getTime();t.now=function(){return(new Date).getTime()-n}}return t}();var l=function(){var t=Array.prototype.slice;try{return t.call(n.documentElement),t}catch(e){return function(e,n){var i=this.length;if("number"!=typeof e&&(e=0),"number"!=typeof n&&(n=i),this.slice)return t.call(this,e,n);var r,o=[],s=e>=0?e:Math.max(0,i+e),a=(n<0?i+n:Math.min(n,i))-s;if(a>0)if(o=new Array(a),this.charAt)for(r=0;r<a;r++)o[r]=this.charAt(s+r);else for(r=0;r<a;r++)o[r]=this[s+r];return o}}}(),u=function(){return Array.prototype.includes?function(t,e){return t.includes(e)}:Array.prototype.indexOf?function(t,e){return t.indexOf(e)>=0}:function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}};function c(t){return h.isWrapped(t)?t=l.call(t):h.isNode(t)&&(t=[t]),t}var d,h={isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isWrapped:function(t){return t&&t!==e&&h.isNumber(t.length)&&!h.isString(t)&&!h.isFunction(t)&&!h.isNode(t)&&(0===t.length||h.isNode(t[0]))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},f=!1;if(t.fn&&t.fn.jquery?(d=t,f=!0):d=e.Velocity.Utilities,o<=8&&!f)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(o<=7)){var p="swing",m={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e.navigator.userAgent),isAndroid:/Android/i.test(e.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(e.navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(e.navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:400,easing:p,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(t){d.data(t,"velocity",{isSVG:h.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(t){var e=(new Date).getTime();d.each(m.State.calls,(function(e,n){if(n){if(t!==i&&(n[2].queue!==t||!1===n[2].queue))return!0;n[5]={resume:!1}}})),d.each(m.State.delayedElements,(function(t,n){n&&_(n,e)}))},resumeAll:function(t){var e=(new Date).getTime();d.each(m.State.calls,(function(e,n){if(n){if(t!==i&&(n[2].queue!==t||!1===n[2].queue))return!0;n[5]&&(n[5].resume=!0)}})),d.each(m.State.delayedElements,(function(t,n){n&&S(n,e)}))}};e.pageYOffset!==i?(m.State.scrollAnchor=e,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop");var g=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,i){var r={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}function n(n,i){var r={dx:n.v,dv:t(n)},o=e(n,.5*i,r),s=e(n,.5*i,o),a=e(n,i,s),l=1/6*(r.dx+2*(o.dx+s.dx)+a.dx),u=1/6*(r.dv+2*(o.dv+s.dv)+a.dv);return n.x=n.x+l*i,n.v=n.v+u*i,n}return function t(e,i,r){var o,s,a,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4;for(e=parseFloat(e)||500,i=parseFloat(i)||20,r=r||null,l.tension=e,l.friction=i,s=(o=null!==r)?(c=t(e,i))/r*.016:.016;a=n(a||l,s),u.push(1+a.x),c+=16,Math.abs(a.x)>d&&Math.abs(a.v)>d;);return o?function(t){return u[t*(u.length-1)|0]}:c}}();m.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(t,e){m.Easings[e[0]]=x.apply(null,e[1])}));var v=m.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<v.Lists.colors.length;t++){var e="color"===v.Lists.colors[t]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[t]]=["Red Green Blue Alpha",e]}var n,i,r;if(o)for(n in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(n)){r=(i=v.Hooks.templates[n])[0].split(" ");var s=i[1].match(v.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),s.push(s.shift()),v.Hooks.templates[n]=[r.join(" "),s.join(" ")])}for(n in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(n))for(var a in r=(i=v.Hooks.templates[n])[0].split(" "))if(r.hasOwnProperty(a)){var l=n+r[a],u=a;v.Hooks.registered[l]=[n,u]}},getRoot:function(t){var e=v.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){var n=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&u(v.Lists.units)?n:""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,(function(t,e,n){return v.Lists.colorNames.hasOwnProperty(n)?(e||"rgba(")+v.Lists.colorNames[n]+(e?"":",1)"):e+n}))},cleanRootPropertyValue:function(t,e){return v.RegEx.valueUnwrap.test(e)&&(e=e.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(e)&&(e=v.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=v.Hooks.registered[t];if(n){var i=n[0],r=n[1];return(e=v.Hooks.cleanRootPropertyValue(i,e)).toString().match(v.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,n){var i=v.Hooks.registered[t];if(i){var r,o=i[0],s=i[1];return(r=(n=v.Hooks.cleanRootPropertyValue(o,n)).toString().match(v.RegEx.valueSplit))[s]=e,r.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var i;return i=v.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(i=n.toString().match(v.RegEx.valueUnwrap))?i[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return m.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(o<=8)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){o&&!(o>9)||m.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var t=0;t<v.Lists.transformsBase.length;t++)!function(){var e=v.Lists.transformsBase[t];v.Normalizations.registered[e]=function(t,n,r){switch(t){case"name":return"transform";case"extract":return T(n)===i||T(n).transformCache[e]===i?/^scale/i.test(e)?1:0:T(n).transformCache[e].replace(/[()]/g,"");case"inject":var o=!1;switch(e.substr(0,e.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":m.State.isAndroid&&T(n).transformCache[e]===i&&r<1&&(r=1),o=!/(\d)$/i.test(r);break;case"skew":case"rotate":o=!/(deg|\d)$/i.test(r)}return o||(T(n).transformCache[e]="("+r+")"),T(n).transformCache[e]}}}();for(var e=0;e<v.Lists.colors.length;e++)!function(){var t=v.Lists.colors[e];v.Normalizations.registered[t]=function(e,n,r){switch(e){case"name":return t;case"extract":var s;if(v.RegEx.wrappedValueAlreadyExtracted.test(r))s=r;else{var a,l={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(r)?a=l[r]!==i?l[r]:l.black:v.RegEx.isHex.test(r)?a="rgb("+v.Values.hexToRgb(r).join(" ")+")":/^rgba?\(/i.test(r)||(a=l.black),s=(a||r).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!o||o>8)&&3===s.split(" ").length&&(s+=" 1"),s;case"inject":return/^rgb/.test(r)?r:(o<=8?4===r.split(" ").length&&(r=r.split(/\s+/).slice(0,3).join(" ")):3===r.split(" ").length&&(r+=" 1"),(o<=8?"rgb":"rgba")+"("+r.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function n(t,e,n){if("border-box"===v.getPropertyValue(e,"boxSizing").toString().toLowerCase()===(n||!1)){var i,r,o=0,s="width"===t?["Left","Right"]:["Top","Bottom"],a=["padding"+s[0],"padding"+s[1],"border"+s[0]+"Width","border"+s[1]+"Width"];for(i=0;i<a.length;i++)r=parseFloat(v.getPropertyValue(e,a[i])),isNaN(r)||(o+=r);return n?-o:o}return 0}function r(t,e){return function(i,r,o){switch(i){case"name":return t;case"extract":return parseFloat(o)+n(t,r,e);case"inject":return parseFloat(o)-n(t,r,e)+"px"}}}v.Normalizations.registered.innerWidth=r("width",!0),v.Normalizations.registered.innerHeight=r("height",!0),v.Normalizations.registered.outerWidth=r("width"),v.Normalizations.registered.outerHeight=r("height")}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(o||m.State.isAndroid&&!m.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(m.State.prefixMatches[t])return[m.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;n<i;n++){var r;if(r=0===n?t:e[n]+t.replace(/^\w/,(function(t){return t.toUpperCase()})),h.isString(m.State.prefixElement.style[r]))return m.State.prefixMatches[t]=r,[r,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i})),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return!t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){if(t)if(t.classList)t.classList.add(e);else if(h.isString(t.className))t.className+=(t.className.length?" ":"")+e;else{var n=t.getAttribute(o<=7?"className":"class")||"";t.setAttribute("class",n+(n?" ":"")+e)}},removeClass:function(t,e){if(t)if(t.classList)t.classList.remove(e);else if(h.isString(t.className))t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=t.getAttribute(o<=7?"className":"class")||"";t.setAttribute("class",n.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(t,n,r,s){function a(t,n){var r=0;if(o<=8)r=d.css(t,n);else{var l=!1;/^(width|height)$/.test(n)&&0===v.getPropertyValue(t,"display")&&(l=!0,v.setPropertyValue(t,"display",v.Values.getDisplayType(t)));var u,c=function(){l&&v.setPropertyValue(t,"display","none")};if(!s){if("height"===n&&"border-box"!==v.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var h=t.offsetHeight-(parseFloat(v.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(t,"paddingBottom"))||0);return c(),h}if("width"===n&&"border-box"!==v.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var f=t.offsetWidth-(parseFloat(v.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(t,"paddingRight"))||0);return c(),f}}u=T(t)===i?e.getComputedStyle(t,null):T(t).computedStyle?T(t).computedStyle:T(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===n&&(n="borderTopColor"),""!==(r=9===o&&"filter"===n?u.getPropertyValue(n):u[n])&&null!==r||(r=t.style[n]),c()}if("auto"===r&&/^(top|right|bottom|left)$/i.test(n)){var p=a(t,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(n))&&(r=d(t).position()[n]+"px")}return r}var l;if(v.Hooks.registered[n]){var u=n,c=v.Hooks.getRoot(u);r===i&&(r=v.getPropertyValue(t,v.Names.prefixCheck(c)[0])),v.Normalizations.registered[c]&&(r=v.Normalizations.registered[c]("extract",t,r)),l=v.Hooks.extractValue(u,r)}else if(v.Normalizations.registered[n]){var h,f;"transform"!==(h=v.Normalizations.registered[n]("name",t))&&(f=a(t,v.Names.prefixCheck(h)[0]),v.Values.isCSSNullValue(f)&&v.Hooks.templates[n]&&(f=v.Hooks.templates[n][1])),l=v.Normalizations.registered[n]("extract",t,f)}if(!/^[\d-]/.test(l)){var p=T(t);if(p&&p.isSVG&&v.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=t.getBBox()[n]}catch(t){l=0}else l=t.getAttribute(n);else l=a(t,v.Names.prefixCheck(n)[0])}return v.Values.isCSSNullValue(l)&&(l=0),m.debug,l},setPropertyValue:function(t,n,i,r,s){var a=n;if("scroll"===n)s.container?s.container["scroll"+s.direction]=i:"Left"===s.direction?e.scrollTo(i,s.alternateValue):e.scrollTo(s.alternateValue,i);else if(v.Normalizations.registered[n]&&"transform"===v.Normalizations.registered[n]("name",t))v.Normalizations.registered[n]("inject",t,i),a="transform",i=T(t).transformCache[n];else{if(v.Hooks.registered[n]){var l=n,u=v.Hooks.getRoot(n);r=r||v.getPropertyValue(t,u),i=v.Hooks.injectValue(l,i,r),n=u}if(v.Normalizations.registered[n]&&(i=v.Normalizations.registered[n]("inject",t,i),n=v.Normalizations.registered[n]("name",t)),a=v.Names.prefixCheck(n)[0],o<=8)try{t.style[a]=i}catch(t){m.debug}else{var c=T(t);c&&c.isSVG&&v.Names.SVGAttribute(n)?t.setAttribute(n,i):t.style[a]=i}m.debug}return[a,i]},flushTransformCache:function(t){var e="",n=T(t);if((o||m.State.isAndroid&&!m.State.isChrome)&&n&&n.isSVG){var i=function(e){return parseFloat(v.getPropertyValue(t,e))},r={translate:[i("translateX"),i("translateY")],skewX:[i("skewX")],skewY:[i("skewY")],scale:1!==i("scale")?[i("scale"),i("scale")]:[i("scaleX"),i("scaleY")],rotate:[i("rotateZ"),0,0]};d.each(T(t).transformCache,(function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),r[t]&&(e+=t+"("+r[t].join(" ")+") ",delete r[t])}))}else{var s,a;d.each(T(t).transformCache,(function(n){if(s=T(t).transformCache[n],"transformPerspective"===n)return a=s,!0;9===o&&"rotateZ"===n&&(n="rotate"),e+=n+s+" "})),a&&(e="perspective"+a+" "+e)}v.setPropertyValue(t,"transform",e)}};v.Hooks.register(),v.Normalizations.register(),m.hook=function(t,e,n){var r;return t=c(t),d.each(t,(function(t,o){if(T(o)===i&&m.init(o),n===i)r===i&&(r=v.getPropertyValue(o,e));else{var s=v.setPropertyValue(o,e,n);"transform"===s[0]&&m.CSS.flushTransformCache(o),r=s}})),r};var y=function(){var t;function r(){return o?b.promise||null:s}var o,s,a,l,f,p,g=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||h.isString(arguments[0].properties));h.isWrapped(this)?(o=!1,a=0,l=this,s=this):(o=!0,a=1,l=g?arguments[0].elements||arguments[0].e:arguments[0]);var b={promise:null,resolver:null,rejecter:null};if(o&&m.Promise&&(b.promise=new m.Promise((function(t,e){b.resolver=t,b.rejecter=e}))),g?(f=arguments[0].properties||arguments[0].p,p=arguments[0].options||arguments[0].o):(f=arguments[a],p=arguments[a+1]),l=c(l)){var w,E=l.length,x=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(f)&&!d.isPlainObject(p)){p={};for(var L=a+1;L<arguments.length;L++)h.isArray(arguments[L])||!/^(fast|normal|slow)$/i.test(arguments[L])&&!/^\d/.test(arguments[L])?h.isString(arguments[L])||h.isArray(arguments[L])?p.easing=arguments[L]:h.isFunction(arguments[L])&&(p.complete=arguments[L]):p.duration=arguments[L]}switch(f){case"scroll":w="scroll";break;case"reverse":w="reverse";break;case"pause":var I=(new Date).getTime();return d.each(l,(function(t,e){_(e,I)})),d.each(m.State.calls,(function(t,e){var n=!1;e&&d.each(e[1],(function(t,r){var o=p===i?"":p;return!0!==o&&e[2].queue!==o&&(p!==i||!1!==e[2].queue)||(d.each(l,(function(t,i){if(i===r)return e[5]={resume:!1},n=!0,!1})),!n&&void 0)}))})),r();case"resume":return d.each(l,(function(t,e){S(e)})),d.each(m.State.calls,(function(t,e){var n=!1;e&&d.each(e[1],(function(t,r){var o=p===i?"":p;return!0!==o&&e[2].queue!==o&&(p!==i||!1!==e[2].queue)||(!e[5]||(d.each(l,(function(t,i){if(i===r)return e[5].resume=!0,n=!0,!1})),!n&&void 0))}))})),r();case"finish":case"finishAll":case"stop":d.each(l,(function(t,e){T(e)&&T(e).delayTimer&&(clearTimeout(T(e).delayTimer.setTimeout),T(e).delayTimer.next&&T(e).delayTimer.next(),delete T(e).delayTimer),"finishAll"!==f||!0!==p&&!h.isString(p)||(d.each(d.queue(e,h.isString(p)?p:""),(function(t,e){h.isFunction(e)&&e()})),d.queue(e,h.isString(p)?p:"",[]))}));var O=[];return d.each(m.State.calls,(function(t,e){e&&d.each(e[1],(function(n,r){var o=p===i?"":p;if(!0!==o&&e[2].queue!==o&&(p!==i||!1!==e[2].queue))return!0;d.each(l,(function(n,i){if(i===r)if((!0===p||h.isString(p))&&(d.each(d.queue(i,h.isString(p)?p:""),(function(t,e){h.isFunction(e)&&e(null,!0)})),d.queue(i,h.isString(p)?p:"",[])),"stop"===f){var s=T(i);s&&s.tweensContainer&&(!0===o||""===o)&&d.each(s.tweensContainer,(function(t,e){e.endValue=e.currentValue})),O.push(t)}else"finish"!==f&&"finishAll"!==f||(e[2].duration=1)}))}))})),"stop"===f&&(d.each(O,(function(t,e){A(e,!0)})),b.promise&&b.resolver(l)),r();default:if(!d.isPlainObject(f)||h.isEmptyObject(f)){if(h.isString(f)&&m.Redirects[f]){var D=(t=d.extend({},p)).duration,P=t.delay||0;return!0===t.backwards&&(l=d.extend(!0,[],l).reverse()),d.each(l,(function(e,n){parseFloat(t.stagger)?t.delay=P+parseFloat(t.stagger)*e:h.isFunction(t.stagger)&&(t.delay=P+t.stagger.call(n,e,E)),t.drag&&(t.duration=parseFloat(D)||(/^(callout|transition)/.test(f)?1e3:400),t.duration=Math.max(t.duration*(t.backwards?1-e/E:(e+1)/E),.75*t.duration,200)),m.Redirects[f].call(n,n,t||{},e,E,l,b.promise?b:i)})),r()}var R="Velocity: First argument ("+f+") was not a property map, a known action, or a registered redirect. Aborting.";return b.promise?b.rejecter(new Error(R)):e.console,r()}w="start"}var M={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},N=[];d.each(l,(function(t,r){h.isNode(r)&&function(t,r){var o,s,a=d.extend({},m.defaults,p),c={};switch(T(t)===i&&m.init(t),parseFloat(a.delay)&&!1!==a.queue&&d.queue(t,a.queue,(function(e,n){if(!0===n)return!0;m.velocityQueueEntryFlag=!0;var i=m.State.delayedElements.count++;m.State.delayedElements[i]=t;var r,o=(r=i,function(){m.State.delayedElements[r]=!1,e()});T(t).delayBegin=(new Date).getTime(),T(t).delay=parseFloat(a.delay),T(t).delayTimer={setTimeout:setTimeout(e,parseFloat(a.delay)),next:o}})),a.duration.toString().toLowerCase()){case"fast":a.duration=200;break;case"normal":a.duration=400;break;case"slow":a.duration=600;break;default:a.duration=parseFloat(a.duration)||1}function g(s){var g,y;if(a.begin&&0===x)try{a.begin.call(l,l)}catch(t){setTimeout((function(){throw t}),1)}if("scroll"===w){var _,S,A,L=/^x$/i.test(a.axis)?"Left":"Top",I=parseFloat(a.offset)||0;a.container?h.isWrapped(a.container)||h.isNode(a.container)?(a.container=a.container[0]||a.container,A=(_=a.container["scroll"+L])+d(t).position()[L.toLowerCase()]+I):a.container=null:(_=m.State.scrollAnchor[m.State["scrollProperty"+L]],S=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===L?"Top":"Left")]],A=d(t).offset()[L.toLowerCase()]+I),c={scroll:{rootPropertyValue:!1,startValue:_,currentValue:_,endValue:A,unitType:"",easing:a.easing,scrollData:{container:a.container,direction:L,alternateValue:S}},element:t},m.debug}else if("reverse"===w){if(!(g=T(t)))return;if(!g.tweensContainer)return void d.dequeue(t,a.queue);for(var O in"none"===g.opts.display&&(g.opts.display="auto"),"hidden"===g.opts.visibility&&(g.opts.visibility="visible"),g.opts.loop=!1,g.opts.begin=null,g.opts.complete=null,p.easing||delete a.easing,p.duration||delete a.duration,a=d.extend({},g.opts,a),y=d.extend(!0,{},g?g.tweensContainer:null))if(y.hasOwnProperty(O)&&"element"!==O){var D=y[O].startValue;y[O].startValue=y[O].currentValue=y[O].endValue,y[O].endValue=D,h.isEmptyObject(p)||(y[O].easing=a.easing),m.debug}c=y}else if("start"===w){(g=T(t))&&g.tweensContainer&&!0===g.isAnimating&&(y=g.tweensContainer);var P=function(e,n){var i,o,s;return h.isFunction(e)&&(e=e.call(t,r,E)),h.isArray(e)?(i=e[0],!h.isArray(e[1])&&/^[\d-]/.test(e[1])||h.isFunction(e[1])||v.RegEx.isHex.test(e[1])?s=e[1]:h.isString(e[1])&&!v.RegEx.isHex.test(e[1])&&m.Easings[e[1]]||h.isArray(e[1])?(o=n?e[1]:k(e[1],a.duration),s=e[2]):s=e[1]||e[2]):i=e,n||(o=o||a.easing),h.isFunction(i)&&(i=i.call(t,r,E)),h.isFunction(s)&&(s=s.call(t,r,E)),[i||0,o,s]},R=function(r,s){var l,u=v.Hooks.getRoot(r),f=!1,p=s[0],b=s[1],w=s[2];if(g&&g.isSVG||"tween"===u||!1!==v.Names.prefixCheck(u)[1]||v.Normalizations.registered[u]!==i){(a.display!==i&&null!==a.display&&"none"!==a.display||a.visibility!==i&&"hidden"!==a.visibility)&&/opacity|filter/.test(r)&&!w&&0!==p&&(w=0),a._cacheValues&&y&&y[r]?(w===i&&(w=y[r].endValue+y[r].unitType),f=g.rootPropertyValueCache[u]):v.Hooks.registered[r]?w===i?(f=v.getPropertyValue(t,u),w=v.getPropertyValue(t,r,f)):f=v.Hooks.templates[u][1]:w===i&&(w=v.getPropertyValue(t,r));var T,_,S,E=!1,x=function(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(t){return n=t,""})),n||(n=v.Values.getUnitType(t)),[i,n]};if(w!==p&&h.isString(w)&&h.isString(p)){l="";var k=0,C=0,A=[],L=[],I=0,O=0,D=0;for(w=v.Hooks.fixColors(w),p=v.Hooks.fixColors(p);k<w.length&&C<p.length;){var P=w[k],R=p[C];if(/[\d\.-]/.test(P)&&/[\d\.-]/.test(R)){for(var N=P,F=R,$=".",j=".";++k<w.length;){if((P=w[k])===$)$="..";else if(!/\d/.test(P))break;N+=P}for(;++C<p.length;){if((R=p[C])===j)j="..";else if(!/\d/.test(R))break;F+=R}var U=v.Hooks.getUnit(w,k),B=v.Hooks.getUnit(p,C);if(k+=U.length,C+=B.length,U===B)N===F?l+=N+U:(l+="{"+A.length+(O?"!":"")+"}"+U,A.push(parseFloat(N)),L.push(parseFloat(F)));else{var H=parseFloat(N),V=parseFloat(F);l+=(I<5?"calc":"")+"("+(H?"{"+A.length+(O?"!":"")+"}":"0")+U+" + "+(V?"{"+(A.length+(H?1:0))+(O?"!":"")+"}":"0")+B+")",H&&(A.push(H),L.push(0)),V&&(A.push(0),L.push(V))}}else{if(P!==R){I=0;break}l+=P,k++,C++,0===I&&"c"===P||1===I&&"a"===P||2===I&&"l"===P||3===I&&"c"===P||I>=4&&"("===P?I++:(I&&I<5||I>=4&&")"===P&&--I<5)&&(I=0),0===O&&"r"===P||1===O&&"g"===P||2===O&&"b"===P||3===O&&"a"===P||O>=3&&"("===P?(3===O&&"a"===P&&(D=1),O++):D&&","===P?++D>3&&(O=D=0):(D&&O<(D?5:4)||O>=(D?4:3)&&")"===P&&--O<(D?5:4))&&(O=D=0)}}k===w.length&&C===p.length||(m.debug,l=i),l&&(A.length?(m.debug,w=A,p=L,_=S=""):l=i)}if(l||(w=(T=x(r,w))[0],S=T[1],p=(T=x(r,p))[0].replace(/^([+-\/*])=/,(function(t,e){return E=e,""})),_=T[1],w=parseFloat(w)||0,p=parseFloat(p)||0,"%"===_&&(/^(fontSize|lineHeight)$/.test(r)?(p/=100,_="em"):/^scale/.test(r)?(p/=100,_=""):/(Red|Green|Blue)$/i.test(r)&&(p=p/100*255,_=""))),/[\/*]/.test(E))_=S;else if(S!==_&&0!==w)if(0===p)_=S;else{o=o||function(){var i={myParent:t.parentNode||n.body,position:v.getPropertyValue(t,"position"),fontSize:v.getPropertyValue(t,"fontSize")},r=i.position===M.lastPosition&&i.myParent===M.lastParent,o=i.fontSize===M.lastFontSize;M.lastParent=i.myParent,M.lastPosition=i.position,M.lastFontSize=i.fontSize;var s=100,a={};if(o&&r)a.emToPx=M.lastEmToPx,a.percentToPxWidth=M.lastPercentToPxWidth,a.percentToPxHeight=M.lastPercentToPxHeight;else{var l=g&&g.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");m.init(l),i.myParent.appendChild(l),d.each(["overflow","overflowX","overflowY"],(function(t,e){m.CSS.setPropertyValue(l,e,"hidden")})),m.CSS.setPropertyValue(l,"position",i.position),m.CSS.setPropertyValue(l,"fontSize",i.fontSize),m.CSS.setPropertyValue(l,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(t,e){m.CSS.setPropertyValue(l,e,s+"%")})),m.CSS.setPropertyValue(l,"paddingLeft",s+"em"),a.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(l,"width",null,!0))||1)/s,a.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(l,"height",null,!0))||1)/s,a.emToPx=M.lastEmToPx=(parseFloat(v.getPropertyValue(l,"paddingLeft"))||1)/s,i.myParent.removeChild(l)}return null===M.remToPx&&(M.remToPx=parseFloat(v.getPropertyValue(n.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(e.innerWidth)/100,M.vhToPx=parseFloat(e.innerHeight)/100),a.remToPx=M.remToPx,a.vwToPx=M.vwToPx,a.vhToPx=M.vhToPx,m.debug,a}();var z=/margin|padding|left|right|width|text|word|letter/i.test(r)||/X$/.test(r)||"x"===r?"x":"y";switch(S){case"%":w*="x"===z?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:w*=o[S+"ToPx"]}switch(_){case"%":w*=1/("x"===z?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:w*=1/o[_+"ToPx"]}}switch(E){case"+":p=w+p;break;case"-":p=w-p;break;case"*":p*=w;break;case"/":p=w/p}c[r]={rootPropertyValue:f,startValue:w,currentValue:w,endValue:p,unitType:_,easing:b},l&&(c[r].pattern=l),m.debug}else m.debug};for(var F in f)if(f.hasOwnProperty(F)){var $=v.Names.camelCase(F),j=P(f[F]);if(u(v.Lists.colors)){var U=j[0],B=j[1],H=j[2];if(v.RegEx.isHex.test(U)){for(var V=["Red","Green","Blue"],z=v.Values.hexToRgb(U),W=H?v.Values.hexToRgb(H):i,q=0;q<V.length;q++){var G=[z[q]];B&&G.push(B),W!==i&&G.push(W[q]),R($+V[q],G)}continue}}R($,j)}c.element=t}c.element&&(v.Values.addClass(t,"velocity-animating"),N.push(c),(g=T(t))&&(""===a.queue&&(g.tweensContainer=c,g.opts=a),g.isAnimating=!0),x===E-1?(m.State.calls.push([N,l,a,null,b.resolver,null,0]),!1===m.State.isTicking&&(m.State.isTicking=!0,C())):x++)}if(!1!==m.mock&&(!0===m.mock?a.duration=a.delay=1:(a.duration*=parseFloat(m.mock)||1,a.delay*=parseFloat(m.mock)||1)),a.easing=k(a.easing,a.duration),a.begin&&!h.isFunction(a.begin)&&(a.begin=null),a.progress&&!h.isFunction(a.progress)&&(a.progress=null),a.complete&&!h.isFunction(a.complete)&&(a.complete=null),a.display!==i&&null!==a.display&&(a.display=a.display.toString().toLowerCase(),"auto"===a.display&&(a.display=m.CSS.Values.getDisplayType(t))),a.visibility!==i&&null!==a.visibility&&(a.visibility=a.visibility.toString().toLowerCase()),a.mobileHA=a.mobileHA&&m.State.isMobile&&!m.State.isGingerbread,!1===a.queue)if(a.delay){var y=m.State.delayedElements.count++;m.State.delayedElements[y]=t;var _=(s=y,function(){m.State.delayedElements[s]=!1,g()});T(t).delayBegin=(new Date).getTime(),T(t).delay=parseFloat(a.delay),T(t).delayTimer={setTimeout:setTimeout(g,parseFloat(a.delay)),next:_}}else g();else d.queue(t,a.queue,(function(t,e){if(!0===e)return b.promise&&b.resolver(l),!0;m.velocityQueueEntryFlag=!0,g()}));""!==a.queue&&"fx"!==a.queue||"inprogress"===d.queue(t)[0]||d.dequeue(t)}(r,t)})),(t=d.extend({},m.defaults,p)).loop=parseInt(t.loop,10);var F=2*t.loop-1;if(t.loop)for(var $=0;$<F;$++){var j={delay:t.delay,progress:t.progress};$===F-1&&(j.display=t.display,j.visibility=t.visibility,j.complete=t.complete),y(l,"reverse",j)}return r()}b.promise&&(f&&p&&!1===p.promiseRejectEmpty?b.resolver():b.rejecter())};(m=d.extend(y,m)).animate=y;var b=e.requestAnimationFrame||s;if(!m.State.isMobile&&n.hidden!==i){var w=function(){n.hidden?(b=function(t){return setTimeout((function(){t(!0)}),16)},C()):b=e.requestAnimationFrame||s};w(),n.addEventListener("visibilitychange",w)}return t.Velocity=m,t!==e&&(t.fn.velocity=y,t.fn.velocity.defaults=m.defaults),d.each(["Down","Up"],(function(t,e){m.Redirects["slide"+e]=function(t,n,r,o,s,a){var l=d.extend({},n),u=l.begin,c=l.complete,h={},f={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===i&&(l.display="Down"===e?"inline"===m.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var n in 0===r&&u&&u.call(s,s),f)if(f.hasOwnProperty(n)){h[n]=t.style[n];var i=v.getPropertyValue(t,n);f[n]="Down"===e?[i,0]:[0,i]}h.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in h)h.hasOwnProperty(e)&&(t.style[e]=h[e]);r===o-1&&(c&&c.call(s,s),a&&a.resolver(s))},m(t,f,l)}})),d.each(["In","Out"],(function(t,e){m.Redirects["fade"+e]=function(t,n,r,o,s,a){var l=d.extend({},n),u=l.complete,c={opacity:"In"===e?1:0};0!==r&&(l.begin=null),l.complete=r!==o-1?null:function(){u&&u.call(s,s),a&&a.resolver(s)},l.display===i&&(l.display="In"===e?"auto":"none"),m(this,c,l)}})),m}function T(t){var e=d.data(t,"velocity");return null===e?i:e}function _(t,e){var n=T(t);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-e+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function S(t,e){var n=T(t);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function E(t){return function(e){return Math.round(e*t)*(1/t)}}function x(t,n,i,r){var o=4,s=1e-7,a=10,l=11,u=1/(l-1),c="Float32Array"in e;if(4!==arguments.length)return!1;for(var d=0;d<4;++d)if("number"!=typeof arguments[d]||isNaN(arguments[d])||!isFinite(arguments[d]))return!1;t=Math.min(t,1),i=Math.min(i,1),t=Math.max(t,0),i=Math.max(i,0);var h=c?new Float32Array(l):new Array(l);function f(t,e){return 1-3*e+3*t}function p(t,e){return 3*e-6*t}function m(t){return 3*t}function g(t,e,n){return((f(e,n)*t+p(e,n))*t+m(e))*t}function v(t,e,n){return 3*f(e,n)*t*t+2*p(e,n)*t+m(e)}function y(e){for(var n=0,r=1,c=l-1;r!==c&&h[r]<=e;++r)n+=u;--r;var d=n+(e-h[r])/(h[r+1]-h[r])*u,f=v(d,t,i);return f>=.001?function(e,n){for(var r=0;r<o;++r){var s=v(n,t,i);if(0===s)return n;n-=(g(n,t,i)-e)/s}return n}(e,d):0===f?d:function(e,n,r){var o,l,u=0;do{(o=g(l=n+(r-n)/2,t,i)-e)>0?r=l:n=l}while(Math.abs(o)>s&&++u<a);return l}(e,n,n+u)}var b=!1;function w(){b=!0,t===n&&i===r||function(){for(var e=0;e<l;++e)h[e]=g(e*u,t,i)}()}var T=function(e){return b||w(),t===n&&i===r?e:0===e?0:1===e?1:g(y(e),n,r)};T.getControlPoints=function(){return[{x:t,y:n},{x:i,y:r}]};var _="generateBezier("+[t,n,i,r]+")";return T.toString=function(){return _},T}function k(t,e){var n=t;return h.isString(t)?m.Easings[t]||(n=!1):n=h.isArray(t)&&1===t.length?E.apply(null,t):h.isArray(t)&&2===t.length?g.apply(null,t.concat([e])):!(!h.isArray(t)||4!==t.length)&&x.apply(null,t),!1===n&&(n=m.Easings[m.defaults.easing]?m.defaults.easing:p),n}function C(t){if(t){var e=m.timestamp&&!0!==t?t:a.now(),n=m.State.calls.length;n>1e4&&(m.State.calls=function(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}(m.State.calls),n=m.State.calls.length);for(var r=0;r<n;r++)if(m.State.calls[r]){var s=m.State.calls[r],l=s[0],u=s[2],c=s[3],f=!c,p=null,g=s[5],y=s[6];if(c||(c=m.State.calls[r][3]=e-16),g){if(!0!==g.resume)continue;c=s[3]=Math.round(e-y-16),s[5]=null}y=s[6]=e-c;for(var w=Math.min(y/u.duration,1),_=0,S=l.length;_<S;_++){var E=l[_],x=E.element;if(T(x)){var k=!1;if(u.display!==i&&null!==u.display&&"none"!==u.display){if("flex"===u.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(t,e){v.setPropertyValue(x,"display",e)}))}v.setPropertyValue(x,"display",u.display)}for(var L in u.visibility!==i&&"hidden"!==u.visibility&&v.setPropertyValue(x,"visibility",u.visibility),E)if(E.hasOwnProperty(L)&&"element"!==L){var I,O=E[L],D=h.isString(O.easing)?m.Easings[O.easing]:O.easing;if(h.isString(O.pattern)){var P=1===w?function(t,e,n){var i=O.endValue[e];return n?Math.round(i):i}:function(t,e,n){var i=O.startValue[e],r=O.endValue[e]-i,o=i+r*D(w,u,r);return n?Math.round(o):o};I=O.pattern.replace(/{(\d+)(!)?}/g,P)}else if(1===w)I=O.endValue;else{var R=O.endValue-O.startValue;I=O.startValue+R*D(w,u,R)}if(!f&&I===O.currentValue)continue;if(O.currentValue=I,"tween"===L)p=I;else{var M;if(v.Hooks.registered[L]){M=v.Hooks.getRoot(L);var N=T(x).rootPropertyValueCache[M];N&&(O.rootPropertyValue=N)}var F=v.setPropertyValue(x,L,O.currentValue+(o<9&&0===parseFloat(I)?"":O.unitType),O.rootPropertyValue,O.scrollData);v.Hooks.registered[L]&&(v.Normalizations.registered[M]?T(x).rootPropertyValueCache[M]=v.Normalizations.registered[M]("extract",null,F[1]):T(x).rootPropertyValueCache[M]=F[1]),"transform"===F[0]&&(k=!0)}}u.mobileHA&&T(x).transformCache.translate3d===i&&(T(x).transformCache.translate3d="(0px, 0px, 0px)",k=!0),k&&v.flushTransformCache(x)}}u.display!==i&&"none"!==u.display&&(m.State.calls[r][2].display=!1),u.visibility!==i&&"hidden"!==u.visibility&&(m.State.calls[r][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],w,Math.max(0,c+u.duration-e),c,p),1===w&&A(r)}}m.State.isTicking&&b(C)}function A(t,e){if(!m.State.calls[t])return!1;for(var n=m.State.calls[t][0],r=m.State.calls[t][1],o=m.State.calls[t][2],s=m.State.calls[t][4],a=!1,l=0,u=n.length;l<u;l++){var c=n[l].element;e||o.loop||("none"===o.display&&v.setPropertyValue(c,"display",o.display),"hidden"===o.visibility&&v.setPropertyValue(c,"visibility",o.visibility));var h=T(c);if(!0!==o.loop&&(d.queue(c)[1]===i||!/\.velocityQueueEntryFlag/i.test(d.queue(c)[1]))&&h){h.isAnimating=!1,h.rootPropertyValueCache={};var f=!1;d.each(v.Lists.transforms3D,(function(t,e){var n=/^scale/.test(e)?1:0,r=h.transformCache[e];h.transformCache[e]!==i&&new RegExp("^\\("+n+"[^.]").test(r)&&(f=!0,delete h.transformCache[e])})),o.mobileHA&&(f=!0,delete h.transformCache.translate3d),f&&v.flushTransformCache(c),v.Values.removeClass(c,"velocity-animating")}if(!e&&o.complete&&!o.loop&&l===u-1)try{o.complete.call(r,r)}catch(t){setTimeout((function(){throw t}),1)}s&&!0!==o.loop&&s(r),h&&!0===o.loop&&!e&&(d.each(h.tweensContainer,(function(t,e){if(/^rotate/.test(t)&&(parseFloat(e.startValue)-parseFloat(e.endValue))%360==0){var n=e.startValue;e.startValue=e.endValue,e.endValue=n}/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)})),m(c,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&d.dequeue(c,o.queue)}m.State.calls[t]=!1;for(var p=0,g=m.State.calls.length;p<g;p++)if(!1!==m.State.calls[p]){a=!0;break}!1===a&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}))},2118:t=>{t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"0fc9":function(t,e,n){var i=n("3a38"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},1173:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),l=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=s(e,!0),l)try{return u(t,e)}catch(t){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),a=s.length,l=0;a>l;)i.f(t,n=s[l++],e[n]);return t}},1654:function(t,e,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"241e":function(t,e,n){var i=n("25eb");t.exports=function(t){return Object(i(t))}},"24c5":function(t,e,n){"use strict";var i,r,o,s,a=n("b8e3"),l=n("e53d"),u=n("d864"),c=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),m=n("a22a"),g=n("f201"),v=n("4178").set,y=n("aba2")(),b=n("656e"),w=n("4439"),T=n("bc13"),_=n("cd78"),S="Promise",E=l.TypeError,x=l.process,k=x&&x.versions,C=k&&k.v8||"",A=l[S],L="process"==c(x),I=function(){},O=r=b.f,D=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n("5168")("species")]=function(t){t(I,I)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==C.indexOf("6.6")&&-1===T.indexOf("Chrome/66")}catch(t){}}(),P=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var i=t._v,r=1==t._s,o=0,s=function(e){var n,o,s,a=r?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{a?(r||(2==t._h&&F(t),t._h=1),!0===a?n=i:(c&&c.enter(),n=a(i),c&&(c.exit(),s=!0)),n===e.promise?u(E("Promise-chain cycle")):(o=P(n))?o.call(n,l,u):l(n)):u(i)}catch(t){c&&!s&&c.exit(),u(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)}))}},M=function(t){v.call(l,(function(){var e,n,i,r=t._v,o=N(t);if(o&&(e=w((function(){L?x.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=L||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){v.call(l,(function(){var e;L?x.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},$=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=P(t))?y((function(){var i={_w:n,_d:!1};try{e.call(t,u(j,i,1),u($,i,1))}catch(t){$.call(i,t)}})):(n._v=t,n._s=1,R(n,!1))}catch(t){$.call({_w:n,_d:!1},t)}}};D||(A=function(t){p(this,A,S,"_h"),f(t),i.call(this);try{t(u(j,this,1),u($,this,1))}catch(t){$.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("5c95")(A.prototype,{then:function(t,e){var n=O(g(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=u(j,t,1),this.reject=u($,t,1)},b.f=O=function(t){return t===A||t===s?new o(t):r(t)}),d(d.G+d.W+d.F*!D,{Promise:A}),n("45f2")(A,S),n("4c95")(S),s=n("584a")[S],d(d.S+d.F*!D,S,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(a||!D),S,{resolve:function(t){return _(a&&this===s?A:this,t)}}),d(d.S+d.F*!(D&&n("4ee1")((function(t){A.all(t).catch(I)}))),S,{all:function(t){var e=this,n=O(e),i=n.resolve,r=n.reject,o=w((function(){var n=[],o=0,s=1;m(t,!1,(function(t){var a=o++,l=!1;n.push(void 0),s++,e.resolve(t).then((function(t){l||(l=!0,n[a]=t,--s||i(n))}),r)})),--s||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=O(e),i=n.reject,r=w((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},"25eb":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",u=(""+a).split(l);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,s)||r(n,s,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",u=function(){var t,e=n("230e")("iframe"),i=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u[l][o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=i(t),n=new a,a[l]=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},3024:function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"30f1":function(t,e,n){"use strict";var i=n("b8e3"),r=n("63b6"),o=n("9138"),s=n("35e8"),a=n("481b"),l=n("8f60"),u=n("45f2"),c=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",p="values",m=function(){return this};t.exports=function(t,e,n,g,v,y,b){l(n,e,g);var w,T,_,S=function(t){if(!h&&t in C)return C[t];switch(t){case f:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",x=v==p,k=!1,C=t.prototype,A=C[d]||C["@@iterator"]||v&&C[v],L=A||S(v),I=v?x?S("entries"):L:void 0,O="Array"==e&&C.entries||A;if(O&&(_=c(O.call(new t)))!==Object.prototype&&_.next&&(u(_,E,!0),i||"function"==typeof _[d]||s(_,d,m)),x&&A&&A.name!==p&&(k=!0,L=function(){return A.call(this)}),i&&!b||!h&&!k&&C[d]||s(C,d,L),a[e]=L,a[E]=m,v)if(w={values:x?L:S(p),keys:y?L:S(f),entries:I},b)for(T in w)T in C||o(C,T,w[T]);else r(r.P+r.F*(h||k),e,w);return w}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var i=n("e53d").document;t.exports=i&&i.documentElement},"335c":function(t,e,n){var i=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"35e8":function(t,e,n){var i=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var i=n("335c"),r=n("25eb");t.exports=function(t){return i(r(t))}},3702:function(t,e,n){var i=n("481b"),r=n("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"3a38":function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"3c11":function(t,e,n){"use strict";var i=n("63b6"),r=n("584a"),o=n("e53d"),s=n("f201"),a=n("cd78");i(i.P+i.R,"Promise",{finally:function(t){var e=s(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},"40c3":function(t,e,n){var i=n("6b4c"),r=n("5168")("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},4178:function(t,e,n){var i,r,o,s=n("d864"),a=n("3024"),l=n("32fc"),u=n("1ec9"),c=n("e53d"),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y="onreadystatechange",b=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},w=function(t){b.call(t.data)};h&&f||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){a("function"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete v[t]},"process"==n("6b4c")(d)?i=function(t){d.nextTick(s(b,t,1))}:m&&m.now?i=function(t){m.now(s(b,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=w,i=s(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",w,!1)):i=y in u("script")?function(t){l.appendChild(u("script"))[y]=function(){l.removeChild(this),b.call(t)}}:function(t){setTimeout(s(b,t,1),0)}),t.exports={set:h,clear:f}},"43fc":function(t,e,n){"use strict";var i=n("63b6"),r=n("656e"),o=n("4439");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"45f2":function(t,e,n){var i=n("d9f6").f,r=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"4c95":function(t,e,n){"use strict";var i=n("e53d"),r=n("584a"),o=n("d9f6"),s=n("8e60"),a=n("5168")("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,n){var i=n("5168")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},t(o)}catch(t){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5168:function(t,e,n){var i=n("dbdb")("wks"),r=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var i=n("07e3"),r=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var i=n("dbdb")("keys"),r=n("62a0");t.exports=function(t){return i[t]||(i[t]=r(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var i=n("36c3"),r=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,s){var a,l=i(e),u=r(l.length),c=o(s,u);if(t&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},"5c95":function(t,e,n){var i=n("35e8");t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",u=function(t,e,n){var c,d,h,f,p=t&u.F,m=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,b=m?i:g?i[e]||(i[e]={}):(i[e]||{})[l],w=m?r:r[e]||(r[e]={}),T=w[l]||(w[l]={});for(c in m&&(n=e),n)h=((d=!p&&b&&void 0!==b[c])?b:n)[c],f=y&&d?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,b&&s(b,c,h,t&u.U),w[c]!=h&&o(w,c,f),v&&T[c]!=h&&(T[c]=h)};i.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var i=n("d3f4"),r=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"63b6":function(t,e,n){var i=n("e53d"),r=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),l="prototype",u=function(t,e,n){var c,d,h,f=t&u.F,p=t&u.G,m=t&u.S,g=t&u.P,v=t&u.B,y=t&u.W,b=p?r:r[e]||(r[e]={}),w=b[l],T=p?i:m?i[e]:(i[e]||{})[l];for(c in p&&(n=e),n)(d=!f&&T&&void 0!==T[c])&&a(b,c)||(h=d?T[c]:n[c],b[c]=p&&"function"!=typeof T[c]?n[c]:v&&d?o(h,i):y&&T[c]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[l]=t[l],e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((b.virtual||(b.virtual={}))[c]=h,t&u.R&&w&&!w[c]&&s(w,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"656e":function(t,e,n){"use strict";var i=n("79aa");function r(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var i=n("e53d"),r=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var u=a[l],c=i[u],d=c&&c.prototype;d&&!d[s]&&r(d,s,u),o[u]=o.Array}},"71c1":function(t,e,n){var i=n("3a38"),r=n("25eb");t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),l=i(n),u=a.length;return l<0||l>=u?t?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536}}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(t,e,n){t.exports=n("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7cd6":function(t,e,n){var i=n("40c3"),r=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"7e90":function(t,e,n){var i=n("d9f6"),r=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),a=s.length,l=0;a>l;)i.f(t,n=s[l++],e[n]);return t}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var i=n("d3f4"),r=n("cb7c"),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(t,e,n){"use strict";var i=n("a159"),r=n("aebd"),o=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},9138:function(t,e,n){t.exports=n("35e8")},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(t,e,n){var i=n("e4ae"),r=n("7e90"),o=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},l="prototype",u=function(){var t,e=n("1ec9")("iframe"),i=o.length;for(e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u[l][o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=i(t),n=new a,a[l]=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},a22a:function(t,e,n){var i=n("d864"),r=n("b0dc"),o=n("3702"),s=n("e4ae"),a=n("b447"),l=n("7cd6"),u={},c={};(e=t.exports=function(t,e,n,d,h){var f,p,m,g,v=h?function(){return t}:l(t),y=i(n,d,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=a(t.length);f>b;b++)if((g=e?y(s(p=t[b])[0],p[1]):y(t[b]))===u||g===c)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,y,p.value,e))===u||g===c)return g}).BREAK=u,e.RETURN=c},aa77:function(t,e,n){var i=n("5ca1"),r=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),c=function(t,e,n){var r={},a=o((function(){return!!s[t]()||"​"!="​"[t]()})),l=r[t]=a?e(d):s[t];n&&(r[n]=l),i(i.P+i.F*a,"String",r)},d=c.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=c},aba2:function(t,e,n){var i=n("e53d"),r=n("4178").set,o=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,l="process"==n("6b4c")(s);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=s.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){s.nextTick(u)};else if(!o||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var c=a.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var d=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0dc:function(t,e,n){var i=n("e4ae");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},b447:function(t,e,n){var i=n("3a38"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},bc13:function(t,e,n){var i=n("e53d").navigator;t.exports=i&&i.userAgent||""},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},c207:function(t,e){},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,l=i(e),u=r(l.length),c=o(s,u);if(t&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var i=n("8436"),r=n("50ed"),o=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,n){var i=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return i(t,r)}},c5f6:function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),l=n("79e5"),u=n("9093").f,c=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f="Number",p=i[f],m=p,g=p.prototype,v=o(n("2aeb")(g))==f,y="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,i,r,o=(e=y?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var s,l=e.slice(2),u=0,c=l.length;u<c;u++)if((s=l.charCodeAt(u))<48||s>r)return NaN;return parseInt(l,i)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?l((function(){g.valueOf.call(n)})):o(n)!=f)?s(new m(b(e)),n,p):b(e)};for(var w,T=n("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;T.length>_;_++)r(m,w=T[_])&&!r(p,w)&&d(p,w,c(m,w));p.prototype=g,g.constructor=p,n("2aba")(i,f,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cd78:function(t,e,n){var i=n("e4ae"),r=n("f772"),o=n("656e");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),l=0,u=[];for(n in a)n!=s&&i(a,n)&&u.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,n){var i=n("79aa");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var i=n("e4ae"),r=n("794b"),o=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var i=n("584a"),r=n("e53d"),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var i=n("07e3"),r=n("36c3"),o=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),l=0,u=[];for(n in a)n!=s&&i(a,n)&&u.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~o(u,n)||u.push(n));return u}},f201:function(t,e,n){var i=n("e4ae"),r=n("79aa"),o=n("5168")("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||null==(n=i(s)[o])?e:r(n)}},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!=typeof window)&&((i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=n("795b"),o=n.n(r),s=(n("c5f6"),{name:"vue-instagram-embed",props:{url:{type:String},maxWidth:{type:Number,default:320},hideCaption:{type:Boolean,default:!1},omitScript:{type:Boolean,default:!0},className:{type:String}},data:function(){return{html:""}},mounted:function(){var t=this;window.instgrm?this.fetchEmbed():(this.injectScript(),this.checkAPI().then((function(){t.fetchEmbed()})))},methods:{fetchEmbed:function(){var t=this;this.validateUrl();var e=this.maxWidth>=320?this.maxWidth:320,n="https://api.instagram.com/oembed?url=".concat(this.url,"&maxwidth=").concat(e,"&hidecaption=").concat(this.hideCaption,"&omitscript=").concat(this.omitScript);fetch(n).then((function(t){if(t.ok)return t.json()})).then((function(e){t.html=e.html,t.$nextTick((function(){window.instgrm.Embeds.process()}))})).catch((function(t){throw new Error(t)}))},validateUrl:function(){if(!/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi.test(this.url))throw new Error("".concat(this.url," - Invalid url"))},injectScript:function(){var t=document.createElement("script");t.async=t.defer=!0,t.src="".concat("https:","//platform.instagram.com/en_US/embeds.js"),t.id="vue-instagram-embed-script";var e=document.body;e&&e.appendChild(t)},checkAPI:function(){var t=this;return new o.a((function(e){!function t(n){n.timer=window.setTimeout((function(){window.instgrm?(clearTimeout(n.timer),e()):t(n)}),20)}(t)}))}},render:function(){return(0,arguments[0])("div",{class:this.className,domProps:{innerHTML:this.html}})}});e.default=s},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"}}).default},5658:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"EmbedIframe",props:["source"]};const r=(0,n(1900).Z)(i,(function(){return(0,this._self._c)("iframe",{attrs:{type:"text/html",width:"640",height:"360",src:this.source}})}),[],!1,null,null,null).exports},8426:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(5658),r=n(1912),o=n(3311);const s={name:"ExternalMediaEmbed",components:{InstagramEmbed:n(158).default,TwitterEmbed:o.default,FacebookEmbed:r.default,EmbedIframe:i.default},props:["type","dataId"],computed:{isValid:function(){return""!==this.source},isIframe:function(){return this.isValid&&!this.isFacebook&&!this.isTwitter&&!this.isInstagram},isFacebook:function(){return"facebook"===this.type},isTwitter:function(){return"twitter"===this.type},isInstagram:function(){return"instagram"===this.type},source:function(){var t="",e=this.dataId;switch(this.type){case"youtube":t="https://www.youtube.com/embed/".concat(e,"?color=white&rel=0");break;case"vevo":t="https://scache.vevo.com/assets/html/embed.html?video=".concat(e);break;case"soundcloud":t="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/".concat(e,"&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true");break;case"vimeo":t="https://player.vimeo.com/video/".concat(e);break;case"facebook":t="https://www.facebook.com/20531316728/posts/".concat(e);break;case"twitter":t=e;break;case"instagram":t="https://www.instagram.com/p/".concat(e,"/")}return t},embedClassName:function(){return"embedcode--".concat(this.type)}}};const a=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"embedcode d-flex justify-content-center external-embed external-media-embed",class:t.embedClassName},[t.isIframe?e("EmbedIframe",{attrs:{source:t.source}}):t._e(),t._v(" "),t.isFacebook?e("FacebookEmbed",{attrs:{source:t.source}}):t._e(),t._v(" "),t.isTwitter?e("TwitterEmbed",{attrs:{"tweet-id":t.source}}):t._e(),t._v(" "),t.isInstagram?e("InstagramEmbed",{attrs:{source:t.source}}):t._e()],1)}),[],!1,null,null,null).exports},1912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"FacebookEmbed",props:["source"],mounted:function(){this.$root.$emit("loadFacebookScript")}};const r=(0,n(1900).Z)(i,(function(){return(0,this._self._c)("div",{staticClass:"fb-post",attrs:{"data-href":this.source}})}),[],!1,null,null,null).exports},158:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=n(2118);const r={props:["source"],components:{VueInstagramEmbed:n.n(i)()}};const o=(0,n(1900).Z)(r,(function(){return(0,this._self._c)("vue-instagram-embed",{attrs:{url:this.source,"max-width":540}})}),[],!1,null,null,null).exports},3311:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"TwitterEmbed",components:{Tweet:n(9394).tP},props:["tweetId"]};const r=(0,n(1900).Z)(i,(function(){return(0,this._self._c)("Tweet",{attrs:{id:this.tweetId}})}),[],!1,null,null,null).exports},9157:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"FacebookGlobal",data:function(){return{loadScript:!1}},mounted:function(){var t=this;this.$root.$on("loadFacebookScript",(function(){t.loadScript||(t.loadScript=!0)}))}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return this.loadScript?e("div",[e("div",{attrs:{id:"fb-root"}}),t._v(" "),e("script",{attrs:{type:"application/javascript",async:"",defer:"",src:"https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"}})]):t._e()}),[],!1,null,null,null).exports},6106:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(9669),r=n.n(i);const o={name:"picembed",props:["dataAssetId"],data:function(){return{imageAsset:null}},mounted:function(){this.fetchPicEmbed()},methods:{fetchPicEmbed:function(){var t={query:"picembed",parameters:{id:parseInt(this.dataAssetId)}},e=this;r().post(e.API_URL,t).then((function(t){e.imageAsset=t.data.asset}))},determineBestImageSize:function(t){return t<768?720:768<=t&&t<992?960:992<=t&&t<1200?1200:1600}},computed:{hasImage:function(){return!!this.imageAsset},imageUrl:function(){if(!this.imageAsset)return null;var t=this.imageAsset.imageUrlTemplate;t=t.replace("{ratio}",4);var e=this.determineBestImageSize(this.elementWidth);return t=t.replace("{width}",e)},elementWidth:function(){return this.$el.scrollWidth||this.viewportWidth},imageObject:function(){return this.imageAsset?{idRaw:this.imageAsset.idRaw,alt:this.imageAsset.headline,src:this.imageUrl}:{alt:"",src:""}}},mixins:[{data:function(){return{viewportWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}}},n(9011).Z]};const s=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("figure",{staticClass:"picEmbed"},[e("img",{staticClass:"img-fluid",attrs:{src:t.imageObject.src,alt:t.imageObject.alt}})])}),[],!1,null,null,null).exports},579:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"MlpResponsiveBackgroundImage",props:["imageUrls","hideOnDesktop"]};var r=n(3379),o=n.n(r),s=n(8744),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"responsive-background-image",class:t.hideOnDesktop?"hide-on-desktop":""},[e("picture",[e("source",{attrs:{media:"(max-width: 992px)",srcset:t.imageUrls.backgroundImageMobile}}),t._v(" "),e("source",{attrs:{media:"(min-width: 993px)",srcset:t.imageUrls.backgroundImage}}),t._v(" "),e("img",{attrs:{src:t.imageUrls.backgroundImage,alt:""}})])])}),[],!1,null,null,null).exports},6831:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(9981),r=n(366),o=n(2483);const s={name:"MlpVideoSlider",components:{MlpSliderWrapper:n(4298).default,MlpVideoPlayer:r.default,Card:i.default},props:["mediaembeds"],data:function(){return{videoObject:null,showVideo:!1,videoDuration:null}},methods:{setVideo:function(t){this.showVideo=!0,this.videoObject=t,this.videoDuration=t.video.duration}},mixins:[o.Z]};const a=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",[e("div",[e("transition",{attrs:{name:"slide"}},[t.videoObject?e("mlp-video-player",{directives:[{name:"show",rawName:"v-show",value:t.showVideo,expression:"showVideo"}],ref:"embedded-video",attrs:{"video-object":t.videoObject,duration:t.videoDuration}}):t._e()],1),t._v(" "),t.showVideo?e("button",{staticClass:"position-absolute mlp-mediaembedplayer__button",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.showVideo=!1}}},[t._m(0)]):t._e()],1),t._v(" "),e("mlp-slider-wrapper",{attrs:{"slides-to-show":3,"slides-to-scroll":3}},t._l(t.mediaembeds,(function(n,i){return e("card",{key:i,scopedSlots:t._u([{key:"image",fn:function(){return[e("figure",{staticClass:"card-img d-flex align-items-center justify-content-center",on:{click:function(e){return t.setVideo(n)}}},[e("i",{staticClass:"fa fa-play-circle"}),t._v(" "),e("div",[e("img",{staticClass:"card-img-top",attrs:{src:n.previewUrl,alt:n.headline}})]),t._v(" "),e("span",{staticClass:"card-duration"},[t._v(t._s(t.formatDuration(n.video.duration)))])])]},proxy:!0},{key:"body",fn:function(){return[e("span",{staticClass:"card-title mb-2 font-weight-normal"},[e("span",[t._v(t._s(n.headline))])]),t._v(" "),e("span",{staticClass:"card-subtitle mb-2 text-muted"},[e("span",[t._v(t._s(n.embedService))])])]},proxy:!0}],null,!0)})})),1)],1)}),[function(){var t=this._self._c;return t("span",{},[t("i",{staticClass:"fas fa-lg fa-times"})])}],!1,null,"27b217e9",null).exports},1270:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>M});var i=n(538);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}function s(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(){return Date.now()}function l(t,e){this.create=function(){return window.setInterval(t,e)},this.stop=function(){this.timer&&(window.clearInterval(this.timer),this.timer=null)},this.start=function(){this.timer||(this.timer=this.create())},this.restart=function(t){e=t||e,this.stop(),this.start()},this.timer=this.create()}function u(t,e){var n;return(n=t<0?(t+e)%e:t%e)!=n?0:n}function c(t,e){var n=e.children||e.componentOptions.children||e.text;return t(e.componentOptions.Ctor,e.data,n)}var d=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i){i=Object(i);for(var r=Object.keys(Object(i)),o=0,s=r.length;o<s;o++){var a=r[o],l=Object.getOwnPropertyDescriptor(i,a);void 0!==l&&l.enumerable&&(e[a]=i[a])}}}return e};var h=Math.sign||function(t){return t<0?-1:t>0?1:0};function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.$scopedSlots.default?t.$scopedSlots.default(e)||[]:t.$slots.default||[]}var p=new i.ZP,m={name:"Hooper",provide:function(){return{$hooper:this}},props:{itemsToShow:{default:1,type:Number},itemsToSlide:{default:1,type:Number},initialSlide:{default:0,type:Number},infiniteScroll:{default:!1,type:Boolean},centerMode:{default:!1,type:Boolean},vertical:{default:!1,type:Boolean},rtl:{default:null,type:Boolean},autoPlay:{default:!1,type:Boolean},playSpeed:{default:2e3,type:Number},mouseDrag:{default:!0,type:Boolean},touchDrag:{default:!0,type:Boolean},wheelControl:{default:!0,type:Boolean},keysControl:{default:!0,type:Boolean},shortDrag:{default:!0,type:Boolean},transition:{default:300,type:Number},hoverPause:{default:!0,type:Boolean},trimWhiteSpace:{default:!1,type:Boolean},settings:{default:function(){return{}},type:Object},group:{type:String,default:null}},data:function(){return{isDragging:!1,isSliding:!1,isTouch:!1,isHover:!1,isFocus:!1,initialized:!1,slideWidth:0,slideHeight:0,slidesCount:0,trimStart:0,trimEnd:1,currentSlide:null,timer:null,defaults:{},breakpoints:{},delta:{x:0,y:0},config:{}}},computed:{slideBounds:function(){var t=this.config,e=this.currentSlide,n=t.itemsToShow;return{lower:t.centerMode?Math.ceil(e-n/2):e,upper:t.centerMode?Math.floor(e+n/2):Math.floor(e+n-1)}},trackTransform:function(){var t=this.config,e=t.infiniteScroll,n=t.vertical,i=t.rtl,r=t.centerMode,o=i?-1:1,s=n?this.slideHeight:this.slideWidth,a=n?this.containerHeight:this.containerWidth,l=(n?this.delta.y:this.delta.x)+o*((r?(a-s)/2:0)-(e?s*this.slidesCount:0)-this.currentSlide*s);return n?"transform: translate(0, ".concat(l,"px);"):"transform: translate(".concat(l,"px, 0);")},trackTransition:function(){return this.initialized&&this.isSliding?"transition: ".concat(this.config.transition,"ms"):""}},watch:{group:function(t,e){t!==e&&(p.$off("slideGroup:".concat(e),this._groupSlideHandler),this.addGroupListeners())}},methods:{slideTo:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.isSliding&&t!==this.currentSlide){this.$emit("beforeSlide",{currentSlide:this.currentSlide,slideTo:d});var i,r,o,s=this.config,a=s.infiniteScroll,l=s.transition,c=this.currentSlide,d=a?t:(i=t,r=this.trimStart,o=this.slidesCount-this.trimEnd,Math.max(Math.min(i,o),r));this.group&&n&&p.$emit("slideGroup:".concat(this.group),t),this.currentSlide=d,this.isSliding=!0,window.setTimeout((function(){e.isSliding=!1,e.currentSlide=u(d,e.slidesCount)}),l),this.$emit("slide",{currentSlide:this.currentSlide,slideFrom:c})}},slideNext:function(){this.slideTo(this.currentSlide+this.config.itemsToSlide)},slidePrev:function(){this.slideTo(this.currentSlide-this.config.itemsToSlide)},initEvents:function(){null===this.defaults.rtl&&(this.defaults.rtl="rtl"===getComputedStyle(this.$el).direction),this.config.autoPlay&&this.initAutoPlay(),this.config.mouseDrag&&this.$refs.list.addEventListener("mousedown",this.onDragStart),this.config.touchDrag&&this.$refs.list.addEventListener("touchstart",this.onDragStart,{passive:!0}),this.config.keysControl&&this.$el.addEventListener("keydown",this.onKeypress),this.config.wheelControl&&(this.lastScrollTime=a(),this.$el.addEventListener("wheel",this.onWheel,{passive:!1})),window.addEventListener("resize",this.update)},initAutoPlay:function(){var t=this;this.timer=new l((function(){t.isSliding||t.isDragging||t.isHover&&t.config.hoverPause||t.isFocus||(t.currentSlide!==t.slidesCount-1||t.config.infiniteScroll?t.slideNext():t.slideTo(0))}),this.config.playSpeed)},initDefaults:function(){this.breakpoints=this.settings.breakpoints,this.defaults=d({},this.$props,this.settings),this.config=d({},this.defaults)},update:function(){this.breakpoints&&this.updateConfig(),this.updateWidth(),this.updateTrim(),this.$emit("updated",{containerWidth:this.containerWidth,containerHeight:this.containerHeight,slideWidth:this.slideWidth,slideHeight:this.slideHeight,settings:this.config})},updateTrim:function(){var t=this.config,e=t.trimWhiteSpace,n=t.itemsToShow,i=t.centerMode,r=t.infiniteScroll;if(!e||r)return this.trimStart=0,void(this.trimEnd=1);this.trimStart=i?Math.floor((n-1)/2):0,this.trimEnd=i?Math.ceil(n/2):n},updateWidth:function(){var t=this.$el.getBoundingClientRect();this.containerWidth=t.width,this.containerHeight=t.height,this.config.vertical?this.slideHeight=this.containerHeight/this.config.itemsToShow:this.slideWidth=this.containerWidth/this.config.itemsToShow},updateConfig:function(){var t,e=this;Object.keys(this.breakpoints).sort((function(t,e){return e-t})).some((function(n){if(t=window.matchMedia("(min-width: ".concat(n,"px)")).matches)return e.config=d({},e.config,e.defaults,e.breakpoints[n]),!0})),t||(this.config=d(this.config,this.defaults))},restartTimer:function(){this.timer&&this.timer.restart()},restart:function(){var t=this;this.$nextTick((function(){t.update()}))},onDragStart:function(t){this.isTouch="touchstart"===t.type,(this.isTouch||0===t.button)&&(this.startPosition={x:0,y:0},this.endPosition={x:0,y:0},this.isDragging=!0,this.startPosition.x=this.isTouch?t.touches[0].clientX:t.clientX,this.startPosition.y=this.isTouch?t.touches[0].clientY:t.clientY,document.addEventListener(this.isTouch?"touchmove":"mousemove",this.onDrag),document.addEventListener(this.isTouch?"touchend":"mouseup",this.onDragEnd))},isInvalidDirection:function(t,e){return this.config.vertical?!!this.config.vertical&&Math.abs(e)<=Math.abs(t):Math.abs(t)<=Math.abs(e)},onDrag:function(t){if(!this.isSliding){this.endPosition.x=this.isTouch?t.touches[0].clientX:t.clientX,this.endPosition.y=this.isTouch?t.touches[0].clientY:t.clientY;var e=this.endPosition.x-this.startPosition.x,n=this.endPosition.y-this.startPosition.y;this.isInvalidDirection(e,n)||(this.delta.y=n,this.delta.x=e,this.isTouch||t.preventDefault())}},onDragEnd:function(){var t=this.config.shortDrag?.5:.15;if(this.isDragging=!1,this.config.vertical){var e=Math.round(Math.abs(this.delta.y/this.slideHeight)+t);this.slideTo(this.currentSlide-h(this.delta.y)*e)}if(!this.config.vertical){var n=(this.config.rtl?-1:1)*h(this.delta.x),i=Math.round(Math.abs(this.delta.x/this.slideWidth)+t);this.slideTo(this.currentSlide-n*i)}this.delta.x=0,this.delta.y=0,document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.onDrag),document.removeEventListener(this.isTouch?"touchend":"mouseup",this.onDragEnd),this.restartTimer()},onTransitionend:function(){this.isSliding=!1,this.$emit("afterSlide",{currentSlide:this.currentSlide})},onKeypress:function(t){var e=t.key;return e.startsWith("Arrow")&&t.preventDefault(),this.config.vertical?("ArrowUp"===e&&this.slidePrev(),void("ArrowDown"===e&&this.slideNext())):this.config.rtl?("ArrowRight"===e&&this.slidePrev(),void("ArrowLeft"===e&&this.slideNext())):("ArrowRight"===e&&this.slideNext(),void("ArrowLeft"===e&&this.slidePrev()))},onWheel:function(t){if(t.preventDefault(),!(a()-this.lastScrollTime<200)){this.lastScrollTime=a();var e=t.wheelDelta||-t.deltaY,n=h(e);-1===n&&this.slideNext(),1===n&&this.slidePrev()}},addGroupListeners:function(){var t=this;this.group&&(this._groupSlideHandler=function(e){t.slideTo(e,!1)},p.$on("slideGroup:".concat(this.group),this._groupSlideHandler))}},created:function(){this.initDefaults()},mounted:function(){var t=this;this.initEvents(),this.addGroupListeners(),this.$nextTick((function(){t.update(),t.slideTo(t.config.initialSlide||0),setTimeout((function(){t.$emit("loaded"),t.initialized=!0}),t.transition)}))},beforeDestroy:function(){window.removeEventListener("resize",this.update),this.group&&p.$off("slideGroup:".concat(this.group),this._groupSlideHandler),this.timer&&this.timer.stop()},render:function(t){var e=this,n=v.call(this,t);return t("section",{class:{hooper:!0,"is-vertical":this.config.vertical,"is-rtl":this.config.rtl},attrs:{tabindex:"0"},on:{focusin:function(){return e.isFocus=!0},focusout:function(){return e.isFocus=!1},mouseover:function(){return e.isHover=!0},mouseleave:function(){return e.isHover=!1}}},n)}};function g(t){for(var e=f(this),n=e.length,i=0,r=[],a=0;a<n;a++){var l=e[a],u=l.componentOptions&&l.componentOptions.Ctor;u&&"HooperSlide"===u.options.name&&(l.componentOptions.propsData.index=i,l.data.key=i,l.key=i,l.data.props=o({},l.data.props||{},{isClone:!1,index:i++}),r.push(l))}return this.slidesCount=r.length,this.config.infiniteScroll&&(r=function(t,e){for(var n=[],i=[],r=e.length,o=0;o<r;o++){var a=e[o],l=c(t,a),u=o-r;l.data.key="before_".concat(o),l.key=l.data.key,l.componentOptions.propsData.index=u,l.data.props={index:u,isClone:!0},n.push(l);var d=c(t,a);u=o+r,d.data.key="after_".concat(u),d.componentOptions.propsData.index=u,d.key=d.data.key,d.data.props={index:u,isClone:!0},i.push(d)}return[].concat(n,s(e),i)}(t,r)),t("ul",{class:{"hooper-track":!0,"is-dragging":this.isDragging},style:this.trackTransform+this.trackTransition,ref:"track",on:{transitionend:this.onTransitionend}},r)}function v(t){var e=g.call(this,t),n=this.$slots["hooper-addons"]||[],i=t("div",{class:"hooper-liveregion hooper-sr-only",attrs:{"aria-live":"polite","aria-atomic":"true"}},"Item ".concat(this.currentSlide+1," of ").concat(this.slidesCount));return[t("div",{class:"hooper-list",ref:"list"},[e].concat(s(n),[i]))]}var y={name:"HooperSlide",inject:["$hooper"],props:{isClone:{type:Boolean,default:!1},index:{type:Number,required:!0}},computed:{style:function(){var t=this.$hooper||{},e=t.config,n=t.slideHeight,i=t.slideWidth;return e.vertical?"height: ".concat(n,"px"):"width: ".concat(i,"px")},isActive:function(){var t=this.$hooper.slideBounds,e=t.upper,n=t.lower;return this.index>=n&&this.index<=e},isPrev:function(){var t=this.$hooper.slideBounds.lower,e=this.$hooper.config.itemsToSlide;return this.index<t&&this.index>=t-e},isNext:function(){var t=this.$hooper.slideBounds.upper,e=this.$hooper.config.itemsToSlide;return this.index>t&&this.index<=t+e},isCurrent:function(){return this.index===this.$hooper.currentSlide}},render:function(t){var e={"hooper-slide":!0,"is-clone":this.isClone,"is-active":this.isActive,"is-prev":this.isPrev,"is-next":this.isNext,"is-current":this.isCurrent},n=f(this);return t("li",{class:e,style:this.style,attrs:{"aria-hidden":!this.isActive}},n)}},b={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},w={name:"HooperIcon",functional:!0,inheritAttrs:!0,props:{name:{type:String,required:!0,validator:function(t){return t in b}}},render:function(t,e){var n,i=e.props,r=b[i.name],o=[];return o.push(t("title",(n=(n=i.name).replace(/([A-Z]+)/g," $1")).charAt(0).toUpperCase()+n.slice(1))),o.push(t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})),o.push(t("path",{attrs:{d:r}})),t("svg",{attrs:{class:"icon icon-".concat(i.name),viewBox:"0 0 24 24",width:"24px",height:"24px"}},o)}};var T={inject:["$hooper"],name:"HooperPagination",props:{mode:{default:"indicator",type:String}},computed:{currentSlide:function(){return u(this.$hooper.currentSlide,this.$hooper.slidesCount)},slides:function(){var t=this.$hooper.slides.map((function(t,e){return e}));return t.slice(this.$hooper.trimStart,this.$hooper.slidesCount-this.$hooper.trimEnd+1)}},render:function(t){var e=this,n=this.$hooper.slidesCount,i="indicator"===this.mode?function(t,e,n,i){for(var r=[],o=function(n){r.push(function(t,e,n,i){return t("li",[t("button",{class:{"hooper-indicator":!0,"is-active":n},on:{click:i},attrs:{type:"button"}},[t("span",{class:"hooper-sr-only"},"item ".concat(e))])])}(t,n,n===e,(function(){return i(n)})))},s=0;s<n;s++)o(s);return[t("ol",{class:"hooper-indicators"},r)]}(t,this.currentSlide,n,(function(t){return e.$hooper.slideTo(t)})):function(t,e,n){return[t("span",e+1),t("span","/"),t("span",n)]}(t,this.currentSlide,n);return t("div",{class:{"hooper-pagination":!0,"is-vertical":this.$hooper.config.vertical}},i)}};function _(t,e,n){return n?t?"arrowUp":e?"arrowRight":"arrowLeft":t?"arrowDown":e?"arrowLeft":"arrowRight"}function S(t,e,n,i,o,s){var a,l=o.isVertical,u=o.isRTL,c=n&&n.length?n:[t(w,{props:{name:_(l,u,i)}})];return t("button",{class:(a={},r(a,"hooper-".concat(i?"prev":"next"),!0),r(a,"is-disabled",e),a),attrs:{type:"button"},on:{click:s}},c)}var E={inject:["$hooper"],name:"HooperNavigation",computed:{isPrevDisabled:function(){return!this.$hooper.config.infiniteScroll&&0===this.$hooper.currentSlide},isNextDisabled:function(){return!this.$hooper.config.infiniteScroll&&(this.$hooper.config.trimWhiteSpace?this.$hooper.currentSlide===this.$hooper.slidesCount-Math.min(this.$hooper.config.itemsToShow,this.$hooper.slidesCount):this.$hooper.currentSlide===this.$hooper.slidesCount-1)}},methods:{slideNext:function(){this.$hooper.slideNext(),this.$hooper.restartTimer()},slidePrev:function(){this.$hooper.slidePrev(),this.$hooper.restartTimer()}},render:function(t){var e=this,n={isRTL:this.$hooper.config.rtl,isVertical:this.$hooper.config.vertical},i=[S(t,this.isPrevDisabled,this.$slots["hooper-prev"],!0,n,(function(){return e.slidePrev()})),S(t,this.isNextDisabled,this.$slots["hooper-next"],!1,n,(function(){return e.slideNext()}))];return t("div",{class:{"hooper-navigation":!0,"is-vertical":this.$hooper.config.vertical,"is-rtl":this.$hooper.config.rtl}},i)}};var x=n(3379),k=n.n(x),C=n(7534),A={insert:"head",singleton:!1};k()(C.Z,A);C.Z.locals;var L=n(3804),I=n(8380),O=n(373);const D={name:"MlpSlider",props:["slides"],components:{Hooper:m,Slide:y,HooperNavigation:E,HooperPagination:T,MlpSliderItemImage:L.default,MlpSliderItemVideo:I.default,MlpSliderItemHero:O.default},data:function(){return{hooperSettings:{centerMode:!0,infiniteScroll:!0,wheelControl:!1,autoPlay:!0,playSpeed:5e3},widths:this.imageWidths}},methods:{componentName:function(t){return"MlpSliderItem"+t.charAt(0).toUpperCase()+t.slice(1)}}};var P=n(935),R={insert:"head",singleton:!1};k()(P.Z,R);P.Z.locals;const M=(0,n(1900).Z)(D,(function(){var t=this,e=t._self._c;return e("hooper",{attrs:{settings:t.hooperSettings}},[t._l(t.slides,(function(n){return e("slide",{key:n.id,staticClass:"slide",attrs:{index:n.id}},[e(t.componentName(n.type),{tag:"component",attrs:{slide:n}})],1)})),t._v(" "),e("hooper-pagination",{attrs:{slot:"hooper-addons"},slot:"hooper-addons"}),t._v(" "),e("hooper-navigation",{attrs:{slot:"hooper-addons"},slot:"hooper-addons"})],2)}),[],!1,null,null,null).exports},373:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(9398);const r={components:{ContentItem:n(9325).default,BackgroundVideoPlayer:i.default},name:"MlpSliderItemHero",props:["slide"],computed:{attributes:function(){return{backgroundImageUrl:this.slide.imageUrl,logoUrl:this.slide.contentItemData.logo,headline:this.slide.item.entity.headline,text:this.slide.item.entity.text,title:this.slide.headline,buttonLabel:this.slide.item.entity.buttonText,hideButton:this.slide.item.entity.hideButton,options:this.slide.item.options,childrenData:this.slide.contentItemData.childrenData}},alignmentClass:function(){if(this.attributes.logoUrl)switch(this.slide.item.entity.alignment){case"TOP":return"hero-content__top";case"BOTTOM":return"hero-content__bottom";case"MIDDLE":return"hero-content__center"}}}};var o=n(3379),s=n.n(o),a=n(8466),l={insert:"head",singleton:!1};s()(a.Z,l);a.Z.locals;const u=(0,n(1900).Z)(r,(function(){var t=this,e=t._self._c;return e("content-item",{attrs:{data:t.slide.contentItemData},scopedSlots:t._u([{key:"content",fn:function(){return[e("mlp-hero-content",{staticClass:"hero-content",class:t.alignmentClass,attrs:{attributes:t.attributes}})]},proxy:!0}])})}),[],!1,null,null,null).exports},3804:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpSliderItemImage",props:["slide"],components:{MlpImage:n(6556).default}};const r=(0,n(1900).Z)(i,(function(){var t=this;return(0,t._self._c)("MlpImage",{attrs:{src:t.slide.imageUrl,alt:t.slide.headline,title:t.slide.headline,"image-widths":t.slide.widths}})}),[],!1,null,null,null).exports},8380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"MlpSliderItemVideo",props:["slide"],data:function(){return{videoUrl:this.slide.item.entity.hls.url}}};var r=n(3379),o=n.n(r),s=n(3013),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("background-video-player",{staticClass:"object-fit-cover",attrs:{"video-url":t.videoUrl,poster:t.slide.imageUrl,id:t.slide.item.entity.idRaw}},[e("source",{attrs:{src:t.slide.item.entity.hls.url,type:"application/x-mpegurl"}})])}),[],!1,null,"07aa33de",null).exports},4298:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpSliderWrapper",data:function(){return{config:{dots:!1,arrows:!0,infinite:!0,speed:800,lazyload:"ondemand",slidesToShow:this.slidesToShow,slidesToScroll:this.slidesToScroll,adaptiveHeight:!1,responsive:[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}}},props:["slidesToShow","slidesToScroll","responsiveConfig","infiniteScrollConfig"],mounted:function(){this.responsiveConfig||(this.config.responsive=[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]),this.infiniteScrollConfig&&(this.config.infinite=this.infiniteScrollConfig),jQuery(this.$el.querySelector(".slider__content")).slick(this.config);var t=this.$el.querySelector(".slider__content");$(t).hasClass("mediaEmbed")||$(t).find(".card-img").matchHeight(),$(t).find(".card .card-body").matchHeight(),$(t).find(".liveeventitem__content").matchHeight(),$(t).find(".griditems .product-view .modulview__header").matchHeight()}};const r=(0,n(1900).Z)(i,(function(){var t=this._self._c;return t("div",{staticClass:"slider"},[t("div",{staticClass:"slider__content"},[this._t("default")],2)])}),[],!1,null,null,null).exports},7115:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=n(9981);const r={name:"VideoAsset",components:{MlpVideoPlayer:n(366).default,Card:i.default},props:["videoObject"],computed:{subHeadline:function(){var t="";return this.videoObject&&(t=this.videoObject.artists.map((function(t){return t.screenname})).join(" ")),t}}};const o=(0,n(1900).Z)(r,(function(){var t=this,e=t._self._c;return e("Card",{attrs:{"full-width":"true"},scopedSlots:t._u([{key:"image",fn:function(){return[e("mlp-video-player",{attrs:{"video-object":t.videoObject,duration:t.videoObject.duration,controls:""}})]},proxy:!0},{key:"body",fn:function(){return[e("h6",{staticClass:"card-title mb-2 font-weight-normal"},[e("span",[t._v(t._s(t.videoObject.headline))])]),t._v(" "),e("h6",{staticClass:"card-subtitle mb-2 text-muted"},[e("span",[t._v(t._s(t.subHeadline))])])]},proxy:!0}])})}),[],!1,null,"4f73611e",null).exports},5013:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var i=n(9669),r=n.n(i),o=n(366),s=n(7115);const a={name:"videoembed",components:{VideoAsset:s.default,MlpVideoPlayer:o.default},props:["dataAssetId"],data:function(){return{videoAsset:null}},mounted:function(){this.fetchVideoEmbed()},methods:{fetchVideoEmbed:function(){var t={query:"videoembed",parameters:{id:parseInt(this.dataAssetId),imageFormats:"348"}},e=this;r().post("/api/fetch",t).then((function(t){e.videoAsset=t.data.asset}))}},computed:{hasVideo:function(){return!!this.videoAsset},videoObject:function(){if(!this.videoAsset)return null;var t={idRaw:this.videoAsset.idRaw,previewUrl:"",headline:this.videoAsset.headline,artists:this.videoAsset.artists,video:{url:"",type:"",duration:0}};return this.videoAsset.imageFormats&&this.videoAsset.imageFormats.length>0&&(t.previewUrl=this.videoAsset.imageFormats[0].url),this.videoAsset.hls.url&&(t.video.url=this.videoAsset.hls.url,t.video.type="application/x-mpegurl"),t}}};const l=(0,n(1900).Z)(a,(function(){var t=this,e=t._self._c;return e("div",[this.hasVideo?e("VideoAsset",{attrs:{"video-object":t.videoObject}}):t._e()],1)}),[],!1,null,null,null).exports},9715:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3239),r=n(6556);const o={name:"MlpArticle",data:function(){return{isEntireTextShown:!this.hasShowMore}},props:["idRaw","hasShowMore","showMoreButtonLabel","showLessButtonLabel","detailImagePath"],computed:{articleId:function(){return"textitem--"+this.idRaw},buttonLabel:function(){return this.isEntireTextShown?this.showLessButtonLabel:this.showMoreButtonLabel}},components:{MlpShowMoreButton:i.default,MlpImage:r.default}};const s=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-12 col-md-12 col-lg-8 offset-lg-2"},[t.detailImagePath?e("mlp-image",{staticClass:"img-fluid",attrs:{src:t.detailImagePath}}):t._e(),t._v(" "),t._t("default"),t._v(" "),e("div",{class:{textitem__text:!0,"textitem--hidden":!t.isEntireTextShown},attrs:{id:t.articleId}},[t._t("content")],2),t._v(" "),e("mlp-show-more-button",{directives:[{name:"show",rawName:"v-show",value:t.hasShowMore,expression:"hasShowMore"}],attrs:{label:t.buttonLabel},on:{click:function(e){t.isEntireTextShown=!t.isEntireTextShown}}},[e("i",{class:[t.isEntireTextShown?"fa-chevron-up":"fa-chevron-down","fas","fa-lg","px-2"]}),t._v(" "),e("span",{domProps:{textContent:t._s(t.buttonLabel)}})])],2)])}),[],!1,null,null,null).exports},8562:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"MlpArticleTeaser",props:["data","buttonText"]};var r=n(3379),o=n.n(r),s=n(4053),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-container"},[e("img",{attrs:{src:t.data.imagePath}}),t._v(" "),e("div",{staticClass:"teaser-content"},[e("h3",[t._v(t._s(t.data.headline))]),t._v(" "),e("div",{staticClass:"teaser-text",domProps:{innerHTML:t._s(t.data.text)}}),t._v(" "),e("a",{attrs:{href:t.data.detailLink.href,target:t.data.detailLink.target}},[e("button",[t._v(t._s(t.buttonText))])])])])}),[],!1,null,"c3e9fd20",null).exports},4804:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var i=n(1443),r=n.n(i),o=n(1296),s=n.n(o),a=n(3041),l={autoStartLoad:!1,startLevel:-1};const u={name:"MlpAudioplayer",data:function(){return{player:null,currentTime:-1,audioWasStartedOnce:!1,audioCompleted:!1,willCloseAudioplayer:!1}},props:["artistScreenname"],methods:{play:function(){this.player.play()},pause:function(){this.player.pause()},closeAudioplayer:function(){this.willCloseAudioplayer=!0,this.dataLayerPush({event_name:"audio_stop",event_action:"Stop"}),this.pause(),this.$store.commit("hideAudioplayer")},playNextTrack:function(){this.$store.dispatch("playNextTrack");var t=this.currentTrack._source,e=this.currentTrack._productElementId;this.$store.dispatch("setActiveProductElementForTabbedPlaylist",{source:t,productElementId:e})},createPlayerInstance:function(t){this.player=new(r())(t),this.addEventTracking(this.player)},dataLayerPush:function(t){var e={event:"Generic Event",event_name:t.event_name};e[t.event_name]={artist_name:this.currentTrack._productArtistName,party_id:this.currentTrack.artistPartyId?parseInt(this.currentTrack.artistPartyId):void 0,audio_name:this.title,event_category:"Audio",event_action:t.event_action,event_label:this.title},window.dataLayer.push(e)},addEventTracking:function(t){var e=this;t.on("timeupdate",(function(t){e.currentTime=t.detail.plyr.currentTime})),t.on("playing",(function(){e.$store.commit("playTrack"),e.audioWasStartedOnce||(e.audioWasStartedOnce=!0,e.willCloseAudioplayer=!1)})),t.on("play",(function(){e.audioCompleted=!1,e.willCloseAudioplayer=!1,e.dataLayerPush({event_name:"audio_play",event_action:"Play"})})),t.on("pause",(function(){e.$store.commit("pauseTrack"),e.audioCompleted||e.willCloseAudioplayer||e.dataLayerPush({event_name:"audio_pause",event_action:"Pause"})})),t.on("seeked",s()((function(){e.audioCompleted=!1,e.dataLayerPush({event_name:"audio_skip",event_action:"Skip"})}),150,{leading:!0})),t.on("ended",(function(){e.dataLayerPush({event_name:"audio_complete",event_action:"Complete"}),e.audioCompleted=!0}))},mountMp3OrOtherSource:function(t){this.$refs.audio.src=t,this.play()},mountHlsSource:function(t){var e=new a.Z(l);e.loadSource(t),e.attachMedia(this.$refs.audio),this.$refs.audio.addEventListener("play",(function(){e.startLoad()}),{}),this.$refs.audio.addEventListener("pause",(function(){e.stopLoad()}),{})}},computed:{title:function(){return this.currentTrack?this.currentTrack.title:"-"},currentTrack:function(){return this.$store.getters.currentTrack},cover:function(){if(this.currentTrack)return this.currentTrack.cover},isVisible:function(){return this.$store.getters.isAudioplayerVisible},isAudioplayerPlaying:function(){return this.$store.getters.isAudioplayerPlaying}},watch:{currentTrack:function(t,e){if(this.currentTrack){var n=this.currentTrack.uri;if(n.endsWith(".mp3")||!a.Z.isSupported())return void this.mountMp3OrOtherSource(n);this.mountHlsSource(n)}},isAudioplayerPlaying:function(t,e){t?this.play():this.pause()}},mounted:function(){var t=document.getElementById("plyr-audioplayer");this.createPlayerInstance(t)}};var c=n(3379),d=n.n(c),h=n(668),f={insert:"head",singleton:!1};d()(h.Z,f);h.Z.locals;const p=(0,n(1900).Z)(u,(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"mlp-audioplayer"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"wrapper"},[e("div",{staticClass:"aplyr"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-2 col-sm-2 col-lg-1 pr-0 aplyr__cover-holder"},[e("img",{staticClass:"img-fluid aplyr__cover",attrs:{src:t.cover}})]),t._v(" "),e("div",{staticClass:"col-8 col-sm-9 col-lg-10 pr-0 d-flex align-items-center aplyr__title-holder"},[e("span",{staticClass:"aplyr__element aplyr__title",domProps:{textContent:t._s(t.title)}})]),t._v(" "),e("div",{staticClass:"col-2 col-sm-1 text-right aplyr__close-holder"},[e("span",{staticClass:"aplyr__element aplyr__close"},[e("i",{staticClass:"fas fa-lg fa-times",on:{click:t.closeAudioplayer}})])])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("audio",{ref:"audio",attrs:{id:"plyr-audioplayer",controls:""},on:{ended:t.playNextTrack}},[e("source",{attrs:{src:"",type:"audio/mp3"}})])])])])])])])])}),[],!1,null,null,null).exports},1105:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpPlaylist",data:function(){return{isExpanded:!1}},props:["cover","tracks","expandLimit"],methods:{toggleAudioPlayback:function(t){null!==t.uri&&(this.isTrackCurrentlyPlaying(t)?this.pauseTrack(t):this.playTrack(t))},pauseTrack:function(t){this.$store.commit("pauseTrack")},playTrack:function(t){this.$store.commit("setTrack",{track:t}),this.$store.getters.isAudioplayerVisible||this.$store.commit("showAudioplayer"),this.$store.commit("playTrack")},isTrackCurrentlyPlaying:function(t){return this.$store.getters.currentTrack===t&&this.$store.getters.isAudioplayerPlaying},getDuration:function(t){return t&&t.duration?this.formatDuration(t.duration):""},formatDuration:function(t){var e=function(t,e){return("000"+t).slice(-1*e)},n=parseFloat(t).toFixed(3),i=(Math.floor(n/60/60),Math.floor(n/60)%60),r=Math.floor(n-60*i);return e(i,2)+":"+e(r,2)},formatTrackPosition:function(t){return(t+"").padStart(2,"0")},isTrackAvailable:function(t){return null!==t.uri},showExpandButton:function(){var t=this.expandLimit<this.tracks.length;return t},beforeEnter:function(t){t.style.opacity=0,t.style.height=0},enter:function(t,e){var n=0*(t.dataset.index-this.expandLimit);setTimeout((function(){Velocity(t,{opacity:1,height:"88px"},{complete:e})}),n)},leave:function(t,e){var n=0*(t.dataset.index-this.expandLimit);setTimeout((function(){Velocity(t,{opacity:0,height:0},{complete:e})}),n)}},computed:{player:function(){return this.$refs.plyr.player},filteredTracks:function(){var t=this.expandLimit;return this.isExpanded||t>=this.tracks.length?this.tracks:this.tracks.slice(0,t)}},mounted:function(){}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"playlist-view"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("transition-group",{staticClass:"playlist col-md-12",class:{playlist__expanded:t.isExpanded},attrs:{name:"list",tag:"ul",css:!1},on:{"before-enter":t.beforeEnter,enter:t.enter,leave:t.leave}},t._l(t.filteredTracks,(function(n,i){return e("li",{key:n.idRaw,class:{"is-playing":t.isTrackCurrentlyPlaying(n),"no-mp3":null===n.uri,"bottom-border":1===t.tracks.length,"gray-out":!t.isTrackAvailable(n)},attrs:{"data-index":i},on:{click:function(e){return t.toggleAudioPlayback(n)}}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("span",{staticClass:"col-2 col-sm-1"},[e("span",{staticClass:"track-number",domProps:{textContent:t._s(t.formatTrackPosition(i+1))}}),t._v(" "),null!==n.uri?e("span",[t.isTrackCurrentlyPlaying(n)?e("span",{staticClass:"track-action justify-content-center"},[e("i",{staticClass:"fas fa-pause"})]):e("span",{staticClass:"track-action justify-content-center"},[e("i",{staticClass:"fas fa-play"})])]):t._e()]),t._v(" "),e("div",{staticClass:"col-7 col-sm-9 p-0"},[e("div",{staticClass:"playlist__title"},[e("p",{domProps:{textContent:t._s(n.title)}})])]),t._v(" "),e("span",{staticClass:"col-3 col-sm-2"},[e("span",{staticClass:"playlist__duration text-right",domProps:{textContent:t._s(t.getDuration(n))}})])])])])})),0),t._v(" "),t.showExpandButton()?e("div",{staticClass:"container row playlist--expand-button"},[t.isExpanded?t._e():e("span",{on:{click:function(e){t.isExpanded=!t.isExpanded}}},[e("i",{staticClass:"fas fa-chevron-down"})]),t._v(" "),t.isExpanded?e("span",{on:{click:function(e){t.isExpanded=!t.isExpanded}}},[e("i",{staticClass:"fas fa-chevron-up"})]):t._e()]):t._e()],1)])])}),[],!1,null,null,null).exports},2894:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpShowTracklistButton",data:function(){return{isTracklistOpen:!1,openText:"",closedText:"",styleObject:{backgroundColor:this.backgroundColor,color:this.fontColor}}},props:["textListOpen","textListClosed","productId","backgroundColor","fontColor"],methods:{toggle:function(){this.isTracklistOpen=!this.isTracklistOpen}},computed:{},mounted:function(){this.openText=this.textListOpen,this.closedText=this.textListClosed}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"product__tracklistbutton my-5"},[e("button",{staticClass:"btn btn--rounded btn--action",style:t.styleObject,attrs:{"data-product-id":t.productId},on:{click:function(e){return t.toggle()}}},[t.isTracklistOpen?e("span",{domProps:{textContent:t._s(t.closedText)}}):e("span",{domProps:{textContent:t._s(t.openText)}})])])}),[],!1,null,null,null).exports},2976:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpTabbedPlaylist",data:function(){return{uniqueId:null,selectedProductElement:null,tabContentProductClass:"tab-content__product-"+(this.product?this.product.idRaw:-1)}},props:["product","partyId","cover","expandLimit"],methods:{getTabId:function(){return"playlist__tabs-product-"+(this.product?this.product.idRaw:-1)},getTabContentId:function(t){return"tabcontent-"+this.getPlaylistId()+"-"+t},getProductId:function(){return this.product.idRaw},getPlaylistId:function(){return"playlist-product-"+this.getProductId()+"-"+this.product.mediaType.toLowerCase()},getTracksOfProductElement:function(t){var e=this,n=t.tracks,i=this.getProductId();return n.forEach((function(n){n._productId=i,n._productElementId=t.idRaw,n._source=e.uniqueId,n._productArtistName=e.getProductArtistName(),n.artistPartyId=e.partyId})),n},getTabTitle:function(t){return this.product.mediaType+" "+(t+1)},changeCurrentTabTo:function(t){var e=t.idRaw;this.selectedProductElement=e},createNameForTab:function(t){return this.getTabContentId(t)+"-tab"},isActiveProductElementTab:function(t){return this.activeProductElementId===t.idRaw},createUniqueIdForTabbedPlaylist:function(){return"tabbed-playlist-"+this.product.idRaw},moveToNextPlaylist:function(t){var e="#"+this.getTabId()+" li a";t&&(this.selectedProductElement=this.$store.getters.nextPlaylistId,$(e).each((function(t,e){$(e).tab("show")})))},getProductArtistName:function(){var t=this.product.artists;return Array.isArray(t)||t.length?t[0].screenname:null}},computed:{player:function(){return this.$refs.plyr.player},filteredTracks:function(){var t=this.expandLimit;return this.isExpanded||t>=this.tracks.length?this.tracks:this.tracks.slice(0,t)},productElements:function(){var t=this.product?this.product.productElements:[];return t},activeProductElementId:function(){if(this.activeProductElementsFromStore){var t=this.product?"tabbed-playlist-"+this.product.idRaw:"",e=this.activeProductElementsFromStore.filter((function(e){return e.sourceId===t}))[0];if(e&&e.hasOwnProperty("productElementId"))return e.productElementId}},activeProductElementsFromStore:function(){var t=this.product?"tabbed-playlist-"+this.product.idRaw:"";return this.selectedProductElement=this.$store.state.registeredElements.filter((function(e){return e.source===t}))[0],this.$store.state.registeredElements}},mounted:function(){var t=this;if(this.product&&this.product.productElements){var e=Object.assign({},this.product).productElements.map((function(e){var n=t.getProductId(),i=e.idRaw,r=e.tracks;return r.forEach((function(e){return e.cover=t.cover})),{product:n,productElement:i,tracks:r}})),n=this.product.idRaw;this.$store.commit("addNewListToPlaylist",{productId:n,productElements:e});var i=this.product.productElements[0].idRaw;this.uniqueId=this.createUniqueIdForTabbedPlaylist(),this.$store.commit("registerElement",{uniqueId:this.uniqueId,productElementId:i})}},updated:function(){this.moveToNextPlaylist(this.$store.getters.moveToNextPlaylist)},components:{"mlp-playlist":n(1105).default}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tabbed-playlist-view"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("ul",{staticClass:"nav nav-tabs playlist__tabs d-flex justify-content-center",attrs:{"data-toggle":"tab",id:t.getTabId(),role:"tablist"}},t._l(t.productElements,(function(n,i){return e("li",{key:i,staticClass:"nav-item playlist__tab",class:["playlist__tab--product-element-"+n.idRaw],on:{click:function(e){return t.changeCurrentTabTo(n)}}},[e("a",{staticClass:"nav-link h4",class:{active:t.activeProductElementId===n.idRaw},attrs:{id:t.getTabContentId(i)+"-tab","data-toggle":"tab",href:"#"+t.getTabContentId(i),role:"tab"},domProps:{textContent:t._s(t.getTabTitle(i))}})])})),0),t._v(" "),e("div",{staticClass:"tab-content mt-3",class:[t.tabContentProductClass]},t._l(t.productElements,(function(n,i){return e("div",{key:n.idRaw,staticClass:"tab-pane",class:{active:t.activeProductElementId===n.idRaw},attrs:{id:t.getTabContentId(i),role:"tabpanel"}},[e("div",{staticClass:"productelement__playlist",class:t.getPlaylistId()},[e("mlp-playlist",{attrs:{cover:t.cover,tracks:t.getTracksOfProductElement(n),"expand-limit":t.expandLimit}})],1)])})),0)])])])])}),[],!1,null,null,null).exports},9398:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var i=n(1296),r=n.n(i),o=n(3041);const s={name:"BackgroundVideoPlayer",props:["videoUrl","videoMobileUrl","poster"],methods:{isValidUrl:function(){return this.videoUrl||this.videoMobileUrl},createVideoPlayer:function(t){var e=this.videoUrl;t<=992&&this.videoMobileUrl&&(e=this.videoMobileUrl),this.addHlsToVideoPlayer(e)},setResponsiveVideo:function(){var t=this;return r()((function(){t.createVideoPlayer(window.innerWidth)}),150)},addHlsToVideoPlayer:function(t){var e=this.$refs.bgvideo;if(e&&t)if(o.Z.isSupported()){var n=new o.Z({startLevel:-1});n.loadSource(t),n.attachMedia(e),n.on(o.Z.Events.MANIFEST_PARSED,(function(){e.play()}))}else e.src=t}},mounted:function(){var t=this;this.createVideoPlayer(window.innerWidth),["resize","orientationchange"].forEach((function(e){window.addEventListener(e,t.setResponsiveVideo(),!1)}))},beforeDestroy:function(){var t=this;["resize","orientationchange"].forEach((function(e){window.removeEventListener(e,t.setResponsiveVideo(),!1)}))}};var a=n(3379),l=n.n(a),u=n(9687),c={insert:"head",singleton:!1};l()(u.Z,c);u.Z.locals;const d=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return t.isValidUrl()?e("video",{ref:"bgvideo",staticClass:"bgvideo",attrs:{autoplay:"",muted:"",loop:"",poster:t.poster,playsinline:""},domProps:{muted:!0}},[t._t("default")],2):t._e()}),[],!1,null,"7700a19f",null).exports},9981:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"Card",props:["video","fullWidth"],computed:{classes:function(){return{"mx-3":!this.fullWidth,"pb-4":!this.fullWidth}}}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"pt-3",class:t.classes},[e("div",{staticClass:"card"},[t._t("image"),t._v(" "),e("div",{staticClass:"card-body"},[t._t("body")],2)],2)])])}),[],!1,null,null,null).exports},9325:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(1296),r=n.n(i);const o={components:{BackgroundVideoPlayer:n(9398).default},name:"ContentItem",data:function(){return{wrapper:""}},props:["data"],computed:{styles:function(){return this.wrapper?{backgroundImage:"url( "+this.wrapper+")"}:null},hasVideoBackground:function(){return null!==this.data.backgroundAssets.backgroundVideo||this.data.backgroundAssets.backgroundVideoMobile}},methods:{setResponsiveWrapper:function(t){t<=992&&this.data.style.wrapperMobile?this.wrapper=this.data.style.wrapperMobile:this.wrapper=this.data.style.wrapper}},mounted:function(){var t=this;this.setResponsiveWrapper(window.innerWidth),window.addEventListener("resize",r()((function(){t.setResponsiveWrapper(window.innerWidth)}),150))}};const s=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{class:t.data.classes,style:t.styles,attrs:{id:t.data.customId}},[e("div",{staticClass:"content-item__imgwrapper",style:t.data.style.imgWrapper}),t._v(" "),e("div",{staticClass:"content-item__overlay",style:t.data.itemOverlay}),t._v(" "),t.hasVideoBackground?e("background-video-player",{attrs:{"video-url":t.data.backgroundAssets.backgroundVideo.url,"video-mobile-url":t.data.backgroundAssets.backgroundVideoMobile.url,poster:""}}):t._e(),t._v(" "),e("div",{class:t.data.moduleViewClass},[t._t("headline"),t._v(" "),e("div",{class:t.data.contentWrapperCSSClass},[e("div",{staticClass:"container"},[t._t("aboveContentRow"),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[t._t("content")],2)])],2)])],2)],1)}),[],!1,null,null,null).exports},29:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpDateLabel",props:{date:String},computed:{formattedDateStr:function(){var t=this.date;return null===t?"":("string"==typeof t&&(t=this.date.replace(/-/g,"/")),new Date(t).toLocaleDateString(this.locale,{day:"2-digit",month:"2-digit",year:"numeric"}))},locale:function(){return navigator.language}}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("span",[e("time",{staticClass:"date-label",attrs:{datetime:t.date},domProps:{textContent:t._s(t.formattedDateStr)}})])}),[],!1,null,null,null).exports},366:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=n(1443),r=n.n(i),o=n(3041);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={autoStartLoad:!1,startLevel:-1,capLevelToPlayerSize:!0,maxBufferLength:60,backBufferLength:1800,maxBufferSize:12e7,maxFragLookUpTolerance:0,stretchShortVideoTrack:!0,maxStarvationDelay:4,abrBandWidthFactor:.85};var d=n(2483),h=n(1296),f=n.n(h);const p={name:"MlpVideoPlayer",mixins:[d.Z],props:{videoObject:{type:Object,required:!0},duration:{type:Number,required:!0},useTokenService:{type:Boolean,required:!1,default:!1},hlsConfig:{type:Object,required:!1,default:null}},data:function(){return{player:null,videoCompleted:!1}},computed:{assetId:function(){return this.videoObject?this.videoObject.idRaw:null},poster:function(){return this.videoObject?this.videoObject.previewUrl:""},videoSourceUrl:function(){return this.videoObject?this.videoObject.video.url:""},videoType:function(){return this.videoObject?this.videoObject.video.type:""},artistName:function(){return this.videoObject?this.videoObject.video.artistName:""},partyId:function(){return this.videoObject?this.videoObject.partyId:""},videoName:function(){return this.videoObject?this.videoObject.video.videoName:""}},methods:{createPlayer:function(t,e,n){var i=this;setTimeout((function(){i.videoObject&&(i.player=i.createPlayerInstance(t),i.addEventTracking(i.player),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&e)if(o.Z.isSupported()){c=l(l({},c),i),n&&(c.xhrSetup=function(t,e){t.withCredentials=!0});var r=new o.Z(c);r.loadSource(e),r.attachMedia(t),t.addEventListener("play",(function(){r.startLoad()}),{}),t.addEventListener("pause",(function(){r.stopLoad()}),{})}else fetch(e,{method:"GET",mode:"cors",credentials:"include"}).then((function(t){return t.url})).then((function(e){t.src=e}))}(i.$refs.video,i.videoObject.video.url,i.videoObject.isSecuredWithCredentials,i.hlsConfig),i.$el.querySelector(".plyr__controls__item.plyr__time--duration.plyr__time").innerHTML=i.formatDuration(i.duration),i.$el.querySelector(".plyr__poster").style.backgroundImage="url("+i.videoObject.previewUrl+")")}),100)},createPlayerInstance:function(t){return new(r())(t,{controls:["play-large","play","progress","current-time","duration","mute","volume","fullscreen"],sources:[{src:this.videoObject.video.url,type:this.videoObject.video.type}]})},dataLayerPush:function(t){var e={event:"Generic Event",event_name:t.event_name};e[t.event_name]={artist_name:this.artistName,party_id:this.partyId?parseInt(this.partyId):void 0,video_name:this.videoName,event_category:"Video",event_action:t.event_action,event_label:this.videoName},window.dataLayer.push(e)},addEventTracking:function(t){var e=this;t.on("play",(function(){e.videoCompleted=!1,e.dataLayerPush({event_name:"video_play",event_action:"Play"})})),t.on("pause",(function(){setTimeout((function(){e.videoCompleted||e.dataLayerPush({event_name:"video_pause",event_action:"Pause"})}),1)})),t.on("seeked",f()((function(){e.videoCompleted=!1,e.dataLayerPush({event_name:"video_skip",event_action:"Skip"})}),1e3,{leading:!0})),t.on("ended",(function(){e.dataLayerPush({event_name:"video_complete",event_action:"Complete"}),e.videoCompleted=!0}))}},mounted:function(){this.createPlayer(this.$refs.video,this.duration,this.useTokenService)}};const m=(0,n(1900).Z)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"position-relative mb-3"},[e("div",{staticClass:"mediaembedplayer-video"},[e("video",{directives:[{name:"show",rawName:"v-show",value:t.videoObject,expression:"videoObject"}],ref:"video",staticClass:"video-player",attrs:{"data-asset-id":t.assetId,poster:t.poster,controls:"",preload:"metadata"}})])])}),[],!1,null,null,null).exports},2159:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(3239),r=n(9869),o=n(9942);function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const l={name:"MlpGridCollection",data:function(){return{visibleRows:2,items:this.data.items,maxHeight:0,flexBasis:null}},props:{data:Object,additionalRows:{default:1,type:Number},moreButtonLabel:String},computed:{filteredItems:function(){this.$el&&(this.flexBasis=this.getComputedFlexBasis());var t=this.visibleRows*this.getElementsPerRow(this.flexBasis);return this.items.slice(0,t)}},methods:{getShopButtonList:function(t){return{buttonText:t.shopButtonText,shopGroups:t.shopGroups,dataUmgVariant:t.dataUmgVariant,bgColor:t.shopButtonBgColor,bgColorList:t.shopButtonBgColorList}},getProductDetailsHeight:function(){if(!this.$el)return 0;var t=Array.from(this.$el.querySelectorAll(".product__details")).map((function(t){return t.offsetHeight})),e=Math.max.apply(Math,s(t));return this.maxHeight=this.maxHeight<e?e:this.maxHeight,this.maxHeight},getElementsPerRow:function(t){var e=0;switch(t){case"50%":e=2;break;case"25%":e=4;break;default:e=1}return e},showMore:function(){this.visibleRows+=this.additionalRows},getComputedFlexBasis:function(){return getComputedStyle(this.$el.querySelector(".griditems__item")).flexBasis}},components:{MlpProductInCollection:r.default,MlpShowMoreButton:i.default,ShopButtonList:o.default},mounted:function(){this.flexBasis=this.getComputedFlexBasis()}};const u=(0,n(1900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collection-grid-variant"},[e("div",{staticClass:"row griditems"},t._l(t.filteredItems,(function(n,i){return e("div",{key:n.id,staticClass:"col-md-6 col-xl-3 griditems__item mb-5"},[e("mlp-product-in-collection",{attrs:{options:n,"product-details-height":t.getProductDetailsHeight()},scopedSlots:t._u([{key:"shopButtons",fn:function(){return[n.shopGroups.length>0?e("shop-button-list",{attrs:{options:t.getShopButtonList(n),"in-dropdown":!0}}):t._e()]},proxy:!0}],null,!0)})],1)})),0),t._v(" "),e("mlp-show-more-button",{directives:[{name:"show",rawName:"v-show",value:t.filteredItems.length<t.items.length,expression:"filteredItems.length < items.length"}],attrs:{label:t.moreButtonLabel},on:{click:t.showMore}})],1)}),[],!1,null,"04d4c62e",null).exports},877:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=n(3239);n(9869),n(9942);const r={name:"MlpGridCollectionMediaEmbed",data:function(){return{visibleRows:2,items:this.data.items,maxHeight:0,flexBasis:null}},props:{data:Object,additionalRows:{default:1,type:Number},moreButtonLabel:String},computed:{filteredItems:function(){this.$el&&(this.flexBasis=this.getComputedFlexBasis());var t=this.visibleRows*this.getElementsPerRow(this.flexBasis);return this.items.slice(0,t)}},methods:{getEmbedType:function(t){return t&&t.type?t.type.toLowerCase():""},getElementsPerRow:function(t){var e=0;switch(t){case"50%":e=2;break;case"25%":e=4;break;default:e=1}return e},showMore:function(){this.visibleRows+=this.additionalRows},getComputedFlexBasis:function(){return getComputedStyle(this.$el.querySelector(".griditems__item")).flexBasis}},components:{MlpShowMoreButton:i.default},mounted:function(){this.flexBasis=this.getComputedFlexBasis()}};const o=(0,n(1900).Z)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collection-grid-variant collection-grid-variant__media-embed"},[e("div",{staticClass:"row griditems"},t._l(t.filteredItems,(function(n,i){return e("div",{key:n.id,staticClass:"col-md-6 col-xl-3 griditems__item mb-5"},[e("a",{attrs:{href:n.link,target:"_blank"}},[e("div",[n.imageUrl?e("div",{staticClass:"media-embed__cover"},[e("figure",[e("img",{staticClass:"img-fluid",attrs:{src:n.imageUrl,alt:n.headline,title:n.headline}})])]):e("div",{staticClass:"media-embed__fallback-cover"}),t._v(" "),e("div",{class:["subtitle","subtitle--is-".concat(t.getEmbedType(n))]},[e("i",{class:["fab","fa-".concat(t.getEmbedType(n))]}),t._v(" "),e("span",{domProps:{textContent:t._s(n.type)}})]),t._v(" "),e("span",{staticClass:"headline",domProps:{textContent:t._s(n.headline)}})])])])})),0),t._v(" "),e("mlp-show-more-button",{directives:[{name:"show",rawName:"v-show",value:t.filteredItems.length<t.items.length,expression:"filteredItems.length < items.length"}],attrs:{label:t.moreButtonLabel},on:{click:t.showMore}})],1)}),[],!1,null,"70aafc4b",null).exports},9869:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const o={name:"MlpProductInCollection",data:function(){return{cover:this.options.cover,headline:this.options.headline,artists:this.options.artists,detailLink:{href:this.options.detailLink.href,target:this.options.detailLink.target}}},props:["options","productDetailsHeight"],methods:{getArtistList:function(t){var e,n=[],r=i(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;n.push(o.screenname)}}catch(t){r.e(t)}finally{r.f()}return n.length>0?n.join()+" - ":""}},mounted:function(){this.$emit("init")}};var s=n(3379),a=n.n(s),l=n(7450),u={insert:"head",singleton:!1};a()(l.Z,u);l.Z.locals;const c=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"product product-view product-in-collection",class:["product-"+t.options.idRaw]},[t.cover?e("div",{staticClass:"product__cover"},[e("figure",[t.detailLink?e("a",{attrs:{href:t.detailLink.href,target:t.detailLink.target}},[e("img",{staticClass:"img-fluid product--shadow",attrs:{src:t.cover.src,alt:t.headline,title:t.getArtistList(t.artists)+t.headline}})]):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"product__details",style:{minHeight:t.productDetailsHeight+"px"}},[e("div",{staticClass:"product__info"},[t.headline?e("header",{staticClass:"modulview__header"},[t.detailLink?e("a",{attrs:{href:t.detailLink.href,target:t.detailLink.target}},[e("span",{domProps:{textContent:t._s(t.headline)}})]):e("span",{domProps:{textContent:t._s(t.headline)}})]):t._e()])]),t._v(" "),t._t("shopButtons")],2)}),[],!1,null,"63d76f3e",null).exports},3239:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"MlpShowMoreButton",props:["label"]};var r=n(3379),o=n.n(r),s=n(9528),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn-wrapper"},[e("button",{staticClass:"grid-loader btn btn--show-more btn-outline-dark btn--rounded",attrs:{"aria-label":t.label},on:{click:function(e){return t.$emit("click",e)}}},[t._t("default",(function(){return[e("i",{staticClass:"fas fa-chevron-down fa-lg px-2"}),t._v(" "),e("span",{domProps:{textContent:t._s(t.label)}})]}))],2)])}),[],!1,null,"420e5211",null).exports},4487:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpColumn",data:function(){return{dynamicClass:null}},props:["hasContent"],methods:{getClass:function(){var t=this.getComputedFlexBasis(),e=["column-amount--"+this.getColumnsBasedOnFlexBasis(t)];return this.hasContent||(e=e.concat(["d-none","d-lg-block"])),e.join(" ")},getColumnsBasedOnFlexBasis:function(t){if(!t)return 1;switch(parseInt(t)){case 100:default:return 1;case 50:return 2;case 33:return 3;case 25:return 4}},getComputedFlexBasis:function(){return this.$el?getComputedStyle(this.$el).flexBasis:null},onResize:function(){this.dynamicClass=this.getClass()}},mounted:function(){window.addEventListener("resize",this.onResize),this.dynamicClass=this.getClass()}};const r=(0,n(1900).Z)(i,(function(){var t=this;return(0,t._self._c)("div",{ref:"column",staticClass:"column",class:t.dynamicClass},[t._t("default")],2)}),[],!1,null,null,null).exports},1860:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"ConditionalVisibility",data:function(){return{isShown:!1}},props:{forPathname:String,closeable:Boolean},methods:{close:function(){this.isShown=!1}},mounted:function(){this.isShown=-1!==window.location.pathname.indexOf(this.forPathname)}};var r=n(3379),o=n.n(r),s=n(7287),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[t.isShown?e("div",{staticClass:"conditional-visibility"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{class:[t.closeable?"col-10":"col-12"]},[t._t("default")],2),t._v(" "),t.closeable?e("div",{staticClass:"col-2"},[e("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"},on:{click:t.close}},[e("span",[t._v("×")])])]):t._e()])])]):t._e()])}),[],!1,null,null,null).exports},6123:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var i=n(538),r=n(9490),o=n(8828),s=n(9669),a=n.n(s),l=n(9695),u=n.n(l),c=n(29),d=n(2159);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function f(){f=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,s=Object.create(o.prototype),a=new C(r||[]);return i(s,"_invoke",{value:S(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d={};function p(){}function m(){}function g(){}var v={};l(v,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==e&&n.call(b,o)&&(v=b);var w=g.prototype=p.prototype=Object.create(v);function T(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,o,s,a){var l=c(t[i],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==h(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,a)}))}a(l.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=c(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(_.prototype),l(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new _(u(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T(w),l(w,a,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=A,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function p(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}function m(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const w={name:"MlpCountdown",props:["mlpId","pageUrl","compositeKey","end","format","language"],data:function(){return{endDateTime:r.ou.fromFormat(this.end,"yyyy-MM-dd HH:mm:ss"),dueString:"",interval:null,loadedCountdownContent:null,isFetchingContent:!1,isErrorDuringFetch:!1,dateNow:r.ou.local()}},computed:{unitsObj:function(){var t={d:{unit:"days",short:"d",label:"days",value:0},h:{unit:"hours",short:"h",label:"hours",value:0},m:{unit:"minutes",short:"m",label:"minutes",value:0},s:{unit:"seconds",short:"s",label:"seconds",value:0}};return this.unitOrder.map((function(e){return t[e]}))},unitOrder:function(){return this.format?v(this.format.matchAll(/{(dd|hh|mm|ss)}/g)).map((function(t){return g(t,2)[1][0]})):[]},unitsMap:function(){return{d:"days",h:"hours",m:"minutes",s:"seconds"}},unitsSorted:function(){var t=v(this.unitOrder);return t.sort(),t},unitsSortedLong:function(){var t=this;return this.unitsSorted.map((function(e){return t.unitsMap[e]}))},isFinished:function(){var t=this.dateNow>this.endDateTime;return t&&(clearInterval(this.interval),this.applyContent()),t},countdownElements:function(){var t,e=this,n=(t=this.endDateTime.diff(this.dateNow)).shiftTo.apply(t,v(this.unitsSortedLong));return this.unitsObj.map((function(t){var i=t.unit,o=t.short,s=(t.label,n.get(i));s=Math.floor(s);var a=r.nL.fromObject(m({},i,s)).as("milliseconds");return s=s.toString().padStart(2,"0"),{unit:i,short:o,label:g(u()(a,{language:e.language,fallbacks:["en"],units:[o],spacer:"--",round:!0}).split("--"),2)[1],value:s}}))}},methods:{initCountdown:function(){var t=this;this.interval=setInterval((function(e){t.dateNow=r.ou.local()}),1e3)},applyContent:function(){var t,e=this;return(t=f().mark((function t(){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.format){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.fetchContent();case 4:if(200===(n=t.sent).status){t.next=9;break}return e.isFetchingContent=!1,e.isErrorDuringFetch=!0,t.abrupt("return");case 9:e.loadedCountdownContent=n.data.content,e.isFetchingContent=!1;case 11:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){p(o,i,r,s,a,"next",t)}function a(t){p(o,i,r,s,a,"throw",t)}s(void 0)}))})()},fetchContent:function(){this.isFetchingContent=!0;var t={params:{mlpId:this.mlpId,pageUrl:this.pageUrl,compositeKey:this.compositeKey}};return a().get("/api/countdown-content",t)},compileContent:function(t){return i.ZP.compile(t)}},components:{Loading:o.default,MlpDateLabel:c.default,MlpGridCollection:d.default},mounted:function(){this.initCountdown()}};var T=n(3379),_=n.n(T),S=n(1576),E={insert:"head",singleton:!1};_()(S.Z,E);S.Z.locals;const x=(0,n(1900).Z)(w,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{class:{"countdown-is-due":t.isFinished}},[t.isFinished?t._e():e("div",{staticClass:"d-flex flex-row flex-wrap justify-content-between",attrs:{id:"countdown-text"}},t._l(t.countdownElements,(function(n){return e("div",{key:n.id,staticClass:"p-2 bd-highlight flex-fill"},[e("div",{staticClass:"countdown-element__value display-1 text-center"},[t._v("\n                    "+t._s(n.value)+"\n                ")]),t._v(" "),e("div",{staticClass:"countdown-element__unit h4 text-center"},[t._v("\n                    "+t._s(n.label)+"\n                ")])])})),0),t._v(" "),t.isFetchingContent?e("Loading",{attrs:{"is-loading":t.isFetchingContent}}):t._e(),t._v(" "),t.isErrorDuringFetch?e("div",{staticClass:"countdown__error"},[t._v("\n            Es ist ein Fehler aufgetreten. Bitte versuche es später erneut.\n        ")]):e("div",{staticClass:"countdown__content_wrapper"},[e("transition",{attrs:{name:"slide-in"}},[t.isFinished&&!t.isFetchingContent?e("div",{attrs:{id:"countdown__content"}},[e(t.compileContent(t.loadedCountdownContent),{tag:"div"})],1):t._e()])],1),t._v(" "),t.isFinished?t._e():t._t("content-when-countdown-is-running")],2)])}),[],!1,null,"638b5a34",null).exports},1160:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=n(9669),r=n.n(i),o=n(6883),s=n(4126);function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const u={data:function(){return{_customConfig:null}},methods:{customConfig:function(t,e){var n=this.getCustomConfig();return n&&n.hasOwnProperty(t)?n[t]:e},getCustomConfig:function(){if(this._customConfig)return this._customConfig;if(!this.$el)return null;var t=window.CUSTOM_COMPONENT_CONFIG;if(!t)return null;for(var e=this.$el.parentNode,n=null;e.parentNode!==document.body&&!n;)e=e.parentNode,n=this._getCustomConfigClassOfNode(e);return n&&t.hasOwnProperty(n)?(this._customConfig=t[n],this._customConfig):null},_getCustomConfigClassOfNode:function(t){var e=a(t.classList).filter((function(t){return t.includes("custom-config-")}));return 0===e.length?null:e[0]}}};var c=n(3239);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(){h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,s=Object.create(o.prototype),a=new C(r||[]);return i(s,"_invoke",{value:S(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function m(){}function g(){}var v={};l(v,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==e&&n.call(b,o)&&(v=b);var w=g.prototype=p.prototype=Object.create(v);function T(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,o,s,a){var l=c(t[i],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==d(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,a)}))}a(l.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=c(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(_.prototype),l(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new _(u(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T(w),l(w,a,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=A,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function f(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}const p={name:"MlpInstagramFeed",data:function(){return{isFeedLoading:!0,isRequestError:!1,itemWidth:null,itemHeight:null,gutter:null,item2nScaleFactor:null,item3nScaleFactor:null,layout:null,maxShownItems:null,captionMaxWords:null,captionMaxWordsMobile:null}},mixins:[u],props:["artistId","errorMessage","showMoreButtonLabel"],computed:{filteredPosts:function(){return this.filterPosts(this.igFeed)},showShowMore:function(){if(!this.igFeed)return!1;var t=!!this.customConfig("showShowMore",!0);return!1!==t&&this.maxShownItems<this.igFeed.length}},components:{MlpShowMoreButton:c.default,MlpMasonryLayout:o.default,MlpMasonryImageItem:s.default},methods:{showMore:function(){this.maxShownItems+=this.getAmountItemsNextRow()},getImage:function(t){var e;return null!==(e=t.thumbnail_url)&&void 0!==e?e:t.media_url},getCaptionForMasonryItem:function(t){if(!this.customConfig("showCaption",!0))return null;var e=this.getCaptionFromPost(t);if(!e)return null;var n=100;return this.isMobileDevice()&&(n=50),e.length<n?e:(e=this.sliceText(e,this.getMaxAmountWordsForCaption()))+"..."},sliceText:function(t,e){return t.trim().split(/\s+/).slice(0,e).join(" ")},getCaptionFromPost:function(t){return t.caption?t.caption:null},getMaxAmountWordsForCaption:function(){return this.isMobileDevice()?this.captionMaxWordsMobile:this.captionMaxWords},filterPosts:function(t){return t?t.slice(0,this.maxShownItems):null},isMobileDevice:function(){return window.matchMedia("(max-width: 479px)").matches},getAmountItemsNextRow:function(){var t=this.getAmountItemsInRow();return this.isMobileDevice()?this.customConfig("showMoreCountMobile",t):this.customConfig("showMoreCount",t)},getAmountItemsInRow:function(){return this.isMobileDevice()?this.customConfig("columnsMobile",2):this.customConfig("columns",5)},getAmountRows:function(){return this.isMobileDevice()?this.customConfig("rowsMobile",4):this.customConfig("rows",2)},getGutter:function(){return this.isMobileDevice()?this.customConfig("gutterMobile",5):this.customConfig("gutter",5)},getItemWidth:function(){return this.isMobileDevice()?this.customConfig("itemWidthMobile","100px"):this.customConfig("itemWidth","200px")},getItemHeight:function(){return this.isMobileDevice()?this.customConfig("itemHeightMobile","100px"):this.customConfig("itemHeight","200px")},getMaxShownItems:function(){var t=this.getAmountRows()*this.getAmountItemsInRow();return this.isMobileDevice()?this.customConfig("maxShownItemsMobile",t):this.customConfig("maxShownItems",t)}},mounted:function(){var t,e=this;return(t=h().mark((function t(){var n,i,o,s,a,l,u;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e,e.layout=e.customConfig("layout","default"),e.gutter=e.getGutter(),e.item2nScaleFactor=e.customConfig("item2nScaleFactor",1),e.item3nScaleFactor=e.customConfig("item3nScaleFactor",1),e.captionMaxWords=e.customConfig("captionMaxWords",10),e.captionMaxWordsMobile=e.customConfig("captionMaxWordsMobile",5),e.layout&&"default"!==e.layout?(e.itemWidth=e.getItemWidth(),e.itemHeight=e.getItemHeight(),e.maxShownItems=e.getMaxShownItems()):(i=e.$el.clientWidth,o=e.getAmountItemsInRow(),s=e.getAmountRows(),e.maxShownItems=o*s,a=2*o*e.getGutter(),l=i-a,e.itemWidth=l/o+"px",e.itemHeight=e.itemWidth),t.prev=8,t.next=11,r().get("/api/instagram-feed",{params:{artistId:e.artistId}});case 11:u=t.sent,e.igFeed=u.data.content,t.next=18;break;case 15:t.prev=15,t.t0=t.catch(8),n.isRequestError=!0;case 18:return t.prev=18,e.isFeedLoading=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[8,15,18,21]])})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){f(o,i,r,s,a,"next",t)}function a(t){f(o,i,r,s,a,"throw",t)}s(void 0)}))})()}};const m=(0,n(1900).Z)(p,(function(){var t=this,e=t._self._c;return e("div",[e("Loading",{attrs:{"is-loading":t.isFeedLoading}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isRequestError,expression:"isRequestError"}],domProps:{textContent:t._s(t.errorMessage)}}),t._v(" "),t.isFeedLoading?t._e():e("div",[e("mlp-masonry-layout",{staticClass:"instagram__images",attrs:{itemWidth:t.itemWidth,itemHeight:t.itemHeight,gutter:t.gutter,item2nScaleFactor:t.item2nScaleFactor,item3nScaleFactor:t.item3nScaleFactor}},t._l(t.filteredPosts,(function(n,i){return e("a",{attrs:{href:n.permalink,target:"_blank"}},[e("mlp-masonry-image-item",{attrs:{"image-src":t.getImage(n),caption:t.getCaptionForMasonryItem(n)}})],1)})),0),t._v(" "),e("mlp-show-more-button",{directives:[{name:"show",rawName:"v-show",value:t.showShowMore,expression:"showShowMore"}],attrs:{label:t.showMoreButtonLabel},on:{click:t.showMore}})],1)],1)}),[],!1,null,null,null).exports},6041:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(9669),r=n.n(i);const o={name:"MlpYouTubeFeed",data:function(){return{isFeedLoading:!0,isRequestError:!1,ytVideos:null}},props:["channelId","playlistId"],methods:{requestAPI:function(){var t=this.channelId;return r().get("/api/youtube",{params:{channel:t,playlistId:this.playlistId}})},socialIconName:function(t,e){return"<i class='fab "+t+"'></i> "+e}},computed:{},components:{},watch:{},mounted:function(){var t=this;this.ytVideos=this.requestAPI().then((function(e){t.ytVideos=e.data.content})).catch((function(e){t.isRequestError=!0})).finally((function(){t.isFeedLoading=!1}))}};const s=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",[e("Loading",{attrs:{"is-loading":t.isFeedLoading}}),t._v(" "),t.isRequestError?e("div",[t._v("\n        Error during feed retrieval...\n    ")]):t._e(),t._v(" "),t.isFeedLoading?t._e():e("div",{staticClass:"collection-view"},[e("mlp-slider-wrapper",{staticClass:"social-feed social-feed--youtube",attrs:{"slides-to-show":3,"slides-to-scroll":3}},t._l(t.ytVideos,(function(n){return e("Card",{key:n.id,attrs:{title:n.title,subtitle:t.socialIconName("fa-youtube","YouTube"),linkHref:n.url,linkTarget:"_blank",imagePath:n.thumbnail}})})),1)],1)],1)}),[],!1,null,null,null).exports},3323:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});const i={methods:{isHeaderHidden:function(){return document.querySelector("body").classList.contains("with-hidden-header")},getNavHeight:function(){return document.querySelector("header#mainnav").getBoundingClientRect().height}}};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}const o={name:"Hero",components:{MlpLinkContentItem:n(5720).default},data:function(){return{styleObject:{height:this.getMinHeight()}}},methods:{getMinHeight:function(){var t=this.attributes.options;"object"!==r(this.attributes.options)&&(t=JSON.parse(this.attributes.options));var e=t.heightValue,n=t.heightUnit,i=this.isHeaderHidden(),o=this.getNavHeight();return n="%"===n?"vh":n,e&&n&&!i?"calc(".concat(e,"vh - ").concat(o,"px)"):e&&n||i?!e||!n&&i?"100vh":e+n:"calc(100vh - ".concat(o,"px)")}},props:["attributes"],mixins:[i]},s=o;var a=n(3379),l=n.n(a),u=n(2686),c={insert:"head",singleton:!1};l()(u.Z,c);u.Z.locals;const d=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{class:t.attributes.alignmentClass,style:t.styleObject},[e("div",{staticClass:"hero-inner-content"},[t.attributes.logoUrl?e("div",{staticClass:"hero-content__logo"},[e("mlp-image",{attrs:{src:t.attributes.logoUrl,alt:t.attributes.headline}})],1):t._e(),t._v(" "),t.attributes.text?e("div",{staticClass:"hero-content__text py-5",domProps:{innerHTML:t._s(t.attributes.text)}}):t._e()]),t._v(" "),t._l(t.attributes.childrenData,(function(t){return e("mlp-link-content-item",{key:t.buttonLabel,attrs:{data:t}})})),t._v(" "),e("div",{staticClass:"hero-content__scrolldown"},[e("p",{staticClass:"scrolldown__label",domProps:{innerHTML:t._s(t.attributes.buttonLabel)}}),t._v(" "),t.attributes.hideButton?t._e():e("button",{staticClass:"scrolldown__arrow"},[e("i",{staticClass:"fas fa-chevron-down"})])])],2)}),[],!1,null,null,null).exports},6556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(9868),r=n.n(i);const o={name:"MlpImage",props:["src","alt","height","width","title","imageWidths"],data:function(){return{placeholderImage:r()}},computed:{sources:function(){var t=this;if(void 0!==this.imageWidths)return this.imageWidths.map((function(e){return"".concat(t.src.replace("{width}",e)," ").concat(e,"w")})).join(", ")},loadedSrc:function(){return""===this.src?this.placeholderImage:this.src.replace("{width}","768")}}};const s=(0,n(1900).Z)(o,(function(){var t=this;return(0,t._self._c)("img",{staticClass:"lazyload",attrs:{srcset:t.sources,"data-src":t.loadedSrc,title:t.title,sizes:"(min-width: 2560px) 2048px,\n        (min-width: 1500px) 1200px,\n        (min-width: 1200px) 1020px,\n        (min-width: 800px) 768px,\n        568px",src:t.loadedSrc}})}),[],!1,null,null,null).exports},4710:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpLink",components:{},mixins:[n(7472).Z]};const r=(0,n(1900).Z)(i,(function(){var t=this;return(0,t._self._c)("a",{style:t.styleObject},[t._t("default")],2)}),[],!1,null,null,null).exports},5720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"MlpLinkContentItem",props:["data"]};var r=n(3379),o=n.n(r),s=n(4451),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"link-content",style:t.data.heightStr},[e("a",{attrs:{href:t.data.linkUrl,target:t.data.linkTarget}},[e("button",{staticClass:"btn btn--rounded btn--action",class:t.data.bgImageUrl?"vertical-align":"",style:t.data.buttonStyle,attrs:{type:"button"}},[t._v("\n            "+t._s(t.data.buttonLabel)+"\n        ")])]),t._v(" "),t._t("default")],2)}),[],!1,null,"45529746",null).exports},2605:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"DateDisplay",props:["date"],mixins:[n(2483).Z]};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"event-item__date d-flex flex-column flex-grow-1"},[e("div",{staticClass:"datum__day",domProps:{textContent:t._s(t.getDay(this.date))}}),t._v(" "),e("div",{staticClass:"datum__month",domProps:{textContent:t._s(t.getMonth(this.date))}}),t._v(" "),e("div",{staticClass:"datum__year",domProps:{textContent:t._s(t.getYear(this.date))}})])}),[],!1,null,null,null).exports},7938:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(2605),r=n(2483);const o={name:"DateRangeDisplay",components:{DateDisplay:i.default},props:["dateStart","dateEnd"],mixins:[r.Z]};var s=n(3379),a=n.n(s),l=n(6371),u={insert:"head",singleton:!1};a()(l.Z,u);l.Z.locals;const c=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"date-range"},[e("DateDisplay",{staticClass:"date--start",attrs:{date:this.dateStart}}),t._v(" "),e("div",{staticClass:"event-item__date-separator font-weight-bold"},[t._v("–")]),t._v(" "),e("DateDisplay",{attrs:{date:this.dateEnd}})],1)}),[],!1,null,"10556949",null).exports},8055:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var i=n(3162),r=n.n(i),o=n(2605);const s={name:"LiveEvent",components:{DateRangeDisplay:n(7938).default,DateDisplay:o.default},data:function(){return{dateStart:this.liveEvent.dateStart,dateEnd:this.liveEvent.dateEnd,tourName:this.liveEvent.tourName,headline:this.liveEvent.headline,location:this.getLocationPartnerName(this.liveEvent),city:this.getCityName(this.liveEvent),timeStart:this.liveEvent.timeStart,ticketLink:this.liveEvent.ticketLink,buttonLabel:this.ticketButtonLabelString}},props:["liveEvent","ticketButtonLabelString"],methods:{getCityName:function(t){return t?!t.locationPartners||!t.locationPartners.length>0?"":t.locationPartners[0].city:""},getLocationPartnerName:function(t){return t?!t.locationPartners||!t.locationPartners.length>0?"":t.locationPartners[0].name:""},downloadIcal:function(t,e,n,i,o,s,a){var l=a||o+" "+s,u=e||"";this.$ics.removeAllEvents(),this.$ics.addEvent(this.localLang,t,u,n+" ("+i+")",o+" "+s,l);var c=this.$ics.calendar(),d=new Blob([c.trim()],{type:"text/x-vCalendar;charset=utf-8"});r().saveAs(d,"".concat(t,".ics"))},getEventImageSrc:function(){return this.liveEvent.asset?this.liveEvent.asset.imageUrlTemplate.replace("{ratio}",4).replace("{width}",320):null}},computed:{localLang:function(){return navigator.language}}};var a=n(3379),l=n.n(a),u=n(3968),c={insert:"head",singleton:!1};l()(u.Z,c);u.Z.locals;const d=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"w-100"},[e("div",{staticClass:"sectionholder content-item liveevent-view"},[e("div",{staticClass:"content-item__imgwrapper"}),t._v(" "),e("div",{staticClass:"contentholder content-item__modulview modulview"},[e("div",{staticClass:"modulview__content"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("div",{staticClass:"liveeventitem"},[e("div",{staticClass:"event-item"},[this.dateEnd?e("DateRangeDisplay",{staticClass:"d-flex justify-content-center",attrs:{dateStart:this.dateStart,dateEnd:this.dateEnd}}):e("DateDisplay",{attrs:{date:this.dateStart}}),t._v(" "),e("div",{staticClass:"event-item__content align-content-between",class:{"event-item__content--with-image":this.liveEvent.asset}},[e("div",{staticClass:"event-item__content-wrapper"},[e("div",{staticClass:"contenttext"},[e("span",{staticClass:"contenttext__headline",domProps:{textContent:t._s(t.headline)}}),t._v(" "),e("span",{staticClass:"contenttext__subtitle text-muted"},[e("span",{staticClass:"subtitle__location",domProps:{textContent:t._s(t.location)}}),t._v(" "),e("span",{staticClass:"subtitle__city",domProps:{textContent:t._s(t.city)}}),t._v(" "),e("span",{staticClass:"subtitle__timestart",domProps:{textContent:t._s(t.timeStart)}})]),t._v(" "),e("a",[t.timeStart?e("i",{staticClass:"far fa-calendar-check",on:{click:function(e){return t.downloadIcal(t.headline,t.tourName,t.location,t.city,t.dateStart,t.timeStart,t.dateEnd)}}}):t._e()])]),t._v(" "),t.ticketLink?e("a",{staticClass:"contentanchor",attrs:{href:t.ticketLink,target:"_blank"}},[e("div",{staticClass:"contentlink d-flex justify-content-between align-items-center"},[e("span",{staticClass:"contentlink__text",domProps:{textContent:t._s(t.buttonLabel)}}),t._v(" "),e("i",{staticClass:"fas fa-arrow-right"})])]):t._e()]),t._v(" "),this.liveEvent.asset?e("div",{staticClass:"event-item__image"},[e("img",{attrs:{src:t.getEventImageSrc()}})]):t._e()])],1)])])])])])])])])}),[],!1,null,"d4f594aa",null).exports},9044:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(8055),r=n(9669),o=n.n(r),s=n(9011);function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const u={name:"LiveEventFeed",components:{MlpShowMoreButton:n(3239).default,LiveEvent:i.default},data:function(){return{liveEvents:this.liveEventData,ticketButtonLabel:this.buyTicketButtonLabel,moreButtonLabel:this.showMoreButtonLabel,pageInfo:this.pageInfoData,isFeedLoading:!1}},props:["liveEventData","artistId","pageInfoData","buyTicketButtonLabel","showMoreButtonLabel"],methods:{fetchNextEvents:function(){this.isFeedLoading=!0;var t={query:"liveEvents",parameters:{aId:parseInt(this.artistId),endCursorString:this.endCursor}},e=this;o().post(e.API_URL,t).then((function(t){var n;(n=e.liveEvents).push.apply(n,a(t.data.artist.liveEvents.edges.map((function(t){return t.node})))),e.pageInfo.hasNextPage=t.data.artist.liveEvents.pageInfo.hasNextPage,e.pageInfo.endCursor=t.data.artist.liveEvents.pageInfo.endCursor,e.isFeedLoading=!1}))}},computed:{hasMore:function(){return this.pageInfo.hasNextPage},endCursor:function(){return this.pageInfo.endCursor}},mixins:[s.Z]};const c=(0,n(1900).Z)(u,(function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticClass:"live-events row"},t._l(t.liveEvents,(function(n,i){return e("div",{key:n.idRaw,staticClass:"col-md-6"},[e("live-event",{attrs:{"live-event":n,"ticket-button-label-string":t.ticketButtonLabel}})],1)})),0),t._v(" "),e("div",{staticClass:"col-12"},[e("mlp-show-more-button",{directives:[{name:"show",rawName:"v-show",value:t.hasMore&&!t.isFeedLoading,expression:"hasMore && !isFeedLoading"}],attrs:{"aria-label":t.moreButtonLabel},on:{click:function(e){return t.fetchNextEvents()}}},[e("i",{staticClass:"fas fa-chevron-down fa-lg px-2"}),t._v(" "),e("span",{domProps:{textContent:t._s(t.moreButtonLabel)}})]),t._v(" "),e("Loading",{directives:[{name:"show",rawName:"v-show",value:t.isFeedLoading,expression:"isFeedLoading"}],attrs:{"is-loading":t.isFeedLoading}})],1)])])}),[],!1,null,"267cb2e6",null).exports},3424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpMediaembedplayerCode",data:function(){return{}},props:["embedCode"],methods:{},computed:{},components:{},watch:{},mounted:function(){}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mediaembedplayer-code"},[e("div",{staticClass:"d-flex justify-content-center"},[e("div",{domProps:{innerHTML:t._s(t.embedCode)}})])])}),[],!1,null,null,null).exports},4519:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpMediaembedplayerId",data:function(){return{}},props:["embedSourceUrl"],methods:{},computed:{},components:{},watch:{},mounted:function(){}};const r=(0,n(1900).Z)(i,(function(){var t=this._self._c;return t("div",{staticClass:"mediaembedplayer-id"},[t("div",{staticClass:"embed-responsive embed-responsive-16by9"},[t("iframe",{staticClass:"embed-responsive-item",attrs:{src:this.embedSourceUrl,allowscriptaccess:"always",allow:"autoplay"}})])])}),[],!1,null,null,null).exports},2817:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(1443),r=n.n(i);new(r())("#player");const o={name:"MlpMediaembedplayerVideo",data:function(){return{}},props:["embedVideo"],methods:{},computed:{},components:{},watch:{embedVideo:function(t){this.player.poster=t.previewUrl}},mounted:function(){this.player=new(r())(document.getElementById("plyr-videoplayer"))}};const s=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mediaembedplayer-video"},[e("video",{staticClass:"video-player",attrs:{id:"plyr-videoplayer","data-asset-id":t.embedVideo.idRaw,poster:t.embedVideo.previewUrl,controls:"",preload:"metadata"}},[e("source",{attrs:{src:t.embedVideo.video.url,type:t.embedVideo.video.type}})])])}),[],!1,null,null,null).exports},5968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(4519),r=n(3424),o=n(2817);const s={name:"MlpMediaEmbedPlayer",data:function(){return{embedSourceUrl:null,embedService:null,embedVideo:null,embedCode:null,show:!1}},props:[],methods:{},computed:{dyncomponentname:function(){switch(this.embedService){case"INSTAGRAM":case"FACEBOOK":case"SOUNDCLOUD":case"TWITTER":case"TIKTOK":return"mlp-mediaembedplayer-code";case"YOUTUBE":case"VIMEO":return"mlp-mediaembedplayer-id";default:return"mlp-mediaembedplayer-video"}}},components:{MlpMediaembedplayerId:i.default,MlpMediaembedplayerCode:r.default,MlpMediaEmbedplayerVideo:o.default},watch:{},mounted:function(){var t=this;this.$root.$on("set-mediaembed",(function(e){t.uniquePlayerId=String(e.uniquePlayerId),t.$attrs["data-id"]===t.uniquePlayerId&&(t.embedCode=e.embedCode,t.embedSourceUrl=e.embedSourceUrl,t.embedService=e.embedService,t.embedVideo=e)})),this.$root.$on("showPlayer",(function(){t.$attrs["data-id"]===t.uniquePlayerId&&(t.show=!0)}))}};const a=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"slide"}},[t.show?e("div",{staticClass:"position-relative mb-3",attrs:{id:"mlp-mediaembedplayer"}},[e(t.dyncomponentname,{tag:"component",attrs:{embedSourceUrl:t.embedSourceUrl,embedCode:t.embedCode,embedVideo:t.embedVideo}}),t._v(" "),e("button",{staticClass:"position-absolute mlp-mediaembedplayer__button",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.show=!t.show}}},[e("span",{},[e("i",{staticClass:"fas fa-lg fa-times"})])])],1):t._e()])}),[],!1,null,null,null).exports},3827:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpMediaEmbedSlide",props:["mediaEmbed"],methods:{openMediaEmbed:function(t){this.$root.$emit("set-mediaembed",t),this.$root.$emit("showPlayer",!0)},getMediaIcon:function(t){switch(t){case"INSTAGRAM":return"fa-instagram";case"FACEBOOK":return"fa-facebook-f";case"SOUNDCLOUD":return"fa-soundcloud";case"SPOTIFY":return"fa-spotify";case"TIKTOK":return"fa-tiktok";case"TWITTER":return"fa-x-twitter";case"YOUTUBE":return"fa-youtube";case"VIMEO":return"fa-vimeo-v";default:return""}},getMediaPreview:function(t){var e=t.embedId,n=this.removeQuotes(t.headline),i=this.getMediaIcon(t.embedService);return"YOUTUBE"===t.embedService?'<img src="https://img.youtube.com/vi/'.concat(e,'/hqdefault.jpg" alt="').concat(n,'" class="card-img-top">'):'<div class="previewItem"><i class="fab fa-3x '.concat(i,'"></i></div>')},getDuration:function(t){return t&&t.video?t.video.duration:null},isPlayIconShownForMediaEmbed:function(t){return"YOUTUBE"===t},removeQuotes:function(t){return t.replace(/"/g,"")}}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",[e("div",{on:{click:function(e){return t.openMediaEmbed(t.mediaEmbed)}}},[e("div",{staticClass:"mx-3 pt-3 pb-4"},[e("div",{staticClass:"card"},[e("figure",{staticClass:"card-img d-flex align-items-center justify-content-center"},[e("i",{directives:[{name:"show",rawName:"v-show",value:t.isPlayIconShownForMediaEmbed(t.mediaEmbed.embedService),expression:"\n                            isPlayIconShownForMediaEmbed(\n                                mediaEmbed.embedService\n                            )\n                        "}],class:"fa fa-play-circle"}),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.getMediaPreview(t.mediaEmbed))}}),t._v(" "),e("span",{staticClass:"card-duration"},[t._v(t._s(t.getDuration(t.mediaEmbed)))])]),t._v(" "),e("div",{staticClass:"card-body"},[e("span",{staticClass:"card-subtitle mb-1 text-muted"},[e("i",{class:"fab "+t.getMediaIcon(t.mediaEmbed.embedService)}),t._v("\n                        "+t._s(t.mediaEmbed.embedService)+"\n                    ")]),t._v(" "),e("span",{staticClass:"card-title"},[t._v(t._s(t.mediaEmbed.headline))])])])])])])}),[],!1,null,null,null).exports},6188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(4298),r=n(3424);const o={name:"MlpMediaembedSlider",data:function(){return{}},props:["mediaembeds"],methods:{componentName:function(t){return"TIKTOK"===t&&"undefined"!==t||(t="slide"),"MlpMediaEmbed"+(t=t.toLowerCase()).charAt(0).toUpperCase()+t.slice(1)}},components:{MlpSliderWrapper:i.default,MediaEmbedPlayerCode:r.default},mounted:function(){for(var t in this.mediaembeds)this.componentName(t.embedService)}};var s=n(3379),a=n.n(s),l=n(4866),u={insert:"head",singleton:!1};a()(l.Z,u);l.Z.locals;const c=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collection-view media-embed"},[e("mlp-slider-wrapper",{attrs:{"slides-to-show":3,"slides-to-scroll":3}},t._l(t.mediaembeds,(function(n){return e("div",{key:n.embedId},[e(t.componentName(n.embedService),{tag:"component",attrs:{"media-embed":n}})],1)})),0)],1)}),[],!1,null,null,null).exports},2209:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpMediaEmbedTiktok",props:["mediaEmbed"]};const r=(0,n(1900).Z)(i,(function(){var t=this._self._c;return t("div",[t("media-embed-player-code",{staticClass:"embed-tiktok",attrs:{"embed-code":this.mediaEmbed.embedCode}})],1)}),[],!1,null,null,null).exports},5633:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpMediaEmbedTiktok",props:["mediaEmbed"]};const r=(0,n(1900).Z)(i,(function(){var t=this._self._c;return t("div",[t("media-embed-player-code",{staticClass:"embed-tiktok",attrs:{"embed-code":this.mediaEmbed.embedCode}})],1)}),[],!1,null,null,null).exports},9791:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpTemplateLanguage",components:{},data:function(){return{countryCode:this.language.countryCode,countryName:this.language.countryName}},props:["language"]};const r=(0,n(1900).Z)(i,(function(){return(0,this._self._c)("div",{class:"language--"+this.countryCode,domProps:{textContent:this._s(this.countryName)}})}),[],!1,null,null,null).exports},615:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var i=n(7472),r=n(4710),o=n(9791),s=n(1296),a=n.n(s);const l={name:"MlpLanguageSwitch",components:{MlpTemplateLanguage:o.default,MlpLink:r.default},props:["currentLanguage","languages","headerFontSize","headerMenuColor"],mixins:[i.Z],data:function(){return{buttonClass:""}},methods:{setButtonClass:function(){var t=this;return a()((function(){window.innerWidth<=475?t.buttonClass="btn-sm":t.buttonClass="btn-lg"}),100)}},mounted:function(){window.addEventListener("resize",this.setButtonClass())},destroyed:function(){window.removeEventListener("resize",this.setButtonClass())}};var u=n(3379),c=n.n(u),d=n(648),h={insert:"head",singleton:!1};c()(d.Z,h);d.Z.locals;const f=(0,n(1900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"language-switch"},[e("div",{staticClass:"btn-group"},[e("button",{staticClass:"btn btn-secondary dropdown-toggle bg-transparent border-0",class:t.buttonClass,attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("mlp-link",{attrs:{"font-size":t.headerFontSize,"font-color":t.headerMenuColor}},[t._v("\n                "+t._s(t.currentLanguage)+"\n            ")])],1),t._v(" "),e("div",{staticClass:"dropdown-menu pl-4",style:t.styleObject},t._l(t.languages,(function(n,i){return e("mlp-link",{key:i,attrs:{href:n.link.href,"font-size":t.headerFontSize,"font-color":t.headerMenuColor}},[e("mlp-template-language",{attrs:{language:n.language}})],1)})),1)])])}),[],!1,null,"bcb768e0",null).exports},3193:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(2937),r="umg_newsletter_accepted",o="umg_newsletter_failed";const s={name:"DataLayerPushAfterNewsletterSubscription",mixins:[i.Z],props:{subscribeSuccessful:Boolean,subscribeFailed:Boolean,message:String,artistName:String,addressbookId:String},methods:{umusicPushGenericEvent_success:function(){this.dataLayerPush({event_name:"newsletter_doi_successful",newsletter_doi_successful:{newsletter_selection:this.getNewsletterSelection()||null,event_category:"Customer Relations",event_action:"Newsletter",event_label:"Double Opt-In - Successful"}})},umusicPushGenericEvent_fail:function(){this.dataLayerPush({event_name:"newsletter_doi_fail",newsletter_doi_fail:{newsletter_selection:this.getNewsletterSelection()||null,error_message:this.message,event_category:"Customer Relations",event_action:"Newsletter",event_label:"Double Opt-In - Fail"}})},getNewsletterSelection:function(){return new URLSearchParams(window.location.search).get("newsletter_selection")||this.addressbookId||null}},mounted:function(){var t=sessionStorage.getItem(r),e=sessionStorage.getItem(o);this.subscribeSuccessful&&!t&&(__cmp("addEventListener",["settings",this.umusicPushGenericEvent_success,!1],null),sessionStorage.setItem(r,!0)),this.subscribeFailed&&!e&&(__cmp("addEventListener",["settings",this.umusicPushGenericEvent_fail,!1],null),sessionStorage.setItem(o,!0))}};const a=(0,n(1900).Z)(s,(function(){return(0,this._self._c)("div",[this._t("default")],2)}),[],!1,null,null,null).exports},9181:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var i=n(9669),r=n.n(i),o=n(8620),s=n(379),a=n(2937);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(){u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,s=Object.create(o.prototype),a=new C(r||[]);return i(s,"_invoke",{value:S(t,n,a)}),s}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var f={};function p(){}function m(){}function g(){}var v={};c(v,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==e&&n.call(b,o)&&(v=b);var w=g.prototype=p.prototype=Object.create(v);function T(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,o,s,a){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==l(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(d).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,a)}))}a(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=h(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=h(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=c(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(_.prototype),c(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new _(d(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T(w),c(w,a,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=A,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function c(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}const d={name:"NewsletterForm",mixins:[o.oE,a.Z],props:{rooturl:String,heading:String,primaryNewsletter:Object,additionalNewsletter:Array,inputLabelFirstname:String,inputLabelEmail:String,inputLabelCountry:String,submitButtonLabel:String,defaultCountry:String,pendingSubscriptionText:String,subscribeSuccessText:String,subscribeErrorText:String,countries:Array,backgroundColor:String,fontColor:String,invalidEmailHint:String,invalidCountryHint:String},data:function(){return{form:{firstname:null,email:null,selectedCountry:null},newsletterInputs:[],isPendingSubscription:!1,isSubscribeSuccessful:!1,showForm:!0,formSubmittedText:"",formErrorText:"",lyticsUserId:"",firstInputHappened:!1}},mounted:function(){this.form.selectedCountry=this.defaultCountry},computed:{globalCssVars:function(){return{"--md-theme-default-accent":this.backgroundColor}}},validations:{form:{email:{email:s.Do,required:s.C1},selectedCountry:{required:s.C1}}},methods:{handleFirstInput:function(t){this.firstInputHappened||(this.dataLayerPush({event_name:"newsletter_soi_start",newsletter_soi_start:{newsletter_selection:this.primaryNewsletter.addressbookId,event_category:"Customer Relations",event_action:"Newsletter",event_label:"Single Opt-In - Start"}}),this.firstInputHappened=!0)},getCountryCode:function(t){var e=this.countries.findIndex((function(e){return e.name===t})),n=this.countries.map((function(t){return t.code}));return null!=n[e]?n[e].toUpperCase():null},getCountryNames:function(t){return t?t.map((function(t){return t.name})):[]},getValidationClass:function(t){var e=this.$v.form[t];if(e)return{"md-invalid":e.$invalid&&e.$dirty}},validateForm:function(){this.$v.$touch(),this.$v.$invalid||(this.setLyticsId(),this.sendSubscribe())},setLyticsId:function(){window.hasOwnProperty("lio")&&(this.lyticsUserId=window.lio._uid)},subscribeToNewsletter:function(t){var e=this.getCountryCode(this.form.selectedCountry),n=Number(t.addressbookId);return r().post("/api/subscribe",{query:"subscribe",parameters:{input:{firstName:this.form.firstname,userEmail:this.form.email,addressBooks:[n],formId:t.formId,lkz:e,referralUrl:window.location.href,lyticsUserId:this.lyticsUserId,redirectUrl:"".concat(this.rooturl,"/newsletter-success?newsletter_selection=").concat(n),errorRedirectUrl:"".concat(this.rooturl,"/newsletter-error?newsletter_selection=").concat(n)}}})},sendSubscribe:function(t){var e,n=this;return(e=u().mark((function t(){var e,i,r,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.isPendingSubscription=!0,e=[],n.additionalNewsletter&&(e=n.additionalNewsletter.filter((function(t){return n.newsletterInputs.includes(t.addressbookId)}))),i=[n.primaryNewsletter].concat(e),r=i.map((function(t){return n.subscribeToNewsletter(t).then((function(e){return{newsletter:t,successful:e.data.successful}})).catch((function(e){return{newsletter:t,successful:!1}}))})),t.next=7,Promise.all(r);case 7:o=t.sent,n.isPendingSubscription=!1,n.showForm=!1,n.sendDataLayerPushes(o),o.some((function(t){return t.successful}))&&(n.formSubmittedText=n.subscribeSuccessText),o.some((function(t){return!t.successful}))&&(n.formErrorText=n.subscribeErrorText);case 13:case"end":return t.stop()}}),t)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(t){c(o,i,r,s,a,"next",t)}function a(t){c(o,i,r,s,a,"throw",t)}s(void 0)}))})()},sendDataLayerPushes:function(t){var e=this;t.forEach((function(t){var n=t.newsletter;t.successful?e.dataLayerPush({event_name:"newsletter_soi_successful",newsletter_soi_successful:{newsletter_selection:n.addressbookId,event_category:"Customer Relations",event_action:"Newsletter",event_label:"Single Opt-In - Successful"}}):e.dataLayerPush({event_name:"newsletter_soi_fail",newsletter_soi_fail:{newsletter_selection:n.addressbookId,error_message:e.subscribeErrorText,event_category:"Customer Relations",event_action:"Newsletter",event_label:"Single Opt-In - Fail - "+e.subscribeErrorText}})}))}}};var h=n(3379),f=n.n(h),p=n(3757),m={insert:"head",singleton:!1};f()(p.Z,m);p.Z.locals;const g=(0,n(1900).Z)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"newsletter-box",style:t.globalCssVars},[t.showForm?e("div",{staticClass:"newsletter-box__heading"},[e("span",{domProps:{textContent:t._s(t.heading)}})]):t._e(),t._v(" "),e("div",{staticClass:"newsletter-box__body"},[t.showForm?e("div",{staticClass:"newsletter-box__form"},[e("form",{attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.validateForm.apply(null,arguments)}}},[e("div",{staticClass:"inputs"},[e("div",{staticClass:"inputs__firstname"},[e("div",[e("label",{domProps:{textContent:t._s(t.inputLabelFirstname)}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.firstname,expression:"form.firstname"}],attrs:{type:"text",disabled:t.isPendingSubscription,name:"firstname"},domProps:{value:t.form.firstname},on:{keyup:t.handleFirstInput,input:function(e){e.target.composing||t.$set(t.form,"firstname",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"inputs__email"},[e("div",{class:t.getValidationClass("email")},[e("label",{domProps:{textContent:t._s(t.inputLabelEmail+" *")}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],attrs:{type:"email",disabled:t.isPendingSubscription,name:"email",required:""},domProps:{value:t.form.email},on:{keyup:t.handleFirstInput,input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}}),t._v(" "),t.$v.form.email.$dirty&&!t.$v.form.email.required?e("span",{staticClass:"md-error",domProps:{textContent:t._s(t.invalidEmailHint)}}):t._e()])]),t._v(" "),e("div",{staticClass:"inputs__country"},[e("label",{attrs:{for:"country"},domProps:{textContent:t._s(t.inputLabelCountry)}}),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.selectedCountry,expression:"form.selectedCountry"}],staticClass:"country-select",class:t.getValidationClass("selectedCountry"),attrs:{name:"country",id:"country"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"selectedCountry",e.target.multiple?n:n[0])}}},t._l(t.countries,(function(n){return e("option",{key:n.name,domProps:{value:n.name}},[t._v("\n                                "+t._s(n.name))])})),0)])]),t._v(" "),e("div",{staticClass:"newsletter-box__confirm-text",domProps:{textContent:t._s(t.primaryNewsletter.confirmText)}}),t._v(" "),e("div",{staticClass:"newsletter-box__additional-newsletter"},[e("ul",t._l(t.additionalNewsletter,(function(n,i){return e("li",{key:i},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newsletterInputs,expression:"newsletterInputs"}],attrs:{type:"checkbox"},domProps:{value:n.addressbookId,checked:Array.isArray(t.newsletterInputs)?t._i(t.newsletterInputs,n.addressbookId)>-1:t.newsletterInputs},on:{change:function(e){var i=t.newsletterInputs,r=e.target,o=!!r.checked;if(Array.isArray(i)){var s=n.addressbookId,a=t._i(i,s);r.checked?a<0&&(t.newsletterInputs=i.concat([s])):a>-1&&(t.newsletterInputs=i.slice(0,a).concat(i.slice(a+1)))}else t.newsletterInputs=o}}}),t._v(" "),e("span",{domProps:{textContent:t._s(n.checkboxText)}})])})),0)]),t._v(" "),e("div",{staticClass:"newsletter-box__submit"},[e("button",{staticClass:"md-raised md-primary",style:{backgroundColor:t.backgroundColor},attrs:{disabled:t.isPendingSubscription,type:"submit"}},[t.isPendingSubscription?e("span",{style:{color:t.fontColor},domProps:{textContent:t._s(t.pendingSubscriptionText)}}):e("span",{style:{color:t.fontColor},domProps:{textContent:t._s(t.submitButtonLabel)}})])]),t._v(" "),e("div",{staticClass:"newsletter-box__consent-text",domProps:{innerHTML:t._s(t.primaryNewsletter.consentText)}})])]):e("div",{staticClass:"form__submitted-text"},[e("p",{domProps:{textContent:t._s(t.formSubmittedText)}}),t._v(" "),e("p",{domProps:{textContent:t._s(t.formErrorText)}})])])])}),[],!1,null,"1e74eca2",null).exports},8137:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(9181),r=n(9203);const o={name:"NewsletterOverlay",components:{NewsletterForm:i.default,NewsletterPopup:r.default},props:{headline:String,placeholder:String,rootUrl:String},data:function(){return{isOverlayVisible:!1,closedByUser:!1,progress:0,idleTimer:null,showpopup:!1}},computed:{globalCssVars:function(){return{"--md-theme-default-accent":"rgba(95, 142, 133, 1)"}}},watch:{"$store.state.isNewsletterPopupVisible.status":function(){!0===this.$store.state.isNewsletterPopupVisible.status&&(clearTimeout(this.idleTimer),window.removeEventListener("scroll",this.setOverlayVisibilityOnScroll))}},methods:{getVerticalScrollPercentage:function(t){var e=t.parentNode;return(t.scrollTop||e.scrollTop)/(e.scrollHeight-e.clientHeight)*100},setOverlayVisibilityOnScroll:function(){this.closedByUser||(this.progress=this.getVerticalScrollPercentage(document.body),this.progress>=40&&(this.isOverlayVisible=!0))},closeOverlay:function(){clearTimeout(this.idleTimer),this.closedByUser=!0,this.isOverlayVisible=!1,this.$store.commit("setNewsletterPopupVisibility",{status:!0,context:"input-email"})},closeOverlayForever:function(){var t;this.closedByUser=!0,this.isOverlayVisible=!1;var e=null!==(t=JSON.parse(localStorage.getItem("hide-newsletter")))&&void 0!==t?t:[];-1===e.indexOf(this.rootUrl)&&e.push(this.rootUrl),localStorage.setItem("hide-newsletter",JSON.stringify(e)),window.removeEventListener("scroll",this.setOverlayVisibilityOnScroll)}},mounted:function(){var t,e=this;(null!==(t=JSON.parse(localStorage.getItem("hide-newsletter")))&&void 0!==t?t:[]).includes(this.rootUrl)||(this.idleTimer=setTimeout((function(){e.isOverlayVisible=!0}),8e3),window.addEventListener("scroll",this.setOverlayVisibilityOnScroll))}};var s=n(3379),a=n.n(s),l=n(3237),u={insert:"head",singleton:!1};a()(l.Z,u);l.Z.locals;const c=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{style:t.globalCssVars},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOverlayVisible,expression:"isOverlayVisible"}],staticClass:"newsletter-overlay modulview__content"},[e("p",{domProps:{textContent:t._s(t.headline)}}),t._v(" "),e("div",{staticClass:"email-container"},[e("input",{attrs:{type:"email",placeholder:t.placeholder},on:{focus:t.closeOverlay}}),t._v(" "),e("span",[t._v("+")])]),t._v(" "),e("i",{staticClass:"fa fa-times close-overlay",attrs:{"aria-hidden":"true"},on:{click:t.closeOverlayForever}}),t._v(" "),e("div",{staticClass:"footer-links"},[t._t("footer")],2)]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.$store.state.isNewsletterPopupVisible.status,expression:"$store.state.isNewsletterPopupVisible.status"}]},[e("newsletter-popup",{attrs:{"root-url":t.rootUrl}},[t._t("popup")],2)],1)])}),[],!1,null,"2f6e8a03",null).exports},9203:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"NewsletterPopup",props:{rootUrl:String},methods:{closePopup:function(){var t,e=null!==(t=JSON.parse(localStorage.getItem("hide-newsletter")))&&void 0!==t?t:[];-1===e.indexOf(this.rootUrl)&&e.push(this.rootUrl),localStorage.setItem("hide-newsletter",JSON.stringify(e)),this.$store.commit("setNewsletterPopupVisibility",{status:!1,context:"popup"})}},watch:{"$store.state.isNewsletterPopupVisible.status":function(){!0===this.$store.state.isNewsletterPopupVisible.status&&"input-email"===this.$store.state.isNewsletterPopupVisible.context&&this.$el.querySelector("input[name=email]").focus()}}};var r=n(3379),o=n.n(r),s=n(6829),a={insert:"head",singleton:!1};o()(s.Z,a);s.Z.locals;const l=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"newsletter-popup-container"},[e("div",{staticClass:"newsletter-popup-overlay",on:{click:t.closePopup}}),t._v(" "),e("i",{staticClass:"fa fa-times close-popup",attrs:{"aria-hidden":"true"},on:{click:t.closePopup}}),t._v(" "),e("div",{staticClass:"newsletter"},[e("div",{staticClass:"modulview__content"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[t._t("default")],2)])])])])])}),[],!1,null,"76d99317",null).exports},8064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"NewsletterPopupButton",props:["cssProps"],methods:{showPopup:function(){this.$store.commit("setNewsletterPopupVisibility",{status:!0,context:"button"})}}};const r=(0,n(1900).Z)(i,(function(){var t=this;return(0,t._self._c)("span",{style:t.cssProps,on:{click:t.showPopup}},[t._t("default")],2)}),[],!1,null,null,null).exports},3099:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"Card",props:["linkHref","linkTarget","imagePath","subtitle","title","date"]};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"mx-3 pt-3 pb-4"},[e("a",{staticClass:"card-link",attrs:{href:t.linkHref,target:t.linkTarget}},[e("div",{staticClass:"card"},[e("figure",{staticClass:"card-img d-flex align-items-center justify-content-center"},[e("img",{staticClass:"card-img-top",attrs:{src:t.imagePath,alt:""}})]),t._v(" "),e("div",{staticClass:"card-body"},[e("span",{staticClass:"card-subtitle mb-1 text-muted",domProps:{innerHTML:t._s(t.subtitle)}}),t._v(" "),e("span",{staticClass:"card-title",domProps:{textContent:t._s(t.title)}})]),t._v(" "),t.date?e("div",{staticClass:"card-footer text-muted"},[e("small",[e("span",{domProps:{textContent:t._s(t.date)}})])]):t._e()])])])])}),[],!1,null,null,null).exports},8828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"Loading",props:["isLoading"]};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return t.isLoading?e("div",{staticStyle:{"text-align":"center"}},[e("i",{staticClass:"fas fa-spinner fa-pulse fa-3x"})]):t._e()}),[],!1,null,"07b5b809",null).exports},4126:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpMasonryImageItem",data:function(){return{styleObj:{backgroundImage:"url("+this.imageSrc+")"}}},props:["imageSrc","caption"]};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"masonry-item"},[e("div",{staticClass:"masonry-item__image",style:t.styleObj}),t._v(" "),t.caption?e("div",{staticClass:"masonry-item__caption",domProps:{textContent:t._s(t.caption)}}):t._e()])}),[],!1,null,null,null).exports},6883:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(8751),r=n.n(i);const o={name:"MlpMasonryLayout",props:["gutter","itemWidth","itemHeight","item2nScaleFactor","item3nScaleFactor"],computed:{cssVars:function(){return{"--item-width":this.itemWidth||"200px","--item-height":this.itemHeight||"200px","--item-margin-bottom":this.gutter+"px"||0,"--item-2n-scale-factor":this.item2nScaleFactor||1.25,"--item-3n-scale-factor":this.item3nScaleFactor||1.5}}},methods:{initializeMasonry:function(){new(r())(this.$el,{gutter:this.gutter||5,itemSelector:".masonry-item",fitWidth:!0})}},mounted:function(){this.$nextTick((function(){this.initializeMasonry()}))},updated:function(){this.initializeMasonry()}};var s=n(3379),a=n.n(s),l=n(3995),u={insert:"head",singleton:!1};a()(l.Z,u);l.Z.locals;const c=(0,n(1900).Z)(o,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"masonry-container",style:t.cssVars},[t._t("default")],2)}),[],!1,null,null,null).exports},2819:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(2976),r=n(2232),o=n(29);const s={name:"Product",data:function(){return{scrollPosition:null}},props:["productData"],components:{MlpShopButton:r.default,MlpTabbedPlaylist:i.default,MlpDateLabel:o.default},computed:{dataLazy:function(){return this.productData.isSlider?this.productData.coverPath:null},src:function(){return this.productData.isSlider?null:this.productData.coverPath},hasTracksWithFiles:function(){return this.productData.product.productElements.some((function(t){return t.tracks.some((function(t){return null!==t.mp3}))}))},hasValidTracks:function(){return this.productData.showTracklisting&&this.productData.product.productElements.length>0&&this.hasTracksWithFiles}},methods:{saveScrollPosition:function(){void 0!==this.productData.detailLink.href&&(localStorage.setItem("scrollPosition",document.documentElement.scrollTop),this.scrollPosition=document.documentElement.scrollTop)},scrollBackToProduct:function(){this.retrieveSavedScrollPosition(),void 0!==this.productData.detailLink.href&&void 0!==this.scrollPosition&&null!==this.scrollPosition&&(window.scroll(0,this.scrollPosition),this.scrollPosition=null)},retrieveSavedScrollPosition:function(){this.scrollPosition=localStorage.getItem("scrollPosition")}},mounted:function(){this.scrollBackToProduct()}};const a=(0,n(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{class:"product product-"+t.productData.productId},[t.productData.coverIdRaw?e("div",{staticClass:"product__cover"},[e("figure",[t.productData.detailLink?e("a",{attrs:{href:t.productData.detailLink.href,target:t.productData.detailLink.target},on:{click:t.saveScrollPosition}},[e("img",{staticClass:"img-fluid product--shadow",attrs:{"data-lazy":t.dataLazy,src:t.src,alt:t.productData.headline,title:t.productData.firstContributers+"-"+t.productData.headline}})]):e("img",{staticClass:"img-fluid product--shadow",attrs:{"data-lazy":t.dataLazy,src:t.src,alt:t.productData.headline,title:t.productData.firstContributers+"-"+t.productData.headline}})])]):t._e(),t._v(" "),e("div",{staticClass:"product__details"},[e("div",{staticClass:"product__info"},[t.productData.isHideHeadline?t._e():e("header",{staticClass:"modulview__header"},[e("h3",[t._v(t._s(t.productData.headline))])]),t._v(" "),e("div",{staticClass:"modulview__content"},[t.productData.showReleaseDate?e("span",{staticClass:"product__releasedate"},[e("mlp-date-label",{attrs:{date:t.productData.releaseDate}})],1):t._e(),t._v(" "),t.productData.subHeadline&&t.productData.showSubHeadline?e("span",{staticClass:"product__subheadline"},[t._v("\n                    "+t._s(t.productData.subHeadline)+"\n                ")]):t._e(),t._v(" "),t.productData.artists.length>0&&t.productData.showArtist?e("span",{staticClass:"product__artistname"},[t._v("\n                    "+t._s(t.productData.firstContributers)+"\n                ")]):t._e(),t._v(" "),t.productData.text&&t.productData.showText?e("div",{staticClass:"product__text",domProps:{innerHTML:t._s(t.productData.text)}}):t._e(),t._v(" "),t.productData.teaserText&&t.productData.showTeaserText?e("div",{staticClass:"product__teasertext",domProps:{innerHTML:t._s(t.productData.teaserText)}}):t._e()])]),t._v(" "),t.hasValidTracks?e("mlp-show-tracklist-button",{attrs:{"text-list-open":t.productData.textListOpen,"text-list-closed":t.productData.textListClosed,"product-id":t.productData.productId,"background-color":t.productData.headerBgColor,"font-color":t.productData.headerMenuColor}}):t._e(),t._v(" "),t.productData.productShops?e("div",{staticClass:"product__shops mt-4"},[e("div",{staticClass:"modulview__content"},t._l(t.productData.buttonGroups,(function(n,i){return e("div",{key:i,staticClass:"product__shopbuttons"},[e("span",{staticClass:"shopbuttons__headline d-block h6"},[t._v(t._s(t.productData.buttonHeadlines[i]))]),t._v(" "),t._l(n,(function(n,i){return e("mlp-shop-button",{key:i,staticClass:"shop-link",attrs:{options:n,"data-umg-variant":t.productData.headline}})}))],2)})),0)]):t._e()],1),t._v(" "),t.productData.product.productElements&&t.productData.product.productElements.length>0?e("div",{staticClass:"product__tracklist"},[e("div",{staticClass:"modulview__content"},[e("div",{staticClass:"product__playlist",attrs:{id:"product-playlist-"+t.productData.productId}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("mlp-tabbed-playlist",{attrs:{product:t.productData.product,partyId:t.productData.partyId,cover:t.productData.cover,"expand-limit":"25"}})],1)])])])]):t._e()])}),[],!1,null,null,null).exports},8929:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(4487);const r={name:"MlpRow",components:{MlpShowMoreButton:n(3239).default,MlpColumn:i.default},data:function(){return{columnChildren:null,buttonLabel:"Mehr anzeigen"}},props:["hasShowMore","maxVisibleElements","buttonTextLess","buttonTextMore"],methods:{toggleContent:function(t,e){var n=this,i=e.currentTarget,r=i.getElementsByTagName("i")[0],o=i.getElementsByTagName("span")[0];r.classList.contains("fa-chevron-down")?(r.classList.remove("fa-chevron-down"),r.classList.add("fa-chevron-up"),o.innerHTML=this.buttonTextLess):(r.classList.remove("fa-chevron-up"),r.classList.add("fa-chevron-down"),o.innerHTML=this.buttonTextMore),t.forEach((function(t,e){e>=n.maxVisibleElements-1&&t.classList.toggle("hide")}))}},mounted:function(){this.columnChildren=this.$el.querySelectorAll(".mlp-row .column .sectionholder .sectionholder");var t=this;this.columnChildren.forEach((function(e,n){n>=t.maxVisibleElements-1&&e.classList.add("hide")}))}};var o=n(3379),s=n.n(o),a=n(2885),l={insert:"head",singleton:!1};s()(a.Z,l);a.Z.locals;const u=(0,n(1900).Z)(r,(function(){var t=this,e=t._self._c;return e("div",{ref:"column",staticClass:"row mlp-row"},[t._t("default"),t._v(" "),t.hasShowMore?e("div",[e("mlp-show-more-button",{staticClass:"contentItem__toggle",attrs:{label:t.buttonLabel},on:{click:function(e){return t.toggleContent(t.columnChildren,e)}}})],1):t._e()],2)}),[],!1,null,null,null).exports},2232:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"MlpShopButton",props:{options:Object,dataUmgVariant:String,inDropdown:Boolean},methods:{getClassName:function(t){return t?"btn-"+this.slugify(this.options.group):null}},mixins:[{methods:{slugify:function(t){return t.trim().replaceAll(" ","-")}}}]};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("span",{class:[t.getClassName(this.options.group)]},[e("a",{class:{"dropdown-item shop-button-list-image":this.inDropdown},attrs:{href:t.options.shopUrl,target:"_blank","data-umg-event-type":t.options.dataUmgEventType,"data-umg-target":t.options.dataUmgTarget,"data-umg-variant":t.dataUmgVariant,"data-umg-type":t.options.dataUmgType}},[e("img",{staticClass:"img-fluid shop-link__logo",attrs:{src:t.options.svgUrl,alt:""}})])])}),[],!1,null,null,null).exports},6070:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const i={name:"ShopButtonGroup",props:{label:String}};const r=(0,n(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"shop-button-group"},[e("div",{staticClass:"shopbuttons__headline py-2 pl-2",domProps:{textContent:t._s(t.label)}}),t._v(" "),t._t("default")],2)}),[],!1,null,"5c908c7a",null).exports},9942:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(6070),r=n(2232);const o={name:"ShopButtonList",components:{ShopButtonGroup:i.default,MlpShopButton:r.default},props:{options:Object,inDropdown:Boolean}};var s=n(3379),a=n.n(s),l=n(9438),u={insert:"head",singleton:!1};a()(l.Z,u);l.Z.locals;const c=(0,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"shop-button-list"},[e("div",{staticClass:"product__shop-select mt-2 text-center"},[e("div",{staticClass:"dropdown"},[e("button",{staticClass:"btn dropdown-toggle shop-button btn-sm",style:{backgroundColor:t.options.bgColor},attrs:{type:"button",id:"shop-selector-button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-display":"static"},domProps:{textContent:t._s(t.options.buttonText)}}),t._v(" "),e("div",{staticClass:"dropdown-menu shop-selector-list position-relative",style:{backgroundColor:t.options.bgColorList},attrs:{"aria-labelledby":"shop-selector-button"}},t._l(t.options.shopGroups,(function(n,i){return e("shop-button-group",{key:n.name,attrs:{label:n.name}},t._l(n.shopButtons,(function(n,i){return e("div",{key:i,staticClass:"text-center"},[e("mlp-shop-button",{attrs:{options:n,"data-umg-variant":t.options.dataUmgVariant,"in-dropdown":t.inDropdown}})],1)})),0)})),1)])])])}),[],!1,null,"5272d31f",null).exports},6e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=n(538),r=n(8828),o=n(9669),s=n.n(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(){l=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,s=Object.create(o.prototype),a=new C(r||[]);return i(s,"_invoke",{value:S(t,n,a)}),s}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var f={};function p(){}function m(){}function g(){}var v={};c(v,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==e&&n.call(b,o)&&(v=b);var w=g.prototype=p.prototype=Object.create(v);function T(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,o,s,l){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==a(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(d).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,l)}))}l(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=h(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=h(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(_.prototype),c(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new _(d(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T(w),c(w,u,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=A,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function u(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}const c={name:"MlpVoucher",props:["mlpId","compositeKey","pageUrl","campaign","text","voucherCodeInputPlaceholder","redeemButtonText"],data:function(){return{voucherCode:"",isFetchingContent:!1,responseStatusCode:null,isFinished:!1,videoSelection:null,audioplayer:null,hlsConfig:{autoStartLoad:!0}}},methods:{redeemVoucher:function(){var t,e=this;return(t=l().mark((function t(){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.fetchContent(e.mlpId,e.pageUrl,e.compositeKey,e.campaign,e.voucherCode);case 3:n=t.sent,e.videoSelection=n.data,e.audioplayer=n.data.audioplayer,window.dataLayer.push({event:"Generic Event",event_name:"voucher_redeemed",voucher_redeemed:{voucher_code:e.voucherCode}}),e.isFinished=!0,t.next=14;break;case 10:t.prev=10,t.t0=t.catch(0),window.dataLayer.push({event:"Generic Event",event_name:"voucher_redeemed_fail",voucher_redeemed_fail:{voucher_code:e.voucherCode,error_message:e.getStatusMessage(e.responseStatusCode)}}),e.responseStatusCode=t.t0.response.status;case 14:return t.prev=14,e.isFetchingContent=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,10,14,17]])})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){u(o,i,r,s,a,"next",t)}function a(t){u(o,i,r,s,a,"throw",t)}s(void 0)}))})()},fetchContent:function(t,e,n,i,r){this.isFetchingContent=!0;var o={params:{mlpId:t,campaign:i,voucherCode:r,compositeKey:n,pageUrl:e}};return s().get("/api/redeem-voucher",o)},getStatusMessage:function(t){switch(t){case 200:return null;case 403:return"Der eingebene Gutschein Code ist nicht gültig";case 404:return"Die Kampagne ist bereits abgelaufen";default:return"Es ist ein Fehler aufgetreten. Bitte versuche es später erneut."}},compileContent:function(t){return i.ZP.compile(t)}},computed:{isTizenOSUserAgent:function(){var t=navigator.userAgent.toLowerCase();return t.includes("smart-tv")&&t.includes("tizen")},isSafariBrowser:function(){return CSS.supports("background","-webkit-named-image(i)")},isEdgeBrowser:function(){return/Edg/.test(navigator.userAgent)},isBrowserSupported:function(){return!this.isTizenOSUserAgent||this.isSafariBrowser}},mounted:function(){var t=new URLSearchParams(window.location.search).get("vc");t&&t.trim().length>0&&(this.voucherCode=t.trim())},components:{MlpVideoPlayer:n(366).default,Loading:r.default}};var d=n(3379),h=n.n(d),f=n(8564),p={insert:"head",singleton:!1};h()(f.Z,p);f.Z.locals;const m=(0,n(1900).Z)(c,(function(){var t=this,e=t._self._c;return e("div",[e("div",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFinished&&!t.isFetchingContent,expression:"!isFinished && !isFetchingContent"}],staticClass:"voucher__inputs my-4"},[e("div",{staticClass:"redeem-voucher-fields"},[e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.voucherCode,expression:"voucherCode"}],staticClass:"voucher-code my-3 py-2 px-1",attrs:{type:"text",placeholder:t.voucherCodeInputPlaceholder,"aria-label":"Gutschein Code"},domProps:{value:t.voucherCode},on:{input:function(e){e.target.composing||(t.voucherCode=e.target.value)}}})]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-primary redeem-voucher-button",attrs:{type:"button"},on:{click:t.redeemVoucher}},[t._v(t._s(t.redeemButtonText))])])])]),t._v(" "),e("div",{staticClass:"voucher__loading"},[e("Loading",{directives:[{name:"show",rawName:"v-show",value:t.isFetchingContent,expression:"isFetchingContent"}],attrs:{"is-loading":t.isFetchingContent}}),t._v(" "),!t.responseStatusCode||t.isFinished||t.isFetchingContent?t._e():e("div",{domProps:{textContent:t._s(t.getStatusMessage(t.responseStatusCode))}})],1),t._v(" "),e("div",{staticClass:"voucher__content_wrapper"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isFinished&&!t.isFetchingContent,expression:"isFinished && !isFetchingContent"}],staticClass:"voucher__content"},[!t.isBrowserSupported||t.isSafariBrowser||t.isEdgeBrowser?e("div",{staticClass:"browser-hint"},[t._v("\n                Lieber Fan, schön, dass du den Code eingelöst hast. Um dir ein optimales Streaming Erlebnis zu ermöglichen, empfehlen wir dir den Google Chrome oder Mozilla Firefox Browser zu verwenden.\n            ")]):t._e(),t._v(" "),t.videoSelection&&!t.isTizenOSUserAgent?e("div",t._l(t.videoSelection.videos,(function(n){return e("div",[e("h2",[t._v(t._s(n.video.videoName))]),t._v(" "),e("mlp-video-player",{attrs:{"video-object":n,duration:n.video.duration,"use-token-service":!0,"hls-config":t.hlsConfig}})],1)})),0):t._e(),t._v(" "),t.audioplayer?e("div",[e("mlp-playlist",{attrs:{cover:"",tracks:t.audioplayer,"expand-limit":25}})],1):t._e(),t._v(" "),t._t("default")],2)])])}),[],!1,null,"07143333",null).exports},1900:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,{Z:()=>i})},3861:t=>{"use strict";var e=0;function n(t){if(!e){var n=document.createElement("script");n.setAttribute("src",t),document.body.appendChild(n),e=new Promise((function(t){n.onload=function(){t(window.twttr)}}))}return e}var i={id:{type:String,required:!0},sourceType:{type:String},slug:{type:String},options:Object};t.exports={addPlatformScript:n,twitterEmbedComponent:function(t){return{data:function(){return{isLoaded:!1,isAvailable:!1}},props:Object.assign({},i,t.props),mounted:function(){var e,i=this;e="profile"===this.sourceType?{sourceType:this.sourceType,screenName:this.id}:"list"===this.sourceType?{sourceType:this.sourceType,ownerScreenName:this.id,slug:this.slug}:this.id,Promise.resolve(window.twttr?window.twttr:n("//platform.twitter.com/widgets.js")).then((function(n){return t.embedComponent(n,e,i.$el,i.options)})).then((function(t){i.isAvailable=void 0!==t,i.isLoaded=!0}))},render:function(t){if(this.isLoaded&&this.isAvailable)return t("div",{class:this.$props.widgetClass});if(this.isLoaded&&!this.isAvailable&&this.$props.errorMessage){var e=t("div",{class:this.$props.errorMessageClass,domProps:{innerHTML:this.$props.errorMessage}});return t("div",[e])}return t("div",{class:this.$props.widgetClass},this.$slots.default)}}}}},9394:(t,e,n)=>{"use strict";Object.defineProperty(e,"tP",{enumerable:!0,get:function(){return i.default}});var i=s(n(8793)),r=s(n(4832)),o=s(n(2168));function s(t){return t&&t.__esModule?t:{default:t}}},4832:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(3861).twitterEmbedComponent)({embedComponent:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=t.widgets).createMoment.apply(e,i)},props:{errorMessage:{type:String,default:"Whoops! We couldn't access this Moment."},errorMessageClass:{type:String,required:!1},widgetClass:{type:String,required:!1}}});e.default=i},2168:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(3861).twitterEmbedComponent)({embedComponent:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=t.widgets).createTimeline.apply(e,i)},props:{errorMessage:{type:String,default:"Whoops! We couldn't access this Timeline."},errorMessageClass:{type:String,required:!1},widgetClass:{type:String,required:!1}}});e.default=i},8793:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(3861).twitterEmbedComponent)({embedComponent:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=t.widgets).createTweetEmbed.apply(e,i)},props:{errorMessage:{type:String,default:"Whoops! We couldn't access this Tweet."},errorMessageClass:{type:String,required:!1},widgetClass:{type:String,required:!1}}});e.default=i},538:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>ni});var i=Object.freeze({}),r=Array.isArray;function o(t){return null==t}function s(t){return null!=t}function a(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}var d=Object.prototype.toString;function h(t){return"[object Object]"===d.call(t)}function f(t){return"[object RegExp]"===d.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function m(t){return s(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function g(t){return null==t?"":Array.isArray(t)||h(t)&&t.toString===d?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var b=y("slot,component",!0),w=y("key,ref,slot,slot-scope,is");function T(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}var _=Object.prototype.hasOwnProperty;function S(t,e){return _.call(t,e)}function E(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,k=E((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=E((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,L=E((function(t){return t.replace(A,"-$1").toLowerCase()}));var I=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function O(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function D(t,e){for(var n in e)t[n]=e[n];return t}function P(t){for(var e={},n=0;n<t.length;n++)t[n]&&D(e,t[n]);return e}function R(t,e,n){}var M=function(t,e,n){return!1},N=function(t){return t};function F(t,e){if(t===e)return!0;var n=c(t),i=c(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return F(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return F(t[n],e[n])}))}catch(t){return!1}}function $(t,e){for(var n=0;n<t.length;n++)if(F(t[n],e))return n;return-1}function j(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function U(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var B="data-server-rendered",H=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:M,isReservedAttr:M,isUnknownElement:M,getTagNamespace:R,parsePlatformTagName:N,mustUseProp:M,async:!0,_lifecycleHooks:V},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function q(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function G(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var K=new RegExp("[^".concat(W.source,".$_\\d]"));var Y="__proto__"in{},Z="undefined"!=typeof window,X=Z&&window.navigator.userAgent.toLowerCase(),Q=X&&/msie|trident/.test(X),J=X&&X.indexOf("msie 9.0")>0,tt=X&&X.indexOf("edge/")>0;X&&X.indexOf("android");var et=X&&/iphone|ipad|ipod|ios/.test(X);X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X);var nt,it=X&&X.match(/firefox\/(\d+)/),rt={}.watch,ot=!1;if(Z)try{var st={};Object.defineProperty(st,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,st)}catch(t){}var at=function(){return void 0===nt&&(nt=!Z&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),nt},lt=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"==typeof t&&/native code/.test(t.toString())}var ct,dt="undefined"!=typeof Symbol&&ut(Symbol)&&"undefined"!=typeof Reflect&&ut(Reflect.ownKeys);ct="undefined"!=typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=null;function ft(t){void 0===t&&(t=null),t||ht&&ht._scope.off(),ht=t,t&&t._scope.on()}var pt=function(){function t(t,e,n,i,r,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),mt=function(t){void 0===t&&(t="");var e=new pt;return e.text=t,e.isComment=!0,e};function gt(t){return new pt(void 0,void 0,void 0,String(t))}function vt(t){var e=new pt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var yt=0,bt=[],wt=function(){for(var t=0;t<bt.length;t++){var e=bt[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}bt.length=0},Tt=function(){function t(){this._pending=!1,this.id=yt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,bt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,i=e.length;n<i;n++){0,e[n].update()}},t}();Tt.target=null;var _t=[];function St(t){_t.push(t),Tt.target=t}function Et(){_t.pop(),Tt.target=_t[_t.length-1]}var xt=Array.prototype,kt=Object.create(xt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=xt[t];G(kt,t,(function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&s.observeArray(r),s.dep.notify(),o}))}));var Ct=Object.getOwnPropertyNames(kt),At={},Lt=!0;function It(t){Lt=t}var Ot={notify:R,depend:R,addSub:R,removeSub:R},Dt=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?Ot:new Tt,this.vmCount=0,G(t,"__ob__",this),r(t)){if(!n)if(Y)t.__proto__=kt;else for(var i=0,o=Ct.length;i<o;i++){G(t,a=Ct[i],kt[a])}e||this.observeArray(t)}else{var s=Object.keys(t);for(i=0;i<s.length;i++){var a;Rt(t,a=s[i],At,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Pt(t[e],!1,this.mock)},t}();function Pt(t,e,n){return t&&S(t,"__ob__")&&t.__ob__ instanceof Dt?t.__ob__:!Lt||!n&&at()||!r(t)&&!h(t)||!Object.isExtensible(t)||t.__v_skip||Bt(t)||t instanceof pt?void 0:new Dt(t,e,n)}function Rt(t,e,n,i,o,s){var a=new Tt,l=Object.getOwnPropertyDescriptor(t,e);if(!l||!1!==l.configurable){var u=l&&l.get,c=l&&l.set;u&&!c||n!==At&&2!==arguments.length||(n=t[e]);var d=!o&&Pt(n,!1,s);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return Tt.target&&(a.depend(),d&&(d.dep.depend(),r(e)&&Ft(e))),Bt(e)&&!o?e.value:e},set:function(e){var i=u?u.call(t):n;if(U(i,e)){if(c)c.call(t,e);else{if(u)return;if(!o&&Bt(i)&&!Bt(e))return void(i.value=e);n=e}d=!o&&Pt(e,!1,s),a.notify()}}}),a}}function Mt(t,e,n){if(!Ut(t)){var i=t.__ob__;return r(t)&&p(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),i&&!i.shallow&&i.mock&&Pt(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||i&&i.vmCount?n:i?(Rt(i.value,e,n,void 0,i.shallow,i.mock),i.dep.notify(),n):(t[e]=n,n)}}function Nt(t,e){if(r(t)&&p(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||Ut(t)||S(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ft(t){for(var e=void 0,n=0,i=t.length;n<i;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),r(e)&&Ft(e)}function $t(t){return jt(t,!0),G(t,"__v_isShallow",!0),t}function jt(t,e){if(!Ut(t)){Pt(t,e,at());0}}function Ut(t){return!(!t||!t.__v_isReadonly)}function Bt(t){return!(!t||!0!==t.__v_isRef)}function Ht(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Bt(t))return t.value;var i=t&&t.__ob__;return i&&i.dep.depend(),t},set:function(t){var i=e[n];Bt(i)&&!Bt(t)?i.value=t:e[n]=t}})}var Vt=E((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}}));function zt(t,e){function n(){var t=n.fns;if(!r(t))return rn(t,null,arguments,e,"v-on handler");for(var i=t.slice(),o=0;o<i.length;o++)rn(i[o],null,arguments,e,"v-on handler")}return n.fns=t,n}function Wt(t,e,n,i,r,s){var l,u,c,d;for(l in t)u=t[l],c=e[l],d=Vt(l),o(u)||(o(c)?(o(u.fns)&&(u=t[l]=zt(u,s)),a(d.once)&&(u=t[l]=r(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)o(t[l])&&i((d=Vt(l)).name,e[l],d.capture)}function qt(t,e,n){var i;t instanceof pt&&(t=t.data.hook||(t.data.hook={}));var r=t[e];function l(){n.apply(this,arguments),T(i.fns,l)}o(r)?i=zt([l]):s(r.fns)&&a(r.merged)?(i=r).fns.push(l):i=zt([r,l]),i.merged=!0,t[e]=i}function Gt(t,e,n,i,r){if(s(e)){if(S(e,n))return t[n]=e[n],r||delete e[n],!0;if(S(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function Kt(t){return l(t)?[gt(t)]:r(t)?Zt(t):void 0}function Yt(t){return s(t)&&s(t.text)&&!1===t.isComment}function Zt(t,e){var n,i,u,c,d=[];for(n=0;n<t.length;n++)o(i=t[n])||"boolean"==typeof i||(c=d[u=d.length-1],r(i)?i.length>0&&(Yt((i=Zt(i,"".concat(e||"","_").concat(n)))[0])&&Yt(c)&&(d[u]=gt(c.text+i[0].text),i.shift()),d.push.apply(d,i)):l(i)?Yt(c)?d[u]=gt(c.text+i):""!==i&&d.push(gt(i)):Yt(i)&&Yt(c)?d[u]=gt(c.text+i.text):(a(t._isVList)&&s(i.tag)&&o(i.key)&&s(e)&&(i.key="__vlist".concat(e,"_").concat(n,"__")),d.push(i)));return d}var Xt=1,Qt=2;function Jt(t,e,n,i,o,d){return(r(n)||l(n))&&(o=i,i=n,n=void 0),a(d)&&(o=Qt),function(t,e,n,i,o){if(s(n)&&s(n.__ob__))return mt();s(n)&&s(n.is)&&(e=n.is);if(!e)return mt();0;r(i)&&u(i[0])&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);o===Qt?i=Kt(i):o===Xt&&(i=function(t){for(var e=0;e<t.length;e++)if(r(t[e]))return Array.prototype.concat.apply([],t);return t}(i));var a,l;if("string"==typeof e){var d=void 0;l=t.$vnode&&t.$vnode.ns||z.getTagNamespace(e),a=z.isReservedTag(e)?new pt(z.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!s(d=Zn(t.$options,"components",e))?new pt(e,n,i,void 0,void 0,t):Un(d,n,t,i,e)}else a=Un(e,n,t,i);return r(a)?a:s(a)?(s(l)&&te(a,l),s(n)&&function(t){c(t.style)&&bn(t.style);c(t.class)&&bn(t.class)}(n),a):mt()}(t,e,n,i,o)}function te(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),s(t.children))for(var i=0,r=t.children.length;i<r;i++){var l=t.children[i];s(l.tag)&&(o(l.ns)||a(n)&&"svg"!==l.tag)&&te(l,e,n)}}function ee(t,e){var n,i,o,a,l=null;if(r(t)||"string"==typeof t)for(l=new Array(t.length),n=0,i=t.length;n<i;n++)l[n]=e(t[n],n);else if("number"==typeof t)for(l=new Array(t),n=0;n<t;n++)l[n]=e(n+1,n);else if(c(t))if(dt&&t[Symbol.iterator]){l=[];for(var u=t[Symbol.iterator](),d=u.next();!d.done;)l.push(e(d.value,l.length)),d=u.next()}else for(o=Object.keys(t),l=new Array(o.length),n=0,i=o.length;n<i;n++)a=o[n],l[n]=e(t[a],a,n);return s(l)||(l=[]),l._isVList=!0,l}function ne(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=D(D({},i),n)),r=o(n)||(u(e)?e():e)):r=this.$slots[t]||(u(e)?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},r):r}function ie(t){return Zn(this.$options,"filters",t,!0)||N}function re(t,e){return r(t)?-1===t.indexOf(e):t!==e}function oe(t,e,n,i,r){var o=z.keyCodes[e]||n;return r&&i&&!z.keyCodes[e]?re(r,i):o?re(o,t):i?L(i)!==e:void 0===t}function se(t,e,n,i,o){if(n)if(c(n)){r(n)&&(n=P(n));var s=void 0,a=function(r){if("class"===r||"style"===r||w(r))s=t;else{var a=t.attrs&&t.attrs.type;s=i||z.mustUseProp(e,a,r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=k(r),u=L(r);l in s||u in s||(s[r]=n[r],o&&((t.on||(t.on={}))["update:".concat(r)]=function(t){n[r]=t}))};for(var l in n)a(l)}else;return t}function ae(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e||ue(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),i}function le(t,e,n){return ue(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function ue(t,e,n){if(r(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&ce(t[i],"".concat(e,"_").concat(i),n);else ce(t,e,n)}function ce(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function de(t,e){if(e)if(h(e)){var n=t.on=t.on?D({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function he(t,e,n,i){e=e||{$stable:!n};for(var o=0;o<t.length;o++){var s=t[o];r(s)?he(s,e,n):s&&(s.proxy&&(s.fn.proxy=!0),e[s.key]=s.fn)}return i&&(e.$key=i),e}function fe(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"==typeof i&&i&&(t[e[n]]=e[n+1])}return t}function pe(t,e){return"string"==typeof t?e+t:t}function me(t){t._o=le,t._n=v,t._s=g,t._l=ee,t._t=ne,t._q=F,t._i=$,t._m=ae,t._f=ie,t._k=oe,t._b=se,t._v=gt,t._e=mt,t._u=he,t._g=de,t._d=fe,t._p=pe}function ge(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,l=n[a]||(n[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(ve)&&delete n[u];return n}function ve(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ye(t){return t.isComment&&t.asyncFactory}function be(t,e,n,r){var o,s=Object.keys(n).length>0,a=e?!!e.$stable:!s,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==i&&l===r.$key&&!s&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=we(t,n,u,e[u]))}else o={};for(var c in n)c in o||(o[c]=Te(n,c));return e&&Object.isExtensible(e)&&(e._normalized=o),G(o,"$stable",a),G(o,"$key",l),G(o,"$hasNormal",s),o}function we(t,e,n,i){var o=function(){var e=ht;ft(t);var n=arguments.length?i.apply(null,arguments):i({}),o=(n=n&&"object"==typeof n&&!r(n)?[n]:Kt(n))&&n[0];return ft(e),n&&(!o||1===n.length&&o.isComment&&!ye(o))?void 0:n};return i.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function Te(t,e){return function(){return t[e]}}function _e(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};G(e,"_v_attr_proxy",!0),Se(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||Se(t._listenersProxy={},t.$listeners,i,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||xe(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:I(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Ht(t,e,n)}))}}}function Se(t,e,n,i,r){var o=!1;for(var s in e)s in t?e[s]!==n[s]&&(o=!0):(o=!0,Ee(t,s,i,r));for(var s in t)s in e||(o=!0,delete t[s]);return o}function Ee(t,e,n,i){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[i][e]}})}function xe(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var ke,Ce=null;function Ae(t,e){return(t.__esModule||dt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Le(t){if(r(t))for(var e=0;e<t.length;e++){var n=t[e];if(s(n)&&(s(n.componentOptions)||ye(n)))return n}}function Ie(t,e){ke.$on(t,e)}function Oe(t,e){ke.$off(t,e)}function De(t,e){var n=ke;return function i(){null!==e.apply(null,arguments)&&n.$off(t,i)}}function Pe(t,e,n){ke=t,Wt(e,n||{},Ie,Oe,De,t),ke=void 0}var Re=null;function Me(t){var e=Re;return Re=t,function(){Re=e}}function Ne(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Fe(t,e){if(e){if(t._directInactive=!1,Ne(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Fe(t.$children[n]);je(t,"activated")}}function $e(t,e){if(!(e&&(t._directInactive=!0,Ne(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)$e(t.$children[n]);je(t,"deactivated")}}function je(t,e,n,i){void 0===i&&(i=!0),St();var r=ht;i&&ft(t);var o=t.$options[e],s="".concat(e," hook");if(o)for(var a=0,l=o.length;a<l;a++)rn(o[a],t,n||null,t,s);t._hasHookEvent&&t.$emit("hook:"+e),i&&ft(r),Et()}var Ue=[],Be=[],He={},Ve=!1,ze=!1,We=0;var qe=0,Ge=Date.now;if(Z&&!Q){var Ke=window.performance;Ke&&"function"==typeof Ke.now&&Ge()>document.createEvent("Event").timeStamp&&(Ge=function(){return Ke.now()})}var Ye=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Ze(){var t,e;for(qe=Ge(),ze=!0,Ue.sort(Ye),We=0;We<Ue.length;We++)(t=Ue[We]).before&&t.before(),e=t.id,He[e]=null,t.run();var n=Be.slice(),i=Ue.slice();We=Ue.length=Be.length=0,He={},Ve=ze=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Fe(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i&&i._watcher===n&&i._isMounted&&!i._isDestroyed&&je(i,"updated")}}(i),wt(),lt&&z.devtools&&lt.emit("flush")}function Xe(t){var e=t.id;if(null==He[e]&&(t!==Tt.target||!t.noRecurse)){if(He[e]=!0,ze){for(var n=Ue.length-1;n>We&&Ue[n].id>t.id;)n--;Ue.splice(n+1,0,t)}else Ue.push(t);Ve||(Ve=!0,gn(Ze))}}var Qe="watcher";"".concat(Qe," callback"),"".concat(Qe," getter"),"".concat(Qe," cleanup");var Je;var tn=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Je,!t&&Je&&(this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=Je;try{return Je=this,t()}finally{Je=e}}else 0},t.prototype.on=function(){Je=this},t.prototype.off=function(){Je=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},t}();function en(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function nn(t,e,n){St();try{if(e)for(var i=e;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(i,t,e,n))return}catch(t){on(t,i,"errorCaptured hook")}}on(t,e,n)}finally{Et()}}function rn(t,e,n,i,r){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&m(o)&&!o._handled&&(o.catch((function(t){return nn(t,i,r+" (Promise/async)")})),o._handled=!0)}catch(t){nn(t,i,r)}return o}function on(t,e,n){if(z.errorHandler)try{return z.errorHandler.call(null,t,e,n)}catch(e){e!==t&&sn(e,null,"config.errorHandler")}sn(t,e,n)}function sn(t,e,n){if(!Z||"undefined"==typeof console)throw t}var an,ln=!1,un=[],cn=!1;function dn(){cn=!1;var t=un.slice(0);un.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&ut(Promise)){var hn=Promise.resolve();an=function(){hn.then(dn),et&&setTimeout(R)},ln=!0}else if(Q||"undefined"==typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())an="undefined"!=typeof setImmediate&&ut(setImmediate)?function(){setImmediate(dn)}:function(){setTimeout(dn,0)};else{var fn=1,pn=new MutationObserver(dn),mn=document.createTextNode(String(fn));pn.observe(mn,{characterData:!0}),an=function(){fn=(fn+1)%2,mn.data=String(fn)},ln=!0}function gn(t,e){var n;if(un.push((function(){if(t)try{t.call(e)}catch(t){nn(t,e,"nextTick")}else n&&n(e)})),cn||(cn=!0,an()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function vn(t){return function(e,n){if(void 0===n&&(n=ht),n)return function(t,e,n){var i=t.$options;i[e]=qn(i[e],n)}(n,t,e)}}vn("beforeMount"),vn("mounted"),vn("beforeUpdate"),vn("updated"),vn("beforeDestroy"),vn("destroyed"),vn("activated"),vn("deactivated"),vn("serverPrefetch"),vn("renderTracked"),vn("renderTriggered"),vn("errorCaptured");var yn=new ct;function bn(t){return wn(t,yn),yn.clear(),t}function wn(t,e){var n,i,o=r(t);if(!(!o&&!c(t)||t.__v_skip||Object.isFrozen(t)||t instanceof pt)){if(t.__ob__){var s=t.__ob__.dep.id;if(e.has(s))return;e.add(s)}if(o)for(n=t.length;n--;)wn(t[n],e);else if(Bt(t))wn(t.value,e);else for(n=(i=Object.keys(t)).length;n--;)wn(t[i[n]],e)}}var Tn=0,_n=function(){function t(t,e,n,i,r){var o,s;o=this,void 0===(s=Je&&!Je._vm?Je:t?t._scope:void 0)&&(s=Je),s&&s.active&&s.effects.push(o),(this.vm=t)&&r&&(t._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Tn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ct,this.newDepIds=new ct,this.expression="",u(e)?this.getter=e:(this.getter=function(t){if(!K.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;St(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;nn(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&bn(t),Et(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Xe(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');rn(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&T(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}(),Sn={enumerable:!0,configurable:!0,get:R,set:R};function En(t,e,n){Sn.get=function(){return this[e][n]},Sn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Sn)}function xn(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props=$t({}),r=t.$options._propKeys=[],o=!t.$parent;o||It(!1);var s=function(o){r.push(o);var s=Xn(o,e,n,t);Rt(i,o,s),o in t||En(t,"_props",o)};for(var a in e)s(a);It(!0)}(t,e.props),function(t){var e=t.$options,n=e.setup;if(n){var i=t._setupContext=_e(t);ft(t),St();var r=rn(n,null,[t._props||$t({}),i],t,"setup");if(Et(),ft(),u(r))e.render=r;else if(c(r))if(t._setupState=r,r.__sfc){var o=t._setupProxy={};for(var s in r)"__sfc"!==s&&Ht(o,r,s)}else for(var s in r)q(s)||Ht(t,r,s)}}(t),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?R:I(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;e=t._data=u(e)?function(t,e){St();try{return t.call(e,e)}catch(t){return nn(t,e,"data()"),{}}finally{Et()}}(e,t):e||{},h(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&S(i,o)||q(o)||En(t,"_data",o)}var s=Pt(e);s&&s.vmCount++}(t);else{var n=Pt(t._data={});n&&n.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=at();for(var r in e){var o=e[r],s=u(o)?o:o.get;0,i||(n[r]=new _n(t,s||R,R,kn)),r in t||Cn(t,r,o)}}(t,e.computed),e.watch&&e.watch!==rt&&function(t,e){for(var n in e){var i=e[n];if(r(i))for(var o=0;o<i.length;o++)In(t,n,i[o]);else In(t,n,i)}}(t,e.watch)}var kn={lazy:!0};function Cn(t,e,n){var i=!at();u(n)?(Sn.get=i?An(e):Ln(n),Sn.set=R):(Sn.get=n.get?i&&!1!==n.cache?An(e):Ln(n.get):R,Sn.set=n.set||R),Object.defineProperty(t,e,Sn)}function An(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Tt.target&&e.depend(),e.value}}function Ln(t){return function(){return t.call(this,this)}}function In(t,e,n,i){return h(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}function On(t,e){if(t){for(var n=Object.create(null),i=dt?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var s=t[o].from;if(s in e._provided)n[o]=e._provided[s];else if("default"in t[o]){var a=t[o].default;n[o]=u(a)?a.call(e):a}else 0}}return n}}var Dn=0;function Pn(t){var e=t.options;if(t.super){var n=Pn(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&D(t.extendOptions,i),(e=t.options=Yn(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Rn(t,e,n,o,s){var l,u=this,c=s.options;S(o,"_uid")?(l=Object.create(o))._original=o:(l=o,o=o._original);var d=a(c._compiled),h=!d;this.data=t,this.props=e,this.children=n,this.parent=o,this.listeners=t.on||i,this.injections=On(c.inject,o),this.slots=function(){return u.$slots||be(o,t.scopedSlots,u.$slots=ge(n,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return be(o,t.scopedSlots,this.slots())}}),d&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=be(o,t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,i){var s=Jt(l,t,e,n,i,h);return s&&!r(s)&&(s.fnScopeId=c._scopeId,s.fnContext=o),s}:this._c=function(t,e,n,i){return Jt(l,t,e,n,i,h)}}function Mn(t,e,n,i,r){var o=vt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Nn(t,e){for(var n in e)t[k(n)]=e[n]}function Fn(t){return t.name||t.__name||t._componentTag}me(Rn.prototype);var $n={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;$n.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;s(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Re)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){var s=r.data.scopedSlots,a=t.$scopedSlots,l=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),u=!!(o||t.$options._renderChildren||l),c=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o;var d=r.data.attrs||i;t._attrsProxy&&Se(t._attrsProxy,d,c.data&&c.data.attrs||i,t,"$attrs")&&(u=!0),t.$attrs=d,n=n||i;var h=t.$options._parentListeners;if(t._listenersProxy&&Se(t._listenersProxy,n,h||i,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,Pe(t,n,h),e&&t.$options.props){It(!1);for(var f=t._props,p=t.$options._propKeys||[],m=0;m<p.length;m++){var g=p[m],v=t.$options.props;f[g]=Xn(g,v,e,t)}It(!0),t.$options.propsData=e}u&&(t.$slots=ge(o,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,je(i,"mounted")),t.data.keepAlive&&(n._isMounted?((e=i)._inactive=!1,Be.push(e)):Fe(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?$e(e,!0):e.$destroy())}},jn=Object.keys($n);function Un(t,e,n,l,u){if(!o(t)){var d=n.$options._base;if(c(t)&&(t=d.extend(t)),"function"==typeof t){var h;if(o(t.cid)&&(t=function(t,e){if(a(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var n=Ce;if(n&&s(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),a(t.loading)&&s(t.loadingComp))return t.loadingComp;if(n&&!s(t.owners)){var i=t.owners=[n],r=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return T(i,n)}));var d=function(t){for(var e=0,n=i.length;e<n;e++)i[e].$forceUpdate();t&&(i.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=j((function(n){t.resolved=Ae(n,e),r?i.length=0:d(!0)})),f=j((function(e){s(t.errorComp)&&(t.error=!0,d(!0))})),p=t(h,f);return c(p)&&(m(p)?o(t.resolved)&&p.then(h,f):m(p.component)&&(p.component.then(h,f),s(p.error)&&(t.errorComp=Ae(p.error,e)),s(p.loading)&&(t.loadingComp=Ae(p.loading,e),0===p.delay?t.loading=!0:l=setTimeout((function(){l=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,d(!1))}),p.delay||200)),s(p.timeout)&&(u=setTimeout((function(){u=null,o(t.resolved)&&f(null)}),p.timeout)))),r=!1,t.loading?t.loadingComp:t.resolved}}(h=t,d),void 0===t))return function(t,e,n,i,r){var o=mt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}(h,e,n,l,u);e=e||{},Pn(t),s(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[i],l=e.model.callback;s(a)?(r(a)?-1===a.indexOf(l):a!==l)&&(o[i]=[l].concat(a)):o[i]=l}(t.options,e);var f=function(t,e,n){var i=e.options.props;if(!o(i)){var r={},a=t.attrs,l=t.props;if(s(a)||s(l))for(var u in i){var c=L(u);Gt(r,l,u,c,!0)||Gt(r,a,u,c,!1)}return r}}(e,t);if(a(t.options.functional))return function(t,e,n,o,a){var l=t.options,u={},c=l.props;if(s(c))for(var d in c)u[d]=Xn(d,c,e||i);else s(n.attrs)&&Nn(u,n.attrs),s(n.props)&&Nn(u,n.props);var h=new Rn(n,u,a,o,t),f=l.render.call(null,h._c,h);if(f instanceof pt)return Mn(f,n,h.parent,l);if(r(f)){for(var p=Kt(f)||[],m=new Array(p.length),g=0;g<p.length;g++)m[g]=Mn(p[g],n,h.parent,l);return m}}(t,f,e,n,l);var p=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var g=e.slot;e={},g&&(e.slot=g)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<jn.length;n++){var i=jn[n],r=e[i],o=$n[i];r===o||r&&r._merged||(e[i]=r?Bn(o,r):o)}}(e);var v=Fn(t.options)||u;return new pt("vue-component-".concat(t.cid).concat(v?"-".concat(v):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:p,tag:u,children:l},h)}}}function Bn(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}var Hn=R,Vn=z.optionMergeStrategies;function zn(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var i,r,o,s=dt?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)"__ob__"!==(i=s[a])&&(r=t[i],o=e[i],n&&S(t,i)?r!==o&&h(r)&&h(o)&&zn(r,o):Mt(t,i,o));return t}function Wn(t,e,n){return n?function(){var i=u(e)?e.call(n,n):e,r=u(t)?t.call(n,n):t;return i?zn(i,r):r}:e?t?function(){return zn(u(e)?e.call(this,this):e,u(t)?t.call(this,this):t)}:e:t}function qn(t,e){var n=e?t?t.concat(e):r(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Gn(t,e,n,i){var r=Object.create(t||null);return e?D(r,e):r}Vn.data=function(t,e,n){return n?Wn(t,e,n):e&&"function"!=typeof e?t:Wn(t,e)},V.forEach((function(t){Vn[t]=qn})),H.forEach((function(t){Vn[t+"s"]=Gn})),Vn.watch=function(t,e,n,i){if(t===rt&&(t=void 0),e===rt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var s in D(o,t),e){var a=o[s],l=e[s];a&&!r(a)&&(a=[a]),o[s]=a?a.concat(l):r(l)?l:[l]}return o},Vn.props=Vn.methods=Vn.inject=Vn.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return D(r,t),e&&D(r,e),r},Vn.provide=function(t,e){return t?function(){var n=Object.create(null);return zn(n,u(t)?t.call(this):t),e&&zn(n,u(e)?e.call(this):e,!1),n}:e};var Kn=function(t,e){return void 0===e?t:e};function Yn(t,e,n){if(u(e)&&(e=e.options),function(t,e){var n=t.props;if(n){var i,o,s={};if(r(n))for(i=n.length;i--;)"string"==typeof(o=n[i])&&(s[k(o)]={type:null});else if(h(n))for(var a in n)o=n[a],s[k(a)]=h(o)?o:{type:o};t.props=s}}(e),function(t,e){var n=t.inject;if(n){var i=t.inject={};if(r(n))for(var o=0;o<n.length;o++)i[n[o]]={from:n[o]};else if(h(n))for(var s in n){var a=n[s];i[s]=h(a)?D({from:s},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];u(i)&&(e[n]={bind:i,update:i})}}(e),!e._base&&(e.extends&&(t=Yn(t,e.extends,n)),e.mixins))for(var i=0,o=e.mixins.length;i<o;i++)t=Yn(t,e.mixins[i],n);var s,a={};for(s in t)l(s);for(s in e)S(t,s)||l(s);function l(i){var r=Vn[i]||Kn;a[i]=r(t[i],e[i],n,i)}return a}function Zn(t,e,n,i){if("string"==typeof n){var r=t[e];if(S(r,n))return r[n];var o=k(n);if(S(r,o))return r[o];var s=C(o);return S(r,s)?r[s]:r[n]||r[o]||r[s]}}function Xn(t,e,n,i){var r=e[t],o=!S(n,t),s=n[t],a=ei(Boolean,r.type);if(a>-1)if(o&&!S(r,"default"))s=!1;else if(""===s||s===L(t)){var l=ei(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(!S(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return u(i)&&"Function"!==Jn(e.type)?i.call(t):i}(i,r,t);var c=Lt;It(!0),Pt(s),It(c)}return s}var Qn=/^\s*function (\w+)/;function Jn(t){var e=t&&t.toString().match(Qn);return e?e[1]:""}function ti(t,e){return Jn(t)===Jn(e)}function ei(t,e){if(!r(e))return ti(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(ti(e[n],t))return n;return-1}function ni(t){this._init(t)}function ii(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=Fn(t)||Fn(n.options);var s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Yn(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)En(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)Cn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,H.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=D({},s.options),r[i]=s,s}}function ri(t){return t&&(Fn(t.Ctor.options)||t.tag)}function oi(t,e){return r(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function si(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var s=n[o];if(s){var a=s.name;a&&!e(a)&&ai(n,o,i,r)}}}function ai(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,T(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Dn++,e._isVue=!0,e.__v_skip=!0,e._scope=new tn(!0),e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Yn(Pn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Pe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=ge(e._renderChildren,r),t.$scopedSlots=n?be(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,i,r){return Jt(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Jt(t,e,n,i,r,!0)};var o=n&&n.data;Rt(t,"$attrs",o&&o.attrs||i,null,!0),Rt(t,"$listeners",e._parentListeners||i,null,!0)}(e),je(e,"beforeCreate",void 0,!1),function(t){var e=On(t.$options.inject,t);e&&(It(!1),Object.keys(e).forEach((function(n){Rt(t,n,e[n])})),It(!0))}(e),xn(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!c(n))return;for(var i=en(t),r=dt?Reflect.ownKeys(n):Object.keys(n),o=0;o<r.length;o++){var s=r[o];Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))}}}(e),je(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(ni),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Mt,t.prototype.$delete=Nt,t.prototype.$watch=function(t,e,n){var i=this;if(h(e))return In(i,t,e,n);(n=n||{}).user=!0;var r=new _n(i,t,e,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');St(),rn(e,i,[r.value],i,o),Et()}return function(){r.teardown()}}}(ni),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(r(t))for(var o=0,s=t.length;o<s;o++)i.$on(t[o],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(r(t)){for(var i=0,o=t.length;i<o;i++)n.$off(t[i],e);return n}var s,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var l=a.length;l--;)if((s=a[l])===e||s.fn===e){a.splice(l,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;for(var i=O(arguments,1),r='event handler for "'.concat(t,'"'),o=0,s=n.length;o<s;o++)rn(n[o],e,i,e,r)}return e}}(ni),function(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=Me(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var s=n;s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode;)s.$parent.$el=s.$el,s=s.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){je(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||T(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),je(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(ni),function(t){me(t.prototype),t.prototype.$nextTick=function(t){return gn(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,o=n._parentVnode;o&&e._isMounted&&(e.$scopedSlots=be(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&xe(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;try{ft(e),Ce=e,t=i.call(e._renderProxy,e.$createElement)}catch(n){nn(n,e,"render"),t=e._vnode}finally{Ce=null,ft()}return r(t)&&1===t.length&&(t=t[0]),t instanceof pt||(t=mt()),t.parent=o,t}}(ni);var li=[String,RegExp,Array],ui={name:"keep-alive",abstract:!0,props:{include:li,exclude:li,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,i=t.vnodeToCache,r=t.keyToCache;if(i){var o=i.tag,s=i.componentInstance,a=i.componentOptions;e[r]={name:ri(a),tag:o,componentInstance:s},n.push(r),this.max&&n.length>parseInt(this.max)&&ai(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ai(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){si(t,(function(t){return oi(e,t)}))})),this.$watch("exclude",(function(e){si(t,(function(t){return!oi(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Le(t),n=e&&e.componentOptions;if(n){var i=ri(n),r=this.include,o=this.exclude;if(r&&(!i||!oi(r,i))||o&&i&&oi(o,i))return e;var s=this.cache,a=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;s[l]?(e.componentInstance=s[l].componentInstance,T(a,l),a.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}},ci={KeepAlive:ui};!function(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:Hn,extend:D,mergeOptions:Yn,defineReactive:Rt},t.set=Mt,t.delete=Nt,t.nextTick=gn,t.observable=function(t){return Pt(t),t},t.options=Object.create(null),H.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,D(t.options.components,ci),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Yn(this.options,t),this}}(t),ii(t),function(t){H.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&h(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ni),Object.defineProperty(ni.prototype,"$isServer",{get:at}),Object.defineProperty(ni.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ni,"FunctionalRenderContext",{value:Rn}),ni.version="2.7.14";var di=y("style,class"),hi=y("input,textarea,option,select,progress"),fi=function(t,e,n){return"value"===n&&hi(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},pi=y("contenteditable,draggable,spellcheck"),mi=y("events,caret,typing,plaintext-only"),gi=function(t,e){return Ti(e)||"false"===e?"false":"contenteditable"===t&&mi(e)?e:"true"},vi=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),yi="http://www.w3.org/1999/xlink",bi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},wi=function(t){return bi(t)?t.slice(6,t.length):""},Ti=function(t){return null==t||!1===t};function _i(t){for(var e=t.data,n=t,i=t;s(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=Si(i.data,e));for(;s(n=n.parent);)n&&n.data&&(e=Si(e,n.data));return function(t,e){if(s(t)||s(e))return Ei(t,xi(e));return""}(e.staticClass,e.class)}function Si(t,e){return{staticClass:Ei(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function Ei(t,e){return t?e?t+" "+e:t:e||""}function xi(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i<r;i++)s(e=xi(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):c(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var ki={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ci=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ai=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Li=function(t){return Ci(t)||Ai(t)};function Ii(t){return Ai(t)?"svg":"math"===t?"math":void 0}var Oi=Object.create(null);var Di=y("text,number,password,search,email,tel,url");function Pi(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var Ri=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(ki[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Mi={create:function(t,e){Ni(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ni(t,!0),Ni(e))},destroy:function(t){Ni(t,!0)}};function Ni(t,e){var n=t.data.ref;if(s(n)){var i=t.context,o=t.componentInstance||t.elm,a=e?null:o,l=e?void 0:o;if(u(n))rn(n,i,[a],i,"template ref function");else{var c=t.data.refInFor,d="string"==typeof n||"number"==typeof n,h=Bt(n),f=i.$refs;if(d||h)if(c){var p=d?f[n]:n.value;e?r(p)&&T(p,o):r(p)?p.includes(o)||p.push(o):d?(f[n]=[o],Fi(i,n,f[n])):n.value=[o]}else if(d){if(e&&f[n]!==o)return;f[n]=l,Fi(i,n,a)}else if(h){if(e&&n.value!==o)return;n.value=a}else 0}}}function Fi(t,e,n){var i=t._setupState;i&&S(i,e)&&(Bt(i[e])?i[e].value=n:i[e]=n)}var $i=new pt("",{},[]),ji=["create","activate","update","remove","destroy"];function Ui(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,i=s(n=t.data)&&s(n=n.attrs)&&n.type,r=s(n=e.data)&&s(n=n.attrs)&&n.type;return i===r||Di(i)&&Di(r)}(t,e)||a(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function Bi(t,e,n){var i,r,o={};for(i=e;i<=n;++i)s(r=t[i].key)&&(o[r]=i);return o}var Hi={create:Vi,update:Vi,destroy:function(t){Vi(t,$i)}};function Vi(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,i,r,o=t===$i,s=e===$i,a=Wi(t.data.directives,t.context),l=Wi(e.data.directives,e.context),u=[],c=[];for(n in l)i=a[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Gi(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(Gi(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var d=function(){for(var n=0;n<u.length;n++)Gi(u[n],"inserted",e,t)};o?qt(e,"insert",d):d()}c.length&&qt(e,"postpatch",(function(){for(var n=0;n<c.length;n++)Gi(c[n],"componentUpdated",e,t)}));if(!o)for(n in a)l[n]||Gi(a[n],"unbind",t,t,s)}(t,e)}var zi=Object.create(null);function Wi(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++){if((i=t[n]).modifiers||(i.modifiers=zi),r[qi(i)]=i,e._setupState&&e._setupState.__sfc){var o=i.def||Zn(e,"_setupState","v-"+i.name);i.def="function"==typeof o?{bind:o,update:o}:o}i.def=i.def||Zn(e.$options,"directives",i.name)}return r}function qi(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function Gi(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(i){nn(i,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var Ki=[Mi,Hi];function Yi(t,e){var n=e.componentOptions;if(!(s(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var i,r,l=e.elm,u=t.data.attrs||{},c=e.data.attrs||{};for(i in(s(c.__ob__)||a(c._v_attr_proxy))&&(c=e.data.attrs=D({},c)),c)r=c[i],u[i]!==r&&Zi(l,i,r,e.data.pre);for(i in(Q||tt)&&c.value!==u.value&&Zi(l,"value",c.value),u)o(c[i])&&(bi(i)?l.removeAttributeNS(yi,wi(i)):pi(i)||l.removeAttribute(i))}}function Zi(t,e,n,i){i||t.tagName.indexOf("-")>-1?Xi(t,e,n):vi(e)?Ti(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):pi(e)?t.setAttribute(e,gi(e,n)):bi(e)?Ti(n)?t.removeAttributeNS(yi,wi(e)):t.setAttributeNS(yi,e,n):Xi(t,e,n)}function Xi(t,e,n){if(Ti(n))t.removeAttribute(e);else{if(Q&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Qi={create:Yi,update:Yi};function Ji(t,e){var n=e.elm,i=e.data,r=t.data;if(!(o(i.staticClass)&&o(i.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var a=_i(e),l=n._transitionClasses;s(l)&&(a=Ei(a,xi(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var tr,er,nr,ir,rr,or,sr={create:Ji,update:Ji},ar=/[\w).+\-_$\]]/;function lr(t){var e,n,i,r,o,s=!1,a=!1,l=!1,u=!1,c=0,d=0,h=0,f=0;for(i=0;i<t.length;i++)if(n=e,e=t.charCodeAt(i),s)39===e&&92!==n&&(s=!1);else if(a)34===e&&92!==n&&(a=!1);else if(l)96===e&&92!==n&&(l=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(i+1)||124===t.charCodeAt(i-1)||c||d||h){switch(e){case 34:a=!0;break;case 39:s=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:c++;break;case 125:c--}if(47===e){for(var p=i-1,m=void 0;p>=0&&" "===(m=t.charAt(p));p--);m&&ar.test(m)||(u=!0)}}else void 0===r?(f=i+1,r=t.slice(0,i).trim()):g();function g(){(o||(o=[])).push(t.slice(f,i).trim()),f=i+1}if(void 0===r?r=t.slice(0,i).trim():0!==f&&g(),o)for(i=0;i<o.length;i++)r=ur(r,o[i]);return r}function ur(t,e){var n=e.indexOf("(");if(n<0)return'_f("'.concat(e,'")(').concat(t,")");var i=e.slice(0,n),r=e.slice(n+1);return'_f("'.concat(i,'")(').concat(t).concat(")"!==r?","+r:r)}function cr(t,e){}function dr(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function hr(t,e,n,i,r){(t.props||(t.props=[])).push(Tr({name:e,value:n,dynamic:r},i)),t.plain=!1}function fr(t,e,n,i,r){(r?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Tr({name:e,value:n,dynamic:r},i)),t.plain=!1}function pr(t,e,n,i){t.attrsMap[e]=n,t.attrsList.push(Tr({name:e,value:n},i))}function mr(t,e,n,i,r,o,s,a){(t.directives||(t.directives=[])).push(Tr({name:e,rawName:n,value:i,arg:r,isDynamicArg:o,modifiers:s},a)),t.plain=!1}function gr(t,e,n){return n?"_p(".concat(e,',"').concat(t,'")'):t+e}function vr(t,e,n,r,o,s,a,l){var u;(r=r||i).right?l?e="(".concat(e,")==='click'?'contextmenu':(").concat(e,")"):"click"===e&&(e="contextmenu",delete r.right):r.middle&&(l?e="(".concat(e,")==='click'?'mouseup':(").concat(e,")"):"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=gr("!",e,l)),r.once&&(delete r.once,e=gr("~",e,l)),r.passive&&(delete r.passive,e=gr("&",e,l)),r.native?(delete r.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var c=Tr({value:n.trim(),dynamic:l},a);r!==i&&(c.modifiers=r);var d=u[e];Array.isArray(d)?o?d.unshift(c):d.push(c):u[e]=d?o?[c,d]:[d,c]:c,t.plain=!1}function yr(t,e,n){var i=br(t,":"+e)||br(t,"v-bind:"+e);if(null!=i)return lr(i);if(!1!==n){var r=br(t,e);if(null!=r)return JSON.stringify(r)}}function br(t,e,n){var i;if(null!=(i=t.attrsMap[e]))for(var r=t.attrsList,o=0,s=r.length;o<s;o++)if(r[o].name===e){r.splice(o,1);break}return n&&delete t.attrsMap[e],i}function wr(t,e){for(var n=t.attrsList,i=0,r=n.length;i<r;i++){var o=n[i];if(e.test(o.name))return n.splice(i,1),o}}function Tr(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function _r(t,e,n){var i=n||{},r=i.number,o="$$v",s=o;i.trim&&(s="(typeof ".concat(o," === 'string'")+"? ".concat(o,".trim()")+": ".concat(o,")")),r&&(s="_n(".concat(s,")"));var a=Sr(e,s);t.model={value:"(".concat(e,")"),expression:JSON.stringify(e),callback:"function (".concat(o,") {").concat(a,"}")}}function Sr(t,e){var n=function(t){if(t=t.trim(),tr=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<tr-1)return(ir=t.lastIndexOf("."))>-1?{exp:t.slice(0,ir),key:'"'+t.slice(ir+1)+'"'}:{exp:t,key:null};er=t,ir=rr=or=0;for(;!xr();)kr(nr=Er())?Ar(nr):91===nr&&Cr(nr);return{exp:t.slice(0,rr),key:t.slice(rr+1,or)}}(t);return null===n.key?"".concat(t,"=").concat(e):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(e,")")}function Er(){return er.charCodeAt(++ir)}function xr(){return ir>=tr}function kr(t){return 34===t||39===t}function Cr(t){var e=1;for(rr=ir;!xr();)if(kr(t=Er()))Ar(t);else if(91===t&&e++,93===t&&e--,0===e){or=ir;break}}function Ar(t){for(var e=t;!xr()&&(t=Er())!==e;);}var Lr,Ir="__r",Or="__c";function Dr(t,e,n){var i=Lr;return function r(){null!==e.apply(null,arguments)&&Mr(t,r,n,i)}}var Pr=ln&&!(it&&Number(it[1])<=53);function Rr(t,e,n,i){if(Pr){var r=qe,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Lr.addEventListener(t,e,ot?{capture:n,passive:i}:n)}function Mr(t,e,n,i){(i||Lr).removeEventListener(t,e._wrapper||e,n)}function Nr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Lr=e.elm||t.elm,function(t){if(s(t[Ir])){var e=Q?"change":"input";t[e]=[].concat(t[Ir],t[e]||[]),delete t[Ir]}s(t[Or])&&(t.change=[].concat(t[Or],t.change||[]),delete t[Or])}(n),Wt(n,i,Rr,Mr,Dr,e.context),Lr=void 0}}var Fr,$r={create:Nr,update:Nr,destroy:function(t){return Nr(t,$i)}};function jr(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,i,r=e.elm,l=t.data.domProps||{},u=e.data.domProps||{};for(n in(s(u.__ob__)||a(u._v_attr_proxy))&&(u=e.data.domProps=D({},u)),l)n in u||(r[n]="");for(n in u){if(i=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var c=o(i)?"":String(i);Ur(r,c)&&(r.value=c)}else if("innerHTML"===n&&Ai(r.tagName)&&o(r.innerHTML)){(Fr=Fr||document.createElement("div")).innerHTML="<svg>".concat(i,"</svg>");for(var d=Fr.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;d.firstChild;)r.appendChild(d.firstChild)}else if(i!==l[n])try{r[n]=i}catch(t){}}}}function Ur(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(s(i)){if(i.number)return v(n)!==v(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Br={create:jr,update:jr},Hr=E((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function Vr(t){var e=zr(t.style);return t.staticStyle?D(t.staticStyle,e):e}function zr(t){return Array.isArray(t)?P(t):"string"==typeof t?Hr(t):t}var Wr,qr=/^--/,Gr=/\s*!important$/,Kr=function(t,e,n){if(qr.test(e))t.style.setProperty(e,n);else if(Gr.test(n))t.style.setProperty(L(e),n.replace(Gr,""),"important");else{var i=Zr(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},Yr=["Webkit","Moz","ms"],Zr=E((function(t){if(Wr=Wr||document.createElement("div").style,"filter"!==(t=k(t))&&t in Wr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Yr.length;n++){var i=Yr[n]+e;if(i in Wr)return i}}));function Xr(t,e){var n=e.data,i=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(i.staticStyle)&&o(i.style))){var r,a,l=e.elm,u=i.staticStyle,c=i.normalizedStyle||i.style||{},d=u||c,h=zr(e.data.style)||{};e.data.normalizedStyle=s(h.__ob__)?D({},h):h;var f=function(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=Vr(r.data))&&D(i,n);(n=Vr(t.data))&&D(i,n);for(var o=t;o=o.parent;)o.data&&(n=Vr(o.data))&&D(i,n);return i}(e,!0);for(a in d)o(f[a])&&Kr(l,a,"");for(a in f)(r=f[a])!==d[a]&&Kr(l,a,null==r?"":r)}}var Qr={create:Xr,update:Xr},Jr=/\s+/;function to(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Jr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function eo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Jr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function no(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&D(e,io(t.name||"v")),D(e,t),e}return"string"==typeof t?io(t):void 0}}var io=E((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),ro=Z&&!J,oo="transition",so="animation",ao="transition",lo="transitionend",uo="animation",co="animationend";ro&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ao="WebkitTransition",lo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(uo="WebkitAnimation",co="webkitAnimationEnd"));var ho=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function fo(t){ho((function(){ho(t)}))}function po(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),to(t,e))}function mo(t,e){t._transitionClasses&&T(t._transitionClasses,e),eo(t,e)}function go(t,e,n){var i=yo(t,e),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a=r===oo?lo:co,l=0,u=function(){t.removeEventListener(a,c),n()},c=function(e){e.target===t&&++l>=s&&u()};setTimeout((function(){l<s&&u()}),o+1),t.addEventListener(a,c)}var vo=/\b(transform|all)(,|$)/;function yo(t,e){var n,i=window.getComputedStyle(t),r=(i[ao+"Delay"]||"").split(", "),o=(i[ao+"Duration"]||"").split(", "),s=bo(r,o),a=(i[uo+"Delay"]||"").split(", "),l=(i[uo+"Duration"]||"").split(", "),u=bo(a,l),c=0,d=0;return e===oo?s>0&&(n=oo,c=s,d=o.length):e===so?u>0&&(n=so,c=u,d=l.length):d=(n=(c=Math.max(s,u))>0?s>u?oo:so:null)?n===oo?o.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:n===oo&&vo.test(i[ao+"Property"])}}function bo(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return wo(e)+wo(t[n])})))}function wo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function To(t,e){var n=t.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=no(t.data.transition);if(!o(i)&&!s(n._enterCb)&&1===n.nodeType){for(var r=i.css,a=i.type,l=i.enterClass,d=i.enterToClass,h=i.enterActiveClass,f=i.appearClass,p=i.appearToClass,m=i.appearActiveClass,g=i.beforeEnter,y=i.enter,b=i.afterEnter,w=i.enterCancelled,T=i.beforeAppear,_=i.appear,S=i.afterAppear,E=i.appearCancelled,x=i.duration,k=Re,C=Re.$vnode;C&&C.parent;)k=C.context,C=C.parent;var A=!k._isMounted||!t.isRootInsert;if(!A||_||""===_){var L=A&&f?f:l,I=A&&m?m:h,O=A&&p?p:d,D=A&&T||g,P=A&&u(_)?_:y,R=A&&S||b,M=A&&E||w,N=v(c(x)?x.enter:x);0;var F=!1!==r&&!J,$=Eo(P),U=n._enterCb=j((function(){F&&(mo(n,O),mo(n,I)),U.cancelled?(F&&mo(n,L),M&&M(n)):R&&R(n),n._enterCb=null}));t.data.show||qt(t,"insert",(function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),P&&P(n,U)})),D&&D(n),F&&(po(n,L),po(n,I),fo((function(){mo(n,L),U.cancelled||(po(n,O),$||(So(N)?setTimeout(U,N):go(n,a,U)))}))),t.data.show&&(e&&e(),P&&P(n,U)),F||$||U()}}}function _o(t,e){var n=t.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=no(t.data.transition);if(o(i)||1!==n.nodeType)return e();if(!s(n._leaveCb)){var r=i.css,a=i.type,l=i.leaveClass,u=i.leaveToClass,d=i.leaveActiveClass,h=i.beforeLeave,f=i.leave,p=i.afterLeave,m=i.leaveCancelled,g=i.delayLeave,y=i.duration,b=!1!==r&&!J,w=Eo(f),T=v(c(y)?y.leave:y);0;var _=n._leaveCb=j((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(mo(n,u),mo(n,d)),_.cancelled?(b&&mo(n,l),m&&m(n)):(e(),p&&p(n)),n._leaveCb=null}));g?g(S):S()}function S(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),b&&(po(n,l),po(n,d),fo((function(){mo(n,l),_.cancelled||(po(n,u),w||(So(T)?setTimeout(_,T):go(n,a,_)))}))),f&&f(n,_),b||w||_())}}function So(t){return"number"==typeof t&&!isNaN(t)}function Eo(t){if(o(t))return!1;var e=t.fns;return s(e)?Eo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function xo(t,e){!0!==e.data.show&&To(e)}var ko=function(t){var e,n,i={},u=t.modules,c=t.nodeOps;for(e=0;e<ji.length;++e)for(i[ji[e]]=[],n=0;n<u.length;++n)s(u[n][ji[e]])&&i[ji[e]].push(u[n][ji[e]]);function d(t){var e=c.parentNode(t);s(e)&&c.removeChild(e,t)}function h(t,e,n,r,o,l,u){if(s(t.elm)&&s(l)&&(t=l[u]=vt(t)),t.isRootInsert=!o,!function(t,e,n,r){var o=t.data;if(s(o)){var l=s(t.componentInstance)&&o.keepAlive;if(s(o=o.hook)&&s(o=o.init)&&o(t,!1),s(t.componentInstance))return f(t,e),p(n,t.elm,r),a(l)&&function(t,e,n,r){var o,a=t;for(;a.componentInstance;)if(s(o=(a=a.componentInstance._vnode).data)&&s(o=o.transition)){for(o=0;o<i.activate.length;++o)i.activate[o]($i,a);e.push(a);break}p(n,t.elm,r)}(t,e,n,r),!0}}(t,e,n,r)){var d=t.data,h=t.children,g=t.tag;s(g)?(t.elm=t.ns?c.createElementNS(t.ns,g):c.createElement(g,t),b(t),m(t,h,e),s(d)&&v(t,e),p(n,t.elm,r)):a(t.isComment)?(t.elm=c.createComment(t.text),p(n,t.elm,r)):(t.elm=c.createTextNode(t.text),p(n,t.elm,r))}}function f(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(v(t,e),b(t)):(Ni(t),e.push(t))}function p(t,e,n){s(t)&&(s(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function m(t,e,n){if(r(e)){0;for(var i=0;i<e.length;++i)h(e[i],n,t.elm,null,!0,e,i)}else l(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return s(t.tag)}function v(t,n){for(var r=0;r<i.create.length;++r)i.create[r]($i,t);s(e=t.data.hook)&&(s(e.create)&&e.create($i,t),s(e.insert)&&n.push(t))}function b(t){var e;if(s(e=t.fnScopeId))c.setStyleScope(t.elm,e);else for(var n=t;n;)s(e=n.context)&&s(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent;s(e=Re)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function w(t,e,n,i,r,o){for(;i<=r;++i)h(n[i],o,t,e,!1,n,i)}function T(t){var e,n,r=t.data;if(s(r))for(s(e=r.hook)&&s(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(s(e=t.children))for(n=0;n<t.children.length;++n)T(t.children[n])}function _(t,e,n){for(;e<=n;++e){var i=t[e];s(i)&&(s(i.tag)?(S(i),T(i)):d(i.elm))}}function S(t,e){if(s(e)||s(t.data)){var n,r=i.remove.length+1;for(s(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&d(t)}return n.listeners=e,n}(t.elm,r),s(n=t.componentInstance)&&s(n=n._vnode)&&s(n.data)&&S(n,e),n=0;n<i.remove.length;++n)i.remove[n](t,e);s(n=t.data.hook)&&s(n=n.remove)?n(t,e):e()}else d(t.elm)}function E(t,e,n,i){for(var r=n;r<i;r++){var o=e[r];if(s(o)&&Ui(t,o))return r}}function x(t,e,n,r,l,u){if(t!==e){s(e.elm)&&s(r)&&(e=r[l]=vt(e));var d=e.elm=t.elm;if(a(t.isAsyncPlaceholder))s(e.asyncFactory.resolved)?A(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;s(p)&&s(f=p.hook)&&s(f=f.prepatch)&&f(t,e);var m=t.children,v=e.children;if(s(p)&&g(e)){for(f=0;f<i.update.length;++f)i.update[f](t,e);s(f=p.hook)&&s(f=f.update)&&f(t,e)}o(e.text)?s(m)&&s(v)?m!==v&&function(t,e,n,i,r){var a,l,u,d=0,f=0,p=e.length-1,m=e[0],g=e[p],v=n.length-1,y=n[0],b=n[v],T=!r;for(;d<=p&&f<=v;)o(m)?m=e[++d]:o(g)?g=e[--p]:Ui(m,y)?(x(m,y,i,n,f),m=e[++d],y=n[++f]):Ui(g,b)?(x(g,b,i,n,v),g=e[--p],b=n[--v]):Ui(m,b)?(x(m,b,i,n,v),T&&c.insertBefore(t,m.elm,c.nextSibling(g.elm)),m=e[++d],b=n[--v]):Ui(g,y)?(x(g,y,i,n,f),T&&c.insertBefore(t,g.elm,m.elm),g=e[--p],y=n[++f]):(o(a)&&(a=Bi(e,d,p)),o(l=s(y.key)?a[y.key]:E(y,e,d,p))?h(y,i,t,m.elm,!1,n,f):Ui(u=e[l],y)?(x(u,y,i,n,f),e[l]=void 0,T&&c.insertBefore(t,u.elm,m.elm)):h(y,i,t,m.elm,!1,n,f),y=n[++f]);d>p?w(t,o(n[v+1])?null:n[v+1].elm,n,f,v,i):f>v&&_(e,d,p)}(d,m,v,n,u):s(v)?(s(t.text)&&c.setTextContent(d,""),w(d,null,v,0,v.length-1,n)):s(m)?_(m,0,m.length-1):s(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),s(p)&&s(f=p.hook)&&s(f=f.postpatch)&&f(t,e)}}}function k(t,e,n){if(a(n)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var C=y("attrs,class,staticClass,staticStyle,key");function A(t,e,n,i){var r,o=e.tag,l=e.data,u=e.children;if(i=i||l&&l.pre,e.elm=t,a(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(l)&&(s(r=l.hook)&&s(r=r.init)&&r(e,!0),s(r=e.componentInstance)))return f(e,n),!0;if(s(o)){if(s(u))if(t.hasChildNodes())if(s(r=l)&&s(r=r.domProps)&&s(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var c=!0,d=t.firstChild,h=0;h<u.length;h++){if(!d||!A(d,u[h],n,i)){c=!1;break}d=d.nextSibling}if(!c||d)return!1}else m(e,u,n);if(s(l)){var p=!1;for(var g in l)if(!C(g)){p=!0,v(e,n);break}!p&&l.class&&bn(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,r){if(!o(e)){var l,u=!1,d=[];if(o(t))u=!0,h(e,d);else{var f=s(t.nodeType);if(!f&&Ui(t,e))x(t,e,d,null,null,r);else{if(f){if(1===t.nodeType&&t.hasAttribute(B)&&(t.removeAttribute(B),n=!0),a(n)&&A(t,e,d))return k(e,d,!0),t;l=t,t=new pt(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=t.elm,m=c.parentNode(p);if(h(e,d,p._leaveCb?null:m,c.nextSibling(p)),s(e.parent))for(var v=e.parent,y=g(e);v;){for(var b=0;b<i.destroy.length;++b)i.destroy[b](v);if(v.elm=e.elm,y){for(var w=0;w<i.create.length;++w)i.create[w]($i,v);var S=v.data.hook.insert;if(S.merged)for(var E=1;E<S.fns.length;E++)S.fns[E]()}else Ni(v);v=v.parent}s(m)?_([t],0,0):s(t.tag)&&T(t)}}return k(e,d,u),e.elm}s(t)&&T(t)}}({nodeOps:Ri,modules:[Qi,sr,$r,Br,Qr,Z?{create:xo,activate:xo,remove:function(t,e){!0!==t.data.show?_o(t,e):e()}}:{}].concat(Ki)});J&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ro(t,"input")}));var Co={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?qt(n,"postpatch",(function(){Co.componentUpdated(t,e,n)})):Ao(t,e,n.context),t._vOptions=[].map.call(t.options,Oo)):("textarea"===n.tag||Di(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Do),t.addEventListener("compositionend",Po),t.addEventListener("change",Po),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ao(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Oo);if(r.some((function(t,e){return!F(t,i[e])})))(t.multiple?e.value.some((function(t){return Io(t,r)})):e.value!==e.oldValue&&Io(e.value,r))&&Ro(t,"change")}}};function Ao(t,e,n){Lo(t,e,n),(Q||tt)&&setTimeout((function(){Lo(t,e,n)}),0)}function Lo(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],r)o=$(i,Oo(s))>-1,s.selected!==o&&(s.selected=o);else if(F(Oo(s),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function Io(t,e){return e.every((function(e){return!F(e,t)}))}function Oo(t){return"_value"in t?t._value:t.value}function Do(t){t.target.composing=!0}function Po(t){t.target.composing&&(t.target.composing=!1,Ro(t.target,"input"))}function Ro(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Mo(t){return!t.componentInstance||t.data&&t.data.transition?t:Mo(t.componentInstance._vnode)}var No={bind:function(t,e,n){var i=e.value,r=(n=Mo(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,To(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=Mo(n)).data&&n.data.transition?(n.data.show=!0,i?To(n,(function(){t.style.display=t.__vOriginalDisplay})):_o(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},Fo={model:Co,show:No},$o={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function jo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?jo(Le(e.children)):t}function Uo(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var i in r)e[k(i)]=r[i];return e}function Bo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Ho=function(t){return t.tag||ye(t)},Vo=function(t){return"show"===t.name},zo={name:"transition",props:$o,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Ho)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=jo(r);if(!o)return r;if(this._leaving)return Bo(t,r);var s="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?s+"comment":s+o.tag:l(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var a=(o.data||(o.data={})).transition=Uo(this),u=this._vnode,c=jo(u);if(o.data.directives&&o.data.directives.some(Vo)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!ye(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=D({},a);if("out-in"===i)return this._leaving=!0,qt(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Bo(t,r);if("in-out"===i){if(ye(o))return u;var h,f=function(){h()};qt(a,"afterEnter",f),qt(a,"enterCancelled",f),qt(d,"delayLeave",(function(t){h=t}))}}return r}}},Wo=D({tag:String,moveClass:String},$o);delete Wo.mode;var qo={props:Wo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Me(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=Uo(this),a=0;a<r.length;a++){if((c=r[a]).tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=s;else;}if(i){var l=[],u=[];for(a=0;a<i.length;a++){var c;(c=i[a]).data.transition=s,c.data.pos=c.elm.getBoundingClientRect(),n[c.key]?l.push(c):u.push(c)}this.kept=t(e,null,l),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Go),t.forEach(Ko),t.forEach(Yo),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,i=n.style;po(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(lo,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(lo,t),n._moveCb=null,mo(n,e))})}})))},methods:{hasMove:function(t,e){if(!ro)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){eo(n,t)})),to(n,e),n.style.display="none",this.$el.appendChild(n);var i=yo(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function Go(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ko(t){t.data.newPos=t.elm.getBoundingClientRect()}function Yo(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(i,"px,").concat(r,"px)"),o.transitionDuration="0s"}}var Zo={Transition:zo,TransitionGroup:qo};ni.config.mustUseProp=fi,ni.config.isReservedTag=Li,ni.config.isReservedAttr=di,ni.config.getTagNamespace=Ii,ni.config.isUnknownElement=function(t){if(!Z)return!0;if(Li(t))return!1;if(t=t.toLowerCase(),null!=Oi[t])return Oi[t];var e=document.createElement(t);return t.indexOf("-")>-1?Oi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Oi[t]=/HTMLUnknownElement/.test(e.toString())},D(ni.options.directives,Fo),D(ni.options.components,Zo),ni.prototype.__patch__=Z?ko:R,ni.prototype.$mount=function(t,e){return function(t,e,n){var i;t.$el=e,t.$options.render||(t.$options.render=mt),je(t,"beforeMount"),i=function(){t._update(t._render(),n)},new _n(t,i,R,{before:function(){t._isMounted&&!t._isDestroyed&&je(t,"beforeUpdate")}},!0),n=!1;var r=t._preWatchers;if(r)for(var o=0;o<r.length;o++)r[o].run();return null==t.$vnode&&(t._isMounted=!0,je(t,"mounted")),t}(this,t=t&&Z?Pi(t):void 0,e)},Z&&setTimeout((function(){z.devtools&&lt&&lt.emit("init",ni)}),0);var Xo=/\{\{((?:.|\r?\n)+?)\}\}/g,Qo=/[-.*+?^${}()|[\]\/\\]/g,Jo=E((function(t){var e=t[0].replace(Qo,"\\$&"),n=t[1].replace(Qo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));var ts={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=br(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var i=yr(t,"class",!1);i&&(t.classBinding=i)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:".concat(t.staticClass,",")),t.classBinding&&(e+="class:".concat(t.classBinding,",")),e}};var es,ns={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=br(t,"style");n&&(t.staticStyle=JSON.stringify(Hr(n)));var i=yr(t,"style",!1);i&&(t.styleBinding=i)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:".concat(t.staticStyle,",")),t.styleBinding&&(e+="style:(".concat(t.styleBinding,"),")),e}},is=function(t){return(es=es||document.createElement("div")).innerHTML=t,es.textContent},rs=y("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),os=y("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ss=y("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),as=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ls=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,us="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(W.source,"]*"),cs="((?:".concat(us,"\\:)?").concat(us,")"),ds=new RegExp("^<".concat(cs)),hs=/^\s*(\/?)>/,fs=new RegExp("^<\\/".concat(cs,"[^>]*>")),ps=/^<!DOCTYPE [^>]+>/i,ms=/^<!\--/,gs=/^<!\[/,vs=y("script,style,textarea",!0),ys={},bs={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},ws=/&(?:lt|gt|quot|amp|#39);/g,Ts=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_s=y("pre,textarea",!0),Ss=function(t,e){return t&&_s(t)&&"\n"===e[0]};function Es(t,e){var n=e?Ts:ws;return t.replace(n,(function(t){return bs[t]}))}function xs(t,e){for(var n,i,r=[],o=e.expectHTML,s=e.isUnaryTag||M,a=e.canBeLeftOpenTag||M,l=0,u=function(){if(n=t,i&&vs(i)){var u=0,h=i.toLowerCase(),f=ys[h]||(ys[h]=new RegExp("([\\s\\S]*?)(</"+h+"[^>]*>)","i"));_=t.replace(f,(function(t,n,i){return u=i.length,vs(h)||"noscript"===h||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ss(h,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-_.length,t=_,d(h,l-u,l)}else{var p=t.indexOf("<");if(0===p){if(ms.test(t)){var m=t.indexOf("--\x3e");if(m>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,m),l,l+m+3),c(m+3),"continue"}if(gs.test(t)){var g=t.indexOf("]>");if(g>=0)return c(g+2),"continue"}var v=t.match(ps);if(v)return c(v[0].length),"continue";var y=t.match(fs);if(y){var b=l;return c(y[0].length),d(y[1],b,l),"continue"}var w=function(){var e=t.match(ds);if(e){var n={tagName:e[1],attrs:[],start:l};c(e[0].length);for(var i=void 0,r=void 0;!(i=t.match(hs))&&(r=t.match(ls)||t.match(as));)r.start=l,c(r[0].length),r.end=l,n.attrs.push(r);if(i)return n.unarySlash=i[1],c(i[0].length),n.end=l,n}}();if(w)return function(t){var n=t.tagName,l=t.unarySlash;o&&("p"===i&&ss(n)&&d(i),a(n)&&i===n&&d(n));for(var u=s(n)||!!l,c=t.attrs.length,h=new Array(c),f=0;f<c;f++){var p=t.attrs[f],m=p[3]||p[4]||p[5]||"",g="a"===n&&"href"===p[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;h[f]={name:p[1],value:Es(m,g)}}u||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:t.start,end:t.end}),i=n);e.start&&e.start(n,h,u,t.start,t.end)}(w),Ss(w.tagName,t)&&c(1),"continue"}var T=void 0,_=void 0,S=void 0;if(p>=0){for(_=t.slice(p);!(fs.test(_)||ds.test(_)||ms.test(_)||gs.test(_)||(S=_.indexOf("<",1))<0);)p+=S,_=t.slice(p);T=t.substring(0,p)}p<0&&(T=t),T&&c(T.length),e.chars&&T&&e.chars(T,l-T.length,l)}if(t===n)return e.chars&&e.chars(t),"break"};t;){if("break"===u())break}function c(e){l+=e,t=t.substring(e)}function d(t,n,o){var s,a;if(null==n&&(n=l),null==o&&(o=l),t)for(a=t.toLowerCase(),s=r.length-1;s>=0&&r[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=r.length-1;u>=s;u--)e.end&&e.end(r[u].tag,n,o);r.length=s,i=s&&r[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,n,o):"p"===a&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}d()}var ks,Cs,As,Ls,Is,Os,Ds,Ps,Rs=/^@|^v-on:/,Ms=/^v-|^@|^:|^#/,Ns=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Fs=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,$s=/^\(|\)$/g,js=/^\[.*\]$/,Us=/:(.*)$/,Bs=/^:|^\.|^v-bind:/,Hs=/\.[^.\]]+(?=[^\]]*$)/g,Vs=/^v-slot(:|$)|^#/,zs=/[\r\n]/,Ws=/[ \f\t\r\n]+/g,qs=E(is),Gs="_empty_";function Ks(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ea(e),rawAttrsMap:{},parent:n,children:[]}}function Ys(t,e){ks=e.warn||cr,Os=e.isPreTag||M,Ds=e.mustUseProp||M,Ps=e.getTagNamespace||M;var n=e.isReservedTag||M;(function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?n(t.attrsMap.is):n(t.tag)))}),As=dr(e.modules,"transformNode"),Ls=dr(e.modules,"preTransformNode"),Is=dr(e.modules,"postTransformNode"),Cs=e.delimiters;var i,r,o=[],s=!1!==e.preserveWhitespace,a=e.whitespace,l=!1,u=!1;function c(t){if(d(t),l||t.processed||(t=Zs(t,e)),o.length||t===i||i.if&&(t.elseif||t.else)&&Qs(i,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)s=t,a=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children),a&&a.if&&Qs(a,{exp:s.elseif,block:s});else{if(t.slotScope){var n=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=t}r.children.push(t),t.parent=r}var s,a;t.children=t.children.filter((function(t){return!t.slotScope})),d(t),t.pre&&(l=!1),Os(t.tag)&&(u=!1);for(var c=0;c<Is.length;c++)Is[c](t,e)}function d(t){if(!u)for(var e=void 0;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return xs(t,{warn:ks,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,s,a,d){var h=r&&r.ns||Ps(t);Q&&"svg"===h&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];na.test(i.name)||(i.name=i.name.replace(ia,""),e.push(i))}return e}(n));var f,p=Ks(t,n,r);h&&(p.ns=h),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||at()||(p.forbidden=!0);for(var m=0;m<Ls.length;m++)p=Ls[m](p,e)||p;l||(!function(t){null!=br(t,"v-pre")&&(t.pre=!0)}(p),p.pre&&(l=!0)),Os(p.tag)&&(u=!0),l?function(t){var e=t.attrsList,n=e.length;if(n)for(var i=t.attrs=new Array(n),r=0;r<n;r++)i[r]={name:e[r].name,value:JSON.stringify(e[r].value)},null!=e[r].start&&(i[r].start=e[r].start,i[r].end=e[r].end);else t.pre||(t.plain=!0)}(p):p.processed||(Xs(p),function(t){var e=br(t,"v-if");if(e)t.if=e,Qs(t,{exp:e,block:t});else{null!=br(t,"v-else")&&(t.else=!0);var n=br(t,"v-else-if");n&&(t.elseif=n)}}(p),function(t){var e=br(t,"v-once");null!=e&&(t.once=!0)}(p)),i||(i=p),s?c(p):(r=p,o.push(p))},end:function(t,e,n){var i=o[o.length-1];o.length-=1,r=o[o.length-1],c(i)},chars:function(t,e,n){if(r&&(!Q||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,o=r.children;if(t=u||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:qs(t):o.length?a?"condense"===a&&zs.test(t)?"":" ":s?" ":"":""){u||"condense"!==a||(t=t.replace(Ws," "));var c=void 0,d=void 0;!l&&" "!==t&&(c=function(t,e){var n=e?Jo(e):Xo;if(n.test(t)){for(var i,r,o,s=[],a=[],l=n.lastIndex=0;i=n.exec(t);){(r=i.index)>l&&(a.push(o=t.slice(l,r)),s.push(JSON.stringify(o)));var u=lr(i[1].trim());s.push("_s(".concat(u,")")),a.push({"@binding":u}),l=r+i[0].length}return l<t.length&&(a.push(o=t.slice(l)),s.push(JSON.stringify(o))),{expression:s.join("+"),tokens:a}}}(t,Cs))?d={type:2,expression:c.expression,tokens:c.tokens,text:t}:" "===t&&o.length&&" "===o[o.length-1].text||(d={type:3,text:t}),d&&o.push(d)}}},comment:function(t,e,n){if(r){var i={type:3,text:t,isComment:!0};0,r.children.push(i)}}}),i}function Zs(t,e){var n;!function(t){var e=yr(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=yr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){var e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=br(t,"scope"),t.slotScope=e||br(t,"slot-scope")):(e=br(t,"slot-scope"))&&(t.slotScope=e);var n=yr(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||fr(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot")));if("template"===t.tag){if(s=wr(t,Vs)){0;var i=Js(s),r=i.name,o=i.dynamic;t.slotTarget=r,t.slotTargetDynamic=o,t.slotScope=s.value||Gs}}else{var s;if(s=wr(t,Vs)){0;var a=t.scopedSlots||(t.scopedSlots={}),l=Js(s),u=l.name,c=(o=l.dynamic,a[u]=Ks("template",[],t));c.slotTarget=u,c.slotTargetDynamic=o,c.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=c,!0})),c.slotScope=s.value||Gs,t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=yr(n,"name")),function(t){var e;(e=yr(t,"is"))&&(t.component=e);null!=br(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i<As.length;i++)t=As[i](t,e)||t;return function(t){var e,n,i,r,o,s,a,l,u=t.attrsList;for(e=0,n=u.length;e<n;e++){if(i=r=u[e].name,o=u[e].value,Ms.test(i))if(t.hasBindings=!0,(s=ta(i.replace(Ms,"")))&&(i=i.replace(Hs,"")),Bs.test(i))i=i.replace(Bs,""),o=lr(o),(l=js.test(i))&&(i=i.slice(1,-1)),s&&(s.prop&&!l&&"innerHtml"===(i=k(i))&&(i="innerHTML"),s.camel&&!l&&(i=k(i)),s.sync&&(a=Sr(o,"$event"),l?vr(t,'"update:"+('.concat(i,")"),a,null,!1,0,u[e],!0):(vr(t,"update:".concat(k(i)),a,null,!1,0,u[e]),L(i)!==k(i)&&vr(t,"update:".concat(L(i)),a,null,!1,0,u[e])))),s&&s.prop||!t.component&&Ds(t.tag,t.attrsMap.type,i)?hr(t,i,o,u[e],l):fr(t,i,o,u[e],l);else if(Rs.test(i))i=i.replace(Rs,""),(l=js.test(i))&&(i=i.slice(1,-1)),vr(t,i,o,s,!1,0,u[e],l);else{var c=(i=i.replace(Ms,"")).match(Us),d=c&&c[1];l=!1,d&&(i=i.slice(0,-(d.length+1)),js.test(d)&&(d=d.slice(1,-1),l=!0)),mr(t,i,r,o,d,l,s,u[e])}else fr(t,i,JSON.stringify(o),u[e]),!t.component&&"muted"===i&&Ds(t.tag,t.attrsMap.type,i)&&hr(t,i,"true",u[e])}}(t),t}function Xs(t){var e;if(e=br(t,"v-for")){var n=function(t){var e=t.match(Ns);if(!e)return;var n={};n.for=e[2].trim();var i=e[1].trim().replace($s,""),r=i.match(Fs);r?(n.alias=i.replace(Fs,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(e);n&&D(t,n)}}function Qs(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Js(t){var e=t.name.replace(Vs,"");return e||"#"!==t.name[0]&&(e="default"),js.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'.concat(e,'"'),dynamic:!1}}function ta(t){var e=t.match(Hs);if(e){var n={};return e.forEach((function(t){n[t.slice(1)]=!0})),n}}function ea(t){for(var e={},n=0,i=t.length;n<i;n++)e[t[n].name]=t[n].value;return e}var na=/^xmlns:NS\d+/,ia=/^NS\d+:/;function ra(t){return Ks(t.tag,t.attrsList.slice(),t.parent)}var oa=[ts,ns,{preTransformNode:function(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var i=void 0;if((n[":type"]||n["v-bind:type"])&&(i=yr(t,"type")),n.type||i||!n["v-bind"]||(i="(".concat(n["v-bind"],").type")),i){var r=br(t,"v-if",!0),o=r?"&&(".concat(r,")"):"",s=null!=br(t,"v-else",!0),a=br(t,"v-else-if",!0),l=ra(t);Xs(l),pr(l,"type","checkbox"),Zs(l,e),l.processed=!0,l.if="(".concat(i,")==='checkbox'")+o,Qs(l,{exp:l.if,block:l});var u=ra(t);br(u,"v-for",!0),pr(u,"type","radio"),Zs(u,e),Qs(l,{exp:"(".concat(i,")==='radio'")+o,block:u});var c=ra(t);return br(c,"v-for",!0),pr(c,":type",i),Zs(c,e),Qs(l,{exp:r,block:c}),s?l.else=!0:a&&(l.elseif=a),l}}}}];var sa,aa,la={model:function(t,e,n){n;var i=e.value,r=e.modifiers,o=t.tag,s=t.attrsMap.type;if(t.component)return _r(t,i,r),!1;if("select"===o)!function(t,e,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(i?"_n(val)":"val","})"),o="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",s="var $$selectedVal = ".concat(r,";");s="".concat(s," ").concat(Sr(e,o)),vr(t,"change",s,null,!0)}(t,i,r);else if("input"===o&&"checkbox"===s)!function(t,e,n){var i=n&&n.number,r=yr(t,"value")||"null",o=yr(t,"true-value")||"true",s=yr(t,"false-value")||"false";hr(t,"checked","Array.isArray(".concat(e,")")+"?_i(".concat(e,",").concat(r,")>-1")+("true"===o?":(".concat(e,")"):":_q(".concat(e,",").concat(o,")"))),vr(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(s,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(i?"_n("+r+")":r,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Sr(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Sr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Sr(e,"$$c"),"}"),null,!0)}(t,i,r);else if("input"===o&&"radio"===s)!function(t,e,n){var i=n&&n.number,r=yr(t,"value")||"null";r=i?"_n(".concat(r,")"):r,hr(t,"checked","_q(".concat(e,",").concat(r,")")),vr(t,"change",Sr(e,r),null,!0)}(t,i,r);else if("input"===o||"textarea"===o)!function(t,e,n){var i=t.attrsMap.type;0;var r=n||{},o=r.lazy,s=r.number,a=r.trim,l=!o&&"range"!==i,u=o?"change":"range"===i?Ir:"input",c="$event.target.value";a&&(c="$event.target.value.trim()");s&&(c="_n(".concat(c,")"));var d=Sr(e,c);l&&(d="if($event.target.composing)return;".concat(d));hr(t,"value","(".concat(e,")")),vr(t,u,d,null,!0),(a||s)&&vr(t,"blur","$forceUpdate()")}(t,i,r);else{if(!z.isReservedTag(o))return _r(t,i,r),!1}return!0},text:function(t,e){e.value&&hr(t,"textContent","_s(".concat(e.value,")"),e)},html:function(t,e){e.value&&hr(t,"innerHTML","_s(".concat(e.value,")"),e)}},ua={expectHTML:!0,modules:oa,directives:la,isPreTag:function(t){return"pre"===t},isUnaryTag:rs,mustUseProp:fi,canBeLeftOpenTag:os,isReservedTag:Li,getTagNamespace:Ii,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(oa)},ca=E((function(t){return y("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function da(t,e){t&&(sa=ca(e.staticKeys||""),aa=e.isReservedTag||M,ha(t),fa(t,!1))}function ha(t){if(t.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||b(t.tag)||!aa(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(sa)))}(t),1===t.type){if(!aa(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var i=t.children[e];ha(i),i.static||(t.static=!1)}if(t.ifConditions)for(e=1,n=t.ifConditions.length;e<n;e++){var r=t.ifConditions[e].block;ha(r),r.static||(t.static=!1)}}}function fa(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,i=t.children.length;n<i;n++)fa(t.children[n],e||!!t.for);if(t.ifConditions)for(n=1,i=t.ifConditions.length;n<i;n++)fa(t.ifConditions[n].block,e)}}var pa=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ma=/\([^)]*?\);*$/,ga=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,va={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ya={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ba=function(t){return"if(".concat(t,")return null;")},wa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ba("$event.target !== $event.currentTarget"),ctrl:ba("!$event.ctrlKey"),shift:ba("!$event.shiftKey"),alt:ba("!$event.altKey"),meta:ba("!$event.metaKey"),left:ba("'button' in $event && $event.button !== 0"),middle:ba("'button' in $event && $event.button !== 1"),right:ba("'button' in $event && $event.button !== 2")};function Ta(t,e){var n=e?"nativeOn:":"on:",i="",r="";for(var o in t){var s=_a(t[o]);t[o]&&t[o].dynamic?r+="".concat(o,",").concat(s,","):i+='"'.concat(o,'":').concat(s,",")}return i="{".concat(i.slice(0,-1),"}"),r?n+"_d(".concat(i,",[").concat(r.slice(0,-1),"])"):n+i}function _a(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map((function(t){return _a(t)})).join(","),"]");var e=ga.test(t.value),n=pa.test(t.value),i=ga.test(t.value.replace(ma,""));if(t.modifiers){var r="",o="",s=[],a=function(e){if(wa[e])o+=wa[e],va[e]&&s.push(e);else if("exact"===e){var n=t.modifiers;o+=ba(["ctrl","shift","alt","meta"].filter((function(t){return!n[t]})).map((function(t){return"$event.".concat(t,"Key")})).join("||"))}else s.push(e)};for(var l in t.modifiers)a(l);s.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(Sa).join("&&"),")return null;")}(s)),o&&(r+=o);var u=e?"return ".concat(t.value,".apply(null, arguments)"):n?"return (".concat(t.value,").apply(null, arguments)"):i?"return ".concat(t.value):t.value;return"function($event){".concat(r).concat(u,"}")}return e||n?t.value:"function($event){".concat(i?"return ".concat(t.value):t.value,"}")}function Sa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var n=va[t],i=ya[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(i))+")"}var Ea={on:function(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}},bind:function(t,e){t.wrapData=function(n){return"_b(".concat(n,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}},cloak:R},xa=function(t){this.options=t,this.warn=t.warn||cr,this.transforms=dr(t.modules,"transformCode"),this.dataGenFns=dr(t.modules,"genData"),this.directives=D(D({},Ea),t.directives);var e=t.isReservedTag||M;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ka(t,e){var n=new xa(e),i=t?"script"===t.tag?"null":Ca(t,n):'_c("div")';return{render:"with(this){return ".concat(i,"}"),staticRenderFns:n.staticRenderFns}}function Ca(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Aa(t,e);if(t.once&&!t.onceProcessed)return La(t,e);if(t.for&&!t.forProcessed)return Da(t,e);if(t.if&&!t.ifProcessed)return Ia(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',i=Na(t,e),r="_t(".concat(n).concat(i?",function(){return ".concat(i,"}"):""),o=t.attrs||t.dynamicAttrs?ja((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:k(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];!o&&!s||i||(r+=",null");o&&(r+=",".concat(o));s&&(r+="".concat(o?"":",null",",").concat(s));return r+")"}(t,e);var n=void 0;if(t.component)n=function(t,e,n){var i=e.inlineTemplate?null:Na(e,n,!0);return"_c(".concat(t,",").concat(Pa(e,n)).concat(i?",".concat(i):"",")")}(t.component,t,e);else{var i=void 0,r=e.maybeComponent(t);(!t.plain||t.pre&&r)&&(i=Pa(t,e));var o=void 0,s=e.options.bindings;r&&s&&!1!==s.__isScriptSetup&&(o=function(t,e){var n=k(e),i=C(n),r=function(r){return t[e]===r?e:t[n]===r?n:t[i]===r?i:void 0},o=r("setup-const")||r("setup-reactive-const");if(o)return o;var s=r("setup-let")||r("setup-ref")||r("setup-maybe-ref");if(s)return s}(s,t.tag)),o||(o="'".concat(t.tag,"'"));var a=t.inlineTemplate?null:Na(t,e,!0);n="_c(".concat(o).concat(i?",".concat(i):"").concat(a?",".concat(a):"",")")}for(var l=0;l<e.transforms.length;l++)n=e.transforms[l](t,n);return n}return Na(t,e)||"void 0"}function Aa(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return ".concat(Ca(t,e),"}")),e.pre=n,"_m(".concat(e.staticRenderFns.length-1).concat(t.staticInFor?",true":"",")")}function La(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Ia(t,e);if(t.staticInFor){for(var n="",i=t.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o(".concat(Ca(t,e),",").concat(e.onceId++,",").concat(n,")"):Ca(t,e)}return Aa(t,e)}function Ia(t,e,n,i){return t.ifProcessed=!0,Oa(t.ifConditions.slice(),e,n,i)}function Oa(t,e,n,i){if(!t.length)return i||"_e()";var r=t.shift();return r.exp?"(".concat(r.exp,")?").concat(o(r.block),":").concat(Oa(t,e,n,i)):"".concat(o(r.block));function o(t){return n?n(t,e):t.once?La(t,e):Ca(t,e)}}function Da(t,e,n,i){var r=t.for,o=t.alias,s=t.iterator1?",".concat(t.iterator1):"",a=t.iterator2?",".concat(t.iterator2):"";return t.forProcessed=!0,"".concat(i||"_l","((").concat(r,"),")+"function(".concat(o).concat(s).concat(a,"){")+"return ".concat((n||Ca)(t,e))+"})"}function Pa(t,e){var n="{",i=function(t,e){var n=t.directives;if(!n)return;var i,r,o,s,a="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){o=n[i],s=!0;var u=e.directives[o.name];u&&(s=!!u(t,o,e.warn)),s&&(l=!0,a+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}if(l)return a.slice(0,-1)+"]"}(t,e);i&&(n+=i+","),t.key&&(n+="key:".concat(t.key,",")),t.ref&&(n+="ref:".concat(t.ref,",")),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'.concat(t.tag,'",'));for(var r=0;r<e.dataGenFns.length;r++)n+=e.dataGenFns[r](t);if(t.attrs&&(n+="attrs:".concat(ja(t.attrs),",")),t.props&&(n+="domProps:".concat(ja(t.props),",")),t.events&&(n+="".concat(Ta(t.events,!1),",")),t.nativeEvents&&(n+="".concat(Ta(t.nativeEvents,!0),",")),t.slotTarget&&!t.slotScope&&(n+="slot:".concat(t.slotTarget,",")),t.scopedSlots&&(n+="".concat(function(t,e,n){var i=t.for||Object.keys(e).some((function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Ra(n)})),r=!!t.if;if(!i)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==Gs||o.for){i=!0;break}o.if&&(r=!0),o=o.parent}var s=Object.keys(e).map((function(t){return Ma(e[t],n)})).join(",");return"scopedSlots:_u([".concat(s,"]").concat(i?",null,true":"").concat(!i&&r?",null,false,".concat(function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(s)):"",")")}(t,t.scopedSlots,e),",")),t.model&&(n+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var o=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var i=ka(n,e.options);return"inlineTemplate:{render:function(){".concat(i.render,"},staticRenderFns:[").concat(i.staticRenderFns.map((function(t){return"function(){".concat(t,"}")})).join(","),"]}")}}(t,e);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b(".concat(n,',"').concat(t.tag,'",').concat(ja(t.dynamicAttrs),")")),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ra(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ra))}function Ma(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Ia(t,e,Ma,"null");if(t.for&&!t.forProcessed)return Da(t,e,Ma);var i=t.slotScope===Gs?"":String(t.slotScope),r="function(".concat(i,"){")+"return ".concat("template"===t.tag?t.if&&n?"(".concat(t.if,")?").concat(Na(t,e)||"undefined",":undefined"):Na(t,e)||"undefined":Ca(t,e),"}"),o=i?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(r).concat(o,"}")}function Na(t,e,n,i,r){var o=t.children;if(o.length){var s=o[0];if(1===o.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?e.maybeComponent(s)?",1":",0":"";return"".concat((i||Ca)(s,e)).concat(a)}var l=n?function(t,e){for(var n=0,i=0;i<t.length;i++){var r=t[i];if(1===r.type){if(Fa(r)||r.ifConditions&&r.ifConditions.some((function(t){return Fa(t.block)}))){n=2;break}(e(r)||r.ifConditions&&r.ifConditions.some((function(t){return e(t.block)})))&&(n=1)}}return n}(o,e.maybeComponent):0,u=r||$a;return"[".concat(o.map((function(t){return u(t,e)})).join(","),"]").concat(l?",".concat(l):"")}}function Fa(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function $a(t,e){return 1===t.type?Ca(t,e):3===t.type&&t.isComment?function(t){return"_e(".concat(JSON.stringify(t.text),")")}(t):function(t){return"_v(".concat(2===t.type?t.expression:Ua(JSON.stringify(t.text)),")")}(t)}function ja(t){for(var e="",n="",i=0;i<t.length;i++){var r=t[i],o=Ua(r.value);r.dynamic?n+="".concat(r.name,",").concat(o,","):e+='"'.concat(r.name,'":').concat(o,",")}return e="{".concat(e.slice(0,-1),"}"),n?"_d(".concat(e,",[").concat(n.slice(0,-1),"])"):e}function Ua(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Ba(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),R}}function Ha(t){var e=Object.create(null);return function(n,i,r){(i=D({},i)).warn;delete i.warn;var o=i.delimiters?String(i.delimiters)+n:n;if(e[o])return e[o];var s=t(n,i);var a={},l=[];return a.render=Ba(s.render,l),a.staticRenderFns=s.staticRenderFns.map((function(t){return Ba(t,l)})),e[o]=a}}var Va,za,Wa=(Va=function(t,e){var n=Ys(t.trim(),e);!1!==e.optimize&&da(n,e);var i=ka(n,e);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(t){function e(e,n){var i=Object.create(t),r=[],o=[];if(n)for(var s in n.modules&&(i.modules=(t.modules||[]).concat(n.modules)),n.directives&&(i.directives=D(Object.create(t.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(i[s]=n[s]);i.warn=function(t,e,n){(n?o:r).push(t)};var a=Va(e.trim(),i);return a.errors=r,a.tips=o,a}return{compile:e,compileToFunctions:Ha(e)}}),qa=Wa(ua).compileToFunctions;function Ga(t){return(za=za||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',za.innerHTML.indexOf("&#10;")>0}var Ka=!!Z&&Ga(!1),Ya=!!Z&&Ga(!0),Za=E((function(t){var e=Pi(t);return e&&e.innerHTML})),Xa=ni.prototype.$mount;ni.prototype.$mount=function(t,e){if((t=t&&Pi(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=Za(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(i){0;var r=qa(i,{outputSourceRange:!1,shouldDecodeNewlines:Ka,shouldDecodeNewlinesForHref:Ya,delimiters:n.delimiters,comments:n.comments},this),o=r.render,s=r.staticRenderFns;n.render=o,n.staticRenderFns=s}}return Xa.call(this,t,e)},ni.compile=qa},8620:(t,e,n)=>{"use strict";e.oE=void 0;var i=n(2584),r=n(8413);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var d=function(){return null},h=function(t,e,n){return t.reduce((function(t,i){return t[n?n(i):i]=e(i),t}),{})};function f(t){return"function"==typeof t}function p(t){return null!==t&&("object"===c(t)||f(t))}var m=function(t,e,n,i){if("function"==typeof n)return n.call(t,e,i);n=Array.isArray(n)?n:n.split(".");for(var r=0;r<n.length;r++){if(!e||"object"!==c(e))return i;e=e[n[r]]}return void 0===e?i:e},g="__isVuelidateAsyncVm";var v={$invalid:function(){var t=this,e=this.proxy;return this.nestedKeys.some((function(e){return t.refProxy(e).$invalid}))||this.ruleKeys.some((function(t){return!e[t]}))},$dirty:function(){var t=this;return!!this.dirty||0!==this.nestedKeys.length&&this.nestedKeys.every((function(e){return t.refProxy(e).$dirty}))},$anyDirty:function(){var t=this;return!!this.dirty||0!==this.nestedKeys.length&&this.nestedKeys.some((function(e){return t.refProxy(e).$anyDirty}))},$error:function(){return this.$dirty&&!this.$pending&&this.$invalid},$anyError:function(){var t=this;return!!this.$error||this.nestedKeys.some((function(e){return t.refProxy(e).$anyError}))},$pending:function(){var t=this;return this.ruleKeys.some((function(e){return t.getRef(e).$pending}))||this.nestedKeys.some((function(e){return t.refProxy(e).$pending}))},$params:function(){var t=this,e=this.validations;return l(l({},h(this.nestedKeys,(function(t){return e[t]&&e[t].$params||null}))),h(this.ruleKeys,(function(e){return t.getRef(e).$params})))}};function y(t){this.dirty=t;var e=this.proxy,n=t?"$touch":"$reset";this.nestedKeys.forEach((function(t){e[t][n]()}))}var b={$touch:function(){y.call(this,!0)},$reset:function(){y.call(this,!1)},$flattenParams:function(){var t=this.proxy,e=[];for(var n in this.$params)if(this.isNested(n)){for(var i=t[n].$flattenParams(),r=0;r<i.length;r++)i[r].path.unshift(n);e=e.concat(i)}else e.push({path:[],name:n,params:this.$params[n]});return e}},w=Object.keys(v),T=Object.keys(b),_=null,S=function(t){if(_)return _;var e=t.extend({computed:{refs:function(){var t=this._vval;this._vval=this.children,(0,i.patchChildren)(t,this._vval);var e={};return this._vval.forEach((function(t){e[t.key]=t.vm})),e}},beforeCreate:function(){this._vval=null},beforeDestroy:function(){this._vval&&((0,i.patchChildren)(this._vval),this._vval=null)},methods:{getModel:function(){return this.lazyModel?this.lazyModel(this.prop):this.model},getModelKey:function(t){var e=this.getModel();if(e)return e[t]},hasIter:function(){return!1}}}),n=e.extend({data:function(){return{rule:null,lazyModel:null,model:null,lazyParentModel:null,rootModel:null}},methods:{runRule:function(e){var n=this.getModel();(0,r.pushParams)();var i,o=this.rule.call(this.rootModel,n,e),s=p(i=o)&&f(i.then)?function(t,e){var n=new t({data:{p:!0,v:!1}});return e.then((function(t){n.p=!1,n.v=t}),(function(t){throw n.p=!1,n.v=!1,t})),n[g]=!0,n}(t,o):o,a=(0,r.popParams)();return{output:s,params:a&&a.$sub?a.$sub.length>1?a:a.$sub[0]:null}}},computed:{run:function(){var t=this,e=this.lazyParentModel();if(Array.isArray(e)&&e.__ob__){var n=e.__ob__.dep;n.depend();var i=n.constructor.target;if(!this._indirectWatcher){var r=i.constructor;this._indirectWatcher=new r(this,(function(){return t.runRule(e)}),null,{lazy:!0})}var o=this.getModel();if(!this._indirectWatcher.dirty&&this._lastModel===o)return this._indirectWatcher.depend(),i.value;this._lastModel=o,this._indirectWatcher.evaluate(),this._indirectWatcher.depend()}else this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null);return this._indirectWatcher?this._indirectWatcher.value:this.runRule(e)},$params:function(){return this.run.params},proxy:function(){var t=this.run.output;return t[g]?!!t.v:!!t},$pending:function(){var t=this.run.output;return!!t[g]&&t.p}},destroyed:function(){this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null)}}),s=e.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:l(l({},b),{},{refProxy:function(t){return this.getRef(t).proxy},getRef:function(t){return this.refs[t]},isNested:function(t){return"function"!=typeof this.validations[t]}}),computed:l(l({},v),{},{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var t=this;return this.keys.filter((function(e){return!t.isNested(e)}))},keys:function(){return Object.keys(this.validations).filter((function(t){return"$params"!==t}))},proxy:function(){var t=this,e=h(this.keys,(function(e){return{enumerable:!0,configurable:!0,get:function(){return t.refProxy(e)}}})),n=h(w,(function(e){return{enumerable:!0,configurable:!0,get:function(){return t[e]}}})),i=h(T,(function(e){return{enumerable:!1,configurable:!0,get:function(){return t[e]}}})),r=this.hasIter()?{$iter:{enumerable:!0,value:Object.defineProperties({},l({},e))}}:{};return Object.defineProperties({},l(l(l(l({},e),r),{},{$model:{enumerable:!0,get:function(){var e=t.lazyParentModel();return null!=e?e[t.prop]:null},set:function(e){var n=t.lazyParentModel();null!=n&&(n[t.prop]=e,t.$touch())}}},n),i))},children:function(){var t=this;return[].concat(o(this.nestedKeys.map((function(e){return c(t,e)}))),o(this.ruleKeys.map((function(e){return y(t,e)})))).filter(Boolean)}})}),a=s.extend({methods:{isNested:function(t){return void 0!==this.validations[t]()},getRef:function(t){var e=this;return{get proxy(){return e.validations[t]()||!1}}}}}),u=s.extend({computed:{keys:function(){var t=this.getModel();return p(t)?Object.keys(t):[]},tracker:function(){var t=this,e=this.validations.$trackBy;return e?function(n){return"".concat(m(t.rootModel,t.getModelKey(n),e))}:function(t){return"".concat(t)}},getModelLazy:function(){var t=this;return function(){return t.getModel()}},children:function(){var t=this,e=this.validations,n=this.getModel(),r=l({},e);delete r.$trackBy;var o={};return this.keys.map((function(e){var a=t.tracker(e);return o.hasOwnProperty(a)?null:(o[a]=!0,(0,i.h)(s,a,{validations:r,prop:e,lazyParentModel:t.getModelLazy,model:n[e],rootModel:t.rootModel}))})).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(t){return this.refs[this.tracker(t)]},hasIter:function(){return!0}}}),c=function(t,e){if("$each"===e)return(0,i.h)(u,e,{validations:t.validations[e],lazyParentModel:t.lazyParentModel,prop:e,lazyModel:t.getModel,rootModel:t.rootModel});var n=t.validations[e];if(Array.isArray(n)){var r=t.rootModel,o=h(n,(function(t){return function(){return m(r,r.$v,t)}}),(function(t){return Array.isArray(t)?t.join("."):t}));return(0,i.h)(a,e,{validations:o,lazyParentModel:d,prop:e,lazyModel:d,rootModel:r})}return(0,i.h)(s,e,{validations:n,lazyParentModel:t.getModel,prop:e,lazyModel:t.getModelKey,rootModel:t.rootModel})},y=function(t,e){return(0,i.h)(n,e,{rule:t.validations[e],lazyParentModel:t.lazyParentModel,lazyModel:t.getModel,rootModel:t.rootModel})};return _={VBase:e,Validation:s}},E=null;var x=function(t,e){var n=function(t){if(E)return E;for(var e=t.constructor;e.super;)e=e.super;return E=e,e}(t),r=S(n),o=r.Validation;return new(0,r.VBase)({computed:{children:function(){var n="function"==typeof e?e.call(t):e;return[(0,i.h)(o,"$v",{validations:n,lazyParentModel:d,prop:"$v",model:t,rootModel:t})]}}})},k={data:function(){var t=this.$options.validations;return t&&(this._vuelidate=x(this,t)),{}},beforeCreate:function(){var t=this.$options;t.validations&&(t.computed||(t.computed={}),t.computed.$v||(t.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};function C(t){t.mixin(k)}e.oE=k},8413:(t,e)=>{"use strict";function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}Object.defineProperty(e,"__esModule",{value:!0}),e._setTarget=void 0,e.popParams=u,e.pushParams=l,e.target=void 0,e.withParams=function(t,e){if("object"===o(t)&&void 0!==e)return n=t,i=e,d((function(t){return function(){t(n);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i.apply(this,r)}}));var n,i;return d(t)};var s=[],a=null;e.target=a;function l(){null!==a&&s.push(a),e.target=a={}}function u(){var t=a,n=e.target=a=s.pop()||null;return n&&(Array.isArray(n.$sub)||(n.$sub=[]),n.$sub.push(t)),t}function c(t){if("object"!==o(t)||Array.isArray(t))throw new Error("params must be an object");e.target=a=i(i({},a),t)}function d(t){var e=t(c);return function(){l();try{for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.apply(this,n)}finally{u()}}}e._setTarget=function(t){e.target=a=t}},6408:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("alpha",/^[a-zA-Z]*$/);e.default=i},6195:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("alphaNum",/^[a-zA-Z0-9]*$/);e.default=i},5573:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,i.withParams)({type:"and"},(function(){for(var t=this,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.length>0&&e.reduce((function(e,n){return e&&n.apply(t,i)}),!0)}))}},7884:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t,e){return(0,i.withParams)({type:"between",min:t,max:e},(function(n){return!(0,i.req)(n)||(!/\s/.test(n)||n instanceof Date)&&+t<=+n&&+e>=+n}))}},6681:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.regex=e.ref=e.len=void 0,Object.defineProperty(e,"withParams",{enumerable:!0,get:function(){return r.default}});var i,r=(i=n(8085))&&i.__esModule?i:{default:i};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var s=function(t){if(Array.isArray(t))return!!t.length;if(null==t)return!1;if(!1===t)return!0;if(t instanceof Date)return!isNaN(t.getTime());if("object"===o(t)){for(var e in t)return!0;return!1}return!!String(t).length};e.req=s;e.len=function(t){return Array.isArray(t)?t.length:"object"===o(t)?Object.keys(t).length:String(t).length};e.ref=function(t,e,n){return"function"==typeof t?t.call(e,n):n[t]};e.regex=function(t,e){return(0,r.default)({type:t},(function(t){return!s(t)||e.test(t)}))}},4078:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("decimal",/^[-]?\d*(\.\d+)?$/);e.default=i},8107:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("email",/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i);e.default=i},379:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}Object.defineProperty(e,"Do",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"C1",{enumerable:!0,get:function(){return f.default}});var r=k(n(6408)),o=k(n(6195)),s=k(n(5669)),a=k(n(7884)),l=k(n(8107)),u=k(n(9103)),c=k(n(7340)),d=k(n(5287)),h=k(n(3091)),f=k(n(2419)),p=k(n(2941)),m=k(n(8300)),g=k(n(918)),v=k(n(3213)),y=k(n(5832)),b=k(n(5573)),w=k(n(2500)),T=k(n(2628)),_=k(n(301)),S=k(n(6673)),E=k(n(4078));function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(x=function(t){return t?n:e})(t)}function k(t){return t&&t.__esModule?t:{default:t}}(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=x(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=o?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=t[s]}r.default=t,n&&n.set(t,r)})(n(6681))},6673:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("integer",/(^[0-9]*$)|(^-[0-9]+$)/);e.default=i},9103:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681),r=(0,i.withParams)({type:"ipAddress"},(function(t){if(!(0,i.req)(t))return!0;if("string"!=typeof t)return!1;var e=t.split(".");return 4===e.length&&e.every(o)}));e.default=r;var o=function(t){if(t.length>3||0===t.length)return!1;if("0"===t[0]&&"0"!==t)return!1;if(!t.match(/^\d+$/))return!1;var e=0|+t;return e>=0&&e<=255}},7340:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,i.withParams)({type:"macAddress"},(function(e){if(!(0,i.req)(e))return!0;if("string"!=typeof e)return!1;var n="string"==typeof t&&""!==t?e.split(t):12===e.length||16===e.length?e.match(/.{2}/g):null;return null!==n&&(6===n.length||8===n.length)&&n.every(r)}))};var r=function(t){return t.toLowerCase().match(/^[0-9a-f]{2}$/)}},5287:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"maxLength",max:t},(function(e){return!(0,i.req)(e)||(0,i.len)(e)<=t}))}},301:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"maxValue",max:t},(function(e){return!(0,i.req)(e)||(!/\s/.test(e)||e instanceof Date)&&+e<=+t}))}},3091:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"minLength",min:t},(function(e){return!(0,i.req)(e)||(0,i.len)(e)>=t}))}},2628:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"minValue",min:t},(function(e){return!(0,i.req)(e)||(!/\s/.test(e)||e instanceof Date)&&+e>=+t}))}},2500:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"not"},(function(e,n){return!(0,i.req)(e)||!t.call(this,e,n)}))}},5669:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("numeric",/^[0-9]*$/);e.default=i},5832:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,i.withParams)({type:"or"},(function(){for(var t=this,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.length>0&&e.reduce((function(e,n){return e||n.apply(t,i)}),!1)}))}},2419:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681),r=(0,i.withParams)({type:"required"},(function(t){return"string"==typeof t?(0,i.req)(t.trim()):(0,i.req)(t)}));e.default=r},2941:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"requiredIf",prop:t},(function(e,n){return!(0,i.ref)(t,this,n)||(0,i.req)(e)}))}},8300:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"requiredUnless",prop:t},(function(e,n){return!!(0,i.ref)(t,this,n)||(0,i.req)(e)}))}},918:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6681);e.default=function(t){return(0,i.withParams)({type:"sameAs",eq:t},(function(e,n){return e===(0,i.ref)(t,this,n)}))}},3213:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,n(6681).regex)("url",/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i);e.default=i},2584:(t,e)=>{"use strict";function n(t){return null==t}function i(t){return null!=t}function r(t,e){return e.tag===t.tag&&e.key===t.key}function o(t){var e=t.tag;t.vm=new e({data:t.args})}function s(t,e,n){var r,o,s={};for(r=e;r<=n;++r)i(o=t[r].key)&&(s[o]=r);return s}function a(t,e,n){for(;e<=n;++e)o(t[e])}function l(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(r.vm.$destroy(),r.vm=null)}}function u(t,e){t!==e&&(e.vm=t.vm,function(t){for(var e=Object.keys(t.args),n=0;n<e.length;n++)e.forEach((function(e){t.vm[e]=t.args[e]}))}(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.h=function(t,e,n){return{tag:t,key:e,args:n}},e.patchChildren=function(t,e){i(t)&&i(e)?t!==e&&function(t,e){var c,d,h,f=0,p=0,m=t.length-1,g=t[0],v=t[m],y=e.length-1,b=e[0],w=e[y];for(;f<=m&&p<=y;)n(g)?g=t[++f]:n(v)?v=t[--m]:r(g,b)?(u(g,b),g=t[++f],b=e[++p]):r(v,w)?(u(v,w),v=t[--m],w=e[--y]):r(g,w)?(u(g,w),g=t[++f],w=e[--y]):r(v,b)?(u(v,b),v=t[--m],b=e[++p]):(n(c)&&(c=s(t,f,m)),n(d=i(b.key)?c[b.key]:null)?(o(b),b=e[++p]):r(h=t[d],b)?(u(h,b),t[d]=void 0,b=e[++p]):(o(b),b=e[++p]));f>m?a(e,p,y):p>y&&l(t,f,m)}(t,e):i(e)?a(e,0,e.length-1):i(t)&&l(t,0,t.length-1)}},8085:(t,e,n)=>{"use strict";var i=n(4155);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="web"===i.env.BUILD?n(16).R:n(8413).withParams;e.default=r},16:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}e.R=void 0;var r="undefined"!=typeof window?window:void 0!==n.g?n.g:{},o=r.vuelidate?r.vuelidate.withParams:function(t,e){return"object"===i(t)&&void 0!==e?e:t((function(){}))};e.R=o},5763:(t,e,n)=>{var i={"./components/ExternalMediaEmbed/EmbedIframe.vue":5658,"./components/ExternalMediaEmbed/ExternalMediaEmbed.vue":8426,"./components/ExternalMediaEmbed/FacebookEmbed.vue":1912,"./components/ExternalMediaEmbed/InstagramEmbed.vue":158,"./components/ExternalMediaEmbed/TwitterEmbed.vue":3311,"./components/FacebookGlobal.vue":9157,"./components/PicEmbed/PicEmbed.vue":6106,"./components/ResponsiveBackgroundImage/MlpResponsiveBackgroundImage.vue":579,"./components/SlickSlider/MlpVideoSlider.vue":6831,"./components/Slider/MlpSlider.vue":1270,"./components/Slider/MlpSliderItemHero.vue":373,"./components/Slider/MlpSliderItemImage.vue":3804,"./components/Slider/MlpSliderItemVideo.vue":8380,"./components/Slider/MlpSliderWrapper.vue":4298,"./components/VideoEmbed/VideoAsset.vue":7115,"./components/VideoEmbed/videoembed.vue":5013,"./components/article/MlpArticle.vue":9715,"./components/article/MlpArticleTeaser.vue":8562,"./components/audioplayer/MlpAudioplayer.vue":4804,"./components/audioplayer/MlpPlaylist.vue":1105,"./components/audioplayer/MlpShowTracklistButton.vue":2894,"./components/audioplayer/MlpTabbedPlaylist.vue":2976,"./components/basic/BackgroundVideoPlayer.vue":9398,"./components/basic/Card.vue":9981,"./components/basic/ContentItem.vue":9325,"./components/basic/MlpDateLabel.vue":29,"./components/basic/MlpVideoPlayer.vue":366,"./components/collection/MlpGridCollection.vue":2159,"./components/collection/MlpGridCollectionMediaEmbed.vue":877,"./components/collection/ProductInCollection.vue":9869,"./components/collection/ShowMoreButton.vue":3239,"./components/column/MlpColumn.vue":4487,"./components/conditional-visibility/ConditionalVisibility.vue":1860,"./components/countdown/MlpCountdown.vue":6123,"./components/feed/InstagramFeed.vue":1160,"./components/feed/YouTubeFeed.vue":6041,"./components/hero/MlpHeroContent.vue":3323,"./components/image/MlpImage.vue":6556,"./components/link/MlpLink.vue":4710,"./components/link/MlpLinkContentItem.vue":5720,"./components/live-event-feed/DateDisplay.vue":2605,"./components/live-event-feed/DateRangeDisplay.vue":7938,"./components/live-event-feed/LiveEvent.vue":8055,"./components/live-event-feed/LiveEventFeed.vue":9044,"./components/mediaembed/MediaEmbedPlayerCode.vue":3424,"./components/mediaembed/MediaEmbedPlayerId.vue":4519,"./components/mediaembed/MediaEmbedPlayerVideo.vue":2817,"./components/mediaembed/MlpMediaEmbedPlayer.vue":5968,"./components/mediaembed/MlpMediaEmbedSlide.vue":3827,"./components/mediaembed/MlpMediaEmbedSlider.vue":6188,"./components/mediaembed/MlpMediaEmbedTikTok.vue":2209,"./components/mediaembed/MlpMediaEmbedTiktok.vue":5633,"./components/navigation/language/MlpLanguage.vue":9791,"./components/navigation/language/MlpLanguageSwitch.vue":615,"./components/newsletter-form/DataLayerPushAfterNewsletterSubscription.vue":3193,"./components/newsletter-form/NewsletterForm.vue":9181,"./components/newsletter-form/NewsletterOverlay.vue":8137,"./components/newsletter-form/NewsletterPopup.vue":9203,"./components/newsletter-form/NewsletterPopupButton.vue":8064,"./components/partial/Card.vue":3099,"./components/partial/Loading.vue":8828,"./components/partial/MlpMasonryImageItem.vue":4126,"./components/partial/MlpMasonryLayout.vue":6883,"./components/product/Product.vue":2819,"./components/row/MlpRow.vue":8929,"./components/shop-button/MlpShopButton.vue":2232,"./components/shop-button/ShopButtonGroup.vue":6070,"./components/shop-button/ShopButtonList.vue":9942,"./components/voucher/MlpVoucher.vue":6e3};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=5763},3041:(t,e,n)=>{"use strict";function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}n.d(e,{Z:()=>Ao});var r,o,s,a,l,u={exports:{}};r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,o=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u.exports=l={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var i=l.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=l.normalizePath(i.path),l.buildURLFromParts(i)}var r=l.parseURL(e);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return n.alwaysNormalize?(r.path=l.normalizePath(r.path),l.buildURLFromParts(r)):e;var s=l.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var a=o.exec(s.path);s.netLoc=a[1],s.path=a[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(u.netLoc=s.netLoc,"/"!==r.path[0]))if(r.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+r.path;u.path=l.normalizePath(d)}else u.path=s.path,r.params||(u.params=s.params,r.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?l.normalizePath(r.path):r.path),l.buildURLFromParts(u)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(s,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};var c=u.exports;function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},p.apply(this,arguments)}const m=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)};let g=function(t){return t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached",t}({}),v=function(t){return t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError",t}({}),y=function(t){return t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",t.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",t.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_PARSING_ERROR="levelParsingError",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.FRAG_GAP="fragGap",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown",t}({});const b=function(){},w={trace:b,debug:b,log:b,warn:b,info:b,error:b};let T=w;function _(t,...e){e.forEach((function(e){T[e]=t[e]?t[e].bind(t):function(t){const e=self.console[t];return e?e.bind(self.console,`[${t}] >`):b}(e)}))}const S=T,E=/^(\d+)x(\d+)$/,x=/(.+?)=(".*?"|.*?)(?:,|$)/g;class k{constructor(t){"string"==typeof t&&(t=k.parseAttrList(t));for(const e in t)t.hasOwnProperty(e)&&("X-"===e.substring(0,2)&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(e)),this[e]=t[e])}decimalInteger(t){const e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e}hexadecimalInteger(t){if(this[t]){let e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;const n=new Uint8Array(e.length/2);for(let t=0;t<e.length/2;t++)n[t]=parseInt(e.slice(2*t,2*t+2),16);return n}return null}hexadecimalIntegerAsNumber(t){const e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,e){const n=this[t];return n?parseFloat(n):e}enumeratedString(t){return this[t]}bool(t){return"YES"===this[t]}decimalResolution(t){const e=E.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}}static parseAttrList(t){let e;const n={};for(x.lastIndex=0;null!==(e=x.exec(t));){let t=e[2];0===t.indexOf('"')&&t.lastIndexOf('"')===t.length-1&&(t=t.slice(1,-1));n[e[1].trim()]=t}return n}}function C(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}class A{constructor(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){const n=e.attr;for(const e in n)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==n[e]){S.warn(`DATERANGE tag attribute: "${e}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=e;break}t=p(new k({}),n,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const t=new Date(this.attr["END-DATE"]);m(t.getTime())&&(this._endDate=t)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(m(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&m(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class L{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var I="audio",O="video",D="audiovideo";class P{constructor(t){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[I]:null,[O]:null,[D]:null},this.baseurl=t}setByteRange(t,e){const n=t.split("@",2),i=[];1===n.length?i[0]=e?e.byteRangeEndOffset:0:i[0]=parseInt(n[1]),i[1]=parseInt(n[0])+i[0],this._byteRange=i}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=c.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(t){this._url=t}}class R extends P{constructor(t,e){super(e),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new L,this.urlId=0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.type=t}get decryptdata(){const{levelkeys:t}=this;if(!t&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;if(!m(this.programDateTime))return null;const t=m(this.duration)?this.duration:0;return this.programDateTime+1e3*t}get encrypted(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),e=t.length;if(e>1||1===e&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(t){if(this.levelkeys){const e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}}abortRequests(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()}setElementaryStreamInfo(t,e,n,i,r,o=!1){const{elementaryStreams:s}=this,a=s[t];a?(a.startPTS=Math.min(a.startPTS,e),a.endPTS=Math.max(a.endPTS,n),a.startDTS=Math.min(a.startDTS,i),a.endDTS=Math.max(a.endDTS,r)):s[t]={startPTS:e,endPTS:n,startDTS:i,endDTS:r,partial:o}}clearElementaryStreamInfo(){const{elementaryStreams:t}=this;t[I]=null,t[O]=null,t[D]=null}}class M extends P{constructor(t,e,n,i,r){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new L,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=e,this.index=i;const o=t.enumeratedString("BYTERANGE");o&&this.setByteRange(o,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}class N{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t)return this.advanced=!0,void(this.updated=!0);const e=this.lastPartSn-t.lastPartSn,n=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!n||!!e,this.advanced=this.endSN>t.endSN||e>0||0===e&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay}get hasProgramDateTime(){return!!this.fragments.length&&m(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const t=this.driftEndTime-this.driftStartTime;if(t>0){return 1e3*(this.driftEnd-this.driftStart)/t}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function F(t){return Uint8Array.from(atob(t),(t=>t.charCodeAt(0)))}function $(t){const e=t.split(":");let n=null;if("data"===e[0]&&2===e.length){const t=e[1].split(";"),i=t[t.length-1].split(",");if(2===i.length){const e="base64"===i[0],r=i[1];e?(t.splice(-1,1),n=F(r)):n=function(t){const e=j(t).subarray(0,16),n=new Uint8Array(16);return n.set(e,16-e.length),n}(r)}}return n}function j(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(t=>t.charCodeAt(0)))}var U={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},B="org.w3.clearkey",H="com.apple.streamingkeydelivery",V="com.microsoft.playready",z="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function W(t){switch(t){case H:return U.FAIRPLAY;case V:return U.PLAYREADY;case z:return U.WIDEVINE;case B:return U.CLEARKEY}}var q="edef8ba979d64acea3c827dcd51d21ed";function G(t){switch(t){case U.FAIRPLAY:return H;case U.PLAYREADY:return V;case U.WIDEVINE:return z;case U.CLEARKEY:return B}}function K(t){const{drmSystems:e,widevineLicenseUrl:n}=t,i=e?[U.FAIRPLAY,U.WIDEVINE,U.PLAYREADY,U.CLEARKEY].filter((t=>!!e[t])):[];return!i[U.WIDEVINE]&&n&&i.push(U.WIDEVINE),i}const Y="undefined"!=typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function Z(t,e,n){return Uint8Array.prototype.slice?t.slice(e,n):new Uint8Array(Array.prototype.slice.call(t,e,n))}const X=(t,e)=>e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128,Q=(t,e)=>e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128,J=(t,e)=>{const n=e;let i=0;for(;X(t,e);){i+=10;i+=tt(t,e+6),Q(t,e+10)&&(i+=10),e+=i}if(i>0)return t.subarray(n,n+i)},tt=(t,e)=>{let n=0;return n=(127&t[e])<<21,n|=(127&t[e+1])<<14,n|=(127&t[e+2])<<7,n|=127&t[e+3],n},et=(t,e)=>X(t,e)&&tt(t,e+6)+10<=t.length-e,nt=t=>t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info,it=t=>{const e=String.fromCharCode(t[0],t[1],t[2],t[3]),n=tt(t,4);return{type:e,size:n,data:t.subarray(10,10+n)}},rt=t=>{let e=0;const n=[];for(;X(t,e);){const i=tt(t,e+6);e+=10;const r=e+i;for(;e+8<r;){const i=it(t.subarray(e)),r=ot(i);r&&n.push(r),e+=i.size+10}Q(t,e)&&(e+=10)}return n},ot=t=>"PRIV"===t.type?st(t):"W"===t.type[0]?lt(t):at(t),st=t=>{if(t.size<2)return;const e=ct(t.data,!0),n=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:n.buffer}},at=t=>{if(t.size<2)return;if("TXXX"===t.type){let e=1;const n=ct(t.data.subarray(e),!0);e+=n.length+1;const i=ct(t.data.subarray(e));return{key:t.type,info:n,data:i}}const e=ct(t.data.subarray(1));return{key:t.type,data:e}},lt=t=>{if("WXXX"===t.type){if(t.size<2)return;let e=1;const n=ct(t.data.subarray(e),!0);e+=n.length+1;const i=ct(t.data.subarray(e));return{key:t.type,info:n,data:i}}const e=ct(t.data);return{key:t.type,data:e}},ut=t=>{if(8===t.data.byteLength){const e=new Uint8Array(t.data),n=1&e[3];let i=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return i/=45,n&&(i+=47721858.84),Math.round(i)}},ct=(t,e=!1)=>{const n=ht();if(n){const i=n.decode(t);if(e){const t=i.indexOf("\0");return-1!==t?i.substring(0,t):i}return i.replace(/\0/g,"")}const i=t.length;let r,o,s,a="",l=0;for(;l<i;){if(r=t[l++],0===r&&e)return a;if(0!==r&&3!==r)switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(r);break;case 12:case 13:o=t[l++],a+=String.fromCharCode((31&r)<<6|63&o);break;case 14:o=t[l++],s=t[l++],a+=String.fromCharCode((15&r)<<12|(63&o)<<6|(63&s)<<0)}}return a};let dt;function ht(){return dt||void 0===self.TextDecoder||(dt=new self.TextDecoder("utf-8")),dt}const ft=function(t){let e="";for(let n=0;n<t.length;n++){let i=t[n].toString(16);i.length<2&&(i="0"+i),e+=i}return e},pt=Math.pow(2,32)-1,mt=[].push,gt={video:1,audio:2,id3:3,text:4};function vt(t){return String.fromCharCode.apply(null,t)}function yt(t,e){const n=t[e]<<8|t[e+1];return n<0?65536+n:n}function bt(t,e){const n=wt(t,e);return n<0?4294967296+n:n}function wt(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function Tt(t,e,n){t[e]=n>>24,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function _t(t,e){const n=[];if(!e.length)return n;const i=t.byteLength;for(let r=0;r<i;){const o=bt(t,r),s=o>1?r+o:i;if(vt(t.subarray(r+4,r+8))===e[0])if(1===e.length)n.push(t.subarray(r+8,s));else{const i=_t(t.subarray(r+8,s),e.slice(1));i.length&&mt.apply(n,i)}r=s}return n}function St(t){const e=[],n=t[0];let i=8;const r=bt(t,i);i+=4;i+=0===n?8:16,i+=2;let o=t.length+0;const s=yt(t,i);i+=2;for(let n=0;n<s;n++){let n=i;const s=bt(t,n);n+=4;const a=2147483647&s;if(1===(2147483648&s)>>>31)return S.warn("SIDX has hierarchical references (not supported)"),null;const l=bt(t,n);n+=4,e.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:o,end:o+a-1}}),o+=a,n+=4,i=n}return{earliestPresentationTime:0,timescale:r,version:n,referencesCount:s,references:e}}function Et(t){const e=[],n=_t(t,["moov","trak"]);for(let t=0;t<n.length;t++){const i=n[t],r=_t(i,["tkhd"])[0];if(r){let t=r[0],n=0===t?12:20;const o=bt(r,n),s=_t(i,["mdia","mdhd"])[0];if(s){t=s[0],n=0===t?12:20;const r=bt(s,n),a=_t(i,["mdia","hdlr"])[0];if(a){const t=vt(a.subarray(8,12)),n={soun:I,vide:O}[t];if(n){const t=_t(i,["mdia","minf","stbl","stsd"])[0];let s;t&&(s=vt(t.subarray(12,16))),e[o]={timescale:r,type:n},e[n]={timescale:r,id:o,codec:s}}}}}}return _t(t,["moov","mvex","trex"]).forEach((t=>{const n=bt(t,4),i=e[n];i&&(i.default={duration:bt(t,12),flags:bt(t,20)})})),e}function xt(t){const e=_t(t,["schm"])[0];if(e){const n=vt(e.subarray(4,8));if("cbcs"===n||"cenc"===n)return _t(t,["schi","tenc"])[0]}return S.error("[eme] missing 'schm' box"),null}function kt(t){const e=bt(t,0);let n=8;1&e&&(n+=4),4&e&&(n+=4);let i=0;const r=bt(t,4);for(let o=0;o<r;o++){if(256&e){i+=bt(t,n),n+=4}512&e&&(n+=4),1024&e&&(n+=4),2048&e&&(n+=4)}return i}function Ct(t,e){const n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}function At(t,e){const n=[],i=e.samples,r=e.timescale,o=e.id;let s=!1;return _t(i,["moof"]).map((a=>{const l=a.byteOffset-8;_t(a,["traf"]).map((a=>{const u=_t(a,["tfdt"]).map((t=>{const e=t[0];let n=bt(t,4);return 1===e&&(n*=Math.pow(2,32),n+=bt(t,8)),n/r}))[0];return void 0!==u&&(t=u),_t(a,["tfhd"]).map((u=>{const c=bt(u,4),d=16777215&bt(u,0);let h=0;const f=0!=(16&d);let p=0;const m=0!=(32&d);let g=8;c===o&&(0!=(1&d)&&(g+=8),0!=(2&d)&&(g+=4),0!=(8&d)&&(h=bt(u,g),g+=4),f&&(p=bt(u,g),g+=4),m&&(g+=4),"video"===e.type&&(s=function(t){if(!t)return!1;const e=t.indexOf("."),n=e<0?t:t.substring(0,e);return"hvc1"===n||"hev1"===n||"dvh1"===n||"dvhe"===n}(e.codec)),_t(a,["trun"]).map((o=>{const a=o[0],u=16777215&bt(o,0),c=0!=(1&u);let d=0;const f=0!=(4&u),m=0!=(256&u);let g=0;const v=0!=(512&u);let y=0;const b=0!=(1024&u),w=0!=(2048&u);let T=0;const _=bt(o,4);let S=8;c&&(d=bt(o,S),S+=4),f&&(S+=4);let E=d+l;for(let l=0;l<_;l++){if(m?(g=bt(o,S),S+=4):g=h,v?(y=bt(o,S),S+=4):y=p,b&&(S+=4),w&&(T=0===a?bt(o,S):wt(o,S),S+=4),e.type===O){let e=0;for(;e<y;){const o=bt(i,E);if(E+=4,Lt(s,i[E])){It(i.subarray(E,E+o),s?2:1,t+T/r,n)}E+=o,e+=o+4}}t+=g/r}})))}))}))})),n}function Lt(t,e){if(t){const t=e>>1&63;return 39===t||40===t}return 6===(31&e)}function It(t,e,n,i){const r=Ot(t);let o=0;o+=e;let s=0,a=0,l=!1,u=0;for(;o<r.length;){s=0;do{if(o>=r.length)break;u=r[o++],s+=u}while(255===u);a=0;do{if(o>=r.length)break;u=r[o++],a+=u}while(255===u);const t=r.length-o;if(!l&&4===s&&o<r.length){l=!0;if(181===r[o++]){const t=yt(r,o);if(o+=2,49===t){const t=bt(r,o);if(o+=4,1195456820===t){const t=r[o++];if(3===t){const e=r[o++],a=64&e,l=a?2+3*(31&e):0,u=new Uint8Array(l);if(a){u[0]=e;for(let t=1;t<l;t++)u[t]=r[o++]}i.push({type:t,payloadType:s,pts:n,bytes:u})}}}}}else if(5===s&&a<t){if(l=!0,a>16){const t=[];for(let e=0;e<16;e++){const n=r[o++].toString(16);t.push(1==n.length?"0"+n:n),3!==e&&5!==e&&7!==e&&9!==e||t.push("-")}const e=a-16,l=new Uint8Array(e);for(let t=0;t<e;t++)l[t]=r[o++];i.push({payloadType:s,pts:n,uuid:t.join(""),userData:ct(l),userDataBytes:l})}}else if(a<t)o+=a;else if(a>t)break}}function Ot(t){const e=t.byteLength,n=[];let i=1;for(;i<e-2;)0===t[i]&&0===t[i+1]&&3===t[i+2]?(n.push(i+2),i+=2):i++;if(0===n.length)return t;const r=e-n.length,o=new Uint8Array(r);let s=0;for(i=0;i<r;s++,i++)s===n[0]&&(s++,n.shift()),o[i]=t[s];return o}function Dt(t,e,n){if(16!==t.byteLength)throw new RangeError("Invalid system id");let i,r,o;if(e){i=1,r=new Uint8Array(16*e.length);for(let t=0;t<e.length;t++){const n=e[t];if(16!==n.byteLength)throw new RangeError("Invalid key");r.set(n,16*t)}}else i=0,r=new Uint8Array;i>0?(o=new Uint8Array(4),e.length>0&&new DataView(o.buffer).setUint32(0,e.length,!1)):o=new Uint8Array;const s=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),function(t,...e){const n=e.length;let i=8,r=n;for(;r--;)i+=e[r].byteLength;const o=new Uint8Array(i);for(o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(t,4),r=0,i=8;r<n;r++)o.set(e[r],i),i+=e[r].byteLength;return o}([112,115,115,104],new Uint8Array([i,0,0,0]),t,o,r,s,n||new Uint8Array)}let Pt={};class Rt{static clearKeyUriToKeyIdMap(){Pt={}}constructor(t,e,n,i=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=e,this.keyFormat=n,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&"AES-128"!==t}isSupported(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case H:case z:case V:case B:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(t){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof t&&("AES-128"!==this.method||this.iv||S.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0);const e=function(t){const e=new Uint8Array(16);for(let n=12;n<16;n++)e[n]=t>>8*(15-n)&255;return e}(t);return new Rt(this.method,this.uri,"identity",this.keyFormatVersions,e)}const e=$(this.uri);if(e)switch(this.keyFormat){case z:this.pssh=e,e.length>=22&&(this.keyId=e.subarray(e.length-22,e.length-6));break;case V:{const t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Dt(t,null,e);const n=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=String.fromCharCode.apply(null,Array.from(n)),r=i.substring(i.indexOf("<"),i.length),o=(new DOMParser).parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(o){const t=o.childNodes[0]?o.childNodes[0].nodeValue:o.getAttribute("VALUE");if(t){const e=F(t).subarray(0,16);!function(t){const e=function(t,e,n){const i=t[e];t[e]=t[n],t[n]=i};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(e),this.keyId=e}}break}default:{let t=e.subarray(0,16);if(16!==t.length){const e=new Uint8Array(16);e.set(t,16-t.length),t=e}this.keyId=t;break}}if(!this.keyId||16!==this.keyId.byteLength){let t=Pt[this.uri];if(!t){const e=Object.keys(Pt).length%Number.MAX_SAFE_INTEGER;t=new Uint8Array(16);new DataView(t.buffer,12,4).setUint32(0,e),Pt[this.uri]=t}this.keyId=t}return this}}const Mt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Nt(t){return Mt.test(t)}function Ft(t,e,n){if(null!==t.variableList||t.hasVariableRefs)for(let i=n.length;i--;){const r=n[i],o=e[r];o&&(e[r]=$t(t,o))}}function $t(t,e){if(null!==t.variableList||t.hasVariableRefs){const n=t.variableList;return e.replace(Mt,(e=>{const i=e.substring(2,e.length-1),r=null==n?void 0:n[i];return void 0===r?(t.playlistParsingError||(t.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),e):r}))}return e}function jt(t,e,n){let i,r,o=t.variableList;if(o||(t.variableList=o={}),"QUERYPARAM"in e){i=e.QUERYPARAM;try{const t=new self.URL(n).searchParams;if(!t.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`);r=t.get(i)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${e.message}`))}}else i=e.NAME,r=e.VALUE;i in o?t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):o[i]=r||""}function Ut(t,e,n){const i=e.IMPORT;if(n&&i in n){let e=t.variableList;e||(t.variableList=e={}),e[i]=n[i]}else t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}function Bt(){if("undefined"!=typeof self)return self.MediaSource||self.WebKitMediaSource}const Ht={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Vt=Bt();function zt(t,e){var n;return null!=(n=null==Vt?void 0:Vt.isTypeSupported(`${e||"video"}/mp4;codecs="${t}"`))&&n}const Wt=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,qt=/#EXT-X-MEDIA:(.*)/g,Gt=/^#EXT(?:INF|-X-TARGETDURATION):/m,Kt=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Yt=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Zt{static findGroup(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i.id===e)return i}}static convertAVC1ToAVCOTI(t){const e=t.split(".");if(e.length>2){let t=e.shift()+".";return t+=parseInt(e.shift()).toString(16),t+=("000"+parseInt(e.shift()).toString(16)).slice(-4),t}return t}static resolve(t,e){return c.buildAbsoluteURL(e,t,{alwaysNormalize:!0})}static isMediaPlaylist(t){return Gt.test(t)}static parseMasterPlaylist(t,e){const n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Nt(t)},i=[];let r;for(Wt.lastIndex=0;null!=(r=Wt.exec(t));)if(r[1]){var o;const t=new k(r[1]);Ft(n,t,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const s=$t(n,r[2]),a={attrs:t,bitrate:t.decimalInteger("AVERAGE-BANDWIDTH")||t.decimalInteger("BANDWIDTH"),name:t.NAME,url:Zt.resolve(s,e)},l=t.decimalResolution("RESOLUTION");l&&(a.width=l.width,a.height=l.height),Jt((t.CODECS||"").split(/[ ,]+/).filter((t=>t)),a),a.videoCodec&&-1!==a.videoCodec.indexOf("avc1")&&(a.videoCodec=Zt.convertAVC1ToAVCOTI(a.videoCodec)),null!=(o=a.unknownCodecs)&&o.length||i.push(a),n.levels.push(a)}else if(r[3]){const t=r[3],i=r[4];switch(t){case"SESSION-DATA":{const t=new k(i);Ft(n,t,["DATA-ID","LANGUAGE","VALUE","URI"]);const e=t["DATA-ID"];e&&(null===n.sessionData&&(n.sessionData={}),n.sessionData[e]=t);break}case"SESSION-KEY":{const t=Xt(i,e,n);t.encrypted&&t.isSupported()?(null===n.sessionKeys&&(n.sessionKeys=[]),n.sessionKeys.push(t)):S.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${i}"`);break}case"DEFINE":{const t=new k(i);Ft(n,t,["NAME","VALUE","QUERYPARAM"]),jt(n,t,e)}break;case"CONTENT-STEERING":{const t=new k(i);Ft(n,t,["SERVER-URI","PATHWAY-ID"]),n.contentSteering={uri:Zt.resolve(t["SERVER-URI"],e),pathwayId:t["PATHWAY-ID"]||"."};break}case"START":n.startTimeOffset=Qt(i)}}const s=i.length>0&&i.length<n.levels.length;return n.levels=s?i:n.levels,0===n.levels.length&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(t,e,n){let i;const r={},o=n.levels,s={AUDIO:o.map((t=>({id:t.attrs.AUDIO,audioCodec:t.audioCodec}))),SUBTITLES:o.map((t=>({id:t.attrs.SUBTITLES,textCodec:t.textCodec}))),"CLOSED-CAPTIONS":[]};let a=0;for(qt.lastIndex=0;null!==(i=qt.exec(t));){const t=new k(i[1]),o=t.TYPE;if(o){const i=s[o],l=r[o]||[];r[o]=l,Ft(n,t,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const u={attrs:t,bitrate:0,id:a++,groupId:t["GROUP-ID"]||"",instreamId:t["INSTREAM-ID"],name:t.NAME||t.LANGUAGE||"",type:o,default:t.bool("DEFAULT"),autoselect:t.bool("AUTOSELECT"),forced:t.bool("FORCED"),lang:t.LANGUAGE,url:t.URI?Zt.resolve(t.URI,e):""};if(null!=i&&i.length){const t=Zt.findGroup(i,u.groupId)||i[0];te(u,t,"audioCodec"),te(u,t,"textCodec")}l.push(u)}}return r}static parseLevelPlaylist(t,e,n,i,r,o){const s=new N(e),a=s.fragments;let l,u,c,d=null,h=0,f=0,g=0,v=0,y=null,b=new R(i,e),w=-1,T=!1;for(Kt.lastIndex=0,s.m3u8=t,s.hasVariableRefs=Nt(t);null!==(l=Kt.exec(t));){T&&(T=!1,b=new R(i,e),b.start=g,b.sn=h,b.cc=v,b.level=n,d&&(b.initSegment=d,b.rawProgramDateTime=d.rawProgramDateTime,d.rawProgramDateTime=null));const t=l[1];if(t){b.duration=parseFloat(t);const e=(" "+l[2]).slice(1);b.title=e||null,b.tagList.push(e?["INF",t,e]:["INF",t])}else if(l[3]){if(m(b.duration)){b.start=g,c&&ie(b,c,s),b.sn=h,b.level=n,b.cc=v,b.urlId=r,a.push(b);const t=(" "+l[3]).slice(1);b.relurl=$t(s,t),ee(b,y),y=b,g+=b.duration,h++,f=0,T=!0}}else if(l[4]){const t=(" "+l[4]).slice(1);y?b.setByteRange(t,y):b.setByteRange(t)}else if(l[5])b.rawProgramDateTime=(" "+l[5]).slice(1),b.tagList.push(["PROGRAM-DATE-TIME",b.rawProgramDateTime]),-1===w&&(w=a.length);else{if(l=l[0].match(Yt),!l){S.warn("No matches on slow regex match for level playlist!");continue}for(u=1;u<l.length&&void 0===l[u];u++);const t=(" "+l[u]).slice(1),r=(" "+l[u+1]).slice(1),g=l[u+2]?(" "+l[u+2]).slice(1):"";switch(t){case"PLAYLIST-TYPE":s.type=r.toUpperCase();break;case"MEDIA-SEQUENCE":h=s.startSN=parseInt(r);break;case"SKIP":{const t=new k(r);Ft(s,t,["RECENTLY-REMOVED-DATERANGES"]);const e=t.decimalInteger("SKIPPED-SEGMENTS");if(m(e)){s.skippedSegments=e;for(let t=e;t--;)a.unshift(null);h+=e}const n=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");n&&(s.recentlyRemovedDateranges=n.split("\t"));break}case"TARGETDURATION":s.targetduration=Math.max(parseInt(r),1);break;case"VERSION":s.version=parseInt(r);break;case"EXTM3U":break;case"ENDLIST":s.live=!1;break;case"#":(r||g)&&b.tagList.push(g?[r,g]:[r]);break;case"DISCONTINUITY":v++,b.tagList.push(["DIS"]);break;case"GAP":b.gap=!0,b.tagList.push([t]);break;case"BITRATE":b.tagList.push([t,r]);break;case"DATERANGE":{const t=new k(r);Ft(s,t,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ft(s,t,t.clientAttrs);const e=new A(t,s.dateRanges[t.ID]);e.isValid||s.skippedSegments?s.dateRanges[e.id]=e:S.warn(`Ignoring invalid DATERANGE tag: "${r}"`),b.tagList.push(["EXT-X-DATERANGE",r]);break}case"DEFINE":{const t=new k(r);Ft(s,t,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in t?Ut(s,t,o):jt(s,t,e)}break;case"DISCONTINUITY-SEQUENCE":v=parseInt(r);break;case"KEY":{const t=Xt(r,e,s);if(t.isSupported()){if("NONE"===t.method){c=void 0;break}c||(c={}),c[t.keyFormat]&&(c=p({},c)),c[t.keyFormat]=t}else S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${r}"`);break}case"START":s.startTimeOffset=Qt(r);break;case"MAP":{const t=new k(r);if(Ft(s,t,["BYTERANGE","URI"]),b.duration){const r=new R(i,e);ne(r,t,n,c),d=r,b.initSegment=d,d.rawProgramDateTime&&!b.rawProgramDateTime&&(b.rawProgramDateTime=d.rawProgramDateTime)}else ne(b,t,n,c),d=b,T=!0;break}case"SERVER-CONTROL":{const t=new k(r);s.canBlockReload=t.bool("CAN-BLOCK-RELOAD"),s.canSkipUntil=t.optionalFloat("CAN-SKIP-UNTIL",0),s.canSkipDateRanges=s.canSkipUntil>0&&t.bool("CAN-SKIP-DATERANGES"),s.partHoldBack=t.optionalFloat("PART-HOLD-BACK",0),s.holdBack=t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const t=new k(r);s.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let t=s.partList;t||(t=s.partList=[]);const n=f>0?t[t.length-1]:void 0,i=f++,o=new k(r);Ft(s,o,["BYTERANGE","URI"]);const a=new M(o,b,e,i,n);t.push(a),b.duration+=a.duration;break}case"PRELOAD-HINT":{const t=new k(r);Ft(s,t,["URI"]),s.preloadHint=t;break}case"RENDITION-REPORT":{const t=new k(r);Ft(s,t,["URI"]),s.renditionReports=s.renditionReports||[],s.renditionReports.push(t);break}default:S.warn(`line parsed but not handled: ${l}`)}}}y&&!y.relurl?(a.pop(),g-=y.duration,s.partList&&(s.fragmentHint=y)):s.partList&&(ee(b,y),b.cc=v,s.fragmentHint=b,c&&ie(b,c,s));const _=a.length,E=a[0],x=a[_-1];if(g+=s.skippedSegments*s.targetduration,g>0&&_&&x){s.averagetargetduration=g/_;const t=x.sn;s.endSN="initSegment"!==t?t:0,s.live||(x.endList=!0),E&&(s.startCC=E.cc)}else s.endSN=0,s.startCC=0;return s.fragmentHint&&(g+=s.fragmentHint.duration),s.totalduration=g,s.endCC=v,w>0&&function(t,e){let n=t[e];for(let i=e;i--;){const e=t[i];if(!e)return;e.programDateTime=n.programDateTime-1e3*e.duration,n=e}}(a,w),s}}function Xt(t,e,n){var i,r;const o=new k(t);Ft(n,o,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=null!=(i=o.METHOD)?i:"",a=o.URI,l=o.hexadecimalInteger("IV"),u=o.KEYFORMATVERSIONS,c=null!=(r=o.KEYFORMAT)?r:"identity";a&&o.IV&&!l&&S.error(`Invalid IV: ${o.IV}`);const d=a?Zt.resolve(a,e):"",h=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Rt(s,d,c,h,l)}function Qt(t){const e=new k(t).decimalFloatingPoint("TIME-OFFSET");return m(e)?e:null}function Jt(t,e){["video","audio","text"].forEach((n=>{const i=t.filter((t=>function(t,e){const n=Ht[e];return!!n&&!0===n[t.slice(0,4)]}(t,n)));if(i.length){const r=i.filter((t=>0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)));e[`${n}Codec`]=r.length>0?r[0]:i[0],t=t.filter((t=>-1===i.indexOf(t)))}})),e.unknownCodecs=t}function te(t,e,n){const i=e[n];i&&(t[n]=i)}function ee(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),m(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function ne(t,e,n,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=n,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function ie(t,e,n){t.levelkeys=e;const{encryptedFragments:i}=n;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some((t=>e[t].isCommonEncryption))||i.push(t)}var re="manifest",oe="level",se="audioTrack",ae="subtitleTrack",le="main",ue="audio",ce="subtitle";function de(t){const{type:e}=t;switch(e){case se:return ue;case ae:return ce;default:return le}}function he(t,e){let n=t.url;return void 0!==n&&0!==n.indexOf("data:")||(n=e.url),n}class fe{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.LEVEL_LOADING,this.onLevelLoading,this),t.on(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:t}=this;t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.LEVEL_LOADING,this.onLevelLoading,this),t.off(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(t){const e=this.hls.config,n=e.pLoader,i=e.loader,r=new(n||i)(e);return this.loaders[t.type]=r,r}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,e){const{url:n}=e;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:re,url:n,deliveryDirectives:null})}onLevelLoading(t,e){const{id:n,level:i,url:r,deliveryDirectives:o}=e;this.load({id:n,level:i,responseType:"text",type:oe,url:r,deliveryDirectives:o})}onAudioTrackLoading(t,e){const{id:n,groupId:i,url:r,deliveryDirectives:o}=e;this.load({id:n,groupId:i,level:null,responseType:"text",type:se,url:r,deliveryDirectives:o})}onSubtitleTrackLoading(t,e){const{id:n,groupId:i,url:r,deliveryDirectives:o}=e;this.load({id:n,groupId:i,level:null,responseType:"text",type:ae,url:r,deliveryDirectives:o})}load(t){var e;const n=this.hls.config;let i,r=this.getInternalLoader(t);if(r){const e=r.context;if(e&&e.url===t.url)return void S.trace("[playlist-loader]: playlist request ongoing");S.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),r.abort()}if(i=t.type===re?n.manifestLoadPolicy.default:p({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(t),null!=(e=t.deliveryDirectives)&&e.part){let e;if(t.type===oe&&null!==t.level?e=this.hls.levels[t.level].details:t.type===se&&null!==t.id?e=this.hls.audioTracks[t.id].details:t.type===ae&&null!==t.id&&(e=this.hls.subtitleTracks[t.id].details),e){const t=e.partTarget,n=e.targetduration;if(t&&n){const e=1e3*Math.max(3*t,.8*n);i=p({},i,{maxTimeToFirstByteMs:Math.min(e,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(e,i.maxTimeToFirstByteMs)})}}}const o=i.errorRetry||i.timeoutRetry||{},s={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},a={onSuccess:(t,e,n,i)=>{const r=this.getInternalLoader(n);this.resetInternalLoader(n.type);const o=t.data;0===o.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),Zt.isMediaPlaylist(o)?this.handleTrackOrLevelPlaylist(t,e,n,i||null,r):this.handleMasterPlaylist(t,e,n,i)):this.handleManifestParsingError(t,n,new Error("no EXTM3U delimiter"),i||null,e)},onError:(t,e,n,i)=>{this.handleNetworkError(e,n,!1,t,i)},onTimeout:(t,e,n)=>{this.handleNetworkError(e,n,!0,void 0,t)}};r.load(t,s,a)}handleMasterPlaylist(t,e,n,i){const r=this.hls,o=t.data,s=he(t,n),a=Zt.parseMasterPlaylist(o,s);if(a.playlistParsingError)return void this.handleManifestParsingError(t,n,a.playlistParsingError,i,e);const{contentSteering:l,levels:u,sessionData:c,sessionKeys:d,startTimeOffset:h,variableList:f}=a;this.variableList=f;const{AUDIO:p=[],SUBTITLES:m,"CLOSED-CAPTIONS":v}=Zt.parseMasterPlaylistMedia(o,s,a);if(p.length){p.some((t=>!t.url))||!u[0].audioCodec||u[0].attrs.AUDIO||(S.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),p.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new k({}),bitrate:0,url:""}))}r.trigger(g.MANIFEST_LOADED,{levels:u,audioTracks:p,subtitles:m,captions:v,contentSteering:l,url:s,stats:e,networkDetails:i,sessionData:c,sessionKeys:d,startTimeOffset:h,variableList:f})}handleTrackOrLevelPlaylist(t,e,n,i,r){const o=this.hls,{id:s,level:a,type:l}=n,u=he(t,n),c=m(s)?s:0,d=m(a)?a:c,h=de(n),f=Zt.parseLevelPlaylist(t.data,u,d,h,c,this.variableList);if(l===re){const t={attrs:new k({}),bitrate:0,details:f,name:"",url:u};o.trigger(g.MANIFEST_LOADED,{levels:[t],audioTracks:[],url:u,stats:e,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),n.levelDetails=f,this.handlePlaylistLoaded(f,t,e,n,i,r)}handleManifestParsingError(t,e,n,i,r){this.hls.trigger(g.ERROR,{type:v.NETWORK_ERROR,details:y.MANIFEST_PARSING_ERROR,fatal:e.type===re,url:t.url,err:n,error:n,reason:n.message,response:t,context:e,networkDetails:i,stats:r})}handleNetworkError(t,e,n=!1,i,r){let o=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===oe?o+=`: ${t.level} id: ${t.id}`:t.type!==se&&t.type!==ae||(o+=` id: ${t.id} group-id: "${t.groupId}"`);const s=new Error(o);S.warn(`[playlist-loader]: ${o}`);let a=y.UNKNOWN,l=!1;const u=this.getInternalLoader(t);switch(t.type){case re:a=n?y.MANIFEST_LOAD_TIMEOUT:y.MANIFEST_LOAD_ERROR,l=!0;break;case oe:a=n?y.LEVEL_LOAD_TIMEOUT:y.LEVEL_LOAD_ERROR,l=!1;break;case se:a=n?y.AUDIO_TRACK_LOAD_TIMEOUT:y.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case ae:a=n?y.SUBTITLE_TRACK_LOAD_TIMEOUT:y.SUBTITLE_LOAD_ERROR,l=!1}u&&this.resetInternalLoader(t.type);const c={type:v.NETWORK_ERROR,details:a,fatal:l,url:t.url,loader:u,context:t,error:s,networkDetails:e,stats:r};if(i){const n=(null==e?void 0:e.url)||t.url;c.response=h({url:n,data:void 0},i)}this.hls.trigger(g.ERROR,c)}handlePlaylistLoaded(t,e,n,i,r,o){const s=this.hls,{type:a,level:l,id:u,groupId:c,deliveryDirectives:d}=i,h=he(e,i),f=de(i),p="number"==typeof i.level&&f===le?l:void 0;if(!t.fragments.length){const t=new Error("No Segments found in Playlist");return void s.trigger(g.ERROR,{type:v.NETWORK_ERROR,details:y.LEVEL_EMPTY_ERROR,fatal:!1,url:h,error:t,reason:t.message,response:e,context:i,level:p,parent:f,networkDetails:r,stats:n})}t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));const m=t.playlistParsingError;if(m)s.trigger(g.ERROR,{type:v.NETWORK_ERROR,details:y.LEVEL_PARSING_ERROR,fatal:!1,url:h,error:m,reason:m.message,response:e,context:i,level:p,parent:f,networkDetails:r,stats:n});else switch(t.live&&o&&(o.getCacheAge&&(t.ageHeader=o.getCacheAge()||0),o.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),a){case re:case oe:s.trigger(g.LEVEL_LOADED,{details:t,level:p||0,id:u||0,stats:n,networkDetails:r,deliveryDirectives:d});break;case se:s.trigger(g.AUDIO_TRACK_LOADED,{details:t,id:u||0,groupId:c||"",stats:n,networkDetails:r,deliveryDirectives:d});break;case ae:s.trigger(g.SUBTITLE_TRACK_LOADED,{details:t,id:u||0,groupId:c||"",stats:n,networkDetails:r,deliveryDirectives:d})}}}function pe(t,e){let n;try{n=new Event("addtrack")}catch(t){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=t,e.dispatchEvent(n)}function me(t,e){const n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){S.debug(`[texttrack-utils]: ${n}`);const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,t.addCue(i)}"disabled"===n&&(t.mode=n)}function ge(t){const e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(let e=t.cues.length;e--;)t.removeCue(t.cues[e]);"disabled"===e&&(t.mode=e)}function ve(t,e,n,i){const r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&t.cues.length>0){const r=function(t,e,n){const i=[],r=function(t,e){if(e<t[0].startTime)return 0;const n=t.length-1;if(e>t[n].endTime)return-1;let i=0,r=n;for(;i<=r;){const o=Math.floor((r+i)/2);if(e<t[o].startTime)r=o-1;else{if(!(e>t[o].startTime&&i<n))return o;i=o+1}}return t[i].startTime-e<e-t[r].startTime?i:r}(t,e);if(r>-1)for(let o=r,s=t.length;o<s;o++){const r=t[o];if(r.startTime>=e&&r.endTime<=n)i.push(r);else if(r.startTime>n)return i}return i}(t.cues,e,n);for(let e=0;e<r.length;e++)i&&!i(r[e])||t.removeCue(r[e])}"disabled"===r&&(t.mode=r)}var ye="org.id3",be="com.apple.quicktime.HLS",we="https://aomedia.org/emsg/ID3";function Te(){if("undefined"!=typeof self)return self.WebKitDataCue||self.VTTCue||self.TextTrackCue}const _e=(()=>{const t=Te();try{new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Se(t,e){return t.getTime()/1e3-e}class Ee{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:t}=this;t.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(g.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:t}=this;t.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(g.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(t,e){this.media=e.media}onMediaDetaching(){this.id3Track&&(ge(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const e=this.getID3Track(t.textTracks);return e.mode="hidden",e}getID3Track(t){if(this.media){for(let e=0;e<t.length;e++){const n=t[e];if("metadata"===n.kind&&"id3"===n.label)return pe(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(t,e){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:i}}}=this;if(!n&&!i)return;const{samples:r}=e;this.id3Track||(this.id3Track=this.createTrack(this.media));const o=Te();for(let t=0;t<r.length;t++){const e=r[t].type;if(e===we&&!n||!i)continue;const s=rt(r[t].data);if(s){const n=r[t].pts;let i=n+r[t].duration;i>_e&&(i=_e);i-n<=0&&(i=n+.25);for(let t=0;t<s.length;t++){const r=s[t];if(!nt(r)){this.updateId3CueEnds(n,e);const t=new o(n,i,"");t.value=r,e&&(t.type=e),this.id3Track.addCue(t)}}}}}updateId3CueEnds(t,e){var n;const i=null==(n=this.id3Track)?void 0:n.cues;if(i)for(let n=i.length;n--;){const r=i[n];r.type===e&&r.startTime<t&&r.endTime===_e&&(r.endTime=t)}}onBufferFlushing(t,{startOffset:e,endOffset:n,type:i}){const{id3Track:r,hls:o}=this;if(!o)return;const{config:{enableEmsgMetadataCues:s,enableID3MetadataCues:a}}=o;if(r&&(s||a)){let t;t="audio"===i?t=>t.type===ye&&a:"video"===i?t=>t.type===we&&s:t=>t.type===ye&&a||t.type===we&&s,ve(r,e,n,t)}}onLevelUpdated(t,{details:e}){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:i}=this,{dateRanges:r}=e,o=Object.keys(r);if(i){const t=Object.keys(n).filter((t=>!o.includes(t)));for(let e=t.length;e--;){const r=t[e];Object.keys(n[r].cues).forEach((t=>{i.removeCue(n[r].cues[t])})),delete n[r]}}const s=e.fragments[e.fragments.length-1];if(0===o.length||!m(null==s?void 0:s.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=s.programDateTime/1e3-s.start,l=Te();for(let t=0;t<o.length;t++){const e=o[t],i=r[e],s=n[e],d=(null==s?void 0:s.cues)||{};let h=(null==s?void 0:s.durationKnown)||!1;const f=Se(i.startDate,a);let p=_e;const m=i.endDate;if(m)p=Se(m,a),h=!0;else if(i.endOnNext&&!h){const t=o.reduce(((t,e)=>{const n=r[e];return n.class===i.class&&n.id!==e&&n.startDate>i.startDate&&t.push(n),t}),[]).sort(((t,e)=>t.startDate.getTime()-e.startDate.getTime()))[0];t&&(p=Se(t.startDate,a),h=!0)}const g=Object.keys(i.attr);for(let t=0;t<g.length;t++){const n=g[t];if("ID"===(c=n)||"CLASS"===c||"START-DATE"===c||"DURATION"===c||"END-DATE"===c||"END-ON-NEXT"===c)continue;let r=d[n];if(r)h&&!s.durationKnown&&(r.endTime=p);else{let t=i.attr[n];r=new l(f,p,""),C(n)&&(u=t,t=Uint8Array.from(u.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer),r.value={key:n,data:t},r.type=be,r.id=e,this.id3Track.addCue(r),d[n]=r}}n[e]={cues:d,dateRange:i,durationKnown:h}}var u,c}}class xe{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=t,this.config=t.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:t,levelDetails:e}=this;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}get targetLatency(){const{levelDetails:t}=this;if(null===t)return null;const{holdBack:e,partHoldBack:n,targetduration:i}=t,{liveSyncDuration:r,liveSyncDurationCount:o,lowLatencyMode:s}=this.config,a=this.hls.userConfig;let l=s&&n||e;(a.liveSyncDuration||a.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:o*i);const u=i;return l+Math.min(1*this.stallCount,u)}get liveSyncPosition(){const t=this.estimateLiveEdge(),e=this.targetLatency,n=this.levelDetails;if(null===t||null===e||null===n)return null;const i=n.edge,r=t-e-this.edgeStalled,o=i-n.totalduration,s=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,r),s)}get drift(){const{levelDetails:t}=this;return null===t?1:t.drift}get edgeStalled(){const{levelDetails:t}=this;if(null===t)return 0;const e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}get forwardBufferLength(){const{media:t,levelDetails:e}=this;if(!t||!e)return 0;const n=t.buffered.length;return(n?t.buffered.end(n-1):e.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(g.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(g.ERROR,this.onError,this)}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:e}){this.levelDetails=e,e.advanced&&this.timeupdate(),!e.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(t,e){var n;e.details===y.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(n=this.levelDetails)&&n.live&&S.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:t,levelDetails:e}=this;if(!t||!e)return;this.currentTime=t.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r)return;const o=this.targetLatency;if(null===o)return;const s=n-o,a=s<Math.min(this.maxLatency,o+e.targetduration);if(e.live&&a&&s>.05&&this.forwardBufferLength>1){const e=Math.min(2,Math.max(1,r)),n=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;t.playbackRate=Math.min(e,Math.max(1,n))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}estimateLiveEdge(){const{levelDetails:t}=this;return null===t?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return null===t?null:t-this.currentTime}}const ke=["NONE","TYPE-0","TYPE-1",null];var Ce="",Ae="YES",Le="v2";class Ie{constructor(t,e,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=n}addDirectives(t){const e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.href}}class Oe{constructor(t){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.unknownCodecs=t.unknownCodecs,this.codecSet=[t.videoCodec,t.audioCodec].filter((t=>t)).join(",").replace(/\.[^.,]+/g,"")}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get attrs(){return this._attrs[this._urlId]}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get uri(){return this.url[this._urlId]||""}get urlId(){return this._urlId}set urlId(t){const e=t%this.url.length;this._urlId!==e&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=e)}get audioGroupId(){var t;return null==(t=this.audioGroupIds)?void 0:t[this.urlId]}get textGroupId(){var t;return null==(t=this.textGroupIds)?void 0:t[this.urlId]}addFallback(t){this.url.push(t.url),this._attrs.push(t.attrs)}}function De(t,e){const n=e.startPTS;if(m(n)){let i,r=0;e.sn>t.sn?(r=n-t.start,i=t):(r=t.start-n,i=e),i.duration!==r&&(i.duration=r)}else if(e.sn>t.sn){t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration}else e.start=Math.max(t.start-e.duration,0)}function Pe(t,e,n,i,r,o){i-n<=0&&(S.warn("Fragment should have a positive duration",e),i=n+e.duration,o=r+e.duration);let s=n,a=i;const l=e.startPTS,u=e.endPTS;if(m(l)){const t=Math.abs(l-n);m(e.deltaPTS)?e.deltaPTS=Math.max(t,e.deltaPTS):e.deltaPTS=t,s=Math.max(n,l),n=Math.min(n,l),r=Math.min(r,e.startDTS),a=Math.min(i,u),i=Math.max(i,u),o=Math.max(o,e.endDTS)}const c=n-e.start;0!==e.start&&(e.start=n),e.duration=i-e.start,e.startPTS=n,e.maxStartPTS=s,e.startDTS=r,e.endPTS=i,e.minEndPTS=a,e.endDTS=o;const d=e.sn;if(!t||d<t.startSN||d>t.endSN)return 0;let h;const f=d-t.startSN,p=t.fragments;for(p[f]=e,h=f;h>0;h--)De(p[h],p[h-1]);for(h=f;h<p.length-1;h++)De(p[h],p[h+1]);return t.fragmentHint&&De(p[p.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,c}function Re(t,e){let n=null;const i=t.fragments;for(let t=i.length-1;t>=0;t--){const e=i[t].initSegment;if(e){n=e;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;let r,o=0;if(function(t,e,n){const i=e.skippedSegments,r=Math.max(t.startSN,e.startSN)-e.startSN,o=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,s=e.startSN-t.startSN,a=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;for(let t=r;t<=o;t++){const r=l[s+t];let o=a[t];i&&!o&&t<i&&(o=e.fragments[t]=r),r&&o&&n(r,o)}}(t,e,((t,i)=>{t.relurl&&(o=t.cc-i.cc),m(t.startPTS)&&m(t.endPTS)&&(i.start=i.startPTS=t.startPTS,i.startDTS=t.startDTS,i.maxStartPTS=t.maxStartPTS,i.endPTS=t.endPTS,i.endDTS=t.endDTS,i.minEndPTS=t.minEndPTS,i.duration=t.endPTS-t.startPTS,i.duration&&(r=i),e.PTSKnown=e.alignedSliding=!0),i.elementaryStreams=t.elementaryStreams,i.loader=t.loader,i.stats=t.stats,i.urlId=t.urlId,t.initSegment&&(i.initSegment=t.initSegment,n=t.initSegment)})),n){(e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments).forEach((t=>{var e;t.initSegment&&t.initSegment.relurl!==(null==(e=n)?void 0:e.relurl)||(t.initSegment=n)}))}if(e.skippedSegments)if(e.deltaUpdateFailed=e.fragments.some((t=>!t)),e.deltaUpdateFailed){S.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let t=e.skippedSegments;t--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}else e.canSkipDateRanges&&(e.dateRanges=function(t,e,n){const i=p({},t);n&&n.forEach((t=>{delete i[t]}));return Object.keys(e).forEach((t=>{const n=new A(e[t].attr,i[t]);n.isValid?i[t]=n:S.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[t].attr)}"`)})),i}(t.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));const s=e.fragments;if(o){S.warn("discontinuity sliding from playlist, take drift into account");for(let t=0;t<s.length;t++)s[t].cc+=o}e.skippedSegments&&(e.startCC=e.fragments[0].cc),function(t,e,n){if(t&&e){let i=0;for(let r=0,o=t.length;r<=o;r++){const o=t[r],s=e[r+i];o&&s&&o.index===s.index&&o.fragment.sn===s.fragment.sn?n(o,s):i--}}}(t.partList,e.partList,((t,e)=>{e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),r?Pe(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Me(t,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;const a=e.advancedDateTime;if(e.advanced&&a){const t=e.edge;e.driftStart||(e.driftStartTime=a,e.driftStart=t),e.driftEndTime=a,e.driftEnd=t}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function Me(t,e){const n=e.startSN+e.skippedSegments-t.startSN,i=t.fragments;n<0||n>=i.length||Ne(e,i[n].start)}function Ne(t,e){if(e){const n=t.fragments;for(let i=t.skippedSegments;i<n.length;i++)n[i].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function Fe(t,e,n){var i;return null!=t&&t.details?$e(null==(i=t.details)?void 0:i.partList,e,n):null}function $e(t,e,n){if(t)for(let i=t.length;i--;){const r=t[i];if(r.index===n&&r.fragment.sn===e)return r}return null}function je(t){switch(t.details){case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_TIMEOUT:case y.LEVEL_LOAD_TIMEOUT:case y.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Ue(t,e){const n=je(e);return t.default[(n?"timeout":"error")+"Retry"]}function Be(t,e){const n="linear"===t.backoff?1:Math.pow(2,e);return Math.min(n*t.retryDelayMs,t.maxRetryDelayMs)}function He(t){return h(h({},t),{errorRetry:null,timeoutRetry:null})}function Ve(t,e,n,i){return!!t&&e<t.maxNumRetry&&(function(t){return 0===t&&!1===navigator.onLine||!!t&&(t<400||t>499)}(i)||!!n)}const ze={search:function(t,e){let n=0,i=t.length-1,r=null,o=null;for(;n<=i;){r=(n+i)/2|0,o=t[r];const s=e(o);if(s>0)n=r+1;else{if(!(s<0))return o;i=r-1}}return null}};function We(t,e,n=0,i=0){let r=null;if(t?r=e[t.sn-e[0].sn+1]||null:0===n&&0===e[0].start&&(r=e[0]),r&&0===qe(n,i,r))return r;const o=ze.search(e,qe.bind(null,n,i));return!o||o===t&&r?r:o}function qe(t=0,e=0,n){if(n.start<=t&&n.start+n.duration>t)return 0;const i=Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=t?1:n.start-i>t&&n.start?-1:0}function Ge(t,e,n){const i=1e3*Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>t}var Ke=0,Ye=2,Ze=5,Xe=0,Qe=1,Je=2;function tn(t,e,n){if(performance.now()-t.lastErrorPerfMs>3e5)return!0;const i=t.details;if(e.details===y.FRAG_GAP&&i&&e.frag){const t=e.frag.start,n=We(null,i.fragments,t);if(n&&!n.gap)return!0}if(n&&t.errors.length<n.errors.length){const n=t.errors[t.errors.length-1];if(i&&n.frag&&e.frag&&Math.abs(n.frag.start-e.frag.start)>3*i.targetduration)return!0}return!1}class en{constructor(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=S.log.bind(S,`${e}:`),this.warn=S.warn.bind(S,`${e}:`),this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){clearTimeout(this.timer),this.timer=-1}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,e){const n=null==e?void 0:e.renditionReports;if(n){let i=-1;for(let r=0;r<n.length;r++){const o=n[r];let s;try{s=new self.URL(o.URI,e.url).href}catch(t){S.warn(`Could not construct new URL for Rendition Report: ${t}`),s=o.URI||""}if(s===t){i=r;break}s===t.substring(0,s.length)&&(i=r)}if(-1!==i){const t=n[i],r=parseInt(t["LAST-MSN"])||(null==e?void 0:e.lastPartSn);let o=parseInt(t["LAST-PART"])||(null==e?void 0:e.lastPartIndex);if(this.hls.config.lowLatencyMode){const t=Math.min(e.age-e.partTarget,e.targetduration);o>=0&&t>e.partTarget&&(o+=1)}return new Ie(r,o>=0?o:void 0,Ce)}}}loadPlaylist(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}shouldReloadPlaylist(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)}playlistLoaded(t,e,n){const{details:i,stats:r}=e,o=self.performance.now(),s=r.loading.first?Math.max(0,o-r.loading.first):0;if(i.advancedDateTime=Date.now()-s,i.live||null!=n&&n.live){if(i.reloaded(n),n&&this.log(`live playlist ${t} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:"MISSED"}`),n&&i.fragments.length>0&&Re(n,i),!this.canLoad||!i.live)return;let s,a,l;if(i.canBlockReload&&i.endSN&&i.advanced){const t=this.hls.config.lowLatencyMode,r=i.lastPartSn,o=i.endSN,u=i.lastPartIndex,c=r===o;-1!==u?(a=c?o+1:r,l=c?t?0:u:u+1):a=o+1;const d=i.age,h=d+i.ageHeader;let f=Math.min(h-i.partTarget,1.5*i.targetduration);if(f>0){if(n&&f>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${f} with playlist age: ${i.age}`),f=0;else{const t=Math.floor(f/i.targetduration);if(a+=t,void 0!==l){l+=Math.round(f%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${d.toFixed(2)}s goal: ${f} skip sn ${t} to part ${l}`)}i.tuneInGoal=f}if(s=this.getDeliveryDirectives(i,e.deliveryDirectives,a,l),t||!c)return void this.loadPlaylist(s)}else i.canBlockReload&&(s=this.getDeliveryDirectives(i,e.deliveryDirectives,a,l));const u=this.hls.mainForwardBufferInfo,c=u?u.end-u.len:0,d=function(t,e=1/0){let n=1e3*t.targetduration;if(t.updated){const i=t.fragments,r=4;if(i.length&&n*r>e){const t=1e3*i[i.length-1].duration;t<n&&(n=t)}}else n/=2;return Math.round(n)}(i,1e3*(i.edge-c));i.updated&&o>this.requestScheduled+d&&(this.requestScheduled=r.loading.start),void 0!==a&&i.canBlockReload?this.requestScheduled=r.loading.first+d-(1e3*i.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+d<o?this.requestScheduled=o:this.requestScheduled-o<=0&&(this.requestScheduled+=d);let h=this.requestScheduled-o;h=Math.max(0,h),this.log(`reload live playlist ${t} in ${Math.round(h)} ms`),this.timer=self.setTimeout((()=>this.loadPlaylist(s)),h)}else this.clearTimer()}getDeliveryDirectives(t,e,n,i){let r=function(t,e){const{canSkipUntil:n,canSkipDateRanges:i,endSN:r}=t;return n&&(void 0!==e?e-r:0)<n?i?Le:Ae:Ce}(t,n);return null!=e&&e.skip&&t.deltaUpdateFailed&&(n=e.msn,i=e.part,r=Ce),new Ie(n,i,r)}checkRetry(t){const e=t.details,n=je(t),i=t.errorAction,{action:r,retryCount:o=0,retryConfig:s}=i||{},a=!!i&&!!s&&(r===Ze||!i.resolved&&r===Ye);if(a){var l;if(this.requestScheduled=-1,o>=s.maxNumRetry)return!1;if(n&&null!=(l=t.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${o+1}/${s.maxNumRetry} after "${e}" without delivery-directives`),this.loadPlaylist();else{const t=Be(s,o);this.timer=self.setTimeout((()=>this.loadPlaylist()),t),this.warn(`Retrying playlist loading ${o+1}/${s.maxNumRetry} after "${e}" in ${t}ms`)}t.levelRetry=!0,i.resolved=!0}return a}}let nn;class rn extends en{constructor(t,e){super(t,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=e,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(g.LEVEL_LOADED,this.onLevelLoaded,this),t.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(g.FRAG_LOADED,this.onFragLoaded,this),t.on(g.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(g.LEVEL_LOADED,this.onLevelLoaded,this),t.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(g.FRAG_LOADED,this.onFragLoaded,this),t.off(g.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}startLoad(){this._levels.forEach((t=>{t.loadError=0,t.fragmentError=0})),super.startLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]}onManifestLoading(t,e){this.resetLevels()}onManifestLoaded(t,e){const n=[],i={};let r;e.levels.forEach((t=>{var e;const o=t.attrs;-1!==(null==(e=t.audioCodec)?void 0:e.indexOf("mp4a.40.34"))&&(nn||(nn=/chrome|firefox/i.test(navigator.userAgent)),nn&&(t.audioCodec=void 0));const{AUDIO:s,CODECS:a,"FRAME-RATE":l,"PATHWAY-ID":u,RESOLUTION:c,SUBTITLES:d}=o,h=`${`${u||"."}-`}${t.bitrate}-${c}-${l}-${a}`;r=i[h],r?r.addFallback(t):(r=new Oe(t),i[h]=r,n.push(r)),on(r,"audio",s),on(r,"text",d)})),this.filterAndSortMediaOptions(n,e)}filterAndSortMediaOptions(t,e){let n=[],i=[],r=!1,o=!1,s=!1,a=t.filter((({audioCodec:t,videoCodec:e,width:n,height:i,unknownCodecs:a})=>(r||(r=!(!n||!i)),o||(o=!!e),s||(s=!!t),!(null!=a&&a.length)&&(!t||zt(t,"audio"))&&(!e||zt(e,"video")))));if((r||o)&&s&&(a=a.filter((({videoCodec:t,width:e,height:n})=>!!t||!(!e||!n)))),0===a.length)return void Promise.resolve().then((()=>{if(this.hls){const t=new Error("no level with compatible codecs found in manifest");this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}}));e.audioTracks&&(n=e.audioTracks.filter((t=>!t.audioCodec||zt(t.audioCodec,"audio"))),sn(n)),e.subtitles&&(i=e.subtitles,sn(i));const l=a.slice(0);a.sort(((t,e)=>t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"]?(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1:t.bitrate!==e.bitrate?t.bitrate-e.bitrate:t.attrs["FRAME-RATE"]!==e.attrs["FRAME-RATE"]?t.attrs.decimalFloatingPoint("FRAME-RATE")-e.attrs.decimalFloatingPoint("FRAME-RATE"):t.attrs.SCORE!==e.attrs.SCORE?t.attrs.decimalFloatingPoint("SCORE")-e.attrs.decimalFloatingPoint("SCORE"):r&&t.height!==e.height?t.height-e.height:0));let u=l[0];if(this.steering&&(a=this.steering.filterParsedLevels(a),a.length!==l.length))for(let t=0;t<l.length;t++)if(l[t].pathwayId===a[0].pathwayId){u=l[t];break}this._levels=a;for(let t=0;t<a.length;t++)if(a[t]===u){this._firstLevel=t,this.log(`manifest loaded, ${a.length} level(s) found, first bitrate: ${u.bitrate}`);break}const c=s&&!o,d={levels:a,audioTracks:n,subtitleTracks:i,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:s,video:o,altAudio:!c&&n.some((t=>!!t.url))};this.hls.trigger(g.MANIFEST_PARSED,d),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return 0===this._levels.length?null:this._levels}get level(){return this.currentLevelIndex}set level(t){const e=this._levels;if(0===e.length)return;if(t<0||t>=e.length){const n=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(g.ERROR,{type:v.OTHER_ERROR,details:y.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:n,reason:n.message}),i)return;t=Math.min(t,e.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,o=e[t],s=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=o,n===t&&o.details&&i&&r===s)return;this.log(`Switching to level ${t}${s?" with Pathway "+s:""} from level ${n}${r?" with Pathway "+r:""}`);const a=p({},o,{level:t,maxBitrate:o.maxBitrate,attrs:o.attrs,uri:o.uri,urlId:o.urlId});delete a._attrs,delete a._urlId,this.hls.trigger(g.LEVEL_SWITCHING,a);const l=o.details;if(!l||l.live){const t=this.switchParams(o.uri,null==i?void 0:i.details);this.loadPlaylist(t)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(void 0===this._startLevel){const t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel}set startLevel(t){this._startLevel=t}onError(t,e){!e.fatal&&e.context&&e.context.type===oe&&e.context.level===this.level&&this.checkRetry(e)}onFragLoaded(t,{frag:e}){if(void 0!==e&&e.type===le){const t=this._levels[e.level];void 0!==t&&(t.loadError=0)}}onLevelLoaded(t,e){var n;const{level:i,details:r}=e,o=this._levels[i];var s;if(!o)return this.warn(`Invalid level index ${i}`),void(null!=(s=e.deliveryDirectives)&&s.skip&&(r.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===o.fragmentError&&(o.loadError=0),this.playlistLoaded(i,e,o.details)):null!=(n=e.deliveryDirectives)&&n.skip&&(r.deltaUpdateFailed=!0)}onAudioTrackSwitched(t,e){const n=this.currentLevel;if(!n)return;const i=this.hls.audioTracks[e.id].groupId;if(n.audioGroupIds&&n.audioGroupId!==i){let t=-1;for(let e=0;e<n.audioGroupIds.length;e++)if(n.audioGroupIds[e]===i){t=e;break}-1!==t&&t!==n.urlId&&(n.urlId=t,this.canLoad&&this.startLoad())}}loadPlaylist(t){super.loadPlaylist();const e=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){const i=n.urlId;let r=n.uri;if(t)try{r=t.addDirectives(r)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}const o=n.attrs["PATHWAY-ID"];this.log(`Loading level index ${e}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""} with${o?" Pathway "+o:""} URI ${i+1}/${n.url.length} ${r}`),this.clearTimer(),this.hls.trigger(g.LEVEL_LOADING,{url:r,level:e,id:i,deliveryDirectives:t||null})}}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}removeLevel(t,e){const n=(t,n)=>n!==e,i=this._levels.filter(((i,r)=>r!==t||(i.url.length>1&&void 0!==e?(i.url=i.url.filter(n),i.audioGroupIds&&(i.audioGroupIds=i.audioGroupIds.filter(n)),i.textGroupIds&&(i.textGroupIds=i.textGroupIds.filter(n)),i.urlId=0,!0):(this.steering&&this.steering.removeLevel(i),!1))));this.hls.trigger(g.LEVELS_UPDATED,{levels:i})}onLevelsUpdated(t,{levels:e}){e.forEach(((t,e)=>{const{details:n}=t;null!=n&&n.fragments&&n.fragments.forEach((t=>{t.level=e}))})),this._levels=e}}function on(t,e,n){n&&("audio"===e?(t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds[t.url.length-1]=n):"text"===e&&(t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds[t.url.length-1]=n))}function sn(t){const e={};t.forEach((t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++}))}var an="NOT_LOADED",ln="APPENDING",un="PARTIAL",cn="OK";class dn{constructor(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(g.BUFFER_APPENDED,this.onBufferAppended,this),t.on(g.FRAG_BUFFERED,this.onFragBuffered,this),t.on(g.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:t}=this;t.off(g.BUFFER_APPENDED,this.onBufferAppended,this),t.off(g.FRAG_BUFFERED,this.onFragBuffered,this),t.off(g.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(t,e){const n=this.activePartLists[e];if(n)for(let e=n.length;e--;){const i=n[e];if(!i)break;const r=i.end;if(i.start<=t&&null!==r&&t<=r)return i}return this.getBufferedFrag(t,e)}getBufferedFrag(t,e){const{fragments:n}=this,i=Object.keys(n);for(let r=i.length;r--;){const o=n[i[r]];if((null==o?void 0:o.body.type)===e&&o.buffered){const e=o.body;if(e.start<=t&&t<=e.end)return e}}return null}detectEvictedFragments(t,e,n,i){this.timeRanges&&(this.timeRanges[t]=e);const r=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const o=this.fragments[i];if(!o)return;if(r>=o.body.sn)return;if(!o.buffered&&!o.loaded)return void(o.body.type===n&&this.removeFragment(o.body));const s=o.range[t];s&&s.time.some((t=>{const n=!this.isTimeBuffered(t.startPTS,t.endPTS,e);return n&&this.removeFragment(o.body),n}))}))}detectPartialFragments(t){const e=this.timeRanges,{frag:n,part:i}=t;if(!e||"initSegment"===n.sn)return;const r=fn(n),o=this.fragments[r];if(!o)return;const s=!n.relurl;Object.keys(e).forEach((t=>{const r=n.elementaryStreams[t];if(!r)return;const a=e[t],l=s||!0===r.partial;o.range[t]=this.getBufferedTimes(n,i,l,a)})),o.loaded=null,Object.keys(o.range).length?(o.buffered=!0,o.body.endList&&(this.endListFragments[o.body.type]=o),hn(o)||this.removeParts(n.sn-1,n.type)):this.removeFragment(o.body)}removeParts(t,e){const n=this.activePartLists[e];n&&(this.activePartLists[e]=n.filter((e=>e.fragment.sn>=t)))}fragBuffered(t,e){const n=fn(t);let i=this.fragments[n];!i&&e&&(i=this.fragments[n]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,e,n,i){const r={time:[],partial:n},o=t.start,s=t.end,a=t.minEndPTS||s,l=t.maxStartPTS||o;for(let t=0;t<i.length;t++){const e=i.start(t)-this.bufferPadding,n=i.end(t)+this.bufferPadding;if(l>=e&&a<=n){r.time.push({startPTS:Math.max(o,i.start(t)),endPTS:Math.min(s,i.end(t))});break}if(o<n&&s>e)r.partial=!0,r.time.push({startPTS:Math.max(o,i.start(t)),endPTS:Math.min(s,i.end(t))});else if(s<=e)break}return r}getPartialFragment(t){let e,n,i,r=null,o=0;const{bufferPadding:s,fragments:a}=this;return Object.keys(a).forEach((l=>{const u=a[l];u&&hn(u)&&(n=u.body.start-s,i=u.body.end+s,t>=n&&t<=i&&(e=Math.min(t-n,i-t),o<=e&&(r=u.body,o=e)))})),r}isEndListAppended(t){const e=this.endListFragments[t];return void 0!==e&&(e.buffered||hn(e))}getState(t){const e=fn(t),n=this.fragments[e];return n?n.buffered?hn(n)?un:cn:ln:an}isTimeBuffered(t,e,n){let i,r;for(let o=0;o<n.length;o++){if(i=n.start(o)-this.bufferPadding,r=n.end(o)+this.bufferPadding,t>=i&&e<=r)return!0;if(e<=i)return!1}return!1}onFragLoaded(t,e){const{frag:n,part:i}=e;if("initSegment"===n.sn||n.bitrateTest)return;const r=i?null:e,o=fn(n);this.fragments[o]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(t,e){const{frag:n,part:i,timeRanges:r}=e;if("initSegment"===n.sn)return;const o=n.type;if(i){let t=this.activePartLists[o];t||(this.activePartLists[o]=t=[]),t.push(i)}this.timeRanges=r,Object.keys(r).forEach((t=>{const e=r[t];this.detectEvictedFragments(t,e,o,i)}))}onFragBuffered(t,e){this.detectPartialFragments(e)}hasFragment(t){const e=fn(t);return!!this.fragments[e]}hasParts(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)}removeFragmentsInRange(t,e,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((o=>{const s=this.fragments[o];if(!s)return;const a=s.body;a.type!==n||i&&!a.gap||a.start<e&&a.end>t&&(s.buffered||r)&&this.removeFragment(a)}))}removeFragment(t){const e=fn(t);t.stats.loaded=0,t.clearElementaryStreamInfo();const n=this.activePartLists[t.type];if(n){const e=t.sn;this.activePartLists[t.type]=n.filter((t=>t.fragment.sn!==e))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function hn(t){var e,n,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(n=t.range.audio)?void 0:n.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function fn(t){return`${t.type}_${t.level}_${t.urlId}_${t.sn}`}const pn=Math.pow(2,17);class mn{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,e){const n=t.url;if(!n)return Promise.reject(new yn({type:v.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,o=i.loader;return new Promise(((s,a)=>{if(this.loader&&this.loader.destroy(),t.gap)return void a(vn(t));const l=this.loader=t.loader=r?new r(i):new o(i),u=gn(t),c=He(i.fragLoadPolicy.default),d={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:pn};t.stats=l.stats,l.load(u,d,{onSuccess:(e,n,i,r)=>{this.resetLoader(t,l);let o=e.data;i.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(o.slice(0,16)),o=o.slice(16)),s({frag:t,part:null,payload:o,networkDetails:r})},onError:(e,i,r,o)=>{this.resetLoader(t,l),a(new yn({type:v.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:h({url:n,data:void 0},e),error:new Error(`HTTP Error ${e.code} ${e.text}`),networkDetails:r,stats:o}))},onAbort:(e,n,i)=>{this.resetLoader(t,l),a(new yn({type:v.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:i,stats:e}))},onTimeout:(e,n,i)=>{this.resetLoader(t,l),a(new yn({type:v.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:i,stats:e}))},onProgress:(n,i,r,o)=>{e&&e({frag:t,part:null,payload:r,networkDetails:o})}})}))}loadPart(t,e,n){this.abort();const i=this.config,r=i.fLoader,o=i.loader;return new Promise(((s,a)=>{if(this.loader&&this.loader.destroy(),t.gap||e.gap)return void a(vn(t,e));const l=this.loader=t.loader=r?new r(i):new o(i),u=gn(t,e),c=He(i.fragLoadPolicy.default),d={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:pn};e.stats=l.stats,l.load(u,d,{onSuccess:(i,r,o,a)=>{this.resetLoader(t,l),this.updateStatsFromPart(t,e);const u={frag:t,part:e,payload:i.data,networkDetails:a};n(u),s(u)},onError:(n,i,r,o)=>{this.resetLoader(t,l),a(new yn({type:v.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:h({url:u.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:o}))},onAbort:(n,i,r)=>{t.stats.aborted=e.stats.aborted,this.resetLoader(t,l),a(new yn({type:v.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:t,part:e,error:new Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>{this.resetLoader(t,l),a(new yn({type:v.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:r,stats:n}))}})}))}updateStatsFromPart(t,e){const n=t.stats,i=e.stats,r=i.total;if(n.loaded+=i.loaded,r){const i=Math.round(t.duration/e.duration),o=Math.min(Math.round(n.loaded/r),i),s=(i-o)*Math.round(n.loaded/o);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);const o=n.loading,s=i.loading;o.start?o.first+=s.first-s.start:(o.start=s.start,o.first=s.first),o.end=s.end}resetLoader(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()}}function gn(t,e=null){const n=e||t,i={frag:t,part:e,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},r=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if(m(r)&&m(o)){var s;let e=r,n=o;if("initSegment"===t.sn&&"AES-128"===(null==(s=t.decryptdata)?void 0:s.method)){const t=o-r;t%16&&(n=o+(16-t%16)),0!==r&&(i.resetIV=!0,e=r-16)}i.rangeStart=e,i.rangeEnd=n}return i}function vn(t,e){const n=new Error(`GAP ${t.gap?"tag":"attribute"} found`),i={type:v.MEDIA_ERROR,details:y.FRAG_GAP,fatal:!1,frag:t,error:n,networkDetails:null};return e&&(i.part=e),(e||t).stats.aborted=!0,new yn(i)}class yn extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class bn{constructor(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const e in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[e].loader;if(n){if(t&&t!==n.context.frag.type)return;n.abort()}}}detach(){for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(t,e=y.KEY_LOAD_ERROR,n,i,r){return new yn({type:v.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:r,error:n,networkDetails:i})}loadClear(t,e){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:i}=t;for(let t=0;t<e.length;t++){const r=e[t];if(i<=r.cc&&("initSegment"===n||"initSegment"===r.sn||n<r.sn)){this.emeController.selectKeySystemFormat(r).then((t=>{r.setKeyFormat(t)}));break}}}}load(t){return!t.decryptdata&&t.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(t).then((e=>this.loadInternal(t,e))):this.loadInternal(t)}loadInternal(t,e){var n,i;e&&t.setKeyFormat(e);const r=t.decryptdata;if(!r){const n=new Error(e?`Expected frag.decryptdata to be defined after setting format ${e}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,y.KEY_LOAD_ERROR,n))}const o=r.uri;if(!o)return Promise.reject(this.createKeyLoadError(t,y.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${o}"`)));let s=this.keyUriToKeyInfo[o];if(null!=(n=s)&&n.decryptdata.key)return r.key=s.decryptdata.key,Promise.resolve({frag:t,keyInfo:s});var a;if(null!=(i=s)&&i.keyLoadPromise)switch(null==(a=s.mediaKeySessionContext)?void 0:a.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return s.keyLoadPromise.then((e=>(r.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:s})))}switch(s=this.keyUriToKeyInfo[o]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(s,t):this.loadKeyEME(s,t);case"AES-128":return this.loadKeyHTTP(s,t);default:return Promise.reject(this.createKeyLoadError(t,y.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(t,e){const n={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){const e=this.emeController.loadKey(n);if(e)return(t.keyLoadPromise=e.then((e=>(t.mediaKeySessionContext=e,n)))).catch((e=>{throw t.keyLoadPromise=null,e}))}return Promise.resolve(n)}loadKeyHTTP(t,e){const n=this.config,i=new(0,n.loader)(n);return e.keyLoader=t.loader=i,t.keyLoadPromise=new Promise(((r,o)=>{const s={keyInfo:t,frag:e,responseType:"arraybuffer",url:t.decryptdata.uri},a=n.keyLoadPolicy.default,l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},u={onSuccess:(t,e,n,i)=>{const{frag:s,keyInfo:a,url:l}=n;if(!s.decryptdata||a!==this.keyUriToKeyInfo[l])return o(this.createKeyLoadError(s,y.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));a.decryptdata.key=s.decryptdata.key=new Uint8Array(t.data),s.keyLoader=null,a.loader=null,r({frag:s,keyInfo:a})},onError:(t,n,i,r)=>{this.resetLoader(n),o(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,new Error(`HTTP Error ${t.code} loading key ${t.text}`),i,h({url:s.url,data:void 0},t)))},onTimeout:(t,n,i)=>{this.resetLoader(n),o(this.createKeyLoadError(e,y.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(t,n,i)=>{this.resetLoader(n),o(this.createKeyLoadError(e,y.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(s,l,u)}))}resetLoader(t){const{frag:e,keyInfo:n,url:i}=t,r=n.loader;e.keyLoader===r&&(e.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}class wn{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}const Tn={length:0,start:()=>0,end:()=>0};class _n{static isBuffered(t,e){try{if(t){const n=_n.getBuffered(t);for(let t=0;t<n.length;t++)if(e>=n.start(t)&&e<=n.end(t))return!0}}catch(t){}return!1}static bufferInfo(t,e,n){try{if(t){const i=_n.getBuffered(t),r=[];let o;for(o=0;o<i.length;o++)r.push({start:i.start(o),end:i.end(o)});return this.bufferedInfo(r,e,n)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}}static bufferedInfo(t,e,n){e=Math.max(0,e),t.sort((function(t,e){const n=t.start-e.start;return n||e.end-t.end}));let i=[];if(n)for(let e=0;e<t.length;e++){const r=i.length;if(r){const o=i[r-1].end;t[e].start-o<n?t[e].end>o&&(i[r-1].end=t[e].end):i.push(t[e])}else i.push(t[e])}else i=t;let r,o=0,s=e,a=e;for(let t=0;t<i.length;t++){const l=i[t].start,u=i[t].end;if(e+n>=l&&e<u)s=l,a=u,o=a-e;else if(e+n<l){r=l;break}}return{len:o,start:s||0,end:a||0,nextStart:r}}static getBuffered(t){try{return t.buffered}catch(t){return S.log("failed to get media.buffered",t),Tn}}}class Sn{constructor(t,e,n,i=0,r=-1,o=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=n,this.size=i,this.part=r,this.partial=o}}function En(t,e){let n=null;for(let i=0,r=t.length;i<r;i++){const r=t[i];if(r&&r.cc===e){n=r;break}}return n}function xn(t,e){if(t){const n=t.start+e;t.start=t.startPTS=n,t.endPTS=n+t.duration}}function kn(t,e){const n=e.fragments;for(let e=0,i=n.length;e<i;e++)xn(n[e],t);e.fragmentHint&&xn(e.fragmentHint,t),e.alignedSliding=!0}function Cn(t,e,n){e&&(!function(t,e,n){if(function(t,e,n){return!(!e.details||!(n.endCC>n.startCC||t&&t.cc<n.startCC))}(t,n,e)){const t=function(t,e,n=0){const i=t.fragments,r=e.fragments;if(!r.length||!i.length)return void S.log("No fragments to align");const o=En(i,r[0].cc);if(o&&(!o||o.startPTS))return o;S.log("No frag in previous level to align on")}(n.details,e);t&&m(t.start)&&(S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),kn(t.start,e))}}(t,n,e),!n.alignedSliding&&e.details&&function(t,e){if(!e.fragments.length||!t.hasProgramDateTime||!e.hasProgramDateTime)return;const n=e.fragments[0].programDateTime,i=t.fragments[0].programDateTime,r=(i-n)/1e3+e.fragments[0].start;r&&m(r)&&(S.log(`Adjusting PTS using programDateTime delta ${i-n}ms, sliding:${r.toFixed(3)} ${t.url} `),kn(r,t))}(n,e.details),n.alignedSliding||!e.details||n.skippedSegments||Me(e.details,n))}function An(t,e){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;const n=t.fragments,i=e.fragments;if(!n.length||!i.length)return;const r=i[Math.round(i.length/2)-1],o=En(n,r.cc)||n[Math.round(n.length/2)-1],s=r.programDateTime,a=o.programDateTime;if(null===s||null===a)return;kn((a-s)/1e3-(o.start-r.start),t)}class Ln{constructor(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}decrypt(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)}}class In{constructor(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}class On{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const e=new DataView(t),n=new Uint32Array(4);for(let t=0;t<4;t++)n[t]=e.getUint32(4*t);return n}initTable(){const t=this.sBox,e=this.invSBox,n=this.subMix,i=n[0],r=n[1],o=n[2],s=n[3],a=this.invSubMix,l=a[0],u=a[1],c=a[2],d=a[3],h=new Uint32Array(256);let f=0,p=0,m=0;for(m=0;m<256;m++)h[m]=m<128?m<<1:m<<1^283;for(m=0;m<256;m++){let n=p^p<<1^p<<2^p<<3^p<<4;n=n>>>8^255&n^99,t[f]=n,e[n]=f;const a=h[f],m=h[a],g=h[m];let v=257*h[n]^16843008*n;i[f]=v<<24|v>>>8,r[f]=v<<16|v>>>16,o[f]=v<<8|v>>>24,s[f]=v,v=16843009*g^65537*m^257*a^16843008*f,l[n]=v<<24|v>>>8,u[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,d[n]=v,f?(f=a^h[h[h[g^a]]],p^=h[h[p]]):f=p=1}}expandKey(t){const e=this.uint8ArrayToUint32Array_(t);let n=!0,i=0;for(;i<e.length&&n;)n=e[i]===this.key[i],i++;if(n)return;this.key=e;const r=this.keySize=e.length;if(4!==r&&6!==r&&8!==r)throw new Error("Invalid aes key size="+r);const o=this.ksRows=4*(r+6+1);let s,a;const l=this.keySchedule=new Uint32Array(o),u=this.invKeySchedule=new Uint32Array(o),c=this.sBox,d=this.rcon,h=this.invSubMix,f=h[0],p=h[1],m=h[2],g=h[3];let v,y;for(s=0;s<o;s++)s<r?v=l[s]=e[s]:(y=v,s%r==0?(y=y<<8|y>>>24,y=c[y>>>24]<<24|c[y>>>16&255]<<16|c[y>>>8&255]<<8|c[255&y],y^=d[s/r|0]<<24):r>6&&s%r==4&&(y=c[y>>>24]<<24|c[y>>>16&255]<<16|c[y>>>8&255]<<8|c[255&y]),l[s]=v=(l[s-r]^y)>>>0);for(a=0;a<o;a++)s=o-a,y=3&a?l[s]:l[s-4],u[a]=a<4||s<=4?y:f[c[y>>>24]]^p[c[y>>>16&255]]^m[c[y>>>8&255]]^g[c[255&y]],u[a]=u[a]>>>0}networkToHostOrderSwap(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24}decrypt(t,e,n){const i=this.keySize+6,r=this.invKeySchedule,o=this.invSBox,s=this.invSubMix,a=s[0],l=s[1],u=s[2],c=s[3],d=this.uint8ArrayToUint32Array_(n);let h=d[0],f=d[1],p=d[2],m=d[3];const g=new Int32Array(t),v=new Int32Array(g.length);let y,b,w,T,_,S,E,x,k,C,A,L,I,O;const D=this.networkToHostOrderSwap;for(;e<g.length;){for(k=D(g[e]),C=D(g[e+1]),A=D(g[e+2]),L=D(g[e+3]),_=k^r[0],S=L^r[1],E=A^r[2],x=C^r[3],I=4,O=1;O<i;O++)y=a[_>>>24]^l[S>>16&255]^u[E>>8&255]^c[255&x]^r[I],b=a[S>>>24]^l[E>>16&255]^u[x>>8&255]^c[255&_]^r[I+1],w=a[E>>>24]^l[x>>16&255]^u[_>>8&255]^c[255&S]^r[I+2],T=a[x>>>24]^l[_>>16&255]^u[S>>8&255]^c[255&E]^r[I+3],_=y,S=b,E=w,x=T,I+=4;y=o[_>>>24]<<24^o[S>>16&255]<<16^o[E>>8&255]<<8^o[255&x]^r[I],b=o[S>>>24]<<24^o[E>>16&255]<<16^o[x>>8&255]<<8^o[255&_]^r[I+1],w=o[E>>>24]<<24^o[x>>16&255]<<16^o[_>>8&255]<<8^o[255&S]^r[I+2],T=o[x>>>24]<<24^o[_>>16&255]<<16^o[S>>8&255]<<8^o[255&E]^r[I+3],v[e]=D(y^h),v[e+1]=D(T^f),v[e+2]=D(w^p),v[e+3]=D(b^m),h=k,f=C,p=A,m=L,e+=4}return v.buffer}}class Dn{constructor(t,{removePKCS7Padding:e=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=e,e)try{const t=self.crypto;t&&(this.subtle=t.subtle||t.webkitSubtle)}catch(t){}null===this.subtle&&(this.useSoftware=!0)}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:t,remainderData:e}=this;if(!t||e)return this.reset(),null;const n=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?function(t){const e=t.byteLength,n=e&&new DataView(t.buffer).getUint8(e-1);return n?Z(t,0,e-n):t}(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(t,e,n){return this.useSoftware?new Promise(((i,r)=>{this.softwareDecrypt(new Uint8Array(t),e,n);const o=this.flush();o?i(o.buffer):r(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(t),e,n)}softwareDecrypt(t,e,n){const{currentIV:i,currentResult:r,remainderData:o}=this;this.logOnce("JS AES decrypt"),o&&(t=Ct(o,t),this.remainderData=null);const s=this.getValidChunk(t);if(!s.length)return null;i&&(n=i);let a=this.softwareDecrypter;a||(a=this.softwareDecrypter=new On),a.expandKey(e);const l=r;return this.currentResult=a.decrypt(s.buffer,0,n),this.currentIV=Z(s,-16).buffer,l||null}webCryptoDecrypt(t,e,n){const i=this.subtle;return this.key===e&&this.fastAesKey||(this.key=e,this.fastAesKey=new In(i,e)),this.fastAesKey.expandKey().then((e=>{if(!i)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new Ln(i,new Uint8Array(n)).decrypt(t.buffer,e)})).catch((i=>(S.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(t,e,n))))}onWebCryptoError(t,e,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,n);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(t){let e=t;const n=t.length-t.length%16;return n!==t.length&&(e=Z(t,0,n),this.remainderData=Z(t,n)),e}logOnce(t){this.logEnabled&&(S.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const Pn=function(t){let e="";const n=t.length;for(let i=0;i<n;i++)e+=`[${t.start(i).toFixed(3)}-${t.end(i).toFixed(3)}]`;return e},Rn="STOPPED",Mn="IDLE",Nn="KEY_LOADING",Fn="FRAG_LOADING",$n="FRAG_LOADING_WAITING_RETRY",jn="WAITING_TRACK",Un="PARSING",Bn="PARSED",Hn="ENDED",Vn="ERROR",zn="WAITING_INIT_PTS",Wn="WAITING_LEVEL";class qn extends wn{constructor(t,e,n,i,r){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Rn,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=r,this.logPrefix=i,this.log=S.log.bind(S,`${i}:`),this.warn=S.warn.bind(S,`${i}:`),this.hls=t,this.fragmentLoader=new mn(t.config),this.keyLoader=n,this.fragmentTracker=e,this.config=t.config,this.decrypter=new Dn(t.config),t.on(g.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Rn}_streamEnded(t,e){if(e.live||t.nextStart||!t.end||!this.media)return!1;const n=e.partList;if(null!=n&&n.length){const t=n[n.length-1];return _n.isBuffered(this.media,t.start+t.duration/2)}const i=e.fragments[e.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){var t;if(this.levels&&null!==this.levelLastLoaded)return null==(t=this.levels[this.levelLastLoaded])?void 0:t.details}onMediaAttached(t,e){const n=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===Rn&&this.startLoad(i.startPosition)}onMediaDetaching(){const t=this.media;null!=t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:t,fragCurrent:e,media:n,mediaBuffer:i,state:r}=this,o=n?n.currentTime:0,s=_n.bufferInfo(i||n,o,t.maxBufferHole);if(this.log(`media seeking to ${m(o)?o.toFixed(3):o}, state: ${r}`),this.state===Hn)this.resetLoadingState();else if(e){const n=t.maxFragLookUpTolerance,i=e.start-n,r=e.start+e.duration+n;if(!s.len||r<s.start||i>s.end){const t=o>r;(o<i||t)&&(t&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(o,1/0,this.playlistType,!0),this.lastCurrentTime=o),this.loadedmetadata||s.len||(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(t,e){this.startTimeOffset=e.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.stopLoad(),super.onHandlerDestroying()}onHandlerDestroyed(){this.state=Rn,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(t,e,n){this._loadFragForPlayback(t,e,n)}_loadFragForPlayback(t,e,n){this._doFragLoad(t,e,n,(e=>{if(this.fragContextChanged(t))return this.warn(`Fragment ${t.sn}${e.part?" p: "+e.part.index:""} of level ${t.level} was dropped during download.`),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const n=this.state;this.fragContextChanged(t)?(n===Fn||!this.fragCurrent&&n===Un)&&(this.fragmentTracker.removeFragment(t),this.state=Mn):("payload"in e&&(this.log(`Loaded fragment ${t.sn} of level ${t.level}`),this.hls.trigger(g.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((e=>{this.state!==Rn&&this.state!==Vn&&(this.warn(e),this.resetFragmentLoading(t))}))}clearTrackerIfNeeded(t){var e;const{fragmentTracker:n}=this;if(n.getState(t)===ln){const e=t.type,i=this.getFwdBufferInfo(this.mediaBuffer,e),r=Math.max(t.duration,i?i.len:this.config.maxBufferLength);this.reduceMaxBufferLength(r)&&n.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?n.removeAllFragments():n.hasParts(t.type)&&(n.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),n.getState(t)===un&&n.removeFragment(t))}flushMainBuffer(t,e,n=null){if(!(t-e))return;const i={startOffset:t,endOffset:e,type:n};this.hls.trigger(g.BUFFER_FLUSHING,i)}_loadInitSegment(t,e){this._doFragLoad(t,e).then((e=>{if(!e||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:n}=this,{payload:i}=e,r=t.decryptdata;if(i&&i.byteLength>0&&r&&r.key&&r.iv&&"AES-128"===r.method){const o=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer).catch((e=>{throw n.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((i=>{const r=self.performance.now();return n.trigger(g.FRAG_DECRYPTED,{frag:t,payload:i,stats:{tstart:o,tdecrypt:r}}),e.payload=i,e}))}return e})).then((n=>{const{fragCurrent:i,hls:r,levels:o}=this;if(!o)throw new Error("init load aborted, missing levels");const s=t.stats;this.state=Mn,e.fragmentError=0,t.data=new Uint8Array(n.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),n.frag===i&&r.trigger(g.FRAG_BUFFERED,{stats:s,frag:i,part:null,id:t.type}),this.tick()})).catch((e=>{this.state!==Rn&&this.state!==Vn&&(this.warn(e),this.resetFragmentLoading(t))}))}fragContextChanged(t){const{fragCurrent:e}=this;return!t||!e||t.level!==e.level||t.sn!==e.sn||t.urlId!==e.urlId}fragBufferedComplete(t,e){var n,i,r,o;const s=this.mediaBuffer?this.mediaBuffer:this.media;this.log(`Buffered ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.playlistType===le?"level":"track"} ${t.level} (frag:[${(null!=(n=t.startPTS)?n:NaN).toFixed(3)}-${(null!=(i=t.endPTS)?i:NaN).toFixed(3)}] > buffer:${s?Pn(_n.getBuffered(s)):"(detached)"})`),this.state=Mn,s&&(!this.loadedmetadata&&t.type==le&&s.buffered.length&&(null==(r=this.fragCurrent)?void 0:r.sn)===(null==(o=this.fragPrevious)?void 0:o.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(t){const{transmuxer:e}=this;if(!e)return;const{frag:n,part:i,partsLoaded:r}=t,o=!r||0===r.length||r.some((t=>!t)),s=new Sn(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!o);e.flush(s)}_handleFragmentLoadProgress(t){}_doFragLoad(t,e,n=null,i){var r;const o=null==e?void 0:e.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let s=null;if(!t.encrypted||null!=(r=t.decryptdata)&&r.key?!t.encrypted&&o.encryptedFragments.length&&this.keyLoader.loadClear(t,o.encryptedFragments):(this.log(`Loading key for ${t.sn} of [${o.startSN}-${o.endSN}], ${"[stream-controller]"===this.logPrefix?"level":"track"} ${t.level}`),this.state=Nn,this.fragCurrent=t,s=this.keyLoader.load(t).then((t=>{if(!this.fragContextChanged(t.frag))return this.hls.trigger(g.KEY_LOADED,t),this.state===Nn&&(this.state=Mn),t})),this.hls.trigger(g.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(s=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),n=Math.max(t.start,n||0),this.config.lowLatencyMode&&"initSegment"!==t.sn){const r=o.partList;if(r&&i){n>t.end&&o.fragmentHint&&(t=o.fragmentHint);const a=this.getNextPart(r,t,n);if(a>-1){const l=r[a];let u;return this.log(`Loading part sn: ${t.sn} p: ${l.index} cc: ${t.cc} of playlist [${o.startSN}-${o.endSN}] parts [0-${a}-${r.length-1}] ${"[stream-controller]"===this.logPrefix?"level":"track"}: ${t.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=l.start+l.duration,this.state=Fn,u=s?s.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(t,l,e,i))).catch((t=>this.handleFragLoadError(t))):this.doFragPartsLoad(t,l,e,i).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(g.FRAG_LOADING,{frag:t,part:l,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):u}if(!t.url||this.loadedEndOfParts(r,n))return Promise.resolve(null)}}this.log(`Loading fragment ${t.sn} cc: ${t.cc} ${o?"of ["+o.startSN+"-"+o.endSN+"] ":""}${"[stream-controller]"===this.logPrefix?"level":"track"}: ${t.level}, target: ${parseFloat(n.toFixed(3))}`),m(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Fn;const a=this.config.progressive;let l;return l=a&&s?s.then((e=>!e||this.fragContextChanged(null==e?void 0:e.frag)?null:this.fragmentLoader.load(t,i))).catch((t=>this.handleFragLoadError(t))):Promise.all([this.fragmentLoader.load(t,a?i:void 0),s]).then((([t])=>(!a&&t&&i&&i(t),t))).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(g.FRAG_LOADING,{frag:t,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):l}doFragPartsLoad(t,e,n,i){return new Promise(((r,o)=>{var s;const a=[],l=null==(s=n.details)?void 0:s.partList,u=e=>{this.fragmentLoader.loadPart(t,e,i).then((i=>{a[e.index]=i;const o=i.part;this.hls.trigger(g.FRAG_LOADED,i);const s=Fe(n,t.sn,e.index+1)||$e(l,t.sn,e.index+1);if(!s)return r({frag:t,part:o,partsLoaded:a});u(s)})).catch(o)};u(e)}))}handleFragLoadError(t){if("data"in t){const e=t.data;t.data&&e.details===y.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(g.ERROR,e)}else this.hls.trigger(g.ERROR,{type:v.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const e=this.getCurrentContext(t);if(!e||this.state!==Un)return void(this.fragCurrent||this.state===Rn||this.state===Vn||(this.state=Mn));const{frag:n,part:i,level:r}=e,o=self.performance.now();n.stats.parsing.end=o,i&&(i.stats.parsing.end=o),this.updateLevelTiming(n,i,r,t.partial)}getCurrentContext(t){const{levels:e,fragCurrent:n}=this,{level:i,sn:r,part:o}=t;if(null==e||!e[i])return this.warn(`Levels object was unset while buffering fragment ${r} of level ${i}. The current chunk will not be buffered.`),null;const s=e[i],a=o>-1?Fe(s,r,o):null,l=a?a.fragment:function(t,e,n){if(null==t||!t.details)return null;const i=t.details;let r=i.fragments[e-i.startSN];return r||(r=i.fragmentHint,r&&r.sn===e?r:e<i.startSN&&n&&n.sn===e?n:null)}(s,r,n);return l?(n&&n!==l&&(l.stats=n.stats),{frag:l,part:a,level:s}):null}bufferFragmentData(t,e,n,i){var r;if(!t||this.state!==Un)return;const{data1:o,data2:s}=t;let a=o;if(o&&s&&(a=Ct(o,s)),null==(r=a)||!r.length)return;const l={type:t.type,frag:e,part:n,chunkMeta:i,parent:e.type,data:a};this.hls.trigger(g.BUFFER_APPENDING,l),t.dropped&&t.independent&&!n&&this.flushBufferGap(e)}flushBufferGap(t){const e=this.media;if(!e)return;if(!_n.isBuffered(e,e.currentTime))return void this.flushMainBuffer(0,t.start);const n=e.currentTime,i=_n.bufferInfo(e,n,0),r=t.duration,o=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),s=Math.max(Math.min(t.start-o,i.end-o),n+o);t.start-s>o&&this.flushMainBuffer(s,t.start)}getFwdBufferInfo(t,e){const n=this.getLoadPosition();return m(n)?this.getFwdBufferInfoAtPos(t,n,e):null}getFwdBufferInfoAtPos(t,e,n){const{config:{maxBufferHole:i}}=this,r=_n.bufferInfo(t,e,i);if(0===r.len&&void 0!==r.nextStart){const o=this.fragmentTracker.getBufferedFrag(e,n);if(o&&r.nextStart<o.end)return _n.bufferInfo(t,e,Math.max(r.nextStart,i))}return r}getMaxBufferLength(t){const{config:e}=this;let n;return n=t?Math.max(8*e.maxBufferSize/t,e.maxBufferLength):e.maxBufferLength,Math.min(n,e.maxMaxBufferLength)}reduceMaxBufferLength(t){const e=this.config,n=t||e.maxBufferLength;return e.maxMaxBufferLength>=n&&(e.maxMaxBufferLength/=2,this.warn(`Reduce max buffer length to ${e.maxMaxBufferLength}s`),!0)}getAppendedFrag(t,e=le){const n=this.fragmentTracker.getAppendedFrag(t,le);return n&&"fragment"in n?n.fragment:n}getNextFragment(t,e){const n=e.fragments,i=n.length;if(!i)return null;const{config:r}=this,o=n[0].start;let s;if(e.live){const o=r.initialLiveManifestSize;if(i<o)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${o})`),null;e.PTSKnown||this.startFragRequested||-1!==this.startPosition||(s=this.getInitialLiveFragment(e,n),this.startPosition=s?this.hls.liveSyncPosition||s.start:t)}else t<=o&&(s=n[0]);if(!s){const n=r.lowLatencyMode?e.partEnd:e.fragmentEnd;s=this.getFragmentAtPosition(t,n,e)}return this.mapToInitFragWhenRequired(s)}isLoopLoading(t,e){const n=this.fragmentTracker.getState(t);return(n===cn||n===un&&!!t.gap)&&this.nextLoadPosition>e}getNextFragmentLoopLoading(t,e,n,i,r){const o=t.gap,s=this.getNextFragment(this.nextLoadPosition,e);if(null===s)return s;if(t=s,o&&t&&!t.gap&&n.nextStart){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i);if(null!==e&&n.len+e.len>=r)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${t.sn}`),null}return t}mapToInitFragWhenRequired(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment}getNextPart(t,e,n){let i=-1,r=!1,o=!0;for(let s=0,a=t.length;s<a;s++){const a=t[s];if(o=o&&!a.independent,i>-1&&n<a.start)break;const l=a.loaded;l?i=-1:(r||a.independent||o)&&a.fragment===e&&(i=s),r=l}return i}loadedEndOfParts(t,e){const n=t[t.length-1];return n&&e>n.start&&n.loaded}getInitialLiveFragment(t,e){const n=this.fragPrevious;let i=null;if(n){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),i=function(t,e,n){if(null===e||!Array.isArray(t)||!t.length||!m(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;n=n||0;for(let i=0;i<t.length;++i){const r=t[i];if(Ge(e,n,r))return r}return null}(e,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const r=n.sn+1;if(r>=t.startSN&&r<=t.endSN){const o=e[r-t.startSN];n.cc===o.cc&&(i=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=function(t,e){return ze.search(t,(t=>t.cc<e?1:t.cc>e?-1:0))}(e,n.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const e=this.hls.liveSyncPosition;null!==e&&(i=this.getFragmentAtPosition(e,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i}getFragmentAtPosition(t,e,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:o,endSN:s}=n;const{fragmentHint:a}=n,l=i.maxFragLookUpTolerance,u=n.partList,c=!!(i.lowLatencyMode&&null!=u&&u.length&&a);let d;if(c&&a&&!this.bitrateTest&&(o=o.concat(a),s=a.sn),t<e){d=We(r,o,t,t>e-l?0:l)}else d=o[o.length-1];if(d){const t=d.sn-n.startSN,e=this.fragmentTracker.getState(d);if((e===cn||e===un&&d.gap)&&(r=d),r&&d.sn===r.sn&&(!c||u[0].fragment.sn>d.sn)){if(r&&d.level===r.level){const e=o[t+1];d=d.sn<s&&this.fragmentTracker.getState(e)!==cn?e:null}}}return d}synchronizeToLiveEdge(t){const{config:e,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=n.currentTime,o=t.fragments[0].start,s=t.edge,a=r>=o-e.maxFragLookUpTolerance&&r<=s;if(null!==i&&n.duration>i&&(r<i||!a)){const o=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!a&&n.readyState<4||r<s-o)&&(this.loadedmetadata||(this.nextLoadPosition=i),n.readyState&&(this.warn(`Playback: ${r.toFixed(3)} is located too far from the end of live sliding playlist: ${s}, reset currentTime to : ${i.toFixed(3)}`),n.currentTime=i))}}alignPlaylists(t,e){const{levels:n,levelLastLoaded:i,fragPrevious:r}=this,o=null!==i?n[i]:null,s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;const a=t.fragments[0].start,l=!e,u=t.alignedSliding&&m(a);if(l||!u&&!a){Cn(r,o,t);const n=t.fragments[0].start;return this.log(`Live playlist sliding: ${n.toFixed(2)} start-sn: ${e?e.startSN:"na"}->${t.startSN} prev-sn: ${r?r.sn:"na"} fragments: ${s}`),n}return a}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)}setStartPosition(t,e){let n=this.startPosition;if(n<e&&(n=-1),-1===n||-1===this.lastCurrentTime){const i=null!==this.startTimeOffset,r=i?this.startTimeOffset:t.startTimeOffset;null!==r&&m(r)?(n=e+r,r<0&&(n+=t.totalduration),n=Math.min(Math.max(e,n),e+t.totalduration),this.log(`Start time offset ${r} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${n}`),this.startPosition=n):t.live?n=this.hls.liveSyncPosition||e:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}getLoadPosition(){const{media:t}=this;let e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e}handleFragLoadAborted(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn(`Fragment ${t.sn}${e?" part "+e.index:""} of level ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===$n)||(this.state=Mn)}onFragmentOrKeyLoadError(t,e){if(e.chunkMeta&&!e.frag){const t=this.getCurrentContext(e.chunkMeta);t&&(e.frag=t.frag)}const n=e.frag;if(!n||n.type!==t||!this.levels)return;var i;if(this.fragContextChanged(n))return void this.warn(`Frag load error must match current frag to retry ${n.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const r=e.details===y.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(n,!0);const o=e.errorAction,{action:s,retryCount:a=0,retryConfig:l}=o||{};if(o&&s===Ze&&l){var u;this.resetStartWhenNotLoaded(null!=(u=this.levelLastLoaded)?u:n.level);const i=Be(l,a);this.warn(`Fragment ${n.sn} of ${t} ${n.level} errored with ${e.details}, retrying loading ${a+1}/${l.maxNumRetry} in ${i}ms`),o.resolved=!0,this.retryDate=self.performance.now()+i,this.state=$n}else l&&o?(this.resetFragmentErrors(t),a<l.maxNumRetry?r||(o.resolved=!0):S.warn(`${e.details} reached or exceeded max retry (${a})`)):(null==o?void 0:o.action)===Ye?this.state=Wn:this.state=Vn;this.tickImmediate()}reduceLengthAndFlushBuffer(t){if(this.state===Un||this.state===Bn){const e=t.parent,n=this.getFwdBufferInfo(this.mediaBuffer,e),i=n&&n.len>.5;i&&this.reduceMaxBufferLength(n.len);const r=!i;return r&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${e} buffer`),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),r}return!1}resetFragmentErrors(t){t===ue&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Rn&&(this.state=Mn)}afterBufferFlushed(t,e,n){if(!t)return;const i=_n.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,n),this.state===Hn&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Mn}resetStartWhenNotLoaded(t){if(!this.loadedmetadata){this.startFragRequested=!1;const e=this.levels?this.levels[t].details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){var e;this.warn(`The loading context changed while buffering fragment ${t.sn} of level ${t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(null!=(e=this.levelLastLoaded)?e:t.level),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,e,n,i){var r;const o=n.details;if(!o)return void this.warn("level.details undefined");if(Object.keys(t.elementaryStreams).reduce(((e,r)=>{const s=t.elementaryStreams[r];if(s){const a=s.endPTS-s.startPTS;if(a<=0)return this.warn(`Could not parse fragment ${t.sn} ${r} duration reliably (${a})`),e||!1;const l=i?0:Pe(o,t,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return this.hls.trigger(g.LEVEL_PTS_UPDATED,{details:o,level:n,drift:l,type:r,frag:t,start:s.startPTS,end:s.endPTS}),!0}return e}),!1))n.fragmentError=0;else if(null===(null==(r=this.transmuxer)?void 0:r.error)){const e=new Error(`Found no media in fragment ${t.sn} of level ${n.id} resetting transmuxer to fallback to playlist timing`);if(this.warn(e.message),this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:e,frag:t,reason:`Found no media in msn ${t.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Bn,this.hls.trigger(g.FRAG_PARSED,{frag:t,part:e})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(t){var e,n,i;"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(null!=(e=null!=(n=this.levelLastLoaded)?n:null==(i=this.fragCurrent)?void 0:i.level)?e:0),this.resetLoadingState())}set state(t){const e=this._state;e!==t&&(this._state=t,this.log(`${e}->${t}`))}get state(){return this._state}}function Gn(){return self.SourceBuffer||self.WebKitSourceBuffer}function Kn(t="",e=9e4){return{type:t,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Yn{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(t,e,n,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(t){this.initPTS=t,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(t,e){return!1}appendFrame(t,e,n){}demux(t,e){this.cachedData&&(t=Ct(this.cachedData,t),this.cachedData=null);let n,i=J(t,0),r=i?i.length:0;const o=this._audioTrack,s=this._id3Track,a=i?(t=>{const e=rt(t);for(let t=0;t<e.length;t++){const n=e[t];if(nt(n))return ut(n)}})(i):void 0,l=t.length;for((null===this.basePTS||0===this.frameIndex&&m(a))&&(this.basePTS=Zn(a,e,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),i&&i.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:ye,duration:Number.POSITIVE_INFINITY});r<l;){if(this.canParse(t,r)){const e=this.appendFrame(o,t,r);e?(this.frameIndex++,this.lastPTS=e.sample.pts,r+=e.length,n=r):r=l}else et(t,r)?(i=J(t,r),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:ye,duration:Number.POSITIVE_INFINITY}),r+=i.length,n=r):r++;if(r===l&&n!==l){const e=Z(t,n);this.cachedData?this.cachedData=Ct(this.cachedData,e):this.cachedData=e}}return{audioTrack:o,videoTrack:Kn(),id3Track:s,textTrack:Kn()}}demuxSampleAes(t,e,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(t){const e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),{audioTrack:this._audioTrack,videoTrack:Kn(),id3Track:this._id3Track,textTrack:Kn()}}destroy(){}}const Zn=(t,e,n)=>{if(m(t))return 90*t;return 9e4*e+(n?9e4*n.baseTime/n.timescale:0)};function Xn(t,e){return 255===t[e]&&240==(246&t[e+1])}function Qn(t,e){return 1&t[e+1]?7:9}function Jn(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function ti(t,e){return e+1<t.length&&Xn(t,e)}function ei(t,e){if(ti(t,e)){const n=Qn(t,e);if(e+n>=t.length)return!1;const i=Jn(t,e);if(i<=n)return!1;const r=e+i;return r===t.length||ti(t,r)}return!1}function ni(t,e,n,i,r){if(!t.samplerate){const o=function(t,e,n,i){let r,o,s,a;const l=navigator.userAgent.toLowerCase(),u=i,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=1+((192&e[n+2])>>>6);const d=(60&e[n+2])>>>2;if(!(d>c.length-1))return s=(1&e[n+2])<<2,s|=(192&e[n+3])>>>6,S.log(`manifest codec:${i}, ADTS type:${r}, samplingIndex:${d}`),/firefox/i.test(l)?d>=6?(r=5,a=new Array(4),o=d-3):(r=2,a=new Array(2),o=d):-1!==l.indexOf("android")?(r=2,a=new Array(2),o=d):(r=5,a=new Array(4),i&&(-1!==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&d>=6?o=d-3:((i&&-1!==i.indexOf("mp4a.40.2")&&(d>=6&&1===s||/vivaldi/i.test(l))||!i&&1===s)&&(r=2,a=new Array(2)),o=d)),a[0]=r<<3,a[0]|=(14&d)>>1,a[1]|=(1&d)<<7,a[1]|=s<<3,5===r&&(a[1]|=(14&o)>>1,a[2]=(1&o)<<7,a[2]|=8,a[3]=0),{config:a,samplerate:c[d],channelCount:s,codec:"mp4a.40."+r,manifestCodec:u};t.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!0,reason:`invalid ADTS sampling index:${d}`})}(e,n,i,r);if(!o)return;t.config=o.config,t.samplerate=o.samplerate,t.channelCount=o.channelCount,t.codec=o.codec,t.manifestCodec=o.manifestCodec,S.log(`parsed codec:${t.codec}, rate:${o.samplerate}, channels:${o.channelCount}`)}}function ii(t){return 9216e4/t}function ri(t,e,n,i,r){const o=i+r*ii(t.samplerate),s=function(t,e){const n=Qn(t,e);if(e+n<=t.length){const i=Jn(t,e)-n;if(i>0)return{headerLength:n,frameLength:i}}}(e,n);let a;if(s){const{frameLength:i,headerLength:r}=s,l=r+i,u=Math.max(0,n+l-e.length);u?(a=new Uint8Array(l-r),a.set(e.subarray(n+r,e.length),0)):a=e.subarray(n+r,n+l);const c={unit:a,pts:o};return u||t.samples.push(c),{sample:c,length:l,missing:u}}const l=e.length-n;a=new Uint8Array(l),a.set(e.subarray(n,e.length),0);return{sample:{unit:a,pts:o},length:l,missing:-1}}const oi=/\/emsg[-/]ID3/i;let si=null;const ai=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],li=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],ui=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ci=[0,1,1,4];function di(t,e,n,i,r){if(n+24>e.length)return;const o=hi(e,n);if(o&&n+o.frameLength<=e.length){const s=i+r*(9e4*o.samplesPerFrame/o.sampleRate),a={unit:e.subarray(n,n+o.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=o.channelCount,t.samplerate=o.sampleRate,t.samples.push(a),{sample:a,length:o.frameLength,missing:0}}}function hi(t,e){const n=t[e+1]>>3&3,i=t[e+1]>>1&3,r=t[e+2]>>4&15,o=t[e+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==o){const s=t[e+2]>>1&1,a=t[e+3]>>6,l=1e3*ai[14*(3===n?3-i:3===i?3:4)+r-1],u=li[3*(3===n?0:2===n?1:2)+o],c=3===a?1:2,d=ui[n][i],h=ci[i],f=8*d*h,p=Math.floor(d*l/u+s)*h;if(null===si){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);si=t?parseInt(t[1]):0}return!!si&&si<=87&&2===i&&l>=224e3&&0===a&&(t[e+3]=128|t[e+3]),{sampleRate:u,channelCount:c,frameLength:p,samplesPerFrame:f}}}function fi(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function pi(t,e){return e+1<t.length&&fi(t,e)}function mi(t,e){if(e+1<t.length&&fi(t,e)){const n=4,i=hi(t,e);let r=n;null!=i&&i.frameLength&&(r=i.frameLength);const o=e+r;return o===t.length||pi(t,o)}return!1}class gi{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,e=this.bytesAvailable,n=t.byteLength-e,i=new Uint8Array(4),r=Math.min(4,e);if(0===r)throw new Error("no bytes available");i.set(t.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(t){let e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(e=(t-=this.bitsAvailable)>>3,t-=e<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let e=Math.min(this.bitsAvailable,t);const n=this.word>>>32-e;if(t>32&&S.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return e=t-e,e>0&&this.bitsAvailable?n<<e|this.readBits(e):n}skipLZ(){let t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(t){let e,n=8,i=8;for(let r=0;r<t;r++)0!==i&&(e=this.readEG(),i=(n+e+256)%256),n=0===i?n:i}readSPS(){let t,e,n,i=0,r=0,o=0,s=0;const a=this.readUByte.bind(this),l=this.readBits.bind(this),u=this.readUEG.bind(this),c=this.readBoolean.bind(this),d=this.skipBits.bind(this),h=this.skipEG.bind(this),f=this.skipUEG.bind(this),p=this.skipScalingList.bind(this);a();const m=a();if(l(5),d(3),a(),f(),100===m||110===m||122===m||244===m||44===m||83===m||86===m||118===m||128===m){const t=u();if(3===t&&d(1),f(),f(),d(1),c())for(e=3!==t?8:12,n=0;n<e;n++)c()&&p(n<6?16:64)}f();const g=u();if(0===g)u();else if(1===g)for(d(1),h(),h(),t=u(),n=0;n<t;n++)h();f(),d(1);const v=u(),y=u(),b=l(1);0===b&&d(1),d(1),c()&&(i=u(),r=u(),o=u(),s=u());let w=[1,1];if(c()&&c()){switch(a()){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:w=[a()<<8|a(),a()<<8|a()]}}return{width:Math.ceil(16*(v+1)-2*i-2*r),height:(2-b)*(y+1)*16-(b?2:4)*(o+s),pixelRatio:w}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class vi{constructor(t,e,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Dn(e,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(t,e,n){const i=t[e].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),o=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(o).then((r=>{const o=new Uint8Array(r);i.set(o,16),this.decrypter.isSync()||this.decryptAacSamples(t,e+1,n)}))}decryptAacSamples(t,e,n){for(;;e++){if(e>=t.length)return void n();if(!(t[e].unit.length<32)&&(this.decryptAacSample(t,e,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const e=16*Math.floor((t.length-48)/160)+16,n=new Int8Array(e);let i=0;for(let e=32;e<t.length-16;e+=160,i+=16)n.set(t.subarray(e,e+16),i);return n}getAvcDecryptedUnit(t,e){const n=new Uint8Array(e);let i=0;for(let e=32;e<t.length-16;e+=160,i+=16)t.set(n.subarray(i,i+16),e);return t}decryptAvcSample(t,e,n,i,r){const o=Ot(r.data),s=this.getAvcEncryptedData(o);this.decryptBuffer(s.buffer).then((s=>{r.data=this.getAvcDecryptedUnit(o,s),this.decrypter.isSync()||this.decryptAvcSamples(t,e,n+1,i)}))}decryptAvcSamples(t,e,n,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,n=0){if(e>=t.length)return void i();const r=t[e].units;for(;!(n>=r.length);n++){const o=r[n];if(!(o.data.length<=48||1!==o.type&&5!==o.type||(this.decryptAvcSample(t,e,n,i,o),this.decrypter.isSync())))return}}}}const yi=188;class bi{constructor(t,e,n){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=t,this.config=e,this.typeSupported=n}static probe(t){const e=bi.syncOffset(t);return e>0&&S.warn(`MPEG2-TS detected but first sync word found @ offset ${e}`),-1!==e}static syncOffset(t){const e=t.length;let n=Math.min(940,t.length-yi)+1,i=0;for(;i<n;){let r=!1,o=-1,s=0;for(let a=i;a<e;a+=yi){if(71!==t[a]){if(s)return-1;break}if(s++,-1===o&&(o=a,0!==o&&(n=Math.min(o+18612,t.length-yi)+1)),r||(r=0===Ti(t,a)),r&&s>1&&(0===o&&s>2||a+yi>n))return o}i++}return-1}static createTrack(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:gt[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}}resetInitSegment(t,e,n,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=bi.createTrack("video"),this._audioTrack=bi.createTrack("audio",i),this._id3Track=bi.createTrack("id3"),this._txtTrack=bi.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=e,this.videoCodec=n,this._duration=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_avcTrack:e,_id3Track:n}=this;t&&(t.pesData=null),e&&(e.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}demux(t,e,n=!1,i=!1){let r;n||(this.sampleAes=null);const o=this._avcTrack,s=this._audioTrack,a=this._id3Track,l=this._txtTrack;let u=o.pid,c=o.pesData,d=s.pid,h=a.pid,f=s.pesData,p=a.pesData,m=null,b=this.pmtParsed,w=this._pmtId,T=t.length;if(this.remainderData&&(T=(t=Ct(this.remainderData,t)).length,this.remainderData=null),T<yi&&!i)return this.remainderData=t,{audioTrack:s,videoTrack:o,id3Track:a,textTrack:l};const _=Math.max(0,bi.syncOffset(t));T-=(T-_)%yi,T<t.byteLength&&!i&&(this.remainderData=new Uint8Array(t.buffer,T,t.buffer.byteLength-T));let E=0;for(let e=_;e<T;e+=yi)if(71===t[e]){const i=!!(64&t[e+1]),g=Ti(t,e);let v;if((48&t[e+3])>>4>1){if(v=e+5+t[e+4],v===e+yi)continue}else v=e+4;switch(g){case u:i&&(c&&(r=Ei(c))&&this.parseAVCPES(o,l,r,!1),c={data:[],size:0}),c&&(c.data.push(t.subarray(v,e+yi)),c.size+=e+yi-v);break;case d:if(i){if(f&&(r=Ei(f)))switch(s.segmentCodec){case"aac":this.parseAACPES(s,r);break;case"mp3":this.parseMPEGPES(s,r)}f={data:[],size:0}}f&&(f.data.push(t.subarray(v,e+yi)),f.size+=e+yi-v);break;case h:i&&(p&&(r=Ei(p))&&this.parseID3PES(a,r),p={data:[],size:0}),p&&(p.data.push(t.subarray(v,e+yi)),p.size+=e+yi-v);break;case 0:i&&(v+=t[v]+1),w=this._pmtId=_i(t,v);break;case w:{i&&(v+=t[v]+1);const r=Si(t,v,this.typeSupported,n);u=r.avc,u>0&&(o.pid=u),d=r.audio,d>0&&(s.pid=d,s.segmentCodec=r.segmentCodec),h=r.id3,h>0&&(a.pid=h),null===m||b||(S.warn(`MPEG-TS PMT found at ${e} after unknown PID '${m}'. Backtracking to sync byte @${_} to parse all TS packets.`),m=null,e=_-188),b=this.pmtParsed=!0;break}case 17:case 8191:break;default:m=g}}else E++;if(E>0){const t=new Error(`Found ${E} TS packet/s that do not start with 0x47`);this.observer.emit(g.ERROR,g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:t,reason:t.message})}o.pesData=c,s.pesData=f,a.pesData=p;const x={audioTrack:s,videoTrack:o,id3Track:a,textTrack:l};return i&&this.extractRemainingSamples(x),x}flush(){const{remainderData:t}=this;let e;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(t){const{audioTrack:e,videoTrack:n,id3Track:i,textTrack:r}=t,o=n.pesData,s=e.pesData,a=i.pesData;let l;if(o&&(l=Ei(o))?(this.parseAVCPES(n,r,l,!0),n.pesData=null):n.pesData=o,s&&(l=Ei(s))){switch(e.segmentCodec){case"aac":this.parseAACPES(e,l);break;case"mp3":this.parseMPEGPES(e,l)}e.pesData=null}else null!=s&&s.size&&S.log("last AAC PES packet truncated,might overlap between fragments"),e.pesData=s;a&&(l=Ei(a))?(this.parseID3PES(i,l),i.pesData=null):i.pesData=a}demuxSampleAes(t,e,n){const i=this.demux(t,n,!0,!this.config.progressive),r=this.sampleAes=new vi(this.observer,this.config,e);return this.decrypt(i,r)}decrypt(t,e){return new Promise((n=>{const{audioTrack:i,videoTrack:r}=t;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,(()=>{r.samples?e.decryptAvcSamples(r.samples,0,0,(()=>{n(t)})):n(t)})):r.samples&&e.decryptAvcSamples(r.samples,0,0,(()=>{n(t)}))}))}destroy(){this._duration=0}parseAVCPES(t,e,n,i){const r=this.parseAVCNALu(t,n.data);let o,s=this.avcSample,a=!1;n.data=null,s&&r.length&&!t.audFound&&(xi(s,t),s=this.avcSample=wi(!1,n.pts,n.dts,"")),r.forEach((i=>{switch(i.type){case 1:{o=!0,s||(s=this.avcSample=wi(!0,n.pts,n.dts,"")),s.frame=!0;const t=i.data;if(a&&t.length>4){const e=new gi(t).readSliceType();2!==e&&4!==e&&7!==e&&9!==e||(s.key=!0)}break}case 5:o=!0,s||(s=this.avcSample=wi(!0,n.pts,n.dts,"")),s.key=!0,s.frame=!0;break;case 6:o=!0,It(i.data,1,n.pts,e.samples);break;case 7:if(o=!0,a=!0,!t.sps){const e=i.data,n=new gi(e).readSPS();t.width=n.width,t.height=n.height,t.pixelRatio=n.pixelRatio,t.sps=[e],t.duration=this._duration;const r=e.subarray(1,4);let o="avc1.";for(let t=0;t<3;t++){let e=r[t].toString(16);e.length<2&&(e="0"+e),o+=e}t.codec=o}break;case 8:o=!0,t.pps||(t.pps=[i.data]);break;case 9:o=!1,t.audFound=!0,s&&xi(s,t),s=this.avcSample=wi(!1,n.pts,n.dts,"");break;case 12:o=!0;break;default:o=!1,s&&(s.debug+="unknown NAL "+i.type+" ")}if(s&&o){s.units.push(i)}})),i&&s&&(xi(s,t),this.avcSample=null)}getLastNalUnit(t){var e;let n,i=this.avcSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){const t=i.units;n=t[t.length-1]}return n}parseAVCNALu(t,e){const n=e.byteLength;let i=t.naluState||0;const r=i,o=[];let s,a,l,u=0,c=-1,d=0;for(-1===i&&(c=0,d=31&e[0],i=0,u=1);u<n;)if(s=e[u++],i)if(1!==i)if(s)if(1===s){if(c>=0){const t={data:e.subarray(c,u-i-1),type:d};o.push(t)}else{const n=this.getLastNalUnit(t.samples);if(n&&(r&&u<=4-r&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-r)),a=u-i-1,a>0)){const t=new Uint8Array(n.data.byteLength+a);t.set(n.data,0),t.set(e.subarray(0,a),n.data.byteLength),n.data=t,n.state=0}}u<n?(l=31&e[u],c=u,d=l,i=0):i=-1}else i=0;else i=3;else i=s?0:2;else i=s?0:1;if(c>=0&&i>=0){const t={data:e.subarray(c,n),type:d,state:i};o.push(t)}if(0===o.length){const n=this.getLastNalUnit(t.samples);if(n){const t=new Uint8Array(n.data.byteLength+e.byteLength);t.set(n.data,0),t.set(e,n.data.byteLength),n.data=t}}return t.naluState=i,o}parseAACPES(t,e){let n=0;const i=this.aacOverFlow;let r,o,s,a=e.data;if(i){this.aacOverFlow=null;const e=i.missing,r=i.sample.unit.byteLength;if(-1===e){const t=new Uint8Array(r+a.byteLength);t.set(i.sample.unit,0),t.set(a,r),a=t}else{const o=r-e;i.sample.unit.set(a.subarray(0,e),o),t.samples.push(i.sample),n=i.missing}}for(r=n,o=a.length;r<o-1&&!ti(a,r);r++);if(r!==n){let t;const e=r<o-1;t=e?`AAC PES did not start with ADTS header,offset:${r}`:"No ADTS header found in AAC PES";const n=new Error(t);if(S.warn(`parsing error: ${t}`),this.observer.emit(g.ERROR,g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,levelRetry:e,error:n,reason:t}),!e)return}if(ni(t,this.observer,a,r,this.audioCodec),void 0!==e.pts)s=e.pts;else{if(!i)return void S.warn("[tsdemuxer]: AAC PES unknown PTS");{const e=ii(t.samplerate);s=i.sample.pts+e}}let l,u=0;for(;r<o;){if(l=ri(t,a,r,s,u),r+=l.length,l.missing){this.aacOverFlow=l;break}for(u++;r<o-1&&!ti(a,r);r++);}}parseMPEGPES(t,e){const n=e.data,i=n.length;let r=0,o=0;const s=e.pts;if(void 0!==s)for(;o<i;)if(pi(n,o)){const e=di(t,n,o,s,r);if(!e)break;o+=e.length,r++}else o++;else S.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseID3PES(t,e){if(void 0===e.pts)return void S.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=p({},e,{type:this._avcTrack?we:ye,duration:Number.POSITIVE_INFINITY});t.samples.push(n)}}function wi(t,e,n,i){return{key:t,frame:!1,pts:e,dts:n,units:[],debug:i,length:0}}function Ti(t,e){return((31&t[e+1])<<8)+t[e+2]}function _i(t,e){return(31&t[e+10])<<8|t[e+11]}function Si(t,e,n,i){const r={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},o=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<o;){const o=Ti(t,e);switch(t[e]){case 207:if(!i){S.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===r.audio&&(r.audio=o);break;case 21:-1===r.id3&&(r.id3=o);break;case 219:if(!i){S.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===r.avc&&(r.avc=o);break;case 3:case 4:!0!==n.mpeg&&!0!==n.mp3?S.log("MPEG audio found, not supported in this browser"):-1===r.audio&&(r.audio=o,r.segmentCodec="mp3");break;case 36:S.warn("Unsupported HEVC stream type found")}e+=5+((15&t[e+3])<<8|t[e+4])}return r}function Ei(t){let e,n,i,r,o,s=0;const a=t.data;if(!t||0===t.size)return null;for(;a[0].length<19&&a.length>1;){const t=new Uint8Array(a[0].length+a[1].length);t.set(a[0]),t.set(a[1],a[0].length),a[0]=t,a.splice(1,1)}e=a[0];if(1===(e[0]<<16)+(e[1]<<8)+e[2]){if(n=(e[4]<<8)+e[5],n&&n>t.size-6)return null;const l=e[7];192&l&&(r=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&l?(o=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2,r-o>54e5&&(S.warn(`${Math.round((r-o)/9e4)}s delta between PTS and DTS, align them`),r=o)):o=r),i=e[8];let u=i+9;if(t.size<=u)return null;t.size-=u;const c=new Uint8Array(t.size);for(let t=0,n=a.length;t<n;t++){e=a[t];let n=e.byteLength;if(u){if(u>n){u-=n;continue}e=e.subarray(u),n-=u,u=0}c.set(e,s),s+=n}return n&&(n-=i+3),{data:c,pts:r,dts:o,len:n}}return null}function xi(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){const n=e.samples,i=n.length;if(!i)return void e.dropped++;{const e=n[i-1];t.pts=e.pts,t.dts=e.dts}}e.samples.push(t)}t.debug.length&&S.log(t.pts+"/"+t.dts+":"+t.debug)}class ki{static getSilentFrame(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}const Ci=Math.pow(2,32)-1;class Ai{static init(){let t;for(t in Ai.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},Ai.types)Ai.types.hasOwnProperty(t)&&(Ai.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Ai.HDLR_TYPES={video:e,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);Ai.STTS=Ai.STSC=Ai.STCO=r,Ai.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ai.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ai.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ai.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);Ai.FTYP=Ai.box(Ai.types.ftyp,o,a,o,s),Ai.DINF=Ai.box(Ai.types.dinf,Ai.box(Ai.types.dref,i))}static box(t,...e){let n=8,i=e.length;const r=i;for(;i--;)n+=e[i].byteLength;const o=new Uint8Array(n);for(o[0]=n>>24&255,o[1]=n>>16&255,o[2]=n>>8&255,o[3]=255&n,o.set(t,4),i=0,n=8;i<r;i++)o.set(e[i],n),n+=e[i].byteLength;return o}static hdlr(t){return Ai.box(Ai.types.hdlr,Ai.HDLR_TYPES[t])}static mdat(t){return Ai.box(Ai.types.mdat,t)}static mdhd(t,e){e*=t;const n=Math.floor(e/(Ci+1)),i=Math.floor(e%(Ci+1));return Ai.box(Ai.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(t){return Ai.box(Ai.types.mdia,Ai.mdhd(t.timescale,t.duration),Ai.hdlr(t.type),Ai.minf(t))}static mfhd(t){return Ai.box(Ai.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}static minf(t){return"audio"===t.type?Ai.box(Ai.types.minf,Ai.box(Ai.types.smhd,Ai.SMHD),Ai.DINF,Ai.stbl(t)):Ai.box(Ai.types.minf,Ai.box(Ai.types.vmhd,Ai.VMHD),Ai.DINF,Ai.stbl(t))}static moof(t,e,n){return Ai.box(Ai.types.moof,Ai.mfhd(t),Ai.traf(n,e))}static moov(t){let e=t.length;const n=[];for(;e--;)n[e]=Ai.trak(t[e]);return Ai.box.apply(null,[Ai.types.moov,Ai.mvhd(t[0].timescale,t[0].duration)].concat(n).concat(Ai.mvex(t)))}static mvex(t){let e=t.length;const n=[];for(;e--;)n[e]=Ai.trex(t[e]);return Ai.box.apply(null,[Ai.types.mvex,...n])}static mvhd(t,e){e*=t;const n=Math.floor(e/(Ci+1)),i=Math.floor(e%(Ci+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Ai.box(Ai.types.mvhd,r)}static sdtp(t){const e=t.samples||[],n=new Uint8Array(4+e.length);let i,r;for(i=0;i<e.length;i++)r=e[i].flags,n[i+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return Ai.box(Ai.types.sdtp,n)}static stbl(t){return Ai.box(Ai.types.stbl,Ai.stsd(t),Ai.box(Ai.types.stts,Ai.STTS),Ai.box(Ai.types.stsc,Ai.STSC),Ai.box(Ai.types.stsz,Ai.STSZ),Ai.box(Ai.types.stco,Ai.STCO))}static avc1(t){let e,n,i,r=[],o=[];for(e=0;e<t.sps.length;e++)n=t.sps[e],i=n.byteLength,r.push(i>>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(e=0;e<t.pps.length;e++)n=t.pps[e],i=n.byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));const s=Ai.box(Ai.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|t.sps.length].concat(r).concat([t.pps.length]).concat(o))),a=t.width,l=t.height,u=t.pixelRatio[0],c=t.pixelRatio[1];return Ai.box(Ai.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,a>>8&255,255&a,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,Ai.box(Ai.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ai.box(Ai.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,c>>24,c>>16&255,c>>8&255,255&c])))}static esds(t){const e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))}static mp4a(t){const e=t.samplerate;return Ai.box(Ai.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0]),Ai.box(Ai.types.esds,Ai.esds(t)))}static mp3(t){const e=t.samplerate;return Ai.box(Ai.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0]))}static stsd(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?Ai.box(Ai.types.stsd,Ai.STSD,Ai.mp3(t)):Ai.box(Ai.types.stsd,Ai.STSD,Ai.mp4a(t)):Ai.box(Ai.types.stsd,Ai.STSD,Ai.avc1(t))}static tkhd(t){const e=t.id,n=t.duration*t.timescale,i=t.width,r=t.height,o=Math.floor(n/(Ci+1)),s=Math.floor(n%(Ci+1));return Ai.box(Ai.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(t,e){const n=Ai.sdtp(t),i=t.id,r=Math.floor(e/(Ci+1)),o=Math.floor(e%(Ci+1));return Ai.box(Ai.types.traf,Ai.box(Ai.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),Ai.box(Ai.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,o>>24,o>>16&255,o>>8&255,255&o])),Ai.trun(t,n.length+16+20+8+16+8+8),n)}static trak(t){return t.duration=t.duration||4294967295,Ai.box(Ai.types.trak,Ai.tkhd(t),Ai.mdia(t))}static trex(t){const e=t.id;return Ai.box(Ai.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,e){const n=t.samples||[],i=n.length,r=12+16*i,o=new Uint8Array(r);let s,a,l,u,c,d;for(e+=8+r,o.set(["video"===t.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0),s=0;s<i;s++)a=n[s],l=a.duration,u=a.size,c=a.flags,d=a.cts,o.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.paddingValue<<1|c.isNonSync,61440&c.degradPrio,15&c.degradPrio,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s);return Ai.box(Ai.types.trun,o)}static initSegment(t){Ai.types||Ai.init();const e=Ai.moov(t),n=new Uint8Array(Ai.FTYP.byteLength+e.byteLength);return n.set(Ai.FTYP),n.set(e,Ai.FTYP.byteLength),n}}Ai.types=void 0,Ai.HDLR_TYPES=void 0,Ai.STTS=void 0,Ai.STSC=void 0,Ai.STCO=void 0,Ai.STSZ=void 0,Ai.VMHD=void 0,Ai.SMHD=void 0,Ai.STSD=void 0,Ai.FTYP=void 0,Ai.DINF=void 0;const Li=9e4;function Ii(t,e,n=1,i=!1){const r=t*e*n;return i?Math.round(r):r}function Oi(t,e=!1){return Ii(t,1e3,1/Li,e)}let Di,Pi=null,Ri=null;class Mi{constructor(t,e,n,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=t,this.config=e,this.typeSupported=n,this.ISGenerated=!1,null===Pi){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Pi=t?parseInt(t[1]):0}if(null===Ri){const t=navigator.userAgent.match(/Safari\/(\d+)/i);Ri=t?parseInt(t[1]):0}}destroy(){}resetTimeStamp(t){S.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t}resetNextTimestamp(){S.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){S.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}getVideoStartPts(t){let e=!1;const n=t.reduce(((t,n)=>{const i=n.pts-t;return i<-4294967296?(e=!0,Ni(t,n.pts)):i>0?t:n.pts}),t[0].pts);return e&&S.debug("PTS rollover detected"),n}remux(t,e,n,i,r,o,s,a){let l,u,c,d,h,f,p=r,m=r;const g=t.pid>-1,v=e.pid>-1,y=e.samples.length,b=t.samples.length>0,w=s&&y>0||y>1;if((!g||b)&&(!v||w)||this.ISGenerated||s){this.ISGenerated||(c=this.generateIS(t,e,r,o));const n=this.isVideoContiguous;let i,s=-1;if(w&&(s=function(t){for(let e=0;e<t.length;e++)if(t[e].key)return e;return-1}(e.samples),!n&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,s>0){S.warn(`[mp4-remuxer]: Dropped ${s} out of ${y} video samples due to a missing keyframe`);const t=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(s),e.dropped+=s,m+=(e.samples[0].pts-t)/e.inputTimeScale,i=m}else-1===s&&(S.warn(`[mp4-remuxer]: No keyframe found out of ${y} video samples`),f=!1);if(this.ISGenerated){if(b&&w){const n=this.getVideoStartPts(e.samples),i=(Ni(t.samples[0].pts,n)-n)/e.inputTimeScale;p+=Math.max(0,i),m+=Math.max(0,-i)}if(b){if(t.samplerate||(S.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),c=this.generateIS(t,e,r,o)),u=this.remuxAudio(t,p,this.isAudioContiguous,o,v||w||a===ue?m:void 0),w){const i=u?u.endPTS-u.startPTS:0;e.inputTimeScale||(S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),c=this.generateIS(t,e,r,o)),l=this.remuxVideo(e,m,n,i)}}else w&&(l=this.remuxVideo(e,m,n,0));l&&(l.firstKeyFrame=s,l.independent=-1!==s,l.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=Fi(n,r,this._initPTS,this._initDTS)),i.samples.length&&(d=$i(i,r,this._initPTS))),{audio:u,video:l,initSegment:c,independent:f,text:d,id3:h}}generateIS(t,e,n,i){const r=t.samples,o=e.samples,s=this.typeSupported,a={},l=this._initPTS;let u,c,d,h=!l||i,f="audio/mp4";if(h&&(u=c=1/0),t.config&&r.length){if(t.timescale=t.samplerate,"mp3"===t.segmentCodec)s.mpeg?(f="audio/mpeg",t.codec=""):s.mp3&&(t.codec="mp3");a.audio={id:"audio",container:f,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&s.mpeg?new Uint8Array(0):Ai.initSegment([t]),metadata:{channelCount:t.channelCount}},h&&(d=t.inputTimeScale,l&&d===l.timescale?h=!1:u=c=r[0].pts-Math.round(d*n))}if(e.sps&&e.pps&&o.length&&(e.timescale=e.inputTimeScale,a.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:Ai.initSegment([e]),metadata:{width:e.width,height:e.height}},h))if(d=e.inputTimeScale,l&&d===l.timescale)h=!1;else{const t=this.getVideoStartPts(o),e=Math.round(d*n);c=Math.min(c,Ni(o[0].dts,t)-e),u=Math.min(u,t-e)}if(Object.keys(a).length)return this.ISGenerated=!0,h?(this._initPTS={baseTime:u,timescale:d},this._initDTS={baseTime:c,timescale:d}):u=d=void 0,{tracks:a,initPTS:u,timescale:d}}remuxVideo(t,e,n,i){const r=t.inputTimeScale,o=t.samples,s=[],a=o.length,l=this._initPTS;let u,c,d=this.nextAvcDts,h=8,f=this.videoSampleDuration,m=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,w=!1;if(!n||null===d){d=e*r-(o[0].pts-Ni(o[0].dts,o[0].pts))}const T=l.baseTime*r/l.timescale;for(let t=0;t<a;t++){const e=o[t];e.pts=Ni(e.pts-T,d),e.dts=Ni(e.dts-T,d),e.dts<o[t>0?t-1:t].dts&&(w=!0)}w&&o.sort((function(t,e){const n=t.dts-e.dts,i=t.pts-e.pts;return n||i})),u=o[0].dts,c=o[o.length-1].dts;const _=c-u,E=_?Math.round(_/(a-1)):f||t.inputTimeScale/30;if(n){const t=u-d,e=t>E,n=t<-1;if((e||n)&&(e?S.warn(`AVC: ${Oi(t,!0)} ms (${t}dts) hole between fragments detected, filling it`):S.warn(`AVC: ${Oi(-t,!0)} ms (${t}dts) overlapping between fragments detected`),!n||d>=o[0].pts)){u=d;const e=o[0].pts-t;o[0].dts=u,o[0].pts=e,S.log(`Video: First PTS/DTS adjusted: ${Oi(e,!0)}/${Oi(u,!0)}, delta: ${Oi(t,!0)} ms`)}}u=Math.max(0,u);let x=0,k=0;for(let t=0;t<a;t++){const e=o[t],n=e.units,i=n.length;let r=0;for(let t=0;t<i;t++)r+=n[t].data.length;k+=r,x+=i,e.length=r,e.dts=Math.max(e.dts,u),m=Math.min(e.pts,m),b=Math.max(e.pts,b)}c=o[a-1].dts;const C=k+4*x+8;let A;try{A=new Uint8Array(C)}catch(t){return void this.observer.emit(g.ERROR,g.ERROR,{type:v.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:C,reason:`fail allocating video mdat ${C}`})}const L=new DataView(A.buffer);L.setUint32(0,C),A.set(Ai.types.mdat,4);let I=!1,O=Number.POSITIVE_INFINITY,D=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,R=Number.NEGATIVE_INFINITY;for(let t=0;t<a;t++){const e=o[t],n=e.units;let l,u=0;for(let t=0,e=n.length;t<e;t++){const e=n[t],i=e.data,r=e.data.byteLength;L.setUint32(h,r),h+=4,A.set(i,h),h+=r,u+=4+r}if(t<a-1)f=o[t+1].dts-e.dts,l=o[t+1].pts-e.pts;else{const n=this.config,s=t>0?e.dts-o[t-1].dts:E;if(l=t>0?e.pts-o[t-1].pts:E,n.stretchShortVideoTrack&&null!==this.nextAudioPts){const t=Math.floor(n.maxBufferHole*r),o=(i?m+i*r:this.nextAudioPts)-e.pts;o>t?(f=o-s,f<0?f=s:I=!0,S.log(`[mp4-remuxer]: It is approximately ${o/90} ms to the next segment; using duration ${f/90} ms for the last video frame.`)):f=s}else f=s}const c=Math.round(e.pts-e.dts);O=Math.min(O,f),P=Math.max(P,f),D=Math.min(D,l),R=Math.max(R,l),s.push(new ji(e.key,f,u,c))}if(s.length)if(Pi){if(Pi<70){const t=s[0].flags;t.dependsOn=2,t.isNonSync=0}}else if(Ri&&R-D<P-O&&E/P<.025&&0===s[0].cts){S.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let t=u;for(let e=0,n=s.length;e<n;e++){const i=t+s[e].duration,r=t+s[e].cts;if(e<n-1){const t=i+s[e+1].cts;s[e].duration=t-r}else s[e].duration=e?s[e-1].duration:E;s[e].cts=0,t=i}}f=I||!f?E:f,this.nextAvcDts=d=c+f,this.videoSampleDuration=f,this.isVideoContiguous=!0;const M={data1:Ai.moof(t.sequenceNumber++,u,p({},t,{samples:s})),data2:A,startPTS:m/r,endPTS:(b+f)/r,startDTS:u/r,endDTS:d/r,type:"video",hasAudio:!1,hasVideo:!0,nb:s.length,dropped:t.dropped};return t.samples=[],t.dropped=0,M}remuxAudio(t,e,n,i,r){const o=t.inputTimeScale,s=o/(t.samplerate?t.samplerate:o),a="aac"===t.segmentCodec?1024:1152,l=a*s,u=this._initPTS,c="mp3"===t.segmentCodec&&this.typeSupported.mpeg,d=[],h=void 0!==r;let f=t.samples,m=c?0:8,b=this.nextAudioPts||-1;const w=e*o,T=u.baseTime*o/u.timescale;if(this.isAudioContiguous=n=n||f.length&&b>0&&(i&&Math.abs(w-b)<9e3||Math.abs(Ni(f[0].pts-T,w)-b)<20*l),f.forEach((function(t){t.pts=Ni(t.pts-T,w)})),!n||b<0){if(f=f.filter((t=>t.pts>=0)),!f.length)return;b=0===r?0:i&&!h?Math.max(0,w):f[0].pts}if("aac"===t.segmentCodec){const e=this.config.maxAudioFramesDrift;for(let n=0,i=b;n<f.length;n++){const r=f[n],s=r.pts,a=s-i,u=Math.abs(1e3*a/o);if(a<=-e*l&&h)0===n&&(S.warn(`Audio frame @ ${(s/o).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*a/o)} ms.`),this.nextAudioPts=b=i=s);else if(a>=e*l&&u<1e4&&h){let e=Math.round(a/l);i=s-e*l,i<0&&(e--,i+=l),0===n&&(this.nextAudioPts=b=i),S.warn(`[mp4-remuxer]: Injecting ${e} audio frame @ ${(i/o).toFixed(3)}s due to ${Math.round(1e3*a/o)} ms gap.`);for(let o=0;o<e;o++){const e=Math.max(i,0);let o=ki.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);o||(S.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),o=r.unit.subarray()),f.splice(n,0,{unit:o,pts:e}),i+=l,n++}}r.pts=i,i+=l}}let _,E=null,x=null,k=0,C=f.length;for(;C--;)k+=f[C].unit.byteLength;for(let e=0,i=f.length;e<i;e++){const i=f[e],r=i.unit;let o=i.pts;if(null!==x){d[e-1].duration=Math.round((o-x)/s)}else{if(n&&"aac"===t.segmentCodec&&(o=b),E=o,!(k>0))return;k+=m;try{_=new Uint8Array(k)}catch(t){return void this.observer.emit(g.ERROR,g.ERROR,{type:v.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:k,reason:`fail allocating audio mdat ${k}`})}if(!c){new DataView(_.buffer).setUint32(0,k),_.set(Ai.types.mdat,4)}}_.set(r,m);const l=r.byteLength;m+=l,d.push(new ji(!0,a,l,0)),x=o}const A=d.length;if(!A)return;const L=d[d.length-1];this.nextAudioPts=b=x+s*L.duration;const I=c?new Uint8Array(0):Ai.moof(t.sequenceNumber++,E/s,p({},t,{samples:d}));t.samples=[];const O=E/o,D=b/o,P={data1:I,data2:_,startPTS:O,endPTS:D,startDTS:O,endDTS:D,type:"audio",hasAudio:!0,hasVideo:!1,nb:A};return this.isAudioContiguous=!0,P}remuxEmptyAudio(t,e,n,i){const r=t.inputTimeScale,o=r/(t.samplerate?t.samplerate:r),s=this.nextAudioPts,a=this._initDTS,l=9e4*a.baseTime/a.timescale,u=(null!==s?s:i.startDTS*r)+l,c=i.endDTS*r+l,d=1024*o,h=Math.ceil((c-u)/d),f=ki.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(S.warn("[mp4-remuxer]: remux empty Audio"),!f)return void S.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");const p=[];for(let t=0;t<h;t++){const e=u+t*d;p.push({unit:f,pts:e,dts:e})}return t.samples=p,this.remuxAudio(t,e,n,!1)}}function Ni(t,e){let n;if(null===e)return t;for(n=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=n;return t}function Fi(t,e,n,i){const r=t.samples.length;if(!r)return;const o=t.inputTimeScale;for(let s=0;s<r;s++){const r=t.samples[s];r.pts=Ni(r.pts-n.baseTime*o/n.timescale,e*o)/o,r.dts=Ni(r.dts-i.baseTime*o/i.timescale,e*o)/o}const s=t.samples;return t.samples=[],{samples:s}}function $i(t,e,n){const i=t.samples.length;if(!i)return;const r=t.inputTimeScale;for(let o=0;o<i;o++){const i=t.samples[o];i.pts=Ni(i.pts-9e4*n.baseTime/n.timescale,e*r)/r}t.samples.sort(((t,e)=>t.pts-e.pts));const o=t.samples;return t.samples=[],{samples:o}}class ji{constructor(t,e,n,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=n,this.cts=i,this.flags=new Ui(t)}}class Ui{constructor(t){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=t?2:1,this.isNonSync=t?0:1}}function Bi(t,e){const n=null==t?void 0:t.codec;return n&&n.length>4?n:"hvc1"===n||"hev1"===n?"hvc1.1.6.L120.90":"av01"===n?"av01.0.04M.08":"avc1"===n||e===O?"avc1.42e01e":"mp4a.40.5"}try{Di=self.performance.now.bind(self.performance)}catch(t){S.debug("Unable to use Performance API on this environment"),Di="undefined"!=typeof self&&self.Date.now}const Hi=[{demux:class{constructor(t,e){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=e}resetTimeStamp(){}resetInitSegment(t,e,n,i){const r=this.videoTrack=Kn("video",1),o=this.audioTrack=Kn("audio",1),s=this.txtTrack=Kn("text",1);if(this.id3Track=Kn("id3",1),this.timeOffset=0,null==t||!t.byteLength)return;const a=Et(t);if(a.video){const{id:t,timescale:e,codec:n}=a.video;r.id=t,r.timescale=s.timescale=e,r.codec=n}if(a.audio){const{id:t,timescale:e,codec:n}=a.audio;o.id=t,o.timescale=e,o.codec=n}s.id=gt.text,r.sampleDuration=0,r.duration=o.duration=i}resetContiguity(){this.remainderData=null}static probe(t){return _t(t=t.length>16384?t.subarray(0,16384):t,["moof"]).length>0}demux(t,e){this.timeOffset=e;let n=t;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Ct(this.remainderData,t));const e=function(t){const e={valid:null,remainder:null},n=_t(t,["moof"]);if(!n)return e;if(n.length<2)return e.remainder=t,e;const i=n[n.length-1];return e.valid=Z(t,0,i.byteOffset-8),e.remainder=Z(t,i.byteOffset-8),e}(n);this.remainderData=e.remainder,i.samples=e.valid||new Uint8Array}else i.samples=n;const o=this.extractID3Track(i,e);return r.samples=At(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const t=this.timeOffset,e=this.videoTrack,n=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(e,this.timeOffset);return n.samples=At(t,e),{videoTrack:e,audioTrack:Kn(),id3Track:i,textTrack:Kn()}}extractID3Track(t,e){const n=this.id3Track;if(t.samples.length){const i=_t(t.samples,["emsg"]);i&&i.forEach((t=>{const i=function(t){const e=t[0];let n="",i="",r=0,o=0,s=0,a=0,l=0,u=0;if(0===e){for(;"\0"!==vt(t.subarray(u,u+1));)n+=vt(t.subarray(u,u+1)),u+=1;for(n+=vt(t.subarray(u,u+1)),u+=1;"\0"!==vt(t.subarray(u,u+1));)i+=vt(t.subarray(u,u+1)),u+=1;i+=vt(t.subarray(u,u+1)),u+=1,r=bt(t,12),o=bt(t,16),a=bt(t,20),l=bt(t,24),u=28}else if(1===e){u+=4,r=bt(t,u),u+=4;const e=bt(t,u);u+=4;const o=bt(t,u);for(u+=4,s=2**32*e+o,Number.isSafeInteger(s)||(s=Number.MAX_SAFE_INTEGER,S.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),a=bt(t,u),u+=4,l=bt(t,u),u+=4;"\0"!==vt(t.subarray(u,u+1));)n+=vt(t.subarray(u,u+1)),u+=1;for(n+=vt(t.subarray(u,u+1)),u+=1;"\0"!==vt(t.subarray(u,u+1));)i+=vt(t.subarray(u,u+1)),u+=1;i+=vt(t.subarray(u,u+1)),u+=1}return{schemeIdUri:n,value:i,timeScale:r,presentationTime:s,presentationTimeDelta:o,eventDuration:a,id:l,payload:t.subarray(u,t.byteLength)}}(t);if(oi.test(i.schemeIdUri)){const t=m(i.presentationTime)?i.presentationTime/i.timeScale:e+i.presentationTimeDelta/i.timeScale;let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const o=i.payload;n.samples.push({data:o,len:o.byteLength,dts:t,pts:t,type:we,duration:r})}}))}return n}demuxSampleAes(t,e,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}},remux:class{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(t){this.initPTS=t,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(t,e,n,i){this.audioCodec=e,this.videoCodec=n,this.generateInitSegment(function(t,e){if(!t||!e)return t;const n=e.keyId;n&&e.isCommonEncryption&&_t(t,["moov","trak"]).forEach((t=>{const e=_t(t,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=_t(e,["enca"]);const r=i.length>0;r||(i=_t(e,["encv"])),i.forEach((t=>{_t(r?t.subarray(28):t.subarray(78),["sinf"]).forEach((t=>{const e=xt(t);if(e){const t=e.subarray(8,24);t.some((t=>0!==t))||(S.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${ft(t)} -> ${ft(n)}`),e.set(n,8))}}))}))}));return t}(t,i)),this.emitInitSegment=!0}generateInitSegment(t){let{audioCodec:e,videoCodec:n}=this;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const i=this.initData=Et(t);e||(e=Bi(i.audio,I)),n||(n=Bi(i.video,O));const r={};i.audio&&i.video?r.audiovideo={container:"video/mp4",codec:e+","+n,initSegment:t,id:"main"}:i.audio?r.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?r.video={container:"video/mp4",codec:n,initSegment:t,id:"main"}:S.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(t,e,n,i,r,o){var s,a;let{initPTS:l,lastEndTime:u}=this;const c={audio:void 0,video:void 0,text:i,id3:n,initSegment:void 0};m(u)||(u=this.lastEndTime=r||0);const d=e.samples;if(null==d||!d.length)return c;const h={initPTS:void 0,timescale:1};let f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(d),f=this.initData),null==(a=f)||!a.length)return S.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),c;this.emitInitSegment&&(h.tracks=this.initTracks,this.emitInitSegment=!1);const p=function(t,e){let n=0,i=0,r=0;const o=_t(t,["moof","traf"]);for(let t=0;t<o.length;t++){const s=o[t],a=_t(s,["tfhd"])[0],l=e[bt(a,4)];if(!l)continue;const u=l.default,c=bt(a,0)|(null==u?void 0:u.flags);let d=null==u?void 0:u.duration;8&c&&(d=bt(a,2&c?12:8));const h=l.timescale||9e4,f=_t(s,["trun"]);for(let t=0;t<f.length;t++)n=kt(f[t]),!n&&d&&(n=d*bt(f[t],4)),l.type===O?i+=n/h:l.type===I&&(r+=n/h)}if(0===i&&0===r){let e=0;const n=_t(t,["sidx"]);for(let t=0;t<n.length;t++){const i=St(n[t]);null!=i&&i.references&&(e+=i.references.reduce(((t,e)=>t+e.info.duration||0),0))}return e}return i||r}(d,f),g=function(t,e){return _t(e,["moof","traf"]).reduce(((e,n)=>{const i=_t(n,["tfdt"])[0],r=i[0],o=_t(n,["tfhd"]).reduce(((e,n)=>{const o=bt(n,4),s=t[o];if(s){let t=bt(i,4);if(1===r){if(t===pt)return S.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),e;t*=pt+1,t+=bt(i,8)}const n=t/(s.timescale||9e4);if(isFinite(n)&&(null===e||n<e))return n}return e}),null);return null!==o&&isFinite(o)&&(null===e||o<e)?o:e}),null)}(f,d),v=null===g?r:g;(function(t,e,n,i){if(null===t)return!0;const r=Math.max(i,1),o=e-t.baseTime/t.timescale;return Math.abs(o-n)>r}(l,v,r,p)||h.timescale!==l.timescale&&o)&&(h.initPTS=v-r,l&&1===l.timescale&&S.warn("Adjusting initPTS by "+(h.initPTS-l.baseTime)),this.initPTS=l={baseTime:h.initPTS,timescale:1});const y=t?v-l.baseTime/l.timescale:u,b=y+p;!function(t,e,n){_t(e,["moof","traf"]).forEach((e=>{_t(e,["tfhd"]).forEach((i=>{const r=bt(i,4),o=t[r];if(!o)return;const s=o.timescale||9e4;_t(e,["tfdt"]).forEach((t=>{const e=t[0];let i=bt(t,4);if(0===e)i-=n*s,i=Math.max(i,0),Tt(t,4,i);else{i*=Math.pow(2,32),i+=bt(t,8),i-=n*s,i=Math.max(i,0);const e=Math.floor(i/(pt+1)),r=Math.floor(i%(pt+1));Tt(t,4,e),Tt(t,8,r)}}))}))}))}(f,d,l.baseTime/l.timescale),p>0?this.lastEndTime=b:(S.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const w=!!f.audio,T=!!f.video;let _="";w&&(_+="audio"),T&&(_+="video");const E={data1:d,startPTS:y,startDTS:y,endPTS:b,endDTS:b,type:_,hasAudio:w,hasVideo:T,nb:1,dropped:0};return c.audio="audio"===E.type?E:void 0,c.video="audio"!==E.type?E:void 0,c.initSegment=h,c.id3=Fi(n,r,l,l),i.samples.length&&(c.text=$i(i,r,l)),c}}},{demux:bi,remux:Mi},{demux:class extends Yn{constructor(t,e){super(),this.observer=void 0,this.config=void 0,this.observer=t,this.config=e}resetInitSegment(t,e,n,i){super.resetInitSegment(t,e,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;let e=(J(t,0)||[]).length;for(let n=t.length;e<n;e++)if(ei(t,e))return S.log("ADTS sync word found !"),!0;return!1}canParse(t,e){return function(t,e){return function(t,e){return e+5<t.length}(t,e)&&Xn(t,e)&&Jn(t,e)<=t.length-e}(t,e)}appendFrame(t,e,n){ni(t,this.observer,e,n,t.manifestCodec);const i=ri(t,e,n,this.basePTS,this.frameIndex);if(i&&0===i.missing)return i}},remux:Mi},{demux:class extends Yn{resetInitSegment(t,e,n,i){super.resetInitSegment(t,e,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;let e=(J(t,0)||[]).length;for(let n=t.length;e<n;e++)if(mi(t,e))return S.log("MPEG Audio sync word found !"),!0;return!1}canParse(t,e){return function(t,e){return fi(t,e)&&4<=t.length-e}(t,e)}appendFrame(t,e,n){if(null!==this.basePTS)return di(t,e,n,this.basePTS,this.frameIndex)}},remux:Mi}];class Vi{constructor(t,e,n,i,r){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=n,this.vendor=i,this.id=r}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,e,n,i){const r=n.transmuxing;r.executeStart=Di();let o=new Uint8Array(t);const{currentTransmuxState:s,transmuxConfig:a}=this;i&&(this.currentTransmuxState=i);const{contiguous:l,discontinuity:u,trackSwitch:c,accurateTimeOffset:d,timeOffset:h,initSegmentChange:f}=i||s,{audioCodec:p,videoCodec:m,defaultInitPts:b,duration:w,initSegmentData:T}=a,_=function(t,e){let n=null;t.byteLength>0&&null!=e&&null!=e.key&&null!==e.iv&&null!=e.method&&(n=e);return n}(o,e);if(_&&"AES-128"===_.method){const t=this.getDecrypter();if(!t.isSync())return this.decryptionPromise=t.webCryptoDecrypt(o,_.key.buffer,_.iv.buffer).then((t=>{const e=this.push(t,null,n);return this.decryptionPromise=null,e})),this.decryptionPromise;{let e=t.softwareDecrypt(o,_.key.buffer,_.iv.buffer);if(n.part>-1&&(e=t.flush()),!e)return r.executeEnd=Di(),zi(n);o=new Uint8Array(e)}}const E=this.needsProbing(u,c);if(E){const t=this.configureTransmuxer(o);if(t)return S.warn(`[transmuxer] ${t.message}`),this.observer.emit(g.ERROR,g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:t,reason:t.message}),r.executeEnd=Di(),zi(n)}(u||c||f||E)&&this.resetInitSegment(T,p,m,w,e),(u||f||E)&&this.resetInitialTimestamp(b),l||this.resetContiguity();const x=this.transmux(o,_,h,d,n),k=this.currentTransmuxState;return k.contiguous=!0,k.discontinuity=!1,k.trackSwitch=!1,r.executeEnd=Di(),x}flush(t){const e=t.transmuxing;e.executeStart=Di();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return r.then((()=>this.flush(t)));const o=[],{timeOffset:s}=i;if(n){const e=n.flush();e&&o.push(this.push(e,null,t))}const{demuxer:a,remuxer:l}=this;if(!a||!l)return e.executeEnd=Di(),[zi(t)];const u=a.flush(s);return Wi(u)?u.then((e=>(this.flushRemux(o,e,t),o))):(this.flushRemux(o,u,t),o)}flushRemux(t,e,n){const{audioTrack:i,videoTrack:r,id3Track:o,textTrack:s}=e,{accurateTimeOffset:a,timeOffset:l}=this.currentTransmuxState;S.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const u=this.remuxer.remux(i,r,o,s,l,a,!0,this.id);t.push({remuxResult:u,chunkMeta:n}),n.transmuxing.executeEnd=Di()}resetInitialTimestamp(t){const{demuxer:e,remuxer:n}=this;e&&n&&(e.resetTimeStamp(t),n.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:e}=this;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())}resetInitSegment(t,e,n,i,r){const{demuxer:o,remuxer:s}=this;o&&s&&(o.resetInitSegment(t,e,n,i),s.resetInitSegment(t,e,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,e,n,i,r){let o;return o=e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,n,i,r):this.transmuxUnencrypted(t,n,i,r),o}transmuxUnencrypted(t,e,n,i){const{audioTrack:r,videoTrack:o,id3Track:s,textTrack:a}=this.demuxer.demux(t,e,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,o,s,a,e,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,e,n,i,r){return this.demuxer.demuxSampleAes(t,e,n).then((t=>({remuxResult:this.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,n,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(t){const{config:e,observer:n,typeSupported:i,vendor:r}=this;let o;for(let e=0,n=Hi.length;e<n;e++)if(Hi[e].demux.probe(t)){o=Hi[e];break}if(!o)return new Error("Failed to find demuxer by probing fragment data");const s=this.demuxer,a=this.remuxer,l=o.remux,u=o.demux;a&&a instanceof l||(this.remuxer=new l(n,e,i,r)),s&&s instanceof u||(this.demuxer=new u(n,e,i),this.probe=u.probe)}needsProbing(t,e){return!this.demuxer||!this.remuxer||t||e}getDecrypter(){let t=this.decrypter;return t||(t=this.decrypter=new Dn(this.config)),t}}const zi=t=>({remuxResult:{},chunkMeta:t});function Wi(t){return"then"in t&&t.then instanceof Function}class qi{constructor(t,e,n,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=n,this.duration=i,this.defaultInitPts=r||null}}class Gi{constructor(t,e,n,i,r,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=n,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=o}}var Ki={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,i,o,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new r(i,o||t,s),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,i,r=[];if(0===this._eventsCount)return r;for(i in t=this._events)e.call(t,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=n?n+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,s=new Array(o);r<o;r++)s[r]=i[r].fn;return s},a.prototype.listenerCount=function(t){var e=n?n+t:t,i=this._events[e];return i?i.fn?1:i.length:0},a.prototype.emit=function(t,e,i,r,o,s){var a=n?n+t:t;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,i),!0;case 4:return c.fn.call(c.context,e,i,r),!0;case 5:return c.fn.call(c.context,e,i,r,o),!0;case 6:return c.fn.call(c.context,e,i,r,o,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,i);break;case 4:c[u].fn.call(c[u].context,e,i,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},a.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},a.prototype.removeListener=function(t,e,i,r){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||r&&!a.once||i&&a.context!==i||s(this,o);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==e||r&&!a[l].once||i&&a[l].context!==i)&&u.push(a[l]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&s(this,e)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a}(Ki);var Yi=i(Ki.exports);const Zi=Bt()||{isTypeSupported:()=>!1};class Xi{constructor(t,e,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const r=t.config;this.hls=t,this.id=e,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const o=(t,e)=>{(e=e||{}).frag=this.frag,e.id=this.id,t===g.ERROR&&(this.error=e.error),this.hls.trigger(t,e)};this.observer=new Yi,this.observer.on(g.FRAG_DECRYPTED,o),this.observer.on(g.ERROR,o);const s={mp4:Zi.isTypeSupported("video/mp4"),mpeg:Zi.isTypeSupported("audio/mpeg"),mp3:Zi.isTypeSupported('audio/mp4; codecs="mp3"')},a=navigator.vendor;if(this.useWorker&&"undefined"!=typeof Worker){if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(S.log(`loading Web Worker ${r.workerPath} for "${e}"`),this.workerContext=function(t){const e=new self.URL(t,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}(r.workerPath)):(S.log(`injecting Web Worker for "${e}"`),this.workerContext=function(){const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(t);return{worker:new self.Worker(e),objectURL:e}}()),this.onwmsg=t=>this.onWorkerMessage(t);const{worker:t}=this.workerContext;t.addEventListener("message",this.onwmsg),t.onerror=t=>{const n=new Error(`${t.message}  (${t.filename}:${t.lineno})`);r.enableWorker=!1,S.warn(`Error in "${e}" Web Worker, fallback to inline`),this.hls.trigger(g.ERROR,{type:v.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:n})},t.postMessage({cmd:"init",typeSupported:s,vendor:a,id:e,config:JSON.stringify(r)})}catch(t){S.warn(`Error setting up "${e}" Web Worker, fallback to inline`,t),this.resetWorker(),this.error=null,this.transmuxer=new Vi(this.observer,s,r,a,e)}return}}this.transmuxer=new Vi(this.observer,s,r,a,e)}resetWorker(){if(this.workerContext){const{worker:t,objectURL:e}=this.workerContext;e&&self.URL.revokeObjectURL(e),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(t,e,n,i,r,o,s,a,l,u){var c,d;l.transmuxing.start=self.performance.now();const{transmuxer:h}=this,f=o?o.start:r.start,p=r.decryptdata,m=this.frag,g=!(m&&r.cc===m.cc),v=!(m&&l.level===m.level),y=m?l.sn-m.sn:-1,b=this.part?l.part-this.part.index:-1,w=0===y&&l.id>1&&l.id===(null==m?void 0:m.stats.chunkCount),T=!v&&(1===y||0===y&&(1===b||w&&b<=0)),_=self.performance.now();(v||y||0===r.stats.parsing.start)&&(r.stats.parsing.start=_),!o||!b&&T||(o.stats.parsing.start=_);const E=!(m&&(null==(c=r.initSegment)?void 0:c.url)===(null==(d=m.initSegment)?void 0:d.url)),x=new Gi(g,T,a,v,f,E);if(!T||g||E){S.log(`[transmuxer-interface, ${r.type}]: Starting new transmux session for sn: ${l.sn} p: ${l.part} level: ${l.level} id: ${l.id}\n        discontinuity: ${g}\n        trackSwitch: ${v}\n        contiguous: ${T}\n        accurateTimeOffset: ${a}\n        timeOffset: ${f}\n        initSegmentChange: ${E}`);const t=new qi(n,i,e,s,u);this.configureTransmuxer(t)}if(this.frag=r,this.part=o,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:p,chunkMeta:l,state:x},t instanceof ArrayBuffer?[t]:[]);else if(h){const e=h.push(t,p,l,x);Wi(e)?(h.async=!0,e.then((t=>{this.handleTransmuxComplete(t)})).catch((t=>{this.transmuxerError(t,l,"transmuxer-interface push error")}))):(h.async=!1,this.handleTransmuxComplete(e))}}flush(t){t.transmuxing.start=self.performance.now();const{transmuxer:e}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(e){let n=e.flush(t);Wi(n)||e.async?(Wi(n)||(n=Promise.resolve(n)),n.then((e=>{this.handleFlushResult(e,t)})).catch((e=>{this.transmuxerError(e,t,"transmuxer-interface flush error")}))):this.handleFlushResult(n,t)}}transmuxerError(t,e,n){this.hls&&(this.error=t,this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,chunkMeta:e,fatal:!1,error:t,err:t,reason:n}))}handleFlushResult(t,e){t.forEach((t=>{this.handleTransmuxComplete(t)})),this.onFlush(e)}onWorkerMessage(t){const e=t.data,n=this.hls;switch(e.event){case"init":{var i;const t=null==(i=this.workerContext)?void 0:i.objectURL;t&&self.URL.revokeObjectURL(t);break}case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":S[e.data.logType]&&S[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,n.trigger(e.event,e.data)}}configureTransmuxer(t){const{transmuxer:e}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}class Qi{constructor(t,e,n,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=n,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(t,e){const{config:n,media:i,stalled:r}=this;if(null===i)return;const{currentTime:o,seeking:s}=i,a=this.seeking&&!s,l=!this.seeking&&s;if(this.seeking=s,o!==t){if(this.moved=!0,null!==r){if(this.stallReported){const t=self.performance.now()-r;S.warn(`playback not stuck anymore @${o}, after ${Math.round(t)}ms`),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(l||a)return void(this.stalled=null);if(i.paused&&!s||i.ended||0===i.playbackRate||!_n.getBuffered(i).length)return;const u=_n.bufferInfo(i,o,0),c=u.len>0,d=u.nextStart||0;if(!c&&!d)return;if(s){const t=u.len>2,n=!d||e&&e.start<=o||d-o>2&&!this.fragmentTracker.getPartialFragment(o);if(t||n)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var h;const t=Math.max(d,u.start||0)-o,e=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,n=(null==e||null==(h=e.details)?void 0:h.live)?2*e.details.targetduration:2,i=this.fragmentTracker.getPartialFragment(o);if(t>0&&(t<=n||i))return void this._trySkipBufferHole(i)}const f=self.performance.now();if(null===r)return void(this.stalled=f);const p=f-r;if(!s&&p>=250&&(this._reportStall(u),!this.media))return;const m=_n.bufferInfo(i,o,n.maxBufferHole);this._tryFixBufferStall(m,p)}_tryFixBufferStall(t,e){const{config:n,fragmentTracker:i,media:r}=this;if(null===r)return;const o=r.currentTime,s=i.getPartialFragment(o);if(s){if(this._trySkipBufferHole(s)||!this.media)return}(t.len>n.maxBufferHole||t.nextStart&&t.nextStart-o<n.maxBufferHole)&&e>1e3*n.highBufferWatchdogPeriod&&(S.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(t){const{hls:e,media:n,stallReported:i}=this;if(!i&&n){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${JSON.stringify(t)})`);S.warn(i.message),e.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len})}}_trySkipBufferHole(t){const{config:e,hls:n,media:i}=this;if(null===i)return 0;const r=i.currentTime,o=_n.bufferInfo(i,r,0),s=r<o.start?o.start:o.nextStart;if(s){const a=o.len<=e.maxBufferHole,l=o.len>0&&o.len<1&&i.readyState<3,u=s-r;if(u>0&&(a||l)){if(u>e.maxBufferHole){const{fragmentTracker:e}=this;let n=!1;if(0===r){const t=e.getAppendedFrag(0,le);t&&s<t.end&&(n=!0)}if(!n){const n=t||e.getAppendedFrag(r,le);if(n){let t=!1,i=n.end;for(;i<s;){const n=e.getPartialFragment(i);if(!n){t=!0;break}i+=n.duration}if(t)return 0}}}const o=Math.max(s+.05,r+.1);if(S.warn(`skipping hole, adjusting currentTime from ${r} to ${o}`),this.moved=!0,this.stalled=null,i.currentTime=o,t&&!t.gap){const e=new Error(`fragment loaded with buffer holes, seeking from ${r} to ${o}`);n.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:e,reason:e.message,frag:t})}return o}}return 0}_tryNudgeBuffer(){const{config:t,hls:e,media:n,nudgeRetry:i}=this;if(null===n)return;const r=n.currentTime;if(this.nudgeRetry++,i<t.nudgeMaxRetry){const o=r+(i+1)*t.nudgeOffset,s=new Error(`Nudging 'currentTime' from ${r} to ${o}`);S.warn(s.message),n.currentTime=o,e.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_NUDGE_ON_STALL,error:s,fatal:!1})}else{const n=new Error(`Playhead still not moving while enough data buffered @${r} after ${t.nudgeMaxRetry} nudges`);S.error(n.message),e.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,error:n,fatal:!0})}}}class Ji extends qn{constructor(t,e,n){super(t,e,n,"[stream-controller]",le),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_PARSED,this.onManifestParsed,this),t.on(g.LEVEL_LOADING,this.onLevelLoading,this),t.on(g.LEVEL_LOADED,this.onLevelLoaded,this),t.on(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(g.ERROR,this.onError,this),t.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(g.BUFFER_CREATED,this.onBufferCreated,this),t.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_PARSED,this.onManifestParsed,this),t.off(g.LEVEL_LOADED,this.onLevelLoaded,this),t.off(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(g.ERROR,this.onError,this),t.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(g.BUFFER_CREATED,this.onBufferCreated,this),t.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(g.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),this.onMediaDetaching()}startLoad(t){if(this.levels){const{lastCurrentTime:e,hls:n}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let t=n.startLevel;-1===t&&(n.config.testBandwidth&&this.levels.length>1?(t=0,this.bitrateTest=!0):t=n.nextAutoLevel),this.level=n.nextLoadLevel=t,this.loadedmetadata=!1}e>0&&-1===t&&(this.log(`Override startPosition with lastCurrentTime @${e.toFixed(3)}`),t=e),this.state=Mn,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Rn}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Wn:{var t;const{levels:e,level:n}=this,i=null==e||null==(t=e[n])?void 0:t.details;if(i&&(!i.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(i))break;this.state=Mn;break}if(this.hls.nextLoadLevel!==this.level){this.state=Mn;break}break}case $n:{var e;const t=self.performance.now(),n=this.retryDate;(!n||t>=n||null!=(e=this.media)&&e.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Mn)}}this.state===Mn&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:e,levels:n,media:i}=this,{config:r,nextLoadLevel:o}=t;if(null===e||!i&&(this.startFragRequested||!r.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(null==n||!n[o])return;const s=n[o],a=this.getMainFwdBufferInfo();if(null===a)return;const l=this.getLevelDetails();if(l&&this._streamEnded(a,l)){const t={};return this.altAudio&&(t.type="video"),this.hls.trigger(g.BUFFER_EOS,t),void(this.state=Hn)}t.loadLevel!==o&&-1===t.manualLevel&&this.log(`Adapting to level ${o} from level ${this.level}`),this.level=t.nextLoadLevel=o;const u=s.details;if(!u||this.state===Wn||u.live&&this.levelLastLoaded!==o)return this.level=o,void(this.state=Wn);const c=a.len,d=this.getMaxBufferLength(s.maxBitrate);if(c>=d)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const h=this.backtrackFragment?this.backtrackFragment.start:a.end;let f=this.getNextFragment(h,u);if(this.couldBacktrack&&!this.fragPrevious&&f&&"initSegment"!==f.sn&&this.fragmentTracker.getState(f)!==cn){var p;const t=(null!=(p=this.backtrackFragment)?p:f).sn-u.startSN,e=u.fragments[t-1];e&&f.cc===e.cc&&(f=e,this.fragmentTracker.removeFragment(e))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(f&&this.isLoopLoading(f,h)){if(!f.gap){const t=this.audioOnly&&!this.altAudio?I:O,e=(t===O?this.videoBuffer:this.mediaBuffer)||this.media;e&&this.afterBufferFlushed(e,t,le)}f=this.getNextFragmentLoopLoading(f,u,a,le,d)}f&&(!f.initSegment||f.initSegment.data||this.bitrateTest||(f=f.initSegment),this.loadFragment(f,s,h))}loadFragment(t,e,n){const i=this.fragmentTracker.getState(t);this.fragCurrent=t,i===an||i===un?"initSegment"===t.sn?this._loadInitSegment(t,e):this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,e)):(this.startFragRequested=!0,super.loadFragment(t,e,n)):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,le)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:e}=this;if(null!=e&&e.readyState){let n;const i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const t=this.getMainFwdBufferInfo();if(!t||t.len<2*r.targetduration)return}if(!e.paused&&t){const e=t[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*e.maxBitrate/(1e3*i)+1:0}else n=0;const o=this.getBufferedFrag(e.currentTime+n);if(o){const t=this.followingBufferedFrag(o);if(t){this.abortCurrentFrag();const e=t.maxStartPTS?t.maxStartPTS:t.start,n=t.duration,i=Math.max(o.end,e+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,.5*n),.75*n));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case Nn:case Fn:case $n:case Un:case Bn:this.state=Mn}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(t,e){super.flushMainBuffer(t,e,this.altAudio?"video":null)}onMediaAttached(t,e){super.onMediaAttached(t,e);const n=e.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new Qi(this.config,n,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:t}=this;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const t=this.media,e=t?t.currentTime:null;m(e)&&this.log(`Media seeked to ${e.toFixed(3)}`);const n=this.getMainFwdBufferInfo();null!==n&&0!==n.len?this.tick():this.warn(`Main forward buffer length on "seeked" event ${n?n.len:"empty"})`)}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(g.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}onManifestParsed(t,e){let n,i=!1,r=!1;e.levels.forEach((t=>{n=t.audioCodec,n&&(-1!==n.indexOf("mp4a.40.2")&&(i=!0),-1!==n.indexOf("mp4a.40.5")&&(r=!0))})),this.audioCodecSwitch=i&&r&&!function(){var t;const e=Gn();return"function"==typeof(null==e||null==(t=e.prototype)?void 0:t.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1}onLevelLoading(t,e){const{levels:n}=this;if(!n||this.state!==Mn)return;const i=n[e.level];(!i.details||i.details.live&&this.levelLastLoaded!==e.level||this.waitForCdnTuneIn(i.details))&&(this.state=Wn)}onLevelLoaded(t,e){var n;const{levels:i}=this,r=e.level,o=e.details,s=o.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${r}`);this.log(`Level ${r} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""}, cc [${o.startCC}, ${o.endCC}] duration:${s}`);const a=i[r],l=this.fragCurrent;!l||this.state!==Fn&&this.state!==$n||l.level===e.level&&l.urlId===a.urlId||!l.loader||this.abortCurrentFrag();let u=0;if(o.live||null!=(n=a.details)&&n.live){if(o.fragments[0]||(o.deltaUpdateFailed=!0),o.deltaUpdateFailed)return;u=this.alignPlaylists(o,a.details)}if(a.details=o,this.levelLastLoaded=r,this.hls.trigger(g.LEVEL_UPDATED,{details:o,level:r}),this.state===Wn){if(this.waitForCdnTuneIn(o))return;this.state=Mn}this.startFragRequested?o.live&&this.synchronizeToLiveEdge(o):this.setStartPosition(o,u),this.tick()}_handleFragmentLoadProgress(t){var e;const{frag:n,part:i,payload:r}=t,{levels:o}=this;if(!o)return void this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const s=o[n.level],a=s.details;if(!a)return this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),void this.fragmentTracker.removeFragment(n);const l=s.videoCodec,u=a.PTSKnown||!a.live,c=null==(e=n.initSegment)?void 0:e.data,d=this._getAudioCodec(s),h=this.transmuxer=this.transmuxer||new Xi(this.hls,le,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=i?i.index:-1,p=-1!==f,m=new Sn(n.level,n.sn,n.stats.chunkCount,r.byteLength,f,p),g=this.initPTS[n.cc];h.push(r,c,d,l,n,i,a.totalduration,u,m,g)}onAudioTrackSwitching(t,e){const n=this.altAudio;if(!!!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const t=this.fragCurrent;t&&(this.log("Switching to main audio track, cancel main fragment load"),t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const t=this.hls;n&&(t.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),t.trigger(g.AUDIO_TRACK_SWITCHED,e)}}onAudioTrackSwitched(t,e){const n=e.id,i=!!this.hls.audioTracks[n].url;if(i){const t=this.videoBuffer;t&&this.mediaBuffer!==t&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=t)}this.altAudio=i,this.tick()}onBufferCreated(t,e){const n=e.tracks;let i,r,o=!1;for(const t in n){const e=n[t];if("main"===e.id){if(r=t,i=e,"video"===t){const e=n[t];e&&(this.videoBuffer=e.buffer)}}else o=!0}o&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,e){const{frag:n,part:i}=e;if(n&&n.type!==le)return;if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===Bn&&(this.state=Mn));const r=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*r.total/(r.buffering.end-r.loading.first)),"initSegment"!==n.sn&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}onError(t,e){var n;if(e.fatal)this.state=Vn;else switch(e.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(le,e);break;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==Wn||(null==(n=e.context)?void 0:n.type)!==oe||(this.state=Mn);break;case y.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}checkBuffer(){const{media:t,gapController:e}=this;if(t&&e&&t.readyState){if(this.loadedmetadata||!_n.getBuffered(t).length){const t=this.state!==Mn?this.fragCurrent:null;e.poll(this.lastCurrentTime,t)}this.lastCurrentTime=t.currentTime}}onFragLoadEmergencyAborted(){this.state=Mn,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(t,{type:e}){if(e!==I||this.audioOnly&&!this.altAudio){const t=(e===O?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(t,e,le)}}onLevelsUpdated(t,e){this.levels=e.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const e=t.currentTime;let n=this.startPosition;if(n>=0&&e<n){if(t.seeking)return void this.log(`could not seek to ${n}, already seeking at ${e}`);const i=_n.getBuffered(t),r=(i.length?i.start(0):0)-n;r>0&&(r<this.config.maxBufferHole||r<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${r} to match buffer start`),n+=r,this.startPosition=n),this.log(`seek to target start position ${n} from current time ${e}`),t.currentTime=n}}_getAudioCodec(t){let e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e}_loadBitrateTestFrag(t,e){t.bitrateTest=!0,this._doFragLoad(t,e).then((n=>{const{hls:i}=this;if(!n||this.fragContextChanged(t))return;e.fragmentError=0,this.state=Mn,this.startFragRequested=!1,this.bitrateTest=!1;const r=t.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),i.trigger(g.FRAG_LOADED,n),t.bitrateTest=!1}))}_handleTransmuxComplete(t){var e;const n="main",{hls:i}=this,{remuxResult:r,chunkMeta:o}=t,s=this.getCurrentContext(o);if(!s)return void this.resetWhenMissingContext(o);const{frag:a,part:l,level:u}=s,{video:c,text:d,id3:h,initSegment:f}=r,{details:p}=u,v=this.altAudio?void 0:r.audio;if(this.fragContextChanged(a))return void this.fragmentTracker.removeFragment(a);if(this.state=Un,f){if(null!=f&&f.tracks){const t=a.initSegment||a;this._bufferInitSegment(u,f.tracks,t,o),i.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:n,tracks:f.tracks})}const t=f.initPTS,e=f.timescale;m(t)&&(this.initPTS[a.cc]={baseTime:t,timescale:e},i.trigger(g.INIT_PTS_FOUND,{frag:a,id:n,initPTS:t,timescale:e}))}const y=a.sn!==(null==p?void 0:p.startSN);if(c&&!1!==r.independent){if(p){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=c;if(l)l.elementaryStreams[c.type]={startPTS:t,endPTS:e,startDTS:n,endDTS:i};else if(c.firstKeyFrame&&c.independent&&1===o.id&&(this.couldBacktrack=!0),c.dropped&&c.independent){const n=this.getMainFwdBufferInfo(),r=(n?n.end:this.getLoadPosition())+this.config.maxBufferHole,o=c.firstKeyFramePTS?c.firstKeyFramePTS:t;if(y&&r<o-this.config.maxBufferHole)return void this.backtrack(a);a.setElementaryStreamInfo(c.type,a.start,e,a.start,i,!0)}a.setElementaryStreamInfo(c.type,t,e,n,i),this.backtrackFragment&&(this.backtrackFragment=a),this.bufferFragmentData(c,a,l,o)}}else if(y&&!1===r.independent)return void this.backtrack(a);if(v){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=v;l&&(l.elementaryStreams[I]={startPTS:t,endPTS:e,startDTS:n,endDTS:i}),a.setElementaryStreamInfo(I,t,e,n,i),this.bufferFragmentData(v,a,l,o)}if(p&&null!=h&&null!=(e=h.samples)&&e.length){const t={id:n,frag:a,details:p,samples:h.samples};i.trigger(g.FRAG_PARSING_METADATA,t)}if(p&&d){const t={id:n,frag:a,details:p,samples:d.samples};i.trigger(g.FRAG_PARSING_USERDATA,t)}}_bufferInitSegment(t,e,n,i){if(this.state!==Un)return;this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;const{audio:r,video:o,audiovideo:s}=e;if(r){let e=t.audioCodec;const n=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(e&&(e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==r.metadata.channelCount&&-1===n.indexOf("firefox")&&(e="mp4a.40.5")),-1!==n.indexOf("android")&&"audio/mpeg"!==r.container&&(e="mp4a.40.2",this.log(`Android: force audio codec to ${e}`)),t.audioCodec&&t.audioCodec!==e&&this.log(`Swapping manifest audio codec "${t.audioCodec}" for "${e}"`),r.levelCodec=e,r.id="main",this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${e||""}/${t.audioCodec||""}/${r.codec}]`)}o&&(o.levelCodec=t.videoCodec,o.id="main",this.log(`Init video buffer, container:${o.container}, codecs[level/parsed]=[${t.videoCodec||""}/${o.codec}]`)),s&&this.log(`Init audiovideo buffer, container:${s.container}, codecs[level/parsed]=[${t.attrs.CODECS||""}/${s.codec}]`),this.hls.trigger(g.BUFFER_CODECS,e),Object.keys(e).forEach((t=>{const r=e[t].initSegment;null!=r&&r.byteLength&&this.hls.trigger(g.BUFFER_APPENDING,{type:t,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})})),this.tick()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,le)}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=Mn}checkFragmentChanged(){const t=this.media;let e=null;if(t&&t.readyState>1&&!1===t.seeking){const n=t.currentTime;if(_n.isBuffered(t,n)?e=this.getAppendedFrag(n):_n.isBuffered(t,n+.1)&&(e=this.getAppendedFrag(n+.1)),e){this.backtrackFragment=null;const t=this.fragPlaying,n=e.level;t&&e.sn===t.sn&&t.level===n&&e.urlId===t.urlId||(this.fragPlaying=e,this.hls.trigger(g.FRAG_CHANGED,{frag:e}),t&&t.level===n||this.hls.trigger(g.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){const t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}get currentProgramDateTime(){const t=this.media;if(t){const e=t.currentTime,n=this.currentFrag;if(n&&m(e)&&m(n.programDateTime)){const t=n.programDateTime+1e3*(e-n.start);return new Date(t)}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class tr{constructor(t,e=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=n}sample(t,e){const n=Math.pow(this.alpha_,t);this.estimate_=e*(1-n)+n*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class er{constructor(t,e,n,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new tr(t),this.fast_=new tr(e),this.defaultTTFB_=i,this.ttfb_=new tr(t)}update(t,e){const{slow_:n,fast_:i,ttfb_:r}=this;n.halfLife!==t&&(this.slow_=new tr(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.fast_=new tr(e,i.getEstimate(),i.getTotalWeight())),r.halfLife!==t&&(this.ttfb_=new tr(t,r.getEstimate(),r.getTotalWeight()))}sample(t,e){const n=(t=Math.max(t,this.minDelayMs_))/1e3,i=8*e/n;this.fast_.sample(n,i),this.slow_.sample(n,i)}sampleTTFB(t){const e=t/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(n,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}class nr{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:e}=this;let n;return t.length?(n=1===t.length?t[0]:function(t,e){const n=new Uint8Array(e);let i=0;for(let e=0;e<t.length;e++){const r=t[e];n.set(r,i),i+=r.length}return n}(t,e),this.reset(),n):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}function ir(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!rr(t[n].attrs,e[n].attrs))return!1;return!0}function rr(t,e){const n=t["STABLE-RENDITION-ID"];return n?n===e["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some((n=>t[n]!==e[n]))}class or{constructor(t){this.buffered=void 0;const e=(e,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${e}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return t[n][e]};this.buffered={get length(){return t.length},end:n=>e("end",n,t.length),start:n=>e("start",n,t.length)}}}function sr(t){const e=[];for(let n=0;n<t.length;n++){const i=t[n];"subtitles"!==i.kind&&"captions"!==i.kind||!i.label||e.push(t[n])}return e}class ar{constructor(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}append(t,e){const n=this.queues[e];n.push(t),1===n.length&&this.buffers[e]&&this.executeNext(e)}insertAbort(t,e){this.queues[e].unshift(t),this.executeNext(e)}appendBlocker(t){let e;const n=new Promise((t=>{e=t})),i={execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,t),n}executeNext(t){const{buffers:e,queues:n}=this,i=e[t],r=n[t];if(r.length){const e=r[0];try{e.execute()}catch(n){S.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),e.onError(n),null!=i&&i.updating||(r.shift(),this.executeNext(t))}}}shiftAndExecuteNext(t){this.queues[t].shift(),this.executeNext(t)}current(t){return this.queues[t][0]}}const lr=Bt(),ur=/([ha]vc.)(?:\.[^.,]+)+/;const cr={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},dr=function(t){let e=t;return cr.hasOwnProperty(t)&&(e=cr[t]),String.fromCharCode(e)},hr=15,fr=100,pr={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},mr={17:2,18:4,21:6,22:8,23:10,19:13,20:15},gr={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},vr={25:2,26:4,29:6,30:8,31:10,27:13,28:15},yr=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class br{constructor(){this.time=null,this.verboseLevel=0}log(t,e){if(this.verboseLevel>=t){const n="function"==typeof e?e():e;S.log(`${this.time} [${t}] ${n}`)}}}const wr=function(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].toString(16));return e};class Tr{constructor(t,e,n,i,r){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=n||!1,this.background=i||"black",this.flash=r||!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(t){const e=["foreground","underline","italics","background","flash"];for(let n=0;n<e.length;n++){const i=e[n];t.hasOwnProperty(i)&&(this[i]=t[i])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash}copy(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class _r{constructor(t,e,n,i,r,o){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new Tr(e,n,i,r,o)}reset(){this.uchar=" ",this.penState.reset()}setChar(t,e){this.uchar=t,this.penState.copy(e)}setPenState(t){this.penState.copy(t)}equals(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)}copy(t){this.uchar=t.uchar,this.penState.copy(t.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}}class Sr{constructor(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(let t=0;t<fr;t++)this.chars.push(new _r);this.logger=t,this.pos=0,this.currPenState=new Tr}equals(t){let e=!0;for(let n=0;n<fr;n++)if(!this.chars[n].equals(t.chars[n])){e=!1;break}return e}copy(t){for(let e=0;e<fr;e++)this.chars[e].copy(t.chars[e])}isEmpty(){let t=!0;for(let e=0;e<fr;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t}setCursor(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>fr&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=fr)}moveCursor(t){const e=this.pos+t;if(t>1)for(let t=this.pos+1;t<e+1;t++)this.chars[t].setPenState(this.currPenState);this.setCursor(e)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(t){t>=144&&this.backSpace();const e=dr(t);this.pos>=fr?this.logger.log(0,(()=>"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))}clearFromPos(t){let e;for(e=t;e<fr;e++)this.chars[e].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const t=[];let e=!0;for(let n=0;n<fr;n++){const i=this.chars[n].uchar;" "!==i&&(e=!1),t.push(i)}return e?"":t.join("")}setPenStyles(t){this.currPenState.setStyles(t);this.chars[this.pos].setPenState(this.currPenState)}}class Er{constructor(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(let e=0;e<hr;e++)this.rows.push(new Sr(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}reset(){for(let t=0;t<hr;t++)this.rows[t].clear();this.currRow=14}equals(t){let e=!0;for(let n=0;n<hr;n++)if(!this.rows[n].equals(t.rows[n])){e=!1;break}return e}copy(t){for(let e=0;e<hr;e++)this.rows[e].copy(t.rows[e])}isEmpty(){let t=!0;for(let e=0;e<hr;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(t){this.rows[this.currRow].insertChar(t)}setPen(t){this.rows[this.currRow].setPenStyles(t)}moveCursor(t){this.rows[this.currRow].moveCursor(t)}setCursor(t){this.logger.log(2,"setCursor: "+t);this.rows[this.currRow].setCursor(t)}setPAC(t){this.logger.log(2,(()=>"pacData = "+JSON.stringify(t)));let e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(let t=0;t<hr;t++)this.rows[t].clear();const t=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){const i=n.rows[t].cueStartTime,r=this.logger.time;if(i&&null!==r&&i<r)for(let i=0;i<this.nrRollUpRows;i++)this.rows[e-this.nrRollUpRows+i+1].copy(n.rows[t+i])}}this.currRow=e;const n=this.rows[this.currRow];if(null!==t.indent){const e=t.indent,i=Math.max(e-1,0);n.setCursor(t.indent),t.color=n.chars[i].penState.foreground}const i={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(t){this.logger.log(2,(()=>"bkgData = "+JSON.stringify(t))),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const e=[];let n="",i=-1;for(let n=0;n<hr;n++){const r=this.rows[n].getTextString();r&&(i=n+1,t?e.push("Row "+i+": '"+r+"'"):e.push(r.trim()))}return e.length>0&&(n=t?"["+e.join(" | ")+"]":e.join("\n")),n}getTextAndFormat(){return this.rows}}class xr{constructor(t,e,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Er(n),this.nonDisplayedMemory=new Er(n),this.lastOutputScreen=new Er(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(()=>"MODE="+t)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);const e=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(()=>e+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{const n=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=i[n]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)}outputDataUpdate(t=!1){const e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class kr{constructor(t,e,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;const i=new br;this.channels=[null,new xr(t,e,i),new xr(t+1,n,i)],this.cmdHistory={a:null,b:null},this.logger=i}getHandler(t){return this.channels[t].getHandler()}setHandler(t,e){this.channels[t].setHandler(e)}addData(t,e){let n,i,r,o=!1;this.logger.time=t;for(let t=0;t<e.length;t+=2)if(i=127&e[t],r=127&e[t+1],0!==i||0!==r){if(this.logger.log(3,"["+wr([e[t],e[t+1]])+"] -> ("+wr([i,r])+")"),n=this.parseCmd(i,r),n||(n=this.parseMidrow(i,r)),n||(n=this.parsePAC(i,r)),n||(n=this.parseBackgroundAttributes(i,r)),!n&&(o=this.parseChars(i,r),o)){const t=this.currentChannel;if(t&&t>0){this.channels[t].insertChars(o)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}n||o||this.logger.log(2,"Couldn't parse cleaned data "+wr([i,r])+" orig: "+wr([e[t],e[t+1]]))}}parseCmd(t,e){const{cmdHistory:n}=this;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=33&&e<=35))return!1;if(Ar(t,e,n))return Cr(null,null,n),this.logger.log(3,"Repeated command ("+wr([t,e])+") is dropped"),!0;const i=20===t||21===t||23===t?1:2,r=this.channels[i];return 20===t||21===t||28===t||29===t?32===e?r.ccRCL():33===e?r.ccBS():34===e?r.ccAOF():35===e?r.ccAON():36===e?r.ccDER():37===e?r.ccRU(2):38===e?r.ccRU(3):39===e?r.ccRU(4):40===e?r.ccFON():41===e?r.ccRDC():42===e?r.ccTR():43===e?r.ccRTD():44===e?r.ccEDM():45===e?r.ccCR():46===e?r.ccENM():47===e&&r.ccEOC():r.ccTO(e-32),Cr(t,e,n),this.currentChannel=i,!0}parseMidrow(t,e){let n=0;if((17===t||25===t)&&e>=32&&e<=47){if(n=17===t?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[n];return!!i&&(i.ccMIDROW(e),this.logger.log(3,"MIDROW ("+wr([t,e])+")"),!0)}return!1}parsePAC(t,e){let n;const i=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127)&&!((16===t||24===t)&&e>=64&&e<=95))return!1;if(Ar(t,e,i))return Cr(null,null,i),!0;const r=t<=23?1:2;n=e>=64&&e<=95?1===r?pr[t]:gr[t]:1===r?mr[t]:vr[t];const o=this.channels[r];return!!o&&(o.setPAC(this.interpretPAC(n,e)),Cr(t,e,i),this.currentChannel=r,!0)}interpretPAC(t,e){let n;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return n=e>95?e-96:e-64,i.underline=1==(1&n),n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(t,e){let n,i=null,r=null;if(t>=25?(n=2,r=t-8):(n=1,r=t),r>=17&&r<=19){let t;t=17===r?e+80:18===r?e+112:e+144,this.logger.log(2,"Special char '"+dr(t)+"' in channel "+n),i=[t]}else t>=32&&t<=127&&(i=0===e?[t]:[t,e]);if(i){const n=wr(i);this.logger.log(3,"Char codes =  "+n.join(",")),Cr(t,e,this.cmdHistory)}return i}parseBackgroundAttributes(t,e){if(!((16===t||24===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=45&&e<=47))return!1;let n;const i={};16===t||24===t?(n=Math.floor((e-32)/2),i.background=yr[n],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));const r=t<=23?1:2;return this.channels[r].setBkgData(i),Cr(t,e,this.cmdHistory),!0}reset(){for(let t=0;t<Object.keys(this.channels).length;t++){const e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}}cueSplitAtTime(t){for(let e=0;e<this.channels.length;e++){const n=this.channels[e];n&&n.cueSplitAtTime(t)}}}function Cr(t,e,n){n.a=t,n.b=e}function Ar(t,e,n){return n.a===t&&n.b===e}class Lr{constructor(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,e,n){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var Ir=function(){if("undefined"!=typeof self&&self.VTTCue)return self.VTTCue;const t=["","lr","rl"],e=["start","middle","end","left","right"];function n(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;const n=e.toLowerCase();return!!~t.indexOf(n)&&n}function i(t){return n(e,t)}function r(t,...e){let n=1;for(;n<arguments.length;n++){const e=arguments[n];for(const n in e)t[n]=e[n]}return t}function o(e,o,s){const a=this,l={enumerable:!0};a.hasBeenReset=!1;let u="",c=!1,d=e,h=o,f=s,p=null,m="",g=!0,v="auto",y="start",b=50,w="middle",T=50,_="middle";Object.defineProperty(a,"id",r({},l,{get:function(){return u},set:function(t){u=""+t}})),Object.defineProperty(a,"pauseOnExit",r({},l,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(a,"startTime",r({},l,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},l,{get:function(){return h},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},l,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},l,{get:function(){return p},set:function(t){p=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},l,{get:function(){return m},set:function(e){const i=function(e){return n(t,e)}(e);if(!1===i)throw new SyntaxError("An invalid or illegal string was specified.");m=i,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},l,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},l,{get:function(){return v},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},l,{get:function(){return y},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},l,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},l,{get:function(){return w},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},l,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},l,{get:function(){return _},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),a.displayState=void 0}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o}();class Or{decode(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function Dr(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+parseFloat(i||0)}const n=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?e(n[2],n[3],0,n[4]):e(n[1],n[2],n[3],n[4]):null}class Pr{constructor(){this.values=Object.create(null)}set(t,e){this.get(t)||""===e||(this.values[t]=e)}get(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e}has(t){return t in this.values}alt(t,e,n){for(let i=0;i<n.length;++i)if(e===n[i]){this.set(t,e);break}}integer(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))}percent(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){const n=parseFloat(e);if(n>=0&&n<=100)return this.set(t,n),!0}return!1}}function Rr(t,e,n,i){const r=i?t.split(i):[t];for(const t in r){if("string"!=typeof r[t])continue;const i=r[t].split(n);if(2!==i.length)continue;e(i[0],i[1])}}const Mr=new Ir(0,0,""),Nr="middle"===Mr.align?"middle":"center";function Fr(t,e,n){const i=t;function r(){const e=Dr(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function o(){t=t.replace(/^\s+/,"")}if(o(),e.startTime=r(),o(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),o(),e.endTime=r(),o(),function(t,e){const i=new Pr;Rr(t,(function(t,e){let r;switch(t){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":r=e.split(","),i.integer(t,r[0]),i.percent(t,r[0])&&i.set("snapToLines",!1),i.alt(t,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",Nr,"end"]);break;case"position":r=e.split(","),i.percent(t,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",Nr,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",Nr,"end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===Mr.line&&(r=-1),e.line=r,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",Nr);let o=i.get("position","auto");"auto"===o&&50===Mr.position&&(o="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=o}(t,e)}function $r(t){return t.replace(/<br(?: \/)?>/gi,"\n")}class jr{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new Or,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const e=this;function n(){let t=e.buffer,n=0;for(t=$r(t);n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;const i=t.slice(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.slice(n),i}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{let t="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;t=n();const i=t.match(/^(ï»¿)?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}let i=!1;for(;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(i?i=!1:t=n(),e.state){case"HEADER":/:/.test(t)?Rr(t,(function(t,e){}),/:/):t||(e.state="ID");continue;case"NOTE":t||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(t)){e.state="NOTE";break}if(!t)continue;if(e.cue=new Ir(0,0,""),e.state="CUE",-1===t.indexOf("--\x3e")){e.cue.id=t;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{Fr(t,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":{const n=-1!==t.indexOf("--\x3e");if(!t||n&&(i=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=t}continue;case"BADCUE":t||(e.state="ID")}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this}}const Ur=/\r\n|\n\r|\n|\r/g,Br=function(t,e,n=0){return t.slice(n,n+e.length)===e},Hr=function(t){let e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return(e>>>0).toString()};function Vr(t,e,n){return Hr(t.toString())+Hr(e.toString())+Hr(n)}function zr(t,e,n,i,r,o,s){const a=new jr,l=ct(new Uint8Array(t)).trim().replace(Ur,"\n").split("\n"),u=[],c=e?function(t,e=1){return Ii(t,Li,1/e)}(e.baseTime,e.timescale):0;let d,h="00:00.000",f=0,p=0,g=!0;a.oncue=function(t){const o=n[i];let s=n.ccOffset;const a=(f-c)/9e4;if(null!=o&&o.new&&(void 0!==p?s=n.ccOffset=o.start:function(t,e,n){let i=t[e],r=t[i.prevCC];if(!r||!r.new&&i.new)return t.ccOffset=t.presentationOffset=i.start,void(i.new=!1);for(;null!=(o=r)&&o.new;){var o;t.ccOffset+=i.start-r.start,i.new=!1,i=r,r=t[i.prevCC]}t.presentationOffset=n}(n,i,a)),a){if(!e)return void(d=new Error("Missing initPTS for VTT MPEGTS"));s=a-n.presentationOffset}const l=t.endTime-t.startTime,h=Ni(9e4*(t.startTime+s-p),9e4*r)/9e4;t.startTime=Math.max(h,0),t.endTime=Math.max(h+l,0);const m=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(m)),t.id||(t.id=Vr(t.startTime,t.endTime,m)),t.endTime>0&&u.push(t)},a.onparsingerror=function(t){d=t},a.onflush=function(){d?s(d):o(u)},l.forEach((t=>{if(g){if(Br(t,"X-TIMESTAMP-MAP=")){g=!1,t.slice(16).split(",").forEach((t=>{Br(t,"LOCAL:")?h=t.slice(6):Br(t,"MPEGTS:")&&(f=parseInt(t.slice(7)))}));try{p=function(t){let e=parseInt(t.slice(-3));const n=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),r=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(m(e)&&m(n)&&m(i)&&m(r)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return e+=1e3*n,e+=6e4*i,e+=36e5*r,e}(h)/1e3}catch(t){d=t}return}""===t&&(g=!1)}a.parse(t+"\n")})),a.flush()}const Wr="stpp.ttml.im1t",qr=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Gr=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Kr={left:"start",center:"center",right:"end",start:"start",end:"end"};function Yr(t,e,n,i){const r=_t(new Uint8Array(t),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const o=r.map((t=>ct(t))),s=function(t,e,n=1,i=!1){return Ii(t,e,1/n,i)}(e.baseTime,1,e.timescale);try{o.forEach((t=>n(function(t,e){const n=(new DOMParser).parseFromString(t,"text/xml"),i=n.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},o=Object.keys(r).reduce(((t,e)=>(t[e]=i.getAttribute(`ttp:${e}`)||r[e],t)),{}),s="preserve"!==i.getAttribute("xml:space"),a=Xr(Zr(i,"styling","style")),l=Xr(Zr(i,"layout","region")),u=Zr(i,"body","[begin]");return[].map.call(u,(t=>{const n=Qr(t,s);if(!n||!t.hasAttribute("begin"))return null;const i=eo(t.getAttribute("begin"),o),r=eo(t.getAttribute("dur"),o);let u=eo(t.getAttribute("end"),o);if(null===i)throw to(t);if(null===u){if(null===r)throw to(t);u=i+r}const c=new Ir(i-e,u-e,n);c.id=Vr(c.startTime,c.endTime,c.text);const d=function(t,e,n){const i="http://www.w3.org/ns/ttml#styling";let r=null;const o=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;s&&n.hasOwnProperty(s)&&(r=n[s]);return o.reduce(((n,o)=>{const s=Jr(e,i,o)||Jr(t,i,o)||Jr(r,i,o);return s&&(n[o]=s),n}),{})}(l[t.getAttribute("region")],a[t.getAttribute("style")],a),{textAlign:h}=d;if(h){const t=Kr[h];t&&(c.lineAlign=t),c.align=h}return p(c,d),c})).filter((t=>null!==t))}(t,s))))}catch(t){i(t)}}function Zr(t,e,n){const i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function Xr(t){return t.reduce(((t,e)=>{const n=e.getAttribute("xml:id");return n&&(t[n]=e),t}),{})}function Qr(t,e){return[].slice.call(t.childNodes).reduce(((t,n,i)=>{var r;return"br"===n.nodeName&&i?t+"\n":null!=(r=n.childNodes)&&r.length?Qr(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent}),"")}function Jr(t,e,n){return t&&t.hasAttributeNS(e,n)?t.getAttributeNS(e,n):null}function to(t){return new Error(`Could not parse ttml timestamp ${t}`)}function eo(t,e){if(!t)return null;let n=Dr(t);return null===n&&(qr.test(t)?n=function(t,e){const n=qr.exec(t),i=(0|n[4])+(0|n[5])/e.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+i/e.frameRate}(t,e):Gr.test(t)&&(n=function(t,e){const n=Gr.exec(t),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),n}function no(t,e){return!!t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}class io{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(g.MANIFEST_PARSED,this.onManifestParsed,this),t.on(g.BUFFER_CODECS,this.onBufferCodecs,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(g.MANIFEST_PARSED,this.onManifestParsed,this),t.off(g.BUFFER_CODECS,this.onBufferCodecs,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,e){const n=this.hls.levels[e.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null}onManifestParsed(t,e){const n=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,n.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onBufferCodecs(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){const t=this.hls.levels;if(t.length){const e=this.hls;e.autoLevelCapping=this.getMaxLevel(t.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}}getMaxLevel(t){const e=this.hls.levels;if(!e.length)return-1;const n=e.filter(((e,n)=>this.isLevelAllowed(e)&&n<=t));return this.clientRect=null,io.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,e={width:0,height:0};if(t){const n=t.getBoundingClientRect();e.width=n.width,e.height=n.height,e.width||e.height||(e.width=n.right-n.left||t.width||0,e.height=n.bottom-n.top||t.height||0)}return this.clientRect=e,e}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}isLevelAllowed(t){return!this.restrictedLevels.some((e=>t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height))}static getMaxLevelByMediaSize(t,e,n){if(null==t||!t.length)return-1;let i=t.length-1;for(let s=0;s<t.length;s+=1){const a=t[s];if((a.width>=e||a.height>=n)&&(r=a,!(o=t[s+1])||r.width!==o.width||r.height!==o.height)){i=s;break}}var r,o;return i}}const ro="[eme]";class oo{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=oo.CDMCleanupPromise?[oo.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=S.debug.bind(S,ro),this.log=S.log.bind(S,ro),this.warn=S.warn.bind(S,ro),this.error=S.error.bind(S,ro),this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}registerListeners(){this.hls.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(g.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(t){const{drmSystems:e,widevineLicenseUrl:n}=this.config,i=e[t];if(i)return i.licenseUrl;if(t===U.WIDEVINE&&n)return n;throw new Error(`no license server URL configured for key-system "${t}"`)}getServerCertificateUrl(t){const{drmSystems:e}=this.config,n=e[t];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const e=this.hls.levels,n=(t,e,n)=>!!t&&n.indexOf(t)===e,i=e.map((t=>t.audioCodec)).filter(n),r=e.map((t=>t.videoCodec)).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((e,n)=>{const o=t=>{const s=t.shift();this.getMediaKeysPromise(s,i,r).then((t=>e({keySystem:s,mediaKeys:t}))).catch((e=>{t.length?o(t):n(e instanceof so?e:new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))};o(t)}))}requestMediaKeySystemAccess(t,e){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let t=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===Y&&"http:"===self.location.protocol&&(t=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(t))}return n(t,e)}getMediaKeysPromise(t,e,n){const i=function(t,e,n,i){let r;switch(t){case U.FAIRPLAY:r=["cenc","sinf"];break;case U.WIDEVINE:case U.PLAYREADY:r=["cenc"];break;case U.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${t}`)}return function(t,e,n,i){return[{initDataTypes:t,persistentState:i.persistentState||"not-allowed",distinctiveIdentifier:i.distinctiveIdentifier||"not-allowed",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map((t=>({contentType:`audio/mp4; codecs="${t}"`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:n.map((t=>({contentType:`video/mp4; codecs="${t}"`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,e,n,i)}(t,e,n,this.config.drmSystemOptions),r=this.keySystemAccessPromises[t];let o=null==r?void 0:r.keySystemAccess;if(!o){this.log(`Requesting encrypted media "${t}" key-system access with config: ${JSON.stringify(i)}`),o=this.requestMediaKeySystemAccess(t,i);const e=this.keySystemAccessPromises[t]={keySystemAccess:o};return o.catch((e=>{this.log(`Failed to obtain access to key-system "${t}": ${e}`)})),o.then((n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);const i=this.fetchServerCertificate(t);return this.log(`Create media-keys for "${t}"`),e.mediaKeys=n.createMediaKeys().then((e=>(this.log(`Media-keys created for "${t}"`),i.then((n=>n?this.setMediaKeysServerCertificate(e,t,n):e))))),e.mediaKeys.catch((e=>{this.error(`Failed to create media-keys for "${t}"}: ${e}`)})),e.mediaKeys}))}return o.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:t,keySystem:e,mediaKeys:n}){this.log(`Creating key-system session "${e}" keyId: ${ft(t.keyId||[])}`);const i=n.createSession(),r={decryptdata:t,keySystem:e,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(t){const e=t.decryptdata;if(e.pssh){const n=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}getKeyIdString(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return ft(t.keyId)}updateKeySession(t,e){var n;const i=t.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${ft((null==(n=t.decryptdata)?void 0:n.keyId)||[])}\n      } (data length: ${e?e.byteLength:e})`),i.update(e)}selectKeySystemFormat(t){const e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise}getKeyFormatPromise(t){return new Promise(((e,n)=>{const i=K(this.config),r=t.map(W).filter((t=>!!t&&-1!==i.indexOf(t)));return this.getKeySystemSelectionPromise(r).then((({keySystem:t})=>{const i=G(t);i?e(i):n(new Error(`Unable to find format for key-system "${t}"`))})).catch(n)}))}loadKey(t){const e=t.keyInfo.decryptdata,n=this.getKeyIdString(e),i=`(keyId: ${n} format: "${e.keyFormat}" method: ${e.method} uri: ${e.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[n];return r||(r=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(e).then((({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then((()=>{this.throwIfDestroyed();const t=this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:e});return this.generateRequestWithPreferredKeySession(t,"cenc",e.pssh,"playlist-key")}))))),r.catch((t=>this.handleError(t)))),r}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t){this.hls&&(this.error(t.message),t instanceof so?this.hls.trigger(g.ERROR,t.data):this.hls.trigger(g.ERROR,{type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))}getKeySystemForKeyPromise(t){const e=this.getKeyIdString(t),n=this.keyIdToKeySessionPromise[e];if(!n){const e=W(t.keyFormat),n=e?[e]:K(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(t){if(t.length||(t=K(this.config)),0===t.length)throw new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}_onMediaEncrypted(t){const{initDataType:e,initData:n}=t;if(this.debug(`"${t.type}" event: init data type: "${e}"`),null===n)return;let i,r;if("sinf"===e&&this.config.drmSystems[U.FAIRPLAY]){const t=vt(new Uint8Array(n));try{const e=F(JSON.parse(t).sinf),n=xt(new Uint8Array(e));if(!n)return;i=n.subarray(8,24),r=U.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{const t=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;const e={version:0,systemId:"",kids:null,data:null},n=new DataView(t),i=n.getUint32(0);if(t.byteLength!==i&&i>44)return null;if(1886614376!==n.getUint32(4))return null;if(e.version=n.getUint32(8)>>>24,e.version>1)return null;e.systemId=ft(new Uint8Array(t,12,16));const r=n.getUint32(28);if(0===e.version){if(i-32<r)return null;e.data=new Uint8Array(t,32,r)}else if(1===e.version){e.kids=[];for(let n=0;n<r;n++)e.kids.push(new Uint8Array(t,32+16*n,16))}return e}(n);if(null===t)return;0===t.version&&t.systemId===q&&t.data&&(i=t.data.subarray(8,24)),r=function(t){if(t===q)return U.WIDEVINE}(t.systemId)}if(!r||!i)return;const o=ft(i),{keyIdToKeySessionPromise:s,mediaKeySessions:a}=this;let l=s[o];for(let t=0;t<a.length;t++){const r=a[t],u=r.decryptdata;if(u.pssh||!u.keyId)continue;const c=ft(u.keyId);if(o===c||-1!==u.uri.replace(/-/g,"").indexOf(o)){l=s[c],delete s[c],u.pssh=new Uint8Array(n),u.keyId=i,l=s[o]=l.then((()=>this.generateRequestWithPreferredKeySession(r,e,n,"encrypted-event-key-match")));break}}l||(l=s[o]=this.getKeySystemSelectionPromise([r]).then((({keySystem:t,mediaKeys:r})=>{var s;this.throwIfDestroyed();const a=new Rt("ISO-23001-7",o,null!=(s=G(t))?s:"");return a.pssh=new Uint8Array(n),a.keyId=i,this.attemptSetMediaKeys(t,r).then((()=>{this.throwIfDestroyed();const i=this.createMediaKeySessionContext({decryptdata:a,keySystem:t,mediaKeys:r});return this.generateRequestWithPreferredKeySession(i,e,n,"encrypted-event-no-match")}))}))),l.catch((t=>this.handleError(t)))}_onWaitingForKey(t){this.log(`"${t.type}" event`)}attemptSetMediaKeys(t,e){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(n).then((()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(e)}));return this.setMediaKeysQueue.push(i),i.then((()=>{this.log(`Media-keys set for "${t}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((t=>-1===n.indexOf(t)))}))}generateRequestWithPreferredKeySession(t,e,n,i){var r,o;const s=null==(r=this.config.drmSystems)||null==(o=r[t.keySystem])?void 0:o.generateRequest;if(s)try{const i=s.call(this.hls,e,n,t);if(!i)throw new Error("Invalid response from configured generateRequest filter");e=i.initDataType,n=t.decryptdata.pssh=i.initData?new Uint8Array(i.initData):null}catch(t){var a;if(this.warn(t.message),null!=(a=this.hls)&&a.config.debug)throw t}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const l=this.getKeyIdString(t.decryptdata);this.log(`Generating key-session request for "${i}": ${l} (init data type: ${e} length: ${n?n.byteLength:null})`);const u=new Yi;t.mediaKeysSession.onmessage=e=>{const n=t.mediaKeysSession;if(!n)return void u.emit("error",new Error("invalid state"));const{messageType:i,message:r}=e;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(t,r).catch((t=>{this.handleError(t),u.emit("error",t)})):"license-release"===i?t.keySystem===U.FAIRPLAY&&(this.updateKeySession(t,j("acknowledged")),this.removeSession(t)):this.warn(`unhandled media key message type "${i}"`)},t.mediaKeysSession.onkeystatuseschange=e=>{if(!t.mediaKeysSession)return void u.emit("error",new Error("invalid state"));this.onKeyStatusChange(t);const n=t.keyStatus;u.emit("keyStatus",n),"expired"===n&&(this.warn(`${t.keySystem} expired for key ${l}`),this.renewKeySession(t))};const c=new Promise(((t,e)=>{u.on("error",e),u.on("keyStatus",(n=>{n.startsWith("usable")?t():"output-restricted"===n?e(new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?e(new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?e(new Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)}))}));return t.mediaKeysSession.generateRequest(e,n).then((()=>{var e;this.log(`Request generated for key-session "${null==(e=t.mediaKeysSession)?void 0:e.sessionId}" keyId: ${l}`)})).catch((t=>{throw new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},`Error generating key-session request: ${t}`)})).then((()=>c)).catch((e=>{throw u.removeAllListeners(),this.removeSession(t),e})).then((()=>(u.removeAllListeners(),t)))}onKeyStatusChange(t){t.mediaKeysSession.keyStatuses.forEach(((e,n)=>{this.log(`key status change "${e}" for keyStatuses keyId: ${ft("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${ft(new Uint8Array(t.decryptdata.keyId||[]))} uri: ${t.decryptdata.uri}`),t.keyStatus=e}))}fetchServerCertificate(t){const e=this.config,n=new(0,e.loader)(e),i=this.getServerCertificateUrl(t);return i?(this.log(`Fetching serverCertificate for "${t}"`),new Promise(((r,o)=>{const s={responseType:"arraybuffer",url:i},a=e.certLoadPolicy.default,l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},u={onSuccess:(t,e,n,i)=>{r(t.data)},onError:(e,n,r,a)=>{o(new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:h({url:s.url,data:void 0},e)},`"${t}" certificate request failed (${i}). Status: ${e.code} (${e.text})`))},onTimeout:(e,n,r)=>{o(new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:s.url,data:void 0}},`"${t}" certificate request timed out (${i})`))},onAbort:(t,e,n)=>{o(new Error("aborted"))}};n.load(s,l,u)}))):Promise.resolve()}setMediaKeysServerCertificate(t,e,n){return new Promise(((i,r)=>{t.setServerCertificate(n).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${e}"`),i(t)})).catch((t=>{r(new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))}))}))}renewLicense(t,e){return this.requestLicense(t,new Uint8Array(e)).then((e=>this.updateKeySession(t,new Uint8Array(e)).catch((t=>{throw new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)}))))}setupLicenseXHR(t,e,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,t,e,n,i)})).catch((o=>{if(!n.decryptdata)throw o;return t.open("POST",e,!0),r.call(this.hls,t,e,n,i)})).then((n=>{t.readyState||t.open("POST",e,!0);return{xhr:t,licenseChallenge:n||i}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,e){const n=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{const o=this.getLicenseServerUrl(t.keySystem);this.log(`Sending license request to URL: ${o}`);const s=new XMLHttpRequest;s.responseType="arraybuffer",s.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return r(new Error("invalid state"));if(4===s.readyState)if(200===s.status){this._requestLicenseFailureCount=0;let e=s.response;this.log(`License received ${e instanceof ArrayBuffer?e.byteLength:e}`);const n=this.config.licenseResponseCallback;if(n)try{e=n.call(this.hls,s,o,t)}catch(t){this.error(t)}i(e)}else{const a=n.errorRetry,l=a?a.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l||s.status>=400&&s.status<500)r(new so({type:v.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:s,response:{url:o,data:void 0,code:s.status,text:s.statusText}},`License Request XHR failed (${o}). Status: ${s.status} (${s.statusText})`));else{const n=l-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(t,e).then(i,r)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=s,this.setupLicenseXHR(s,o,t,e).then((({xhr:t,licenseChallenge:e})=>{t.send(e)}))}))}onMediaAttached(t,e){if(!this.config.emeEnabled)return;const n=e.media;this.media=n,n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media,e=this.mediaKeySessions;t&&(t.removeEventListener("encrypted",this.onMediaEncrypted),t.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Rt.clearKeyUriToKeyIdMap();const n=e.length;oo.CDMCleanupPromise=Promise.all(e.map((t=>this.removeSession(t))).concat(null==t?void 0:t.setMediaKeys(null).catch((e=>{this.log(`Could not clear media keys: ${e}. media.src: ${null==t?void 0:t.src}`)})))).then((()=>{n&&(this.log("finished closing key sessions and clearing media keys"),e.length=0)})).catch((e=>{this.log(`Could not close sessions and clear media keys: ${e}. media.src: ${null==t?void 0:t.src}`)}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(t,{sessionKeys:e}){if(e&&this.config.emeEnabled&&!this.keyFormatPromise){const t=e.reduce(((t,e)=>(-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t)),[]);this.log(`Selecting key-system from session-keys ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)}}removeSession(t){const{mediaKeysSession:e,licenseXhr:n}=t;if(e){this.log(`Remove licenses and keys and close session ${e.sessionId}`),e.onmessage=null,e.onkeystatuseschange=null,n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);return i>-1&&this.mediaKeySessions.splice(i,1),e.remove().catch((t=>{this.log(`Could not remove session: ${t}`)})).then((()=>e.close())).catch((t=>{this.log(`Could not close session: ${t}`)}))}}}oo.CDMCleanupPromise=void 0;class so extends Error{constructor(t,e){super(e),this.data=void 0,t.error||(t.error=new Error(e)),this.data=t,t.err=t.error}}var ao="m",lo="a",uo="v",co="av",ho="i",fo="tt";class po{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=t=>{try{this.apply(t,{ot:ao,su:!this.initialized})}catch(t){S.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=t=>{try{const e=t.frag,n=this.hls.levels[e.level],i=this.getObjectType(e),r={d:1e3*e.duration,ot:i};i!==uo&&i!==lo&&i!=co||(r.br=n.bitrate/1e3,r.tb=this.getTopBandwidth(i)/1e3,r.bl=this.getBufferLength(i)),this.apply(t,r)}catch(t){S.warn("Could not generate segment CMCD data.",t)}},this.hls=t;const e=this.config=t.config,{cmcd:n}=e;null!=n&&(e.pLoader=this.createPlaylistLoader(),e.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||po.uuid(),this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.registerListeners())}registerListeners(){const t=this.hls;t.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(g.MEDIA_DETACHED,this.onMediaDetached,this),t.on(g.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(g.MEDIA_DETACHED,this.onMediaDetached,this),t.off(g.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,e){var n,i;this.audioBuffer=null==(n=e.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer}createData(){var t;return{v:1,sf:"h",sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,e={}){p(e,this.createData());const n=e.ot===ho||e.ot===uo||e.ot===co;if(this.starved&&n&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering),this.useHeaders){const n=po.toHeaders(e);if(!Object.keys(n).length)return;t.headers||(t.headers={}),p(t.headers,n)}else{const n=po.toQuery(e);if(!n)return;t.url=po.appendQueryToUri(t.url,n)}}getObjectType(t){const{type:e}=t;return"subtitle"===e?fo:"initSegment"===t.sn?ho:"audio"===e?lo:"main"===e?this.hls.audioTracks.length?uo:co:void 0}getTopBandwidth(t){let e,n=0;const i=this.hls;if(t===lo)e=i.audioTracks;else{const t=i.maxAutoLevel,n=t>-1?t+1:i.levels.length;e=i.levels.slice(0,n)}for(const t of e)t.bitrate>n&&(n=t.bitrate);return n>0?n:NaN}getBufferLength(t){const e=this.hls.media,n=t===lo?this.audioBuffer:this.videoBuffer;if(!n||!e)return NaN;return 1e3*_n.bufferInfo(n,e.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:t}=this.config,e=this.applyPlaylistData,n=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new n(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,n,i){e(t),this.loader.load(t,n,i)}}}createFragmentLoader(){const{fLoader:t}=this.config,e=this.applyFragmentData,n=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new n(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,n,i){e(t),this.loader.load(t,n,i)}}}static uuid(){const t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}static serialize(t){const e=[],n=t=>!Number.isNaN(t)&&null!=t&&""!==t&&!1!==t,i=t=>Math.round(t),r=t=>100*i(t/100),o={br:i,d:i,bl:r,dl:r,mtp:r,nor:t=>encodeURIComponent(t),rtp:r,tb:i},s=Object.keys(t||{}).sort();for(const i of s){let r=t[i];if(!n(r))continue;if("v"===i&&1===r)continue;if("pr"==i&&1===r)continue;const s=o[i];s&&(r=s(r));const a=typeof r;let l;l="ot"===i||"sf"===i||"st"===i?`${i}=${r}`:"boolean"===a?i:"number"===a?`${i}=${r}`:`${i}=${JSON.stringify(r)}`,e.push(l)}return e.join(",")}static toHeaders(t){const e=Object.keys(t),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],o={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};for(const n of e){r[null!=o[n]?o[n]:1][n]=t[n]}for(let t=0;t<r.length;t++){const e=po.serialize(r[t]);e&&(n[`CMCD-${i[t]}`]=e)}return n}static toQuery(t){return`CMCD=${encodeURIComponent(po.serialize(t))}`}static appendQueryToUri(t,e){if(!e)return t;const n=t.includes("?")?"&":"?";return`${t}${n}${e}`}}function mo(t,e,n,i){t&&Object.keys(e).forEach((r=>{const o=t.filter((t=>t.groupId===r)).map((t=>{const o=p({},t);return o.details=void 0,o.attrs=new k(o.attrs),o.url=o.attrs.URI=go(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),o.groupId=o.attrs["GROUP-ID"]=e[r],o.attrs["PATHWAY-ID"]=i,o}));t.push(...o)}))}function go(t,e,n,i){const{HOST:r,PARAMS:o,[n]:s}=i;let a;e&&(a=null==s?void 0:s[e],a&&(t=a));const l=new self.URL(t);return r&&!a&&(l.host=r),o&&Object.keys(o).sort().forEach((t=>{t&&l.searchParams.set(t,o[t])})),l.href}const vo=/^age:\s*[\d.]+\s*$/im;class yo{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new L,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,e,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:t,context:e}=this;if(!t)return;const n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(!this.stats.aborted)return r(n,e.url)})).catch((t=>(n.open("GET",e.url,!0),r(n,e.url)))).then((()=>{this.stats.aborted||this.openAndSendXhr(n,e,t)})).catch((t=>{this.callbacks.onError({code:n.status,text:t.message},e,n,i)})):this.openAndSendXhr(n,e,t)}openAndSendXhr(t,e,n){t.readyState||t.open("GET",e.url,!0);const i=this.context.headers,{maxTimeToFirstByteMs:r,maxLoadTimeMs:o}=n.loadPolicy;if(i)for(const e in i)t.setRequestHeader(e,i[e]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),n.timeout=r&&m(r)?r:o,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),t.send()}readystatechange(){const{context:t,loader:e,stats:n}=this;if(!t||!e)return;const i=e.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;const i=e.status,o="text"!==e.responseType;if(i>=200&&i<300&&(o&&e.response||null!==e.responseText)){n.loading.end=Math.max(self.performance.now(),n.loading.first);const r=o?e.response:e.responseText,s="arraybuffer"===e.responseType?r.byteLength:r.length;if(n.loaded=n.total=s,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first),!this.callbacks)return;const a=this.callbacks.onProgress;if(a&&a(n,t,r,e),!this.callbacks)return;const l={url:e.responseURL,data:r,code:i};this.callbacks.onSuccess(l,n,t,e)}else{const o=r.loadPolicy.errorRetry;Ve(o,n.retry,!1,i)?this.retry(o):(S.error(`${i} while loading ${t.url}`),this.callbacks.onError({code:i,text:e.statusText},t,e,n))}}}loadtimeout(){var t;const e=null==(t=this.config)?void 0:t.loadPolicy.timeoutRetry;if(Ve(e,this.stats.retry,!0))this.retry(e);else{S.warn(`timeout while loading ${this.context.url}`);const t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:e,stats:n}=this;this.retryDelay=Be(t,n.retry),n.retry++,S.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${e.url}, retrying ${n.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)}getCacheAge(){let t=null;if(this.loader&&vo.test(this.loader.getAllResponseHeaders())){const e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const bo=/(\d+)-(\d+)\/(\d+)/;class wo{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||To,this.controller=new self.AbortController,this.stats=new L}destroy(){this.loader=this.callbacks=null,this.abortInternal()}abortInternal(){const t=this.response;null!=t&&t.ok||(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,e,n){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const r=function(t,e){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(p({},t.headers))};t.rangeEnd&&n.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1));return n}(t,this.controller.signal),o=n.onProgress,s="arraybuffer"===t.responseType,a=s?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=e.loadPolicy;this.context=t,this.config=e,this.callbacks=n,this.request=this.fetchSetup(t,r),self.clearTimeout(this.requestTimeout),e.timeout=l&&m(l)?l:u,this.requestTimeout=self.setTimeout((()=>{this.abortInternal(),n.onTimeout(i,t,this.response)}),e.timeout),self.fetch(this.request).then((r=>{this.response=this.loader=r;const a=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),e.timeout=u,this.requestTimeout=self.setTimeout((()=>{this.abortInternal(),n.onTimeout(i,t,this.response)}),u-(a-i.loading.start)),!r.ok){const{status:t,statusText:e}=r;throw new _o(e||"fetch, bad network response",t,r)}return i.loading.first=a,i.total=function(t){const e=t.get("Content-Range");if(e){const t=function(t){const e=bo.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(m(t))return t}const n=t.get("Content-Length");if(n)return parseInt(n)}(r.headers)||i.total,o&&m(e.highWaterMark)?this.loadProgressively(r,i,t,e.highWaterMark,o):s?r.arrayBuffer():"json"===t.responseType?r.json():r.text()})).then((r=>{const{response:s}=this;self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const l=r[a];l&&(i.loaded=i.total=l);const u={url:s.url,data:r,code:s.status};o&&!m(e.highWaterMark)&&o(i,t,r,s),n.onSuccess(u,i,t,s)})).catch((e=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const r=e&&e.code||0,o=e?e.message:null;n.onError({code:r,text:o},t,e?e.details:null,i)}))}getCacheAge(){let t=null;if(this.response){const e=this.response.headers.get("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,e,n,i=0,r){const o=new nr,s=t.body.getReader(),a=()=>s.read().then((s=>{if(s.done)return o.dataLength&&r(e,n,o.flush(),t),Promise.resolve(new ArrayBuffer(0));const l=s.value,u=l.length;return e.loaded+=u,u<i||o.dataLength?(o.push(l),o.dataLength>=i&&r(e,n,o.flush(),t)):r(e,n,l,t),a()})).catch((()=>Promise.reject()));return a()}}function To(t,e){return new self.Request(t.url,e)}class _o extends Error{constructor(t,e,n){super(t),this.code=void 0,this.details=void 0,this.code=e,this.details=n}}const So=/\s/,Eo={newCue(t,e,n,i){const r=[];let o,s,a,l,u;const c=self.VTTCue||self.TextTrackCue;for(let h=0;h<i.rows.length;h++)if(o=i.rows[h],a=!0,l=0,u="",!o.isEmpty()){var d;for(let t=0;t<o.chars.length;t++)So.test(o.chars[t].uchar)&&a?l++:(u+=o.chars[t].uchar,a=!1);o.cueStartTime=e,e===n&&(n+=1e-4),l>=16?l--:l++;const i=$r(u.trim()),f=Vr(e,n,i);null!=t&&null!=(d=t.cues)&&d.getCueById(f)||(s=new c(e,n,i),s.id=f,s.line=h+1,s.align="left",s.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(s))}return t&&r.length&&(r.sort(((t,e)=>"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line)),r.forEach((e=>me(t,e)))),r}},xo=h(h({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:yo,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class{constructor(t){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=t;const e=t.config;this.bwEstimator=new er(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate),this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(g.FRAG_LOADING,this.onFragLoading,this),t.on(g.FRAG_LOADED,this.onFragLoaded,this),t.on(g.FRAG_BUFFERED,this.onFragBuffered,this),t.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(g.LEVEL_LOADED,this.onLevelLoaded,this)}unregisterListeners(){const{hls:t}=this;t.off(g.FRAG_LOADING,this.onFragLoading,this),t.off(g.FRAG_LOADED,this.onFragLoaded,this),t.off(g.FRAG_BUFFERED,this.onFragBuffered,this),t.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(g.LEVEL_LOADED,this.onLevelLoaded,this)}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}onFragLoading(t,e){var n;const i=e.frag;this.ignoreFragment(i)||(this.fragCurrent=i,this.partCurrent=null!=(n=e.part)?n:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100))}onLevelSwitching(t,e){this.clearTimer()}getTimeToLoadFrag(t,e,n,i){return t+n/e+(i?this.lastLevelLoadSec:0)}onLevelLoaded(t,e){const n=this.hls.config,{total:i,bwEstimate:r}=e.stats;m(i)&&m(r)&&(this.lastLevelLoadSec=8*i/r),e.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}_abandonRulesCheck(){const{fragCurrent:t,partCurrent:e,hls:n}=this,{autoLevelEnabled:i,media:r}=n;if(!t||!r)return;const o=performance.now(),s=e?e.stats:t.stats,a=e?e.duration:t.duration,l=o-s.loading.start;if(s.aborted||s.loaded&&s.loaded===s.total||0===t.level)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!i||r.paused||!r.playbackRate||!r.readyState)return;const u=n.mainForwardBufferInfo;if(null===u)return;const c=this.bwEstimator.getEstimateTTFB(),d=Math.abs(r.playbackRate);if(l<=Math.max(c,a/(2*d)*1e3))return;const h=u.len/d;if(h>=2*a/d)return;const f=s.loading.first?s.loading.first-s.loading.start:-1,p=s.loaded&&f>-1,v=this.bwEstimator.getEstimate(),{levels:y,minAutoLevel:b}=n,w=y[t.level],T=s.total||Math.max(s.loaded,Math.round(a*w.maxBitrate/8));let _=l-f;_<1&&p&&(_=Math.min(l,8*s.loaded/v));const E=p?1e3*s.loaded/_:0,x=E?(T-s.loaded)/E:8*T/v+c/1e3;if(x<=h)return;const k=E?8*E:v;let C,A=Number.POSITIVE_INFINITY;for(C=t.level-1;C>b;C--){const t=y[C].maxBitrate;if(A=this.getTimeToLoadFrag(c/1e3,k,a*t,!y[C].details),A<h)break}A>=x||A>10*a||(n.nextLoadLevel=C,p?this.bwEstimator.sample(l-Math.min(c,f),s.loaded):this.bwEstimator.sampleTTFB(l),this.clearTimer(),S.warn(`[abr] Fragment ${t.sn}${e?" part "+e.index:""} of level ${t.level} is loading too slowly;\n      Time to underbuffer: ${h.toFixed(3)} s\n      Estimated load time for current fragment: ${x.toFixed(3)} s\n      Estimated load time for down switch fragment: ${A.toFixed(3)} s\n      TTFB estimate: ${f}\n      Current BW estimate: ${m(v)?(v/1024).toFixed(3):"Unknown"} Kb/s\n      New BW estimate: ${(this.bwEstimator.getEstimate()/1024).toFixed(3)} Kb/s\n      Aborting and switching to level ${C}`),t.loader&&(this.fragCurrent=this.partCurrent=null,t.abortRequests()),n.trigger(g.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:e,stats:s}))}onFragLoaded(t,{frag:e,part:n}){const i=n?n.stats:e.stats;if(e.type===le&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(e)){if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){const t=n?n.duration:e.duration,r=this.hls.levels[e.level],o=(r.loaded?r.loaded.bytes:0)+i.loaded,s=(r.loaded?r.loaded.duration:0)+t;r.loaded={bytes:o,duration:s},r.realBitrate=Math.round(8*o/s)}if(e.bitrateTest){const t={stats:i,frag:e,part:n,id:e.type};this.onFragBuffered(g.FRAG_BUFFERED,t),e.bitrateTest=!1}}}onFragBuffered(t,e){const{frag:n,part:i}=e,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted)return;if(this.ignoreFragment(n))return;const o=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,r.loaded),r.bwEstimate=this.bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==le||"initSegment"===t.sn}clearTimer(){self.clearInterval(this.timer)}get nextAutoLevel(){const t=this._nextAutoLevel,e=this.bwEstimator;if(-1!==t&&!e.canEstimate())return t;let n=this.getNextABRAutoLevel();if(-1!==t){const e=this.hls.levels;if(e.length>Math.max(t,n)&&e[t].loadError<=e[n].loadError)return t}return-1!==t&&(n=Math.min(t,n)),n}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:e,hls:n}=this,{maxAutoLevel:i,config:r,minAutoLevel:o,media:s}=n,a=e?e.duration:t?t.duration:0,l=s&&0!==s.playbackRate?Math.abs(s.playbackRate):1,u=this.bwEstimator?this.bwEstimator.getEstimate():r.abrEwmaDefaultEstimate,c=n.mainForwardBufferInfo,d=(c?c.len:0)/l;let h=this.findBestLevel(u,o,i,d,r.abrBandWidthFactor,r.abrBandWidthUpFactor);if(h>=0)return h;S.trace(`[abr] ${d?"rebuffering expected":"buffer is empty"}, finding optimal quality level`);let f=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay,p=r.abrBandWidthFactor,m=r.abrBandWidthUpFactor;if(!d){const t=this.bitrateTestDelay;if(t){f=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-t,S.trace(`[abr] bitrate test took ${Math.round(1e3*t)}ms, set first fragment max fetchDuration to ${Math.round(1e3*f)} ms`),p=m=1}}return h=this.findBestLevel(u,o,i,d+f,p,m),Math.max(h,0)}findBestLevel(t,e,n,i,r,o){var s;const{fragCurrent:a,partCurrent:l,lastLoadedFragLevel:u}=this,{levels:c}=this.hls,d=c[u],h=!(null==d||null==(s=d.details)||!s.live),f=null==d?void 0:d.codecSet,p=l?l.duration:a?a.duration:0,g=this.bwEstimator.getEstimateTTFB()/1e3;let v=e,y=-1;for(let s=n;s>=e;s--){const e=c[s];if(!e||f&&e.codecSet!==f){e&&(v=Math.min(s,v),y=Math.max(s,y));continue}-1!==y&&S.trace(`[abr] Skipped level(s) ${v}-${y} with CODECS:"${c[y].attrs.CODECS}"; not compatible with "${d.attrs.CODECS}"`);const n=e.details,a=(l?null==n?void 0:n.partTarget:null==n?void 0:n.averagetargetduration)||p;let b;b=s<=u?r*t:o*t;const w=c[s].maxBitrate,T=this.getTimeToLoadFrag(g,b,w*a,void 0===n);if(S.trace(`[abr] level:${s} adjustedbw-bitrate:${Math.round(b-w)} avgDuration:${a.toFixed(1)} maxFetchDuration:${i.toFixed(1)} fetchDuration:${T.toFixed(1)}`),b>w&&(0===T||!m(T)||h&&!this.bitrateTestDelay||T<i))return s}return-1}set nextAutoLevel(t){this._nextAutoLevel=t}},bufferController:class{constructor(t){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=()=>{const{media:t,mediaSource:e}=this;S.log("[buffer-controller]: Media source opened"),t&&(t.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(g.MEDIA_ATTACHED,{media:t})),e&&e.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{S.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=()=>{S.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=()=>{const{media:t,_objectUrl:e}=this;t&&t.src!==e&&S.error(`Media element src was set while attaching MediaSource (${e} > ${t.src})`)},this.hls=t,this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}registerListeners(){const{hls:t}=this;t.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_PARSED,this.onManifestParsed,this),t.on(g.BUFFER_RESET,this.onBufferReset,this),t.on(g.BUFFER_APPENDING,this.onBufferAppending,this),t.on(g.BUFFER_CODECS,this.onBufferCodecs,this),t.on(g.BUFFER_EOS,this.onBufferEos,this),t.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(g.FRAG_PARSED,this.onFragParsed,this),t.on(g.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:t}=this;t.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_PARSED,this.onManifestParsed,this),t.off(g.BUFFER_RESET,this.onBufferReset,this),t.off(g.BUFFER_APPENDING,this.onBufferAppending,this),t.off(g.BUFFER_CODECS,this.onBufferCodecs,this),t.off(g.BUFFER_EOS,this.onBufferEos,this),t.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(g.FRAG_PARSED,this.onFragParsed,this),t.off(g.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new ar(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,e){let n=2;(e.audio&&!e.video||!e.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,S.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(t,e){const n=this.media=e.media;if(n&&lr){const t=this.mediaSource=new lr;t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),n.src=self.URL.createObjectURL(t),this._objectUrl=n.src,n.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:t,mediaSource:e,_objectUrl:n}=this;if(e){if(S.log("[buffer-controller]: media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){S.warn(`[buffer-controller]: onMediaDetaching: ${t.message} while calling endOfStream`)}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),t&&(t.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),t.src===n?(t.removeAttribute("src"),t.load()):S.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(g.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach((t=>{const e=this.sourceBuffer[t];try{e&&(this.removeBufferListeners(t),this.mediaSource&&this.mediaSource.removeSourceBuffer(e),this.sourceBuffer[t]=void 0)}catch(e){S.warn(`[buffer-controller]: Failed to reset the ${t} buffer`,e)}})),this._initSourceBuffer()}onBufferCodecs(t,e){const n=this.getSourceBufferTypes().length;Object.keys(e).forEach((t=>{if(n){const n=this.tracks[t];if(n&&"function"==typeof n.buffer.changeType){const{id:i,codec:r,levelCodec:o,container:s,metadata:a}=e[t],l=(n.levelCodec||n.codec).replace(ur,"$1"),u=(o||r).replace(ur,"$1");if(l!==u){const e=`${s};codecs=${o||r}`;this.appendChangeType(t,e),S.log(`[buffer-controller]: switching codec ${l} to ${u}`),this.tracks[t]={buffer:n.buffer,codec:r,container:s,levelCodec:o,metadata:a,id:i}}}}else this.pendingTracks[t]=e[t]})),n||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())}appendChangeType(t,e){const{operationQueue:n}=this,i={execute:()=>{const i=this.sourceBuffer[t];i&&(S.log(`[buffer-controller]: changing ${t} sourceBuffer type to ${e}`),i.changeType(e)),n.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:e=>{S.warn(`[buffer-controller]: Failed to change ${t} SourceBuffer type`,e)}};n.append(i,t)}onBufferAppending(t,e){const{hls:n,operationQueue:i,tracks:r}=this,{data:o,type:s,frag:a,part:l,chunkMeta:u}=e,c=u.buffering[s],d=self.performance.now();c.start=d;const h=a.stats.buffering,f=l?l.stats.buffering:null;0===h.start&&(h.start=d),f&&0===f.start&&(f.start=d);const p=r.audio;let m=!1;"audio"===s&&"audio/mpeg"===(null==p?void 0:p.container)&&(m=!this.lastMpegAudioChunk||1===u.id||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const b=a.start,w={execute:()=>{if(c.executeStart=self.performance.now(),m){const t=this.sourceBuffer[s];if(t){const e=b-t.timestampOffset;Math.abs(e)>=.1&&(S.log(`[buffer-controller]: Updating audio SourceBuffer timestampOffset to ${b} (delta: ${e}) sn: ${a.sn})`),t.timestampOffset=b)}}this.appendExecutor(o,s)},onStart:()=>{},onComplete:()=>{const t=self.performance.now();c.executeEnd=c.end=t,0===h.first&&(h.first=t),f&&0===f.first&&(f.first=t);const{sourceBuffer:e}=this,n={};for(const t in e)n[t]=_n.getBuffered(e[t]);this.appendError=0,this.hls.trigger(g.BUFFER_APPENDED,{type:s,frag:a,part:l,chunkMeta:u,parent:a.type,timeRanges:n})},onError:t=>{S.error(`[buffer-controller]: Error encountered while trying to append to the ${s} SourceBuffer`,t);const e={type:v.MEDIA_ERROR,parent:a.type,details:y.BUFFER_APPEND_ERROR,frag:a,part:l,chunkMeta:u,error:t,err:t,fatal:!1};t.code===DOMException.QUOTA_EXCEEDED_ERR?e.details=y.BUFFER_FULL_ERROR:(this.appendError++,e.details=y.BUFFER_APPEND_ERROR,this.appendError>n.config.appendErrorMaxRetry&&(S.error(`[buffer-controller]: Failed ${n.config.appendErrorMaxRetry} times to append segment in sourceBuffer`),e.fatal=!0)),n.trigger(g.ERROR,e)}};i.append(w,s)}onBufferFlushing(t,e){const{operationQueue:n}=this,i=t=>({execute:this.removeExecutor.bind(this,t,e.startOffset,e.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(g.BUFFER_FLUSHED,{type:t})},onError:e=>{S.warn(`[buffer-controller]: Failed to remove from ${t} SourceBuffer`,e)}});e.type?n.append(i(e.type),e.type):this.getSourceBufferTypes().forEach((t=>{n.append(i(t),t)}))}onFragParsed(t,e){const{frag:n,part:i}=e,r=[],o=i?i.elementaryStreams:n.elementaryStreams;o[D]?r.push("audiovideo"):(o[I]&&r.push("audio"),o[O]&&r.push("video"));0===r.length&&S.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers((()=>{const t=self.performance.now();n.stats.buffering.end=t,i&&(i.stats.buffering.end=t);const e=i?i.stats:n.stats;this.hls.trigger(g.FRAG_BUFFERED,{frag:n,part:i,stats:e,id:n.type})}),r)}onFragChanged(t,e){this.flushBackBuffer()}onBufferEos(t,e){this.getSourceBufferTypes().reduce(((t,n)=>{const i=this.sourceBuffer[n];return!i||e.type&&e.type!==n||(i.ending=!0,i.ended||(i.ended=!0,S.log(`[buffer-controller]: ${n} sourceBuffer now EOS`))),t&&!(i&&!i.ended)}),!0)&&(S.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers((()=>{this.getSourceBufferTypes().forEach((t=>{const e=this.sourceBuffer[t];e&&(e.ending=!1)}));const{mediaSource:t}=this;t&&"open"===t.readyState?(S.log("[buffer-controller]: Calling mediaSource.endOfStream()"),t.endOfStream()):t&&S.info(`[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ${t.readyState}`)})))}onLevelUpdated(t,{details:e}){e.fragments.length&&(this.details=e,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}flushBackBuffer(){const{hls:t,details:e,media:n,sourceBuffer:i}=this;if(!n||null===e)return;const r=this.getSourceBufferTypes();if(!r.length)return;const o=e.live&&null!==t.config.liveBackBufferLength?t.config.liveBackBufferLength:t.config.backBufferLength;if(!m(o)||o<0)return;const s=n.currentTime,a=e.levelTargetDuration,l=Math.max(o,a),u=Math.floor(s/a)*a-l;r.forEach((n=>{const r=i[n];if(r){const i=_n.getBuffered(r);if(i.length>0&&u>i.start(0)){if(t.trigger(g.BACK_BUFFER_REACHED,{bufferEnd:u}),e.live)t.trigger(g.LIVE_BACK_BUFFER_REACHED,{bufferEnd:u});else if(r.ended&&i.end(i.length-1)-s<2*a)return void S.info(`[buffer-controller]: Cannot flush ${n} back buffer while SourceBuffer is in ended state`);t.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:u,type:n})}}}))}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||"open"!==this.mediaSource.readyState)return;const{details:t,hls:e,media:n,mediaSource:i}=this,r=t.fragments[0].start+t.totalduration,o=n.duration,s=m(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(S.log("[buffer-controller]: Media Source duration is set to Infinity"),i.duration=1/0,this.updateSeekableRange(t)):(r>s&&r>o||!m(o))&&(S.log(`[buffer-controller]: Updating Media Source duration to ${r.toFixed(3)}`),i.duration=r)}updateSeekableRange(t){const e=this.mediaSource,n=t.fragments;if(n.length&&t.live&&null!=e&&e.setLiveSeekableRange){const i=Math.max(0,n[0].start),r=Math.max(i,i+t.totalduration);e.setLiveSeekableRange(i,r)}}checkPendingTracks(){const{bufferCodecEventsExpected:t,operationQueue:e,pendingTracks:n}=this,i=Object.keys(n).length;if(i&&!t||2===i){this.createSourceBuffers(n),this.pendingTracks={};const t=this.getSourceBufferTypes();if(t.length)this.hls.trigger(g.BUFFER_CREATED,{tracks:this.tracks}),t.forEach((t=>{e.executeNext(t)}));else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}}createSourceBuffers(t){const{sourceBuffer:e,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(const i in t)if(!e[i]){const r=t[i];if(!r)throw Error(`source buffer exists for track ${i}, however track does not`);const o=r.levelCodec||r.codec,s=`${r.container};codecs=${o}`;S.log(`[buffer-controller]: creating sourceBuffer(${s})`);try{const t=e[i]=n.addSourceBuffer(s),a=i;this.addBufferListener(a,"updatestart",this._onSBUpdateStart),this.addBufferListener(a,"updateend",this._onSBUpdateEnd),this.addBufferListener(a,"error",this._onSBUpdateError),this.tracks[i]={buffer:t,codec:o,container:r.container,levelCodec:r.levelCodec,metadata:r.metadata,id:r.id}}catch(t){S.error(`[buffer-controller]: error while trying to add sourceBuffer: ${t.message}`),this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,mimeType:s})}}}_onSBUpdateStart(t){const{operationQueue:e}=this;e.current(t).onStart()}_onSBUpdateEnd(t){const{operationQueue:e}=this;e.current(t).onComplete(),e.shiftAndExecuteNext(t)}_onSBUpdateError(t,e){const n=new Error(`${t} SourceBuffer error`);S.error(`[buffer-controller]: ${n}`,e),this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.BUFFER_APPENDING_ERROR,error:n,fatal:!1});const i=this.operationQueue.current(t);i&&i.onError(e)}removeExecutor(t,e,n){const{media:i,mediaSource:r,operationQueue:o,sourceBuffer:s}=this,a=s[t];if(!i||!r||!a)return S.warn(`[buffer-controller]: Attempting to remove from the ${t} SourceBuffer, but it does not exist`),void o.shiftAndExecuteNext(t);const l=m(i.duration)?i.duration:1/0,u=m(r.duration)?r.duration:1/0,c=Math.max(0,e),d=Math.min(n,l,u);d>c&&!a.ending?(a.ended=!1,S.log(`[buffer-controller]: Removing [${c},${d}] from the ${t} SourceBuffer`),a.remove(c,d)):o.shiftAndExecuteNext(t)}appendExecutor(t,e){const{operationQueue:n,sourceBuffer:i}=this,r=i[e];if(!r)return S.warn(`[buffer-controller]: Attempting to append to the ${e} SourceBuffer, but it does not exist`),void n.shiftAndExecuteNext(e);r.ended=!1,r.appendBuffer(t)}blockBuffers(t,e=this.getSourceBufferTypes()){if(!e.length)return S.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);const{operationQueue:n}=this,i=e.map((t=>n.appendBlocker(t)));Promise.all(i).then((()=>{t(),e.forEach((t=>{const e=this.sourceBuffer[t];null!=e&&e.updating||n.shiftAndExecuteNext(t)}))}))}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(t,e,n){const i=this.sourceBuffer[t];if(!i)return;const r=n.bind(this,t);this.listeners[t].push({event:e,listener:r}),i.addEventListener(e,r)}removeBufferListeners(t){const e=this.sourceBuffer[t];e&&this.listeners[t].forEach((t=>{e.removeEventListener(t.event,t.listener)}))}},capLevelController:io,errorController:class{constructor(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=S.log.bind(S,"[info]:"),this.warn=S.warn.bind(S,"[warning]:"),this.error=S.error.bind(S,"[error]:"),this.registerListeners()}registerListeners(){const t=this.hls;t.on(g.ERROR,this.onError,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(g.ERROR,this.onError,this),t.off(g.ERROR,this.onErrorOut,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(t){this.playlistError=0}stopLoad(){}getVariantLevelIndex(t){return(null==t?void 0:t.type)===le?t.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(t,e){var n;if(e.fatal)return;const i=this.hls,r=e.context;switch(e.details){case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=Ye);case y.LEVEL_EMPTY_ERROR:case y.LEVEL_PARSING_ERROR:{var o,s;const t=e.parent===le?e.level:i.loadLevel;e.details===y.LEVEL_EMPTY_ERROR&&null!=(o=e.context)&&null!=(s=o.levelDetails)&&s.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,t):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t))}return;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,r.level)));case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.SUBTITLE_LOAD_ERROR:case y.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const t=i.levels[i.loadLevel];if(t&&(r.type===se&&r.groupId===t.audioGroupId||r.type===ae&&r.groupId===t.textGroupId))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,i.loadLevel),e.errorAction.action=Ye,void(e.errorAction.flags=Qe)}return;case y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const t=i.levels[i.loadLevel],n=null==t?void 0:t.attrs["HDCP-LEVEL"];n&&(e.errorAction={action:Ye,flags:Je,hdcpLevel:n})}return;case y.BUFFER_ADD_CODEC_ERROR:case y.REMUX_ALLOC_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(n=e.level)?n:i.loadLevel));case y.INTERNAL_EXCEPTION:case y.BUFFER_APPENDING_ERROR:case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:case y.LEVEL_SWITCH_ERROR:case y.BUFFER_STALLED_ERROR:case y.BUFFER_SEEK_OVER_HOLE:case y.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:Ke,flags:Xe})}if(e.type===v.KEY_SYSTEM_ERROR){const t=this.getVariantLevelIndex(e.frag);return e.levelRetry=!1,void(e.errorAction=this.getLevelSwitchAction(e,t))}}getPlaylistRetryOrSwitchAction(t,e){var n;const i=Ue(this.hls.config.playlistLoadPolicy,t),r=this.playlistError++,o=null==(n=t.response)?void 0:n.code;if(Ve(i,r,je(t),o))return{action:Ze,flags:Xe,retryConfig:i,retryCount:r};const s=this.getLevelSwitchAction(t,e);return i&&(s.retryConfig=i,s.retryCount=r),s}getFragRetryOrSwitchAction(t){const e=this.hls,n=this.getVariantLevelIndex(t.frag),i=e.levels[n],{fragLoadPolicy:r,keyLoadPolicy:o}=e.config,s=Ue(t.details.startsWith("key")?o:r,t),a=e.levels.reduce(((t,e)=>t+e.fragmentError),0);if(i){var l;t.details!==y.FRAG_GAP&&i.fragmentError++;const e=null==(l=t.response)?void 0:l.code;if(Ve(s,a,je(t),e))return{action:Ze,flags:Xe,retryConfig:s,retryCount:a}}const u=this.getLevelSwitchAction(t,n);return s&&(u.retryConfig=s,u.retryCount=a),u}getLevelSwitchAction(t,e){const n=this.hls;null==e&&(e=n.loadLevel);const i=this.hls.levels[e];if(i&&(i.loadError++,n.autoLevelEnabled)){var r,o;let e=-1;const{levels:s,loadLevel:a,minAutoLevel:l,maxAutoLevel:u}=n,c=null==(r=t.frag)?void 0:r.type,{type:d,groupId:h}=null!=(o=t.context)?o:{};for(let n=s.length;n--;){const r=(n+a)%s.length;if(r!==a&&r>=l&&r<=u&&0===s[r].loadError){const n=s[r];if(t.details===y.FRAG_GAP&&t.frag){const e=s[r].details;if(e){const n=We(t.frag,e.fragments,t.frag.start);if(null!=n&&n.gap)continue}}else{if(d===se&&h===n.audioGroupId||d===ae&&h===n.textGroupId)continue;if(c===ue&&i.audioGroupId===n.audioGroupId||c===ce&&i.textGroupId===n.textGroupId)continue}e=r;break}}if(e>-1&&n.loadLevel!==e)return t.levelRetry=!0,this.playlistError=0,{action:Ye,flags:Xe,nextAutoLevel:e}}return{action:Ye,flags:Qe}}onErrorOut(t,e){var n;switch(null==(n=e.errorAction)?void 0:n.action){case Ke:break;case Ye:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===y.FRAG_GAP||(e.fatal=!0)}e.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(t){const e=this.hls,n=t.errorAction;if(!n)return;const{flags:i,hdcpLevel:r,nextAutoLevel:o}=n;switch(i){case Xe:this.switchLevel(t,o);break;case Qe:n.resolved||(n.resolved=this.redundantFailover(t));break;case Je:r&&(e.maxHdcpLevel=ke[ke.indexOf(r)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${e.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(t,o)}switchLevel(t,e){void 0!==e&&t.errorAction&&(this.warn(`switching to level ${e} after ${t.details}`),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}redundantFailover(t){const{hls:e,penalizedRenditions:n}=this,i=t.parent===le?t.level:e.loadLevel,r=e.levels[i],o=r.url.length,s=t.frag?t.frag.urlId:r.urlId;r.urlId!==s||t.frag&&!r.details||this.penalizeRendition(r,t);for(let a=1;a<o;a++){const l=(s+a)%o,u=n[l];if(!u||tn(u,t,n[s]))return this.warn(`Switching to Redundant Stream ${l+1}/${o}: "${r.url[l]}" after ${t.details}`),this.playlistError=0,e.levels.forEach((t=>{t.urlId=l})),e.nextLoadLevel=i,!0}return!1}penalizeRendition(t,e){const{penalizedRenditions:n}=this,i=n[t.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};i.lastErrorPerfMs=performance.now(),i.errors.push(e),i.details=t.details,n[t.urlId]=i}},fpsController:class{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,e){const n=this.hls.config;if(n.capLevelOnFPSDrop){const t=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=t,t&&"function"==typeof t.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}checkFPS(t,e,n){const i=performance.now();if(e){if(this.lastTime){const t=i-this.lastTime,r=n-this.lastDroppedFrames,o=e-this.lastDecodedFrames,s=1e3*r/t,a=this.hls;if(a.trigger(g.FPS_DROP,{currentDropped:r,currentDecoded:o,totalDroppedFrames:n}),s>0&&r>a.config.fpsDroppedMonitoringThreshold*o){let t=a.currentLevel;S.warn("drop FPS ratio greater than max allowed value for currentLevel: "+t),t>0&&(-1===a.autoLevelCapping||a.autoLevelCapping>=t)&&(t-=1,a.trigger(g.FPS_DROP_LEVEL_CAPPING,{level:t,droppedLevel:a.currentLevel}),a.autoLevelCapping=t,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=n,this.lastDecodedFrames=e}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Y,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:Eo,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends qn{constructor(t,e,n){super(t,e,n,"[subtitle-stream-controller]",ce),this.levels=[],this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),this.mainDetails=null}_registerListeners(){const{hls:t}=this;t.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.LEVEL_LOADED,this.onLevelLoaded,this),t.on(g.ERROR,this.onError,this),t.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.LEVEL_LOADED,this.onLevelLoaded,this),t.off(g.ERROR,this.onError,this),t.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(g.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(t){this.stopLoad(),this.state=Mn,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(t,e){this.mainDetails=e.details}onSubtitleFragProcessed(t,e){const{frag:n,success:i}=e;if(this.fragPrevious=n,this.state=Mn,!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let o;const s=n.start;for(let t=0;t<r.length;t++)if(s>=r[t].start&&s<=r[t].end){o=r[t];break}const a=n.start+n.duration;o?o.end=a:(o={start:s,end:a},r.push(o)),this.fragmentTracker.fragBuffered(n)}onBufferFlushing(t,e){const{startOffset:n,endOffset:i}=e;if(0===n&&i!==Number.POSITIVE_INFINITY){const t=i-1;if(t<=0)return;e.endOffsetSubtitles=Math.max(0,t),this.tracksBuffered.forEach((e=>{for(let n=0;n<e.length;)if(e[n].end<=t)e.shift();else{if(!(e[n].start<t))break;e[n].start=t,n++}})),this.fragmentTracker.removeFragmentsInRange(n,t,ce)}}onFragBuffered(t,e){var n;this.loadedmetadata||e.frag.type!==le||null!=(n=this.media)&&n.buffered.length&&(this.loadedmetadata=!0)}onError(t,e){const n=e.frag;(null==n?void 0:n.type)===ce&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Rn&&(this.state=Mn))}onSubtitleTracksUpdated(t,{subtitleTracks:e}){ir(this.levels,e)?this.levels=e.map((t=>new Oe(t))):(this.tracksBuffered=[],this.levels=e.map((t=>{const e=new Oe(t);return this.tracksBuffered[e.id]=[],e})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ce),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(t,e){if(this.currentTrackId=e.id,!this.levels.length||-1===this.currentTrackId)return void this.clearInterval();const n=this.levels[this.currentTrackId];null!=n&&n.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,n&&this.setInterval(500)}onSubtitleTrackLoaded(t,e){var n;const{details:i,id:r}=e,{currentTrackId:o,levels:s}=this;if(!s.length)return;const a=s[o];if(r>=s.length||r!==o||!a)return;this.mediaBuffer=this.mediaBufferTimeRanges;let l=0;if(i.live||null!=(n=a.details)&&n.live){const t=this.mainDetails;if(i.deltaUpdateFailed||!t)return;const e=t.fragments[0];a.details?(l=this.alignPlaylists(i,a.details),0===l&&e&&(l=e.start,Ne(i,l))):i.hasProgramDateTime&&t.hasProgramDateTime?(An(i,t),l=i.fragments[0].start):e&&(l=e.start,Ne(i,l))}if(a.details=i,this.levelLastLoaded=r,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(a.details,l),this.tick(),i.live&&!this.fragCurrent&&this.media&&this.state===Mn){We(null,i.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),a.details=void 0)}}_handleFragmentLoadComplete(t){const{frag:e,payload:n}=t,i=e.decryptdata,r=this.hls;if(!this.fragContextChanged(e)&&n&&n.byteLength>0&&i&&i.key&&i.iv&&"AES-128"===i.method){const t=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer).catch((t=>{throw r.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((n=>{const i=performance.now();r.trigger(g.FRAG_DECRYPTED,{frag:e,payload:n,stats:{tstart:t,tdecrypt:i}})})).catch((t=>{this.warn(`${t.name}: ${t.message}`),this.state=Mn}))}}doTick(){if(this.media){if(this.state===Mn){const{currentTrackId:t,levels:e}=this,n=e[t];if(!e.length||!n||!n.details)return;const{config:i}=this,r=this.getLoadPosition(),o=_n.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:s,len:a}=o,l=this.getFwdBufferInfo(this.media,le),u=n.details;if(a>this.getMaxBufferLength(null==l?void 0:l.len)+u.levelTargetDuration)return;const c=u.fragments,d=c.length,h=u.edge;let f=null;const p=this.fragPrevious;if(s<h){const t=i.maxFragLookUpTolerance,e=s>h-t?0:t;f=We(p,c,Math.max(c[0].start,s),e),!f&&p&&p.start<c[0].start&&(f=c[0])}else f=c[d-1];if(!f)return;if(f=this.mapToInitFragWhenRequired(f),"initSegment"!==f.sn){const t=c[f.sn-u.startSN-1];t&&t.cc===f.cc&&this.fragmentTracker.getState(t)===an&&(f=t)}this.fragmentTracker.getState(f)===an&&this.loadFragment(f,n,s)}}else this.state=Mn}getMaxBufferLength(t){const e=super.getMaxBufferLength();return t?Math.max(e,t):e}loadFragment(t,e,n){this.fragCurrent=t,"initSegment"===t.sn?this._loadInitSegment(t,e):(this.startFragRequested=!0,super.loadFragment(t,e,n))}get mediaBufferTimeRanges(){return new or(this.tracksBuffered[this.currentTrackId]||[])}},subtitleTrackController:class extends en{constructor(t){super(t,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.trackChangeListener=()=>this.onTextTracksChanged(),this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes(this.trackId)}registerListeners(){const{hls:t}=this;t.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_PARSED,this.onManifestParsed,this),t.on(g.LEVEL_LOADING,this.onLevelLoading,this),t.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_PARSED,this.onManifestParsed,this),t.off(g.LEVEL_LOADING,this.onLevelLoading,this),t.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(g.ERROR,this.onError,this)}onMediaAttached(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,t)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);sr(this.media.textTracks).forEach((t=>{ge(t)})),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.subtitleTracks}onSubtitleTrackLoaded(t,e){const{id:n,details:i}=e,{trackId:r}=this,o=this.tracksInGroup[r];if(!o)return void this.warn(`Invalid subtitle track id ${n}`);const s=o.details;o.details=e.details,this.log(`subtitle track ${n} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,e,s)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(null==e||!e.textGroupIds)return;const n=e.textGroupIds[e.urlId],i=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==n){const t=this.tracks.filter((t=>!n||t.groupId===n));this.tracksInGroup=t;const e=this.findTrackId(null==i?void 0:i.name)||this.findTrackId();this.groupId=n||null;const r={subtitleTracks:t};this.log(`Updating subtitle tracks, ${t.length} track(s) found in "${n}" group-id`),this.hls.trigger(g.SUBTITLE_TRACKS_UPDATED,r),-1!==e&&this.setSubtitleTrack(e,i)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId,i)}findTrackId(t){const e=this.tracksInGroup;for(let n=0;n<e.length;n++){const i=e[n];if((!this.selectDefaultTrack||i.default)&&(!t||t===i.name))return i.id}return-1}onError(t,e){!e.fatal&&e.context&&e.context.type===ae&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&this.checkRetry(e)}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(t){this.selectDefaultTrack=!1;const e=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(t,e)}loadPlaylist(t){super.loadPlaylist();const e=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(e)){const n=e.id,i=e.groupId;let r=e.url;if(t)try{r=t.addDirectives(r)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}this.log(`Loading subtitle playlist for id ${n}`),this.hls.trigger(g.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null})}}toggleTrackModes(t){const{media:e,trackId:n}=this;if(!e)return;const i=sr(e.textTracks),r=i.filter((t=>t.groupId===this.groupId));if(-1===t)[].slice.call(i).forEach((t=>{t.mode="disabled"}));else{const t=r[n];t&&(t.mode="disabled")}const o=r[t];o&&(o.mode=this.subtitleDisplay?"showing":"hidden")}setSubtitleTrack(t,e){var n;const i=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=t);if(this.trackId!==t&&this.toggleTrackModes(t),this.trackId===t&&(-1===t||null!=(n=i[t])&&n.details)||t<-1||t>=i.length)return;this.clearTimer();const r=i[t];if(this.log(`Switching to subtitle-track ${t}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:"")),this.trackId=t,r){const{id:t,groupId:n="",name:i,type:o,url:s}=r;this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:t,groupId:n,name:i,type:o,url:s});const a=this.switchParams(r.url,null==e?void 0:e.details);this.loadPlaylist(a)}else this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:t})}onTextTracksChanged(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=-1;const e=sr(this.media.textTracks);for(let n=0;n<e.length;n++)if("hidden"===e[n].mode)t=n;else if("showing"===e[n].mode){t=n;break}this.subtitleTrack!==t&&(this.subtitleTrack=t)}},timelineController:class{constructor(t){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){const t=new Lr(this,"textTrack1"),e=new Lr(this,"textTrack2"),n=new Lr(this,"textTrack3"),i=new Lr(this,"textTrack4");this.cea608Parser1=new kr(1,t,e),this.cea608Parser2=new kr(3,n,i)}t.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(g.FRAG_LOADING,this.onFragLoading,this),t.on(g.FRAG_LOADED,this.onFragLoaded,this),t.on(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(g.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(g.FRAG_LOADING,this.onFragLoading,this),t.off(g.FRAG_LOADED,this.onFragLoaded,this),t.off(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(g.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}addCues(t,e,n,i,r){let o=!1;for(let t=r.length;t--;){const i=r[t],c=(s=i[0],a=i[1],l=e,u=n,Math.min(a,u)-Math.max(s,l));if(c>=0&&(i[0]=Math.min(i[0],e),i[1]=Math.max(i[1],n),o=!0,c/(n-e)>.5))return}var s,a,l,u;if(o||r.push([e,n]),this.config.renderTextTracksNatively){const r=this.captionsTracks[t];this.Cues.newCue(r,e,n,i)}else{const r=this.Cues.newCue(null,e,n,i);this.hls.trigger(g.CUES_PARSED,{type:"captions",cues:r,track:t})}}onInitPtsFound(t,{frag:e,id:n,initPTS:i,timescale:r}){const{unparsedVttFrags:o}=this;"main"===n&&(this.initPTS[e.cc]={baseTime:i,timescale:r}),o.length&&(this.unparsedVttFrags=[],o.forEach((t=>{this.onFragLoaded(g.FRAG_LOADED,t)})))}getExistingTrack(t){const{media:e}=this;if(e)for(let n=0;n<e.textTracks.length;n++){const i=e.textTracks[n];if(i[t])return i}return null}createCaptionsTrack(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)}createNativeTrack(t){if(this.captionsTracks[t])return;const{captionsProperties:e,captionsTracks:n,media:i}=this,{label:r,languageCode:o}=e[t],s=this.getExistingTrack(t);if(s)n[t]=s,ge(n[t]),pe(n[t],i);else{const e=this.createTextTrack("captions",r,o);e&&(e[t]=!0,n[t]=e)}}createNonNativeTrack(t){if(this.nonNativeCaptionsTracks[t])return;const e=this.captionsProperties[t];if(!e)return;const n={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=n,this.hls.trigger(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(t,e,n){const i=this.media;if(i)return i.addTextTrack(t,e,n)}onMediaAttaching(t,e){this.media=e.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:t}=this;Object.keys(t).forEach((e=>{ge(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const e=t.textTracks;if(e)for(let t=0;t<e.length;t++)ge(e[t])}onSubtitleTracksUpdated(t,e){const n=e.subtitleTracks||[],i=n.some((t=>t.textCodec===Wr));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(ir(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const t=this.media?this.media.textTracks:null;this.tracks.forEach(((e,n)=>{let i;if(t&&n<t.length){let n=null;for(let i=0;i<t.length;i++)if(no(t[i],e)){n=t[i];break}n&&(i=n)}if(i)ge(i);else{const t=this._captionsOrSubtitlesFromCharacteristics(e);i=this.createTextTrack(t,e.name,e.lang),i&&(i.mode="disabled")}i&&(i.groupId=e.groupId,this.textTracks.push(i))}))}else if(this.tracks.length){const t=this.tracks.map((t=>({label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t})));this.hls.trigger(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:t})}}}_captionsOrSubtitlesFromCharacteristics(t){if(t.attrs.CHARACTERISTICS){const e=/transcribes-spoken-dialog/gi.test(t.attrs.CHARACTERISTICS),n=/describes-music-and-sound/gi.test(t.attrs.CHARACTERISTICS);if(e&&n)return"captions"}return"subtitles"}onManifestLoaded(t,e){this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((t=>{const e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(!e)return;const n=`textTrack${e[1]}`,i=this.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}))}closedCaptionsForLevel(t){const e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,e){const{cea608Parser1:n,cea608Parser2:i,lastSn:r,lastPartIndex:o}=this;if(this.enabled&&n&&i&&e.frag.type===le){var s,a;const t=e.frag.sn,l=null!=(s=null==e||null==(a=e.part)?void 0:a.index)?s:-1;t===r+1||t===r&&l===o+1||(n.reset(),i.reset()),this.lastSn=t,this.lastPartIndex=l}}onFragLoaded(t,e){const{frag:n,payload:i}=e;if(n.type===ce)if(i.byteLength){const t=n.decryptdata,r="stats"in e;if(null==t||!t.encrypted||r){const t=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),t&&t.textCodec===Wr?this._parseIMSC1(n,i):this._parseVTTs(e)}}else this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,e){const n=this.hls;Yr(e,this.initPTS[t.cc],(e=>{this._appendCues(e,t.level),n.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(e=>{S.log(`Failed to parse IMSC1: ${e}`),n.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))}_parseVTTs(t){var e;const{frag:n,payload:i}=t,{initPTS:r,unparsedVttFrags:o}=this,s=r.length-1;if(!r[n.cc]&&-1===s)return void o.push(t);const a=this.hls;zr(null!=(e=n.initSegment)&&e.data?Ct(n.initSegment.data,new Uint8Array(i)):i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(t=>{this._appendCues(t,n.level),a.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(e=>{const r="Missing initPTS for VTT MPEGTS"===e.message;r?o.push(t):this._fallbackToIMSC1(n,i),S.log(`Failed to parse VTT cue: ${e}`),r&&s>n.cc||a.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:e})}))}_fallbackToIMSC1(t,e){const n=this.tracks[t.level];n.textCodec||Yr(e,this.initPTS[t.cc],(()=>{n.textCodec=Wr,this._parseIMSC1(t,e)}),(()=>{n.textCodec="wvtt"}))}_appendCues(t,e){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[e];if(!n||"disabled"===n.mode)return;t.forEach((t=>me(n,t)))}else{const i=this.tracks[e];if(!i)return;const r=i.default?"default":"subtitles"+e;n.trigger(g.CUES_PARSED,{type:"subtitles",cues:t,track:r})}}onFragDecrypted(t,e){const{frag:n}=e;n.type===ce&&this.onFragLoaded(g.FRAG_LOADED,e)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,e){const{cea608Parser1:n,cea608Parser2:i}=this;if(!this.enabled||!n||!i)return;const{frag:r,samples:o}=e;if(r.type!==le||"NONE"!==this.closedCaptionsForLevel(r))for(let t=0;t<o.length;t++){const e=o[t].bytes;if(e){const r=this.extractCea608Data(e);n.addData(o[t].pts,r[0]),i.addData(o[t].pts,r[1])}}}onBufferFlushing(t,{startOffset:e,endOffset:n,endOffsetSubtitles:i,type:r}){const{media:o}=this;if(o&&!(o.currentTime<n)){if(!r||"video"===r){const{captionsTracks:t}=this;Object.keys(t).forEach((i=>ve(t[i],e,n)))}if(this.config.renderTextTracksNatively&&0===e&&void 0!==i){const{textTracks:t}=this;Object.keys(t).forEach((n=>ve(t[n],e,i)))}}}extractCea608Data(t){const e=[[],[]],n=31&t[0];let i=2;for(let r=0;r<n;r++){const n=t[i++],r=127&t[i++],o=127&t[i++];if(0===r&&0===o)continue;if(0!=(4&n)){const t=3&n;0!==t&&1!==t||(e[t].push(r),e[t].push(o))}}return e}},audioStreamController:class extends qn{constructor(t,e,n){super(t,e,n,"[audio-stream-controller]",ue),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:t}=this;t.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.LEVEL_LOADED,this.onLevelLoaded,this),t.on(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(g.ERROR,this.onError,this),t.on(g.BUFFER_RESET,this.onBufferReset,this),t.on(g.BUFFER_CREATED,this.onBufferCreated,this),t.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.LEVEL_LOADED,this.onLevelLoaded,this),t.off(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(g.ERROR,this.onError,this),t.off(g.BUFFER_RESET,this.onBufferReset,this),t.off(g.BUFFER_CREATED,this.onBufferCreated,this),t.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(g.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(t,{frag:e,id:n,initPTS:i,timescale:r}){if("main"===n){const t=e.cc;this.initPTS[e.cc]={baseTime:i,timescale:r},this.log(`InitPTS for cc: ${t} found from main: ${i}`),this.videoTrackCC=t,this.state===zn&&this.tick()}}startLoad(t){if(!this.levels)return this.startPosition=t,void(this.state=Rn);const e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),e>0&&-1===t?(this.log(`Override startPosition with lastCurrentTime @${e.toFixed(3)}`),t=e,this.state=Mn):(this.loadedmetadata=!1,this.state=jn),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}doTick(){switch(this.state){case Mn:this.doTickIdle();break;case jn:{var t;const{levels:e,trackId:n}=this,i=null==e||null==(t=e[n])?void 0:t.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=zn}break}case $n:{var e;const t=performance.now(),n=this.retryDate;(!n||t>=n||null!=(e=this.media)&&e.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Mn);break}case zn:{const t=this.waitingData;if(t){const{frag:e,part:n,cache:i,complete:r}=t;if(void 0!==this.initPTS[e.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Fn;const t={frag:e,part:n,payload:i.flush(),networkDetails:null};this._handleFragmentLoadProgress(t),r&&super._handleFragmentLoadComplete(t)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${e.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const t=this.getLoadPosition(),n=_n.bufferInfo(this.mediaBuffer,t,this.config.maxBufferHole);qe(n.end,this.config.maxFragLookUpTolerance,e)<0&&(this.log(`Waiting fragment cc (${e.cc}) @ ${e.start} cancelled because another fragment at ${n.end} is needed`),this.clearWaitingFragment())}}else this.state=Mn}}this.onTickEnd()}clearWaitingFragment(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Mn)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:t}=this;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){const{hls:t,levels:e,media:n,trackId:i}=this,r=t.config;if(null==e||!e[i])return;if(!n&&(this.startFragRequested||!r.startFragPrefetch))return;const o=e[i],s=o.details;if(!s||s.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(s))return void(this.state=jn);const a=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&a&&(this.bufferFlushed=!1,this.afterBufferFlushed(a,I,ue));const l=this.getFwdBufferInfo(a,ue);if(null===l)return;const{bufferedTrack:u,switchingTrack:c}=this;if(!c&&this._streamEnded(l,s))return t.trigger(g.BUFFER_EOS,{type:"audio"}),void(this.state=Hn);const d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,le),h=l.len,f=this.getMaxBufferLength(null==d?void 0:d.len);if(h>=f&&!c)return;const p=s.fragments[0].start;let m=l.end;if(c&&n){const t=this.getLoadPosition();u&&c.attrs!==u.attrs&&(m=t),s.PTSKnown&&t<p&&(l.end>p||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=p+.05)}let v=this.getNextFragment(m,s),y=!1;if(v&&this.isLoopLoading(v,m)&&(y=!!v.gap,v=this.getNextFragmentLoopLoading(v,s,l,le,f)),!v)return void(this.bufferFlushed=!0);const b=d&&v.start>d.end+s.targetduration;if(b||(null==d||!d.len)&&l.len){const t=this.getAppendedFrag(v.start,le);if(null===t)return;if(y||(y=!!t.gap||!!b&&0===d.len),b&&!y||y&&l.nextStart&&l.nextStart<t.end)return}this.loadFragment(v,o,m)}getMaxBufferLength(t){const e=super.getMaxBufferLength();return t?Math.min(Math.max(e,t),this.config.maxMaxBufferLength):e}onMediaDetaching(){this.videoBuffer=null,super.onMediaDetaching()}onAudioTracksUpdated(t,{audioTracks:e}){this.resetTransmuxer(),this.levels=e.map((t=>new Oe(t)))}onAudioTrackSwitching(t,e){const n=!!e.url;this.trackId=e.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?this.setInterval(100):this.resetTransmuxer(),n?(this.switchingTrack=e,this.state=Mn):(this.switchingTrack=null,this.bufferedTrack=e,this.state=Rn),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(t,e){this.mainDetails=e.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(g.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(t,e){var n;if(null==this.mainDetails)return void(this.cachedTrackLoadedData=e);const{levels:i}=this,{details:r,id:o}=e;if(!i)return void this.warn(`Audio tracks were reset while loading level ${o}`);this.log(`Track ${o} loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const s=i[o];let a=0;if(r.live||null!=(n=s.details)&&n.live){const t=this.mainDetails;if(r.fragments[0]||(r.deltaUpdateFailed=!0),r.deltaUpdateFailed||!t)return;!s.details&&r.hasProgramDateTime&&t.hasProgramDateTime?(An(r,t),a=r.fragments[0].start):a=this.alignPlaylists(r,s.details)}s.details=r,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&r.live||this.setStartPosition(s.details,a),this.state!==jn||this.waitForCdnTuneIn(r)||(this.state=Mn),this.tick()}_handleFragmentLoadProgress(t){var e;const{frag:n,part:i,payload:r}=t,{config:o,trackId:s,levels:a}=this;if(!a)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=a[s];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const c=o.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let d=this.transmuxer;d||(d=this.transmuxer=new Xi(this.hls,ue,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const h=this.initPTS[n.cc],f=null==(e=n.initSegment)?void 0:e.data;if(void 0!==h){const t=!1,e=i?i.index:-1,o=-1!==e,s=new Sn(n.level,n.sn,n.stats.chunkCount,r.byteLength,e,o);d.push(r,f,c,"",n,i,u.totalduration,t,s,h)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${s}`);const{cache:t}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new nr,complete:!1};t.push(new Uint8Array(r)),this.waitingVideoCC=this.videoTrackCC,this.state=zn}}_handleFragmentLoadComplete(t){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(t,e){const n=e.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer||null)}onFragBuffered(t,e){const{frag:n,part:i}=e;if(n.type===ue)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if("initSegment"!==n.sn){this.fragPrevious=n;const t=this.switchingTrack;t&&(this.bufferedTrack=t,this.switchingTrack=null,this.hls.trigger(g.AUDIO_TRACK_SWITCHED,h({},t)))}this.fragBufferedComplete(n,i)}else if(!this.loadedmetadata&&n.type===le){const t=this.videoBuffer||this.media;if(t){_n.getBuffered(t).length&&(this.loadedmetadata=!0)}}}onError(t,e){var n;if(e.fatal)this.state=Vn;else switch(e.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ue,e);break;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==jn||(null==(n=e.context)?void 0:n.type)!==se||(this.state=Mn);break;case y.BUFFER_FULL_ERROR:if(!e.parent||"audio"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}onBufferFlushed(t,{type:e}){e===I&&(this.bufferFlushed=!0,this.state===Hn&&(this.state=Mn))}_handleTransmuxComplete(t){var e;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:o}=t,s=this.getCurrentContext(o);if(!s)return void this.resetWhenMissingContext(o);const{frag:a,part:l,level:u}=s,{details:c}=u,{audio:d,text:h,id3:f,initSegment:m}=r;if(!this.fragContextChanged(a)&&c){if(this.state=Un,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=m&&m.tracks){const t=a.initSegment||a;this._bufferInitSegment(m.tracks,t,o),i.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:n,tracks:m.tracks})}if(d){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=d;l&&(l.elementaryStreams[I]={startPTS:t,endPTS:e,startDTS:n,endDTS:i}),a.setElementaryStreamInfo(I,t,e,n,i),this.bufferFragmentData(d,a,l,o)}if(null!=f&&null!=(e=f.samples)&&e.length){const t=p({id:n,frag:a,details:c},f);i.trigger(g.FRAG_PARSING_METADATA,t)}if(h){const t=p({id:n,frag:a,details:c},h);i.trigger(g.FRAG_PARSING_USERDATA,t)}}else this.fragmentTracker.removeFragment(a)}_bufferInitSegment(t,e,n){if(this.state!==Un)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.levelCodec=i.codec,i.id="audio",this.log(`Init audio buffer, container:${i.container}, codecs[parsed]=[${i.codec}]`),this.hls.trigger(g.BUFFER_CODECS,t);const r=i.initSegment;if(null!=r&&r.byteLength){const t={type:"audio",frag:e,part:null,chunkMeta:n,parent:e.type,data:r};this.hls.trigger(g.BUFFER_APPENDING,t)}this.tick()}loadFragment(t,e,n){const i=this.fragmentTracker.getState(t);var r;(this.fragCurrent=t,this.switchingTrack||i===an||i===un)?"initSegment"===t.sn?this._loadInitSegment(t,e):null!=(r=e.details)&&r.live&&!this.initPTS[t.cc]?(this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=zn):(this.startFragRequested=!0,super.loadFragment(t,e,n)):this.clearTrackerIfNeeded(t)}completeAudioSwitch(t){const{hls:e,media:n,bufferedTrack:i}=this,r=null==i?void 0:i.attrs,o=t.attrs;n&&r&&(r.CHANNELS!==o.CHANNELS||r.NAME!==o.NAME||r.LANGUAGE!==o.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=t,this.switchingTrack=null,e.trigger(g.AUDIO_TRACK_SWITCHED,h({},t))}},audioTrackController:class extends en{constructor(t){super(t,"[audio-track-controller]"),this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_PARSED,this.onManifestParsed,this),t.on(g.LEVEL_LOADING,this.onLevelLoading,this),t.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_PARSED,this.onManifestParsed,this),t.off(g.LEVEL_LOADING,this.onLevelLoading,this),t.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(g.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.audioTracks||[]}onAudioTrackLoaded(t,e){const{id:n,groupId:i,details:r}=e,o=this.tracksInGroup[n];if(!o||o.groupId!==i)return void this.warn(`Track with id:${n} and group:${i} not found in active group ${o.groupId}`);const s=o.details;o.details=e.details,this.log(`audio-track ${n} "${o.name}" lang:${o.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,e,s)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(null==e||!e.audioGroupIds)return;const n=e.audioGroupIds[e.urlId];if(this.groupId!==n){this.groupId=n||null;const t=this.tracks.filter((t=>!n||t.groupId===n));this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),this.tracksInGroup=t;const e={audioTracks:t};this.log(`Updating audio tracks, ${t.length} track(s) found in group:${n}`),this.hls.trigger(g.AUDIO_TRACKS_UPDATED,e),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}onError(t,e){!e.fatal&&e.context&&e.context.type===se&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(e))}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioTrack(t){const e=this.tracksInGroup;if(t<0||t>=e.length)return void this.warn("Invalid id passed to audio-track controller");this.clearTimer();const n=this.currentTrack;e[this.trackId];const i=e[t],{groupId:r,name:o}=i;if(this.log(`Switching to audio-track ${t} "${o}" lang:${i.lang} group:${r}`),this.trackId=t,this.currentTrack=i,this.selectDefaultTrack=!1,this.hls.trigger(g.AUDIO_TRACK_SWITCHING,h({},i)),i.details&&!i.details.live)return;const s=this.switchParams(i.url,null==n?void 0:n.details);this.loadPlaylist(s)}selectInitialTrack(){const t=this.tracksInGroup,e=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(-1!==e)this.setAudioTrack(e);else{const e=new Error(`No track found for running audio group-ID: ${this.groupId} track count: ${t.length}`);this.warn(e.message),this.hls.trigger(g.ERROR,{type:v.MEDIA_ERROR,details:y.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:e})}}findTrackId(t){const e=this.tracksInGroup;for(let n=0;n<e.length;n++){const i=e[n];if(!this.selectDefaultTrack||i.default){if(!t||void 0!==t.attrs["STABLE-RENDITION-ID"]&&t.attrs["STABLE-RENDITION-ID"]===i.attrs["STABLE-RENDITION-ID"])return i.id;if(t.name===i.name&&t.lang===i.lang)return i.id}}return-1}loadPlaylist(t){super.loadPlaylist();const e=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(e)){const n=e.id,i=e.groupId;let r=e.url;if(t)try{r=t.addDirectives(r)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}this.log(`loading audio-track playlist ${n} "${e.name}" lang:${e.lang} group:${i}`),this.clearTimer(),this.hls.trigger(g.AUDIO_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null})}}},emeController:oo,cmcdController:po,contentSteeringController:class{constructor(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=S.log.bind(S,"[content-steering]:"),this.registerListeners()}registerListeners(){const t=this.hls;t.on(g.MANIFEST_LOADING,this.onManifestLoading,this),t.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(g.MANIFEST_PARSED,this.onManifestParsed,this),t.on(g.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(g.MANIFEST_LOADING,this.onManifestLoading,this),t.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(g.MANIFEST_PARSED,this.onManifestParsed,this),t.off(g.ERROR,this.onError,this))}startLoad(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){const t=Math.max(1e3*this.timeToLoad-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,t)}else this.loadSteeringManifest(this.uri)}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const e=this.levels;e&&(this.levels=e.filter((e=>e!==t)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,e){const{contentSteering:n}=e;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks}onError(t,e){const{errorAction:n}=e;if((null==n?void 0:n.action)===Ye&&n.flags===Qe){let t=this.pathwayPriority;const e=this.pathwayId;this.penalizedPathways[e]||(this.penalizedPathways[e]=performance.now()),!t&&this.levels&&(t=this.levels.reduce(((t,e)=>(-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t)),[])),t&&t.length>1&&(this.updatePathwayPriority(t),n.resolved=this.pathwayId!==e)}}filterParsedLevels(t){this.levels=t;let e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){const n=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),e=this.getLevelsForPathway(n),this.pathwayId=n}return e.length!==t.length?(this.log(`Found ${e.length}/${t.length} levels in Pathway "${this.pathwayId}"`),e):t}getLevelsForPathway(t){return null===this.levels?[]:this.levels.filter((e=>t===e.pathwayId))}updatePathwayPriority(t){let e;this.pathwayPriority=t;const n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach((t=>{i-n[t]>3e5&&delete n[t]}));for(let i=0;i<t.length;i++){const r=t[i];if(n[r])continue;if(r===this.pathwayId)return;const o=this.hls.nextLoadLevel,s=this.hls.levels[o];if(e=this.getLevelsForPathway(r),e.length>0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,this.hls.trigger(g.LEVELS_UPDATED,{levels:e});const t=this.hls.levels[o];s&&t&&this.levels&&(t.attrs["STABLE-VARIANT-ID"]!==s.attrs["STABLE-VARIANT-ID"]&&t.bitrate!==s.bitrate&&this.log(`Unstable Pathways change from bitrate ${s.bitrate} to ${t.bitrate}`),this.hls.nextLoadLevel=o);break}}}clonePathways(t){const e=this.levels;if(!e)return;const n={},i={};t.forEach((t=>{const{ID:r,"BASE-ID":o,"URI-REPLACEMENT":s}=t;if(e.some((t=>t.pathwayId===r)))return;const a=this.getLevelsForPathway(o).map((t=>{const e=p({},t);e.details=void 0,e.url=go(t.uri,t.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",s);const o=new k(t.attrs);o["PATHWAY-ID"]=r;const a=o.AUDIO&&`${o.AUDIO}_clone_${r}`,l=o.SUBTITLES&&`${o.SUBTITLES}_clone_${r}`;a&&(n[o.AUDIO]=a,o.AUDIO=a),l&&(i[o.SUBTITLES]=l,o.SUBTITLES=l),e.attrs=o;const u=new Oe(e);return on(u,"audio",a),on(u,"text",l),u}));e.push(...a),mo(this.audioTracks,n,s,r),mo(this.subtitleTracks,i,s,r)}))}loadSteeringManifest(t){const e=this.hls.config,n=e.loader;let i;this.loader&&this.loader.destroy(),this.loader=new n(e);try{i=new self.URL(t)}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest URI: ${t}`)}if("data:"!==i.protocol){const t=0|(this.hls.bandwidthEstimate||e.abrEwmaDefaultEstimate);i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+t)}const r={responseType:"json",url:i.href},o=e.steeringManifestLoadPolicy.default,s=o.errorRetry||o.timeoutRetry||{},a={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},l={onSuccess:(t,e,n,r)=>{this.log(`Loaded steering manifest: "${i}"`);const o=t.data;if(1!==o.VERSION)return void this.log(`Steering VERSION ${o.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=o.TTL;const{"RELOAD-URI":s,"PATHWAY-CLONES":a,"PATHWAY-PRIORITY":l}=o;if(s)try{this.uri=new self.URL(s,i).href}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${s}`)}this.scheduleRefresh(this.uri||n.url),a&&this.clonePathways(a),l&&this.updatePathwayPriority(l)},onError:(t,e,n,i)=>{if(this.log(`Error loading steering manifest: ${t.code} ${t.text} (${e.url})`),this.stopLoad(),410===t.code)return this.enabled=!1,void this.log(`Steering manifest ${e.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==t.code)this.scheduleRefresh(this.uri||e.url,r);else{const t=this.loader;if("function"==typeof(null==t?void 0:t.getResponseHeader)){const e=t.getResponseHeader("Retry-After");e&&(r=1e3*parseFloat(e))}this.log(`Steering manifest ${e.url} rate limited`)}},onTimeout:(t,e,n)=>{this.log(`Timeout loading steering manifest (${e.url})`),this.scheduleRefresh(this.uri||e.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,a,l)}scheduleRefresh(t,e=1e3*this.timeToLoad){self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout((()=>{this.loadSteeringManifest(t)}),e)}}});function ko(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(ko):Object.keys(t).reduce(((e,n)=>(e[n]=ko(t[n]),e)),{}):t}function Co(t){const e=t.loader;if(e!==wo&&e!==yo)S.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1})()&&(t.loader=wo,t.progressive=!0,t.enableSoftwareAES=!0,S.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class Ao{static get version(){return"1.4.8"}static isSupported(){return function(){const t=Bt();if(!t)return!1;const e=Gn(),n=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),i=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!n&&!!i}()}static get Events(){return g}static get ErrorTypes(){return v}static get ErrorDetails(){return y}static get DefaultConfig(){return Ao.defaultConfig?Ao.defaultConfig:xo}static set DefaultConfig(t){Ao.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Yi,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,function(t,e){if(self.console&&!0===t||"object"==typeof t){_(t,"debug","log","info","warn","error");try{T.log(`Debug logs enabled for "${e}" in hls.js version 1.4.8`)}catch(t){T=w}}else T=w}(t.debug||!1,"Hls instance");const e=this.config=function(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=ko(t),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((t=>{const r=`${"level"===t?"playlist":t}LoadPolicy`,o=void 0===e[r],s=[];i.forEach((i=>{const a=`${t}Loading${i}`,l=e[a];if(void 0!==l&&o){s.push(a);const t=n[r].default;switch(e[r]={default:t},i){case"TimeOut":t.maxLoadTimeMs=l,t.maxTimeToFirstByteMs=l;break;case"MaxRetry":t.errorRetry.maxNumRetry=l,t.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":t.errorRetry.retryDelayMs=l,t.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":t.errorRetry.maxRetryDelayMs=l,t.timeoutRetry.maxRetryDelayMs=l}}})),s.length&&S.warn(`hls.js config: "${s.join('", "')}" setting(s) are deprecated, use "${r}": ${JSON.stringify(e[r])}`)})),h(h({},n),e)}(Ao.DefaultConfig,t);this.userConfig=t,this._autoLevelCapping=-1,e.progressive&&Co(e);const{abrController:n,bufferController:i,capLevelController:r,errorController:o,fpsController:s}=e,a=new o(this),l=this.abrController=new n(this),u=this.bufferController=new i(this),c=this.capLevelController=new r(this),d=new s(this),f=new fe(this),p=new Ee(this),m=e.contentSteeringController,v=m?new m(this):null,y=this.levelController=new rn(this,v),b=new dn(this),E=new bn(this.config),x=this.streamController=new Ji(this,b,E);c.setStreamController(x),d.setStreamController(x);const k=[f,y,x];v&&k.splice(1,0,v),this.networkControllers=k;const C=[l,u,c,d,p,b];this.audioTrackController=this.createController(e.audioTrackController,k);const A=e.audioStreamController;A&&k.push(new A(this,b,E)),this.subtitleTrackController=this.createController(e.subtitleTrackController,k);const L=e.subtitleStreamController;L&&k.push(new L(this,b,E)),this.createController(e.timelineController,C),E.emeController=this.emeController=this.createController(e.emeController,C),this.cmcdController=this.createController(e.cmcdController,C),this.latencyController=this.createController(xe,C),this.coreComponents=C,k.push(a);const I=a.onErrorOut;"function"==typeof I&&this.on(g.ERROR,I,a)}createController(t,e){if(t){const n=new t(this);return e&&e.push(n),n}return null}on(t,e,n=this){this._emitter.on(t,e,n)}once(t,e,n=this){this._emitter.once(t,e,n)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,e,n=this,i){this._emitter.off(t,e,n,i)}listeners(t){return this._emitter.listeners(t)}emit(t,e,n){return this._emitter.emit(t,e,n)}trigger(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){S.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.trigger(g.ERROR,{type:v.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:!1,event:t,error:e})}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){S.log("destroy"),this.trigger(g.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((t=>t.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((t=>t.destroy())),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){S.log("attachMedia"),this._media=t,this.trigger(g.MEDIA_ATTACHING,{media:t})}detachMedia(){S.log("detachMedia"),this.trigger(g.MEDIA_DETACHING,void 0),this._media=null}loadSource(t){this.stopLoad();const e=this.media,n=this.url,i=this.url=c.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});S.log(`loadSource:${i}`),e&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(g.MANIFEST_LOADING,{url:t})}startLoad(t=-1){S.log(`startLoad(${t})`),this.networkControllers.forEach((e=>{e.startLoad(t)}))}stopLoad(){S.log("stopLoad"),this.networkControllers.forEach((t=>{t.stopLoad()}))}swapAudioCodec(){S.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){S.log("recoverMediaError");const t=this._media;this.detachMedia(),t&&this.attachMedia(t)}removeLevel(t,e=0){this.levelController.removeLevel(t,e)}get levels(){const t=this.levelController.levels;return t||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){S.log(`set currentLevel:${t}`),this.loadLevel=t,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){S.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){S.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){S.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){return this.levelController.startLevel}set startLevel(t){S.log(`set startLevel:${t}`),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(S.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t)}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){ke.indexOf(t)>-1&&(this._maxHdcpLevel=t)}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:e}}=this;if(!t)return 0;const n=t.length;for(let i=0;i<n;i++)if(t[i].maxBitrate>=e)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:e,maxHdcpLevel:n}=this;let i;if(i=-1===e&&t&&t.length?t.length-1:e,n)for(let e=i;e--;){const i=t[e].attrs["HDCP-LEVEL"];if(i&&i<=n)return e}return i}get nextAutoLevel(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)}set nextAutoLevel(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const e=this.audioTrackController;e&&(e.audioTrack=t)}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}set subtitleDisplay(t){const e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Ao.defaultConfig=void 0}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=e,t=[],i.O=(e,n,r,o)=>{if(!n){var s=1/0;for(c=0;c<t.length;c++){for(var[n,r,o]=t[c],a=!0,l=0;l<n.length;l++)(!1&o||s>=o)&&Object.keys(i.O).every((t=>i.O[t](n[l])))?n.splice(l--,1):(a=!1,o<s&&(s=o));if(a){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[n,r,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={773:0,37:0,217:0,170:0,162:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var r,o,[s,a,l]=n,u=0;if(s.some((e=>0!==t[e]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(l)var c=l(i)}for(e&&e(n);u<s.length;u++)o=s[u],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(c)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0,i.O(void 0,[37,217,170,162],(()=>i(7745))),i.O(void 0,[37,217,170,162],(()=>i(1261))),i.O(void 0,[37,217,170,162],(()=>i(8595))),i.O(void 0,[37,217,170,162],(()=>i(7685)));var r=i.O(void 0,[37,217,170,162],(()=>i(3678)));r=i.O(r)})();