PageSourceSearch

https://mtvpressi.fi/build/app.33aab2e6.js

js mtvpressi.fi collected 2026-09-25 08:03:31 UTC 178,432 bytes, 2 lines download raw bytes

1/*! For license information please see app.33aab2e6.js.LICENSE.txt */
2(self.webpackChunkcs_pressweb=self.webpackChunkcs_pressweb||[]).push([[524],{25490(e,t,n){var r={"./components/consent-modal-controller.ts":79489,"./components/contact-form-controller.ts":19538,"./components/promos-controller.ts":45313,"./hello_controller.js":86824,"./login-flow-controller.ts":74850,"./login-link-controller.ts":45674,"./media-player-controller.ts":60720,"./page-builder-video-controller.ts":32371,"./pressweb/event-page-controller.ts":57086,"./program-filter-controller.ts":86321,"./schedule-controller.ts":47873,"./schedule-tabs-controller.ts":14118,"./simple-form-submit-controller.ts":58668};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=25490},35828(e,t,n){"use strict";n.d(t,{A:()=>r});const r={live:n(97422).default}},86824(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(60825),n(47764),n(62953);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}
vendor: 4,155 bytes, line 2
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.element.textContent="Hello Stimulus! Edit me in assets/controllers/hello_controller.js"}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller)},79489(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(51629),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(98992),n(3949),n(23500),n(62953);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=v(this,t,arguments)).form=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){var e;this.element.showModal(),this.form=this.element.querySelector("form"),null===(e=this.form)||void 0===e||e.addEventListener("submit",this.submit.bind(this))}},{key:"submit",value:function(e){return g(this,void 0,void 0,o().mark((function t(){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),this.form){t.next=3;break}return t.abrupt("return");case 3:if(n=this.element.querySelectorAll("input[type='checkbox']"),r=!0,n.forEac
2h((function(e){var t,n=null===(t=e.parentElement)||void 0===t?void 0:t.querySelector("i");null==n||n.classList.remove("error"),e.checked||(r=!1,n&&n.classList.add("error"))})),r){t.next=8;break}return t.abrupt("return");case 8:return t.prev=8,i=new FormData(this.form),t.next=12,fetch(this.form.action,{method:"POST",body:i});case 12:if(!t.sent.ok){t.next=17;break}this.element.close(),t.next=18;break;case 17:throw new Error("Something went wrong, please try again.");case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(8),alert("Something went wrong, please try again.");case 23:case"end":return t.stop()}}),t,this,[[8,20]])})))}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);t.default=w},19538(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(62953);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,r=[{key:"connect",value:function(){var e=this;this.element.addEventListener("submit",(function(t){return g(e,void 0,void 0,o().mark((function e(){var n,r,i=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),this.errorContainerTarget.style.display="none",this.successContainerTarget.style.display="none",n=new FormData(this.element),e.prev=4,e.next=7,fetch(this.urlValue,{method:"POST",body:n}).then((function(e){return g(i,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=4;break}return t.next=3,e.json();case 3:throw t.sent;case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})))}
vendor: 6,809 bytes, line 2
2));case 7:this.successContainerTarget.style.display="flex",e.next=14;break;case 10:e.prev=10,e.t0=e.catch(4),(r=this.errorContainerTarget.querySelector("p"))&&(r.innerHTML=this.resolveErrorMessage(e.t0),this.errorContainerTarget.style.display="flex");case 14:case"end":return e.stop()}}),e,this,[[4,10]])})))}))}},{key:"resolveErrorMessage",value:function(e){return(null==e?void 0:e.message)?e.message:this.defaultErrorMessageValue}}],r&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);w.targets=["errorContainer","successContainer"],w.values={url:String,defaultErrorMessage:String},t.default=w},45313(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(51629),n(23418),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(98992),n(3949),n(23500),n(62953);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=n(52891),k=n(97422),O=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=v(this,t,arguments)).component=null,e.highlightTypeSelectors=null,e.filterByHighlightAction=e.filterByHighlight.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){return g(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.getComponent)(this.element);case 2:this.component=e.sent;case 3:case"end":return e.stop()}}),e,this)})))}},{key:"connect",value:function(){return g(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.highlightTypeSelectors=this.element.querySelector("#highlight-type"),this.attachHighlightFilterListeners();case 2:case"end":return e.stop()}}),e,this)})))}},{key:"attachHighlightFilterListeners",value:function(){return g(this,void 0,void 0,o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this.highlightTypeSelectors)||void 0===t?void 0:t.children){e.next=2;break}return e.abrupt("return");case 2:Array.from(this.highlightTypeSelectors.children).forEach((function(e){e.addEventListener("click",n.filterByHighlightAction)}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"filterByHighlight",value:function(e){return g(this,void 0,void 0,o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.component){t.next=2;break}return t.abrupt("return");case 2:e.preventDefault(),n=e.currentTarget,r=n.dataset.key,this.component.action("selectType",{typeKey:r});case 6:case"end":return t.stop()}}),t,this)})))}},{key:"detachHighlightFilterListeners",value:function(){return g(this,void 0,void 0,o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this.highlightTypeSelectors)||void 0===t?void 0:t.children){e.next=2;break}return e.abrupt("return");case 2:Array.from(this.highlightTypeSelectors.children).forEach((function(e){e.removeEventListener("click",n.filterByHighlightAction)}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"disconnect",value:function(){return g(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.detachHighlightFilterListeners();case 1:case"end":return e.stop()}}),e,this)})))}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(w.Controller);t.default=O},74850(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)}
vendor: 4,927 bytes, line 2
2,keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(28706),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(42762),n(62953),n(48408),n(14603),n(47566),n(98721);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.stepLoginButtonTarget.style.display="block",this.sendLinkButtonTarget.style.display="inline",this.passwordStepTarget.style.display="none",this.passwordLoginButtonTarget.style.display="none"}},{key:"showPasswordStep",value:function(e){if(e.preventDefault(),this.isEmailValid()){var t=this.emailInputTarget.value.trim();this.emailDisplayTarget.textContent="".concat(this.welcomeTextValue," ").concat(t),this.emailStepTarget.style.display="none",this.passwordStepTarget.style.display="block",this.passwordLoginButtonTarget.style.display="block",this.passwordInputTarget.focus()}}},{key:"sendMagicLink",value:function(e){return g(this,void 0,void 0,o().mark((function t(){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),this.isEmailValid()){t.next=3;break}return t.abrupt("return");case 3:return this.sendLinkButtonTarget.style.pointerEvents="none",t.prev=4,t.next=7,fetch(this.sendUrlValue,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},body:new URLSearchParams({email:this.emailInputTarget.value.trim()})});case 7:return r=t.sent,t.next=10,r.json();case 10:(i=t.sent).success?(this.magicLinkSentTarget.style.display="block",this.magicLinkActionTarget.style.display="none",this.stepLoginButtonTarget.style.display="none",this.magicLinkFailedTarget.style.display="none"):(this.sendLinkButtonTarget.style.display="none",this.magicLinkFailedTarget.style.display="block",this.magicLinkFailedTarget.innerText=null!==(n=i.message)&&void 0!==n?n:"",this.sendLinkButtonTarget.style.pointerEvents="auto"),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(4),console.error("Failed to send magic link:",t.t0),this.sendLinkButtonTarget.style.pointerEvents="auto";case 18:case"end":return t.stop()}}),t,this,[[4,14]])})))}},{key:"togglePassword",value:function(e){e.preventDefault();var t=e.currentTarget,n=this.passwordInputTarget;if("password"===n.type)return n.type="text",t.classList.remove("fa-eye"),void t.classList.add("fa-eye-slash");n.type="password",t.classList.remove("fa-eye-slash"),t.classList.add("fa-eye")}},{key:"isEmailValid",value:function(){return this.emailInputTarget.value.trim().length?this.emailInputTarget.checkValidity():(this.emailInputTarget.reportValidity(),this.emailInputTarget.style.borderColor="red",!1)}},{key:"resetWarnings",value:function(){this.magicLinkSentTarget.style.display="none",this.magicLinkFailedTarget.style.display="none",this.magicLinkActionTarget.style.display="block",this.stepLoginButtonTarget.style.display="block",this.sendLinkButtonTarget.style.display="inline",this.sendLinkButtonTarget.style.pointerEvents="auto",this.emailInputTarget.style.removeProperty("border-color")}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);w.values={sendUrl:String,welcomeText:String},w.targets=["emailStep","passwordStep","emailInput","emailDisplay","stepLoginButton","passwordInput","passwordLoginButton","magicLinkAction","sendLinkButton","magicLinkSent","magicLinkFailed"],t.default=w},45674(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}
2function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(23288),n(94170),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(60825),n(38781),n(47764),n(62953),n(3296),n(27208),n(48408),n(14603),n(47566),n(98721),Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){if(void 0!==this.element.dataset.addRedirect){var e=this.element.getAttribute("href");if(e){var t=new URL(e,window.location.origin);t.origin===window.location.origin&&(t.searchParams.set("redirect",window.location.href),this.element.setAttribute("href",t.toString()))}}}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);t.default=l},60720(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(60825),n(47764),n(62953),Object.defineProperty(t,"__esModule",{value:!0});var l=n(86497),f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){var e=this.setupPlayer();if(e){var t=this.element.getAttribute("data-assetKey"),n="true"===this.element.getAttribute("data-useTracking");t&&n&&new l.MediaPlayerAnalytics(e,t),e.load()}}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(41199).BaseMediaPlayerController);t.default=f},32371(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&
2(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(62953);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=n(13060),k=n(52891),O=n(86533),S=n(93340),E=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=v(this,t,arguments)).player=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){return g(this,void 0,void 0,o().mark((function e(){var t,n,r,i,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.element.getAttribute("data-downloadableUrl")||void 0,n="true"===this.element.getAttribute("data-autoPlay"),r=this.element.getAttribute("data-posterUrl"),i=this.element.getAttribute("data-src"),a="true"===this.element.getAttribute("data-bottomControls"),i){e.next=7;break}return e.abrupt("return");case 7:u=new w.CSWebPlayerCore({containerElement:this.element,autoPlay:n,muted:n,loop:!0,poster:r||void 0,src:i,disableChromecast:!0}),new S.PlayerSkin({player:u,container:this.element,downloadableUrl:!a&&t}),a&&new O.PlayerBottomControlsSkin({player:u,container:this.element,downloadableUrl:t}),u.load();case 11:case"end":return e.stop()}}),e,this)})))}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(k.Controller);t.default=E}
vendor: 6,106 bytes, line 2
2,57086(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(62953);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.loadRelatedMedia(),this.loadMap()}},{key:"loadRelatedMedia",value:function(){return g(this,void 0,void 0,o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasRelatedMediaTarget){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,fetch(this.relatedMediaUrlValue);case 5:if((t=e.sent).ok){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,t.text();case 10:this.relatedMediaTarget.innerHTML=e.sent,e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,this,[[2,13]])})))}},{key:"loadMap",value:function(){var e,t=this,n=null===(e=window.google)||void 0===e?void 0:e.maps;if(this.hasMapTarget&&this.locationValue&&n){this.mapTarget.style.height="300px";var r=new n.Map(this.mapTarget,{zoom:16,center:{lat:-34.397,lng:150.644},scrollwheel:!1});(new n.Geocoder).geocode({address:this.locationValue},(function(e,o){if(o!==n.GeocoderStatus.OK||!(null==e?void 0:e[0]))return t.mapTarget.innerHTML="",void(t.mapTarget.style.height="0");r.setCenter(e[0].geometry.location),new n.Marker({map:r,position:e[0].geometry.location})}))}}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);w.targets=["map","relatedMedia"],w.values={location:String,relatedMediaUrl:String},t.default=w},86321(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(60825),n(47764),n(62953),Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.applyState(this.resolveInitialState())}},{key:"toggle",value:function(e){e.preventDefault();var t=!this.isOpen();this.applyState(t),this.persistState(t)}},{key:"resolveInitialState",value:function(){var e=this.readStoredState();return null!==e?e:this.initialOpenValue}},{key:"readStoredState",value:function(){if(!this.storageKeyValue)return null;var e=window.sessionStorage.getItem(this.storageKeyValue);return null===e?null:"true"===e}},{key:"persistState",value:function(e){this.storageKeyValue&&window.sessionStorage.setItem(this.storageKeyValue,String(e))}},{key:"applyState",value:function(e){this.hasPanelTarget&&this.panelTarget.classList.toggle("d-none",!e),this.hasButtonTarget&&this.buttonTarget.classList.toggle("is-open",e)}},{key:"isOpen",value:function(){return!!this.hasPanelTarget&&!this.panelTarget.classList.contains("d-none")}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);l.targets=["panel","button"],l.values={initialOpen:Boolean,storageKey:String},t.default=l},47873(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&
2(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(28706),n(50113),n(74423),n(23792),n(62062),n(94490),n(34782),n(13609),n(1688),n(89572),n(23288),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(27495),n(38781),n(21699),n(47764),n(25440),n(98992),n(72577),n(81454),n(62953),n(76031),n(3296),n(27208),n(48408),n(14603),n(47566),n(98721);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=v(this,t,arguments)).DEBOUNCE_DELAY=300,e.MIN_SEARCH_LENGTH=4,e.debounceTimer=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.initializeEpgView()}},{key:"disconnect",value:function(){this.debounceTimer&&clearTimeout(this.debounceTimer)}},{key:"initializeEpgView",value:function(){var e,t,n=this.getSelectedChannelId(),r=this.getSelectedDate(
2);if(n){var o=null!==(e=this.channelLinkTargets.find((function(e){return e.dataset.channelid===n})))&&void 0!==e?e:this.channelLinkTargets[0];o&&(this.channelSelectorTarget.innerHTML=null!==(t=o.dataset.menuTitle)&&void 0!==t?t:""),this.loadEpgTabs(n,r)}}},{key:"selectChannel",value:function(e){var t;e.preventDefault();var n=e.currentTarget,r=n.dataset.channelid;if(r){this.setUrlParam("selectedChannelId",r),this.channelSelectorTarget.innerHTML=null!==(t=n.dataset.menuTitle)&&void 0!==t?t:"";var o=this.getSelectedDate();this.loadEpgTabs(r,o)}}},{key:"loadEpgTabs",value:function(e,t){var n=this.epgTabsUrlTemplateValue.replace("|channelId|",e).replace("|date|",this.formatDate(t));this.loadHtml(n,this.epgContainerTarget)}},{key:"search",value:function(){var e=this;this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.executeSearch()}),this.DEBOUNCE_DELAY)}},{key:"executeSearch",value:function(){return g(this,void 0,void 0,o().mark((function e(){var t,n,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=this.searchInputTarget.value).length<this.MIN_SEARCH_LENGTH)){e.next=6;break}return this.searchResultTarget.innerHTML="",this.scheduleAreaTarget.style.display="",this.epgContainerTarget.style.display="",e.abrupt("return");case 6:return e.prev=6,this.loaderTarget.style.display="",n=new URLSearchParams({searchQuery:t}),e.next=11,fetch("".concat(this.searchUrlValue,"?").concat(n.toString()));case 11:return r=e.sent,e.next=14,r.text();case 14:i=e.sent,this.loaderTarget.style.display="none",this.scheduleAreaTarget.style.display="none",this.epgContainerTarget.style.display="none",this.searchResultTarget.innerHTML=i,e.next=25;break;case 21:e.prev=21,e.t0=e.catch(6),this.loaderTarget.style.display="none",console.error("Schedule search failed:",e.t0);case 25:case"end":return e.stop()}}),e,this,[[6,21]])})))}},{key:"getSelectedDate",value:function(){var e=new URL(location.href).searchParams.get("selectedDate");if(!e){var t=new Date;return this.setUrlParam("selectedDate",this.formatDate(t)),t}var n=new Date(e);return isNaN(n.getTime())?new Date:n}},{key:"getSelectedChannelId",value:function(){var e=new URL(location.href),t=this.channelLinkTargets.map((function(e){return e.dataset.channelid})),n=e.searchParams.get("selectedChannelId");if(n&&t.includes(n))return n;if(0===t.length)return null;var r=t[0];return this.setUrlParam("selectedChannelId",r),r}},{key:"setUrlParam",value:function(e,t){var n=new URL(location.href);n.searchParams.set(e,t),history.pushState({},"",n)}},{key:"loadHtml",value:function(e,t){return g(this,void 0,void 0,o().mark((function n(){var r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.innerHTML=this.loaderHtmlValue,n.prev=1,n.next=4,fetch(e);case 4:return r=n.sent,n.next=7,r.text();case 7:t.innerHTML=n.sent,n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),console.error("Failed to load content:",n.t0),t.innerHTML="";case 14:case"end":return n.stop()}}),n,this,[[1,10]])})))}},{key:"formatDate",value:function(e){return e.toISOString().slice(0,10)}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);w.values={epgTabsUrlTemplate:String,searchUrl:String,loaderHtml:String},w.targets=["channelSelector","channelLink","epgContainer","scheduleArea","searchInput","searchResult","loader"],t.default=w},14118(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)}
vendor: 4,926 bytes, line 2
2,keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(62953),n(3296),n(27208),n(48408),n(14603),n(47566),n(98721);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.syncUrlParams(),this.loadActiveTab()}},{key:"syncUrlParams",value:function(){if(this.selectedChannelIdValue&&this.selectedDateValue){var e=new URL(location.href);e.searchParams.set("selectedDate",this.selectedDateValue),e.searchParams.set("selectedChannelId",this.selectedChannelIdValue),history.pushState({},"",e)}}},{key:"loadActiveTab",value:function(){var e=this.element.querySelector("li.active a[data-url]");if(e){var t=e.dataset.activetab;if(t){var n=document.getElementById(t);n&&this.loadHtml(e.dataset.url,n)}}}},{key:"selectTab",value:function(e){e.preventDefault();var t=e.currentTarget,n=t.dataset.position;if("first"!==n&&"last"!==n){var r=t.dataset.date;if(r){var o=new URL(location.href);o.searchParams.set("selectedDate",r),history.pushState({},"",o)}var i=t.dataset.activetab;if(i){var a=document.getElementById(i);a&&t.dataset.url&&this.loadHtml(t.dataset.url,a)}}else{var u=t.dataset.newtaburl;if(!u)return;var c=document.getElementById("epg-container");c&&this.loadHtml(u,c)}}},{key:"loadHtml",value:function(e,t){return g(this,void 0,void 0,o().mark((function n(){var r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.innerHTML=this.loaderHtmlValue,n.prev=1,n.next=4,fetch(e);case 4:return r=n.sent,n.next=7,r.text();case 7:t.innerHTML=n.sent,n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),console.error("Failed to load tab content:",n.t0),t.innerHTML="";case 14:case"end":return n.stop()}}),n,this,[[1,10]])})))}}])&&d(n.prototype,r),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(52891).Controller);w.values={selectedDate:String,selectedChannelId:String,loaderHtml:String},t.default=w},58668(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&
2(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function v(e,t,n){return t=m(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(60825),n(47764),n(62953);var g=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(i=[{key:"submit",value:function(e){return g(this,void 0,void 0,o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),this.setSubmitting(!0),this.errorContainerTarget.hidden=!0,this.successContainerTarget.hidden=!0,t.prev=4,t.next=7,fetch(this.element.action,{method:this.element.method,body:new FormData(this.element),headers:{Accept:"application/json"}});case 7:if((n=t.sent).ok){t.next=12;break}return t.next=11,this.parseError(n);case 11:throw t.sent;case 12:this.successContainerTarget.hidden=!1,t.next=19;break;case 15:t.prev=15,t.t0=t.catch(4),this.errorMessageTarget.textContent=this.resolveErrorMessage(t.t0),this.errorContainerTarget.hidden=!1;case 19:return t.prev=19,this.setSubmitting(!1),t.finish(19);case 22:case"end":return t.stop()}}),t,this,[[4,15,19,22]])})))}},{key:"parseError",value:function(e){return g(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.json();case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",{});case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))}},{key:"resolveErrorMessage",value:function(e){return"object"===r(e)&&null!==e&&"message"in e&&"string"==typeof e.message?e.message:this.defaultErrorMessageValue}},{key:"setSubmitting",value:function(e){this.submitButtonTarget.disabled=e,this.element.setAttribute("aria-busy",String(e))}}
vendor: 6,067 bytes, line 2
2])&&d(n.prototype,i),a&&d(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(52891).Controller);w.targets=["errorContainer","errorMessage","successContainer","submitButton"],w.values={defaultErrorMessage:String},t.default=w},4976(e,t,n){"use strict";n(84185),n(55249),n(46396),n(11382);var r=n(8801);document.addEventListener("DOMContentLoaded",(function(){(0,r.setupTruncatedTexts)()}))},55249(e,t,n){"use strict";n(84185),Object.defineProperty(t,"__esModule",{value:!0}),t.app=void 0;var r=n(3066),o=n(41199);t.app=(0,r.startStimulusApp)(n(25490)),t.app.debug=!1,t.app.register("image-modal-gallery",o.ImageModalGalleryController),t.app.register("cs-swiper",o.CSSwiperController)},86497(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e=l(),t=e.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,i(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(o=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new p(e,t)},AsyncIterator:s,async:function(e,t,n,o,i){return(r(t)?c:u)(d(e),t,n,o,i)},keys:a,values:i}})()}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function u(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function c(e,t,n,r,o){return new s(l().w(e,t,n,r),o||Promise)}function s(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof p?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(f(s.prototype),f(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),d=s.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,f(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,f(d,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function p(e,t){this.v=e,this.k=t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(28706),n(23792),n(94490),n(13609),n(89572),n(94170),n(62010),n(4731),n(60479),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(3362),n(27495),n(47764),n(5746),n(62953),n(48408),n(14603),n(47566),n(98721);var v=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MediaPlayerAnalytics=void 0;var y=n(13060),m=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.assetKey=n,this.statisticsId=null;var r=new y.CSWebPlayerCoreTrackingHelper(t);r.on("playing",this.onPlaying.bind(this)),r.on("ended",this.onEnded.bind(this)),r.on("percentilePassed",this.onTimeUpdate.bind(this))},(t=[{key:"onPlaying",value:function(){return v(this,void 0,void 0,o().mark((function e(){var t,n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/clip/".concat(this.assetKey,"/play"),(n=new URLSearchParams(window.location.search)).has("access")&&(t+="?access="+n.get("access")),e.prev=3,e.next=6,fetch(t,{method:"POST",body:this.assetKey,headers:{"Content-Type":"application/text"}}).then((function(e){return e.text()}));case 6:(r=e.sent).split(" ").length>1&&(this.statisticsId=r.split(" ")[1]),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])})))}},{key:"onTimeUpdate",value:function(e){return v(this,void 0,void 0,o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.statisticsId){t.next=2;break}return t.abrupt("return");case 2:return n=95===e?100:e,r="/clip/".concat(this.assetKey,"/position/").concat(this.statisticsId,"/").concat(n),t.prev=4,t.next=7,fetch(r,{method:"GET",headers:{"Content-Type":"application/text"}}).then((function(e){return e.text()}));case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(4),console.error(t.t0);case 12:case"end":return t.stop()}}),t,this,[[4,9]])})))}},{key:"onEnded",value:function(){return v(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/clip/".concat(this.assetKey,"/complete"),{method:"POST",body:this.assetKey,headers:{"Content-Type":"application/text"}}).then((function(e){return e.text()}));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,this,[[0,5]])})))}}])&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.MediaPlayerAnalytics=m},8801(e,t,n){"use strict";n(76918),n(51629),n(23418),n(34782),n(23288),n(2892),n(84185),n(26099),n(38781),n(47764),n(98992),n(3949),n(23500),Object.defineProperty(t,"__esModule",{value:!0}),t.setupTruncatedTexts=function(){var e=document.querySelectorAll("[data-truncated-text]");if(!e)return;Array.from(e).forEach((function(e){e.classList.add("truncated-text");var t=Number(getComputedStyle(e,"::after").getPropertyValue("height").slice(0,-2))+2;new ResizeObserver((function(){var n=Math.round(e.clientHeight/t);e.style.setProperty("--lines",n.toString())})).observe(e)}))}},46396(e,t,n){"use strict";n(59904),n(84185),n(83851),n(1480);var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&o(t,e,n[a]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});var u,c=a(n(49345));"test"!==window.csSentryEnvironment&&"production"!==window.csSentryEnvironment&&"development"!==window.csSentryEnvironment||(u=window.csSentryEnvironment,c.init({dsn:"https://34b1a17e2f706f814a100ad65d95e3c5@o4511449654034432.ingest.de.sentry.io/4511455262802000",integrations:[c.browserTracingIntegration(),c.replayIntegration()],environment:u}))},2709(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(2892),n(84185),n(26099),n(47764),n(62953),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.BasePlayerSkin=void 0;var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t.player,this.container=t.container,this.downloadableUrl=t.downloadableUrl||!1},(t=[{key:"createDownloadButton",value:function(){if(!this.downloadableUrl)return null;var e=document.createElement("a");return e.href=this.downloadableUrl,e.innerHTML='<i class="fa-solid fa-download"></i>',e.className="video-controls-icon",e.target="_blank",e}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.BasePlayerSkin=a},86533(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(60825),n(47764),n(62953),n(76031),Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerBottomControlsSkin=void 0;var l=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=a(this,t,[e])).playOverlay=null,n.parentContainer=null,n.hasCreatedBottomControls=!1,n.playButton=null,n.audioButton=null,n.fullscreenButton=null,n.hideControlsTimeout=null,n.areControlsVisible=!1,n.icons={play:'<i class="fa-solid fa-play"></i>',pause:'<i class="fa-solid fa-pause"></i>',audioOn:'<i class="fa-solid fa-volume-high"></i>',audioOff:'<i class="fa-solid fa-volume-slash"></i>',fullscreenOn:'<i class="fa-solid fa-up-right-and-down-left-from-center"></i>'},n.handleMouseEnter=function(){return n.showControls()},n.handleMouseClick=function(e){e.target.closest(".video-controls-icon, a, i")||n.player.togglePlay()},n.handleMouseLeave=function(){n.hideControlsTimeout&&clearTimeout(n.hideControlsTimeout),n.hideControlsTimeout=window.setTimeout((function(){n.hideControls()}),1e3)},n.player.on("stateChanged",(function(e){"playing"!==e.playbackState||n.hasCreatedBottomControls||n.createBottomControls(),n.audioButton&&(n.audioButton.innerHTML=e.muted?n.icons.audioOff:n.icons.audioOn),n.playButton&&(n.playButton.innerHTML="playing"===e.playbackState?n.icons.pause:n.icons.play)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(r=[{key:"createBottomControls",value:function(){this.createOverlay(),this.appendControls(),this.parentContainer=this.container.closest(".video-block"),this.setEventListeners(),this.showControls()}},{key:"createOverlay",value:function(){this.playOverlay=document.createElement("div"),this.playOverlay.className="video-controls-overlay",this.container.style.position="relative",this.container.appendChild(this.playOverlay)}},{key:"appendControls",value:function(){var e,t=this,n=this.createControlsGroup(),r=this.createControlsGroup();this.playButton=this.createIcon(this.icons.pause,(function(){return t.player.togglePlay()})),this.audioButton=this.createIcon(this.icons.audioOn,(function(){t.player.toggleAudio()})),this.fullscreenButton=this.createIcon(this.icons.fullscreenOn,(function(){t.player.toggleFullscreen()}));var o=this.createDownloadButton();n.append(this.playButton),r.append(this.audioButton,this.fullscreenButton),o&&r.append(o),null===(e=this.playOverlay)||void 0===e||e.append(n,r),this.hasCreatedBottomControls=!0}},{key:"createControlsGroup",value:function(){var e=document.createElement("div");return e.style.display="flex",e.style.gap="5px",e}},{key:"createIcon",value:function(e,t){var n=document.createElement("div");return n.className="video-controls-icon",n.innerHTML=e,n.onclick=t,n}},{key:"setEventListeners",value:function(){this.parentContainer&&(this.parentContainer.addEventListener("mouseenter",this.handleMouseEnter),this.parentContainer.addEventListener("mouseleave",this.handleMouseLeave),this.parentContainer.addEventListener("click",this.handleMouseClick))}},{key:"showControls",value:function(){this.playOverlay&&!this.areControlsVisible&&(this.playOverlay.classList.remove("hidden-controls"),this.areControlsVisible=!0),this.hideControlsTimeout&&(clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=null)}},{key:"hideControls",value:function(){this.playOverlay&&this.areControlsVisible&&(this.playOverlay.classList.add("hidden-controls"),this.areControlsVisible=!1)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(2709).BasePlayerSkin);t.PlayerBottomControlsSkin=l}
vendor: 1,410 bytes, line 2
2,93340(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(63548),n(10287),n(26099),n(60825),n(47764),n(62953),Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerSkin=void 0;var l=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=a(this,t,[e])).playIcon=null,n.container.style.position="relative";var r=n.createDownloadButton();return r&&(r.style.position="absolute",r.style.bottom="10px",r.style.right="10px",r.style.zIndex="10",r.classList.add("video-controls-icon"),n.container.appendChild(r),r.style.display="none"),n.createPlayIcon(),n.showPlayIcon(),n.player.on("playing",(function(){n.hidePlayIcon(),r&&(r.style.display="flex")})),n.player.on("ended",(function(){n.showPlayIcon(),r&&(r.style.display="none")})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(r=[{key:"createPlayIcon",value:function(){var e=this;this.playIcon=document.createElement("div"),this.playIcon.style.position="absolute",this.playIcon.style.top="50%",this.playIcon.style.left="50%",this.playIcon.style.transform="translate(-50%, -50%)",this.playIcon.style.zIndex="5",this.playIcon.style.cursor="pointer",this.playIcon.innerHTML='\n            <svg width="80" height="80" viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg">\n                <path d="M8 5v14l11-7z" />\n            </svg>\n        ',this.container.style.position="relative",this.container.appendChild(this.playIcon),this.playIcon.addEventListener("click",(function(){return e.handleIconClick()}))}},{key:"handleIconClick",value:function(){this.player.togglePlay(),this.hidePlayIcon()}},{key:"hidePlayIcon",value:function(){this.playIcon&&(this.playIcon.style.display="none")}},{key:"showPlayIcon",value:function(){this.playIcon&&(this.playIcon.style.display="block")}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(2709).BasePlayerSkin);t.PlayerSkin=l},11382(e,t,n){"use strict";n.r(t)},97422(e,t,n){"use strict";n.r(t),n.d(t,{Component:()=>ue,default:()=>ge,getComponent:()=>B});n(52675),n(89463),n(66412),n(2259),n(45700),n(78125),n(16280),n(76918),n(28706),n(2008),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(62062),n(44114),n(72712),n(94490),n(34782),n(15086),n(54554),n(13609),n(60739),n(89572),n(23288),n(94170),n(62010),n(33110),n(4731),n(36033),n(60479),n(2892),n(87220),n(25843),n(69085),n(59904),n(67945),n(84185),n(5506),n(83851),n(81278),n(40875),n(79432),n(63548),n(10287),n(26099),n(16034),n(3362),n(60825),n(40888),n(27495),n(90906),n(38781),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(21699),n(47764),n(71761),n(25440),n(5746),n(42762),n(73772),n(98992),n(54520),n(3949),n(81454),n(8872),n(37550),n(23500),n(62953),n(76031),n(3296),n(27208),n(48408),n(14603),n(47566),n(98721);var r=n(52891);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,n){return t=u(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}
vendor: 4,541 bytes, line 2
2function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=T(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function d(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(){var e=w(),t=e.m(h),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,v(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(h=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new O(e,t)},AsyncIterator:g,async:function(e,t,n,o,a){return(r(t)?b:m)(i(e),t,n,o,a)},keys:y,values:v}})()}function v(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(o(e)+" is not iterable")}function y(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function m(e,t,n,r,o){var i=b(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function b(e,t,n,r,o){return new g(w().w(e,t,n,r),o||Promise)}function g(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof O?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(k(g.prototype),k(g.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),k(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function w(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return k(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function d(n,r){for(u=n,c=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<h&&
2(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,u=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(k(t={},r,(function(){return this})),t),f=s.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,k(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=s,k(f,"constructor",s),k(s,"constructor",c),c.displayName="GeneratorFunction",k(s,o,"GeneratorFunction"),k(f),k(f,o,"Generator"),k(f,r,(function(){return this})),k(f,"toString",(function(){return"[object Generator]"})),(w=function(){return{w:i,m:p}})()}function k(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}k=function(e,t,n,r){function i(t,n){k(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},k(e,t,n,r)}function O(e,t){this.v=e,this.k=t}function S(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){S(i,r,o,a,u,"next",e)}function u(e){S(i,r,o,a,u,"throw",e)}a(void 0)}))}}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||T(e,t)||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 T(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function C(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var A=function(){return C((function e(t,n,r){var o=this;x(this,e),this.isResolved=!1,this.promise=t,this.promise.then((function(e){return o.isResolved=!0,e})),this.actions=n,this.updatedModels=r}),[{key:"containsOneOfActions",value:function(e){return this.actions.filter((function(t){return e.includes(t)})).length>0}},{key:"areAnyModelsUpdated",value:function(e){return this.updatedModels.filter((function(t){return e.includes(t)})).length>0}}])}(),N=function(){return C((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"same-origin";x(this,e),this.url=t,this.method=n,this.credentials=r}),[{key:"buildRequest",value:function(e,t,n,r,o,i){var a=this.url.split("?"),u=P(a,1)[0],c=P(a,2)[1],s=new URLSearchParams(c||""),l={};l.credentials=this.credentials,l.headers={Accept:"application/vnd.live-component+html","X-Requested-With":"XMLHttpRequest","X-Live-Url":window.location.pathname+window.location.search};var f=Object.entries(i).reduce((function(e,t){return e+t.length}),0),p=Object.keys(r).length>0;if(0===t.length&&0===f&&"get"===this.method&&this.willDataFitInUrl(JSON.stringify(e),JSON.stringify(n),s,JSON.stringify(r),JSON.stringify(o)))s.set("props",JSON.stringify(e)),s.set("updated",JSON.stringify(n)),Object.keys(o).length>0&&s.set("propsFromParent",JSON.stringify(o)),p&&s.set("children",JSON.stringify(r)),l.method="GET";else{l.method="POST";var d={props:e,updated:n};Object.keys(o).length>0&&(d.propsFromParent=o),p&&(d.children=r),t.length>0&&(1===t.length?(d.args=t[0].args,u+="/".concat(encodeURIComponent(t[0].name))):(u+="/_batch",d.actions=t));var h=new FormData;h.append("data",JSON.stringify(d));for(var v=0,y=Object.entries(i);v<y.length;v++)for(var m=P(y[v],2),b=m[0],g=m[1],w=g.length,k=0;k<w;++k)h.append(b,g[k]);l.body=h}var O=s.toString();
2return{url:"".concat(u).concat(O.length>0?"?".concat(O):""),fetchOptions:l}}},{key:"willDataFitInUrl",value:function(e,t,n,r,o){return(new URLSearchParams(e+t+r+o).toString()+n.toString()).length<1500}}])}(),I=function(){return C((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"same-origin";x(this,e),this.requestBuilder=new N(t,n,r)}),[{key:"makeRequest",value:function(e,t,n,r,o,i){var a=this.requestBuilder.buildRequest(e,t,n,r,o,i),u=a.url,c=a.fetchOptions;return new A(fetch(u,c),t.map((function(e){return e.name})),Object.keys(n))}}])}(),L=function(){return C((function e(t){x(this,e),this.response=t}),[{key:"getBody",value:(e=E(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.body){e.next=4;break}return e.next=3,this.response.text();case 3:this.body=e.sent;case 4:return e.abrupt("return",this.body);case 5:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"getLiveUrl",value:function(){return void 0===this.liveUrl&&(this.liveUrl=this.response.headers.get("X-Live-Url")),this.liveUrl}}]);var e}();function F(e){return e.innerHTML?e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML)):e.outerHTML}var R=new WeakMap,D=new Map,B=function(e){return new Promise((function(t,n){var r=0,o=setInterval((function(){var i=R.get(e);i&&(clearInterval(o),t(i)),++r>10&&(clearInterval(o),n(new Error("Component not found for element ".concat(F(e)))))}),5)}))};function H(e){var t=[];if(!e)return t;for(var n="",r="",o=[],i=[],a="action",u=function(){if(n)return n;if(0===t.length)throw new Error("Could not find any directives");return t[t.length-1].action},c=function(){t.push({action:n,args:o,modifiers:i,getString:function(){return e}}),n="",r="",o=[],i=[],a="action"},s=function(){o.push(r.trim()),r=""},l=function(){if(o.length>1)throw new Error('The modifier "'.concat(n,'()" does not support multiple arguments.'));i.push({name:n,value:o.length>0?o[0]:null}),n="",o=[],a="action"},f=0;f<e.length;f++){var p=e[f];switch(a){case"action":if("("===p){a="arguments";break}if(" "===p){n&&c();break}if("|"===p){l();break}n+=p;break;case"arguments":if(")"===p){s(),a="after_arguments";break}if(","===p){s();break}r+=p;break;case"after_arguments":if("|"===p){l();break}if(" "!==p)throw new Error("Missing space after ".concat(u(),"()"));c()}}switch(a){case"action":case"after_arguments":n&&c();break;default:throw new Error('Did you forget to add a closing ")" after "'.concat(n,'"?'))}return t}function G(e){var t=[];return e.forEach((function(e){var n;t.push.apply(t,d((n=e,n.replace(/[\s]+/g," ").trim()).split(" ")))})),t}function U(e){return e.replace(/\[]$/,"").split("[").map((function(e){return e.replace("]","")})).join(".")}function V(e,t){if(e instanceof HTMLInputElement){if("checkbox"===e.type){var n=K(e,!1);if(null!==n){var r=t.get(n.action);if(Array.isArray(r))return J(e,r);if(Object(r)===r)return J(e,Object.values(r))}return e.hasAttribute("value")?e.checked?e.getAttribute("value"):null:e.checked}return X(e)}return e instanceof HTMLSelectElement?e.multiple?Array.from(e.selectedOptions).map((function(e){return e.value})):e.value:e.hasAttribute("data-value")?e.dataset.value:"value"in e?e.value:e.hasAttribute("value")?e.getAttribute("value"):null}function q(e,t){if(e instanceof HTMLInputElement){if("file"===e.type)return;if("radio"===e.type)return void(e.checked=e.value==t);if("checkbox"===e.type)return void(Array.isArray(t)?e.checked=t.some((function(t){return t==e.value})):e.hasAttribute("value")?e.checked=e.value==t:e.checked=t)}if(e instanceof HTMLSelectElement){var n=[].concat(t).map((function(e){return"".concat(e)}));Array.from(e.options).forEach((function(e){e.selected=n.includes(e.value)}))}else t=void 0===t?"":t,e.value=t}function z(e){if(!e.dataset.model)return[];var t=H(e.dataset.model);return t.forEach((function(t){if(t.args.length>0)throw new Error('The data-model="'.concat(e.dataset.model,'" format is invalid: it does not support passing arguments to the model.'));t.action=U(t.action)})),t}function K(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=z(e);if(n.length>0)return n[0];if(e.getAttribute("name")){var r=e.closest("form");if(r&&"model"in r.dataset){var o=H(r.dataset.model||"*")[0];if(o.args.length>0)throw new Error('The data-model="'.concat(r.dataset.model,'" format is invali
2d: it does not support passing arguments to the model.'));return o.action=U(e.getAttribute("name")),o}}if(!t)return null;throw new Error('Cannot determine the model name for "'.concat(F(e),'": the element must either have a "data-model" (or "name" attribute living inside a <form data-model="*">).'))}function W(e,t){return t.element===e||!!t.element.contains(e)&&e.closest('[data-controller~="live"]')===t.element}function Y(e){var t=e.cloneNode(!0);if(!(t instanceof HTMLElement))throw new Error("Could not clone element");return t}var J=function(e,t){var n=d(t),r=X(e),o=t.indexOf(r);return e.checked?(-1===o&&n.push(r),n):(o>-1&&n.splice(o,1),n)},X=function(e){return e.dataset.value?e.dataset.value:e.value};var $=function(){return C((function e(){x(this,e),this.hooks=new Map}),[{key:"register",value:function(e,t){var n=this.hooks.get(e)||[];n.push(t),this.hooks.set(e,n)}},{key:"unregister",value:function(e,t){var n=this.hooks.get(e)||[],r=n.indexOf(t);-1!==r&&(n.splice(r,1),this.hooks.set(e,n))}},{key:"triggerHook",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.hooks.get(e)||[]).forEach((function(e){e.apply(void 0,n)}))}}])}(),Q=function(){var e=new Set,t={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:s,afterNodeAdded:s,beforeNodeMorphed:s,afterNodeMorphed:s,beforeNodeRemoved:s,afterNodeRemoved:s,beforeAttributeUpdated:s},head:{style:"merge",shouldPreserve:function(e){return"true"===e.getAttribute("im-preserve")},shouldReAppend:function(e){return"true"===e.getAttribute("im-re-append")},shouldRemove:s,afterHeadMorphed:s}};function n(e,t,r){if(r.head.block){var a=e.querySelector("head"),u=t.querySelector("head");if(a&&u){var s=c(u,a,r);return void Promise.all(s).then((function(){n(e,t,Object.assign(r,{head:{block:!1,ignore:!0}}))}))}}if("innerHTML"===r.morphStyle)return i(t,e,r),e.children;if("outerHTML"===r.morphStyle||null==r.morphStyle){var l=function(e,t,n){var r,o=r=e.firstChild,i=0;for(;r;){var a=m(r,t,n);a>i&&(o=r,i=a),r=r.nextSibling}return o}(t,e,r),f=null==l?void 0:l.previousSibling,p=null==l?void 0:l.nextSibling,d=o(e,l,r);return l?function(e,t,n){var r=[],o=[];for(;null!=e;)r.push(e),e=e.previousSibling;for(;r.length>0;){var i=r.pop();o.push(i),t.parentElement.insertBefore(i,t)}o.push(t);for(;null!=n;)r.push(n),o.push(n),n=n.nextSibling;for(;r.length>0;)t.parentElement.insertBefore(r.pop(),t.nextSibling);return o}(f,d,p):[]}throw"Do not understand how to morph style "+r.morphStyle}function r(e,t){return t.ignoreActiveValue&&e===document.activeElement}function o(e,t,n){if(!n.ignoreActive||e!==document.activeElement)return null==t?!1===n.callbacks.beforeNodeRemoved(e)?e:(e.remove(),n.callbacks.afterNodeRemoved(e),null):f(e,t)?(!1===n.callbacks.beforeNodeMorphed(e,t)||(e instanceof HTMLHeadElement&&n.head.ignore||(e instanceof HTMLHeadElement&&"morph"!==n.head.style?c(t,e,n):(!function(e,t,n){var o=e.nodeType;if(1===o){var i,c=e.attributes,s=t.attributes,l=p(c);try{for(l.s();!(i=l.n()).done;){var f=i.value;a(f.name,t,"update",n)||t.getAttribute(f.name)!==f.value&&t.setAttribute(f.name,f.value)}}catch(e){l.e(e)}finally{l.f()}for(var d=s.length-1;0<=d;d--){var h=s[d];a(h.name,t,"remove",n)||(e.hasAttribute(h.name)||t.removeAttribute(h.name))}}8!==o&&3!==o||t.nodeValue!==e.nodeValue&&(t.nodeValue=e.nodeValue);r(t,n)||function(e,t,n){if(e instanceof HTMLInputElement&&t instanceof HTMLInputElement&&"file"!==e.type){var r=e.value,o=t.value;u(e,t,"checked",n),u(e,t,"disabled",n),e.hasAttribute("value")?r!==o&&(a("value",t,"update",n)||(t.setAttribute("value",r),t.value=r)):a("value",t,"remove",n)||(t.value="",t.removeAttribute("value"))}else if(e instanceof HTMLOptionElement)u(e,t,"selected",n);else if(e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement){var i=e.value,c=t.value;if(a("value",t,"update",n))return;i!==c&&(t.value=i),t.firstChild&&t.firstChild.nodeValue!==i&&(t.firstChild.nodeValue=i)}}(e,t,n)}(t,e,n),r(e,n)||i(t,e,n))),n.callbacks.afterNodeMorphed(e,t)),e):!1===n.callbacks.beforeNodeRemoved(e)||!1===n.callbacks.beforeNodeAdded(t)?e:(e.parentElement.replaceChild(t,e),n.callbacks.afterNodeAdded(t),n.callbacks.afterNodeRemoved(e),t)}function i(e,t,n){for(var r,i=e.firstChild,a=t.firstChild;i;)if(i=(r=i).nextSibling,null!=a)if(l(r,a,n))o(a,r,n),a=a.nextSibling,k(n,r);else{var u=v(e,t,r,a,n);if(u)a=h(a,u,n),o(u,r,n),k(n,r);else{var c=y(e,t,r,a,n);if(c)a=h(a,c,n),o(c,r,n),k(n,r);else{if(!1===n.callbacks.beforeNodeAdded(r))return;t.insertBefore(r,a),n.callbacks.afterNodeAdded(r),k(n,r)}}}else{if(!1===n.callbacks.beforeNodeAdded(r))return;t.appendChild(r),n.callbacks.afterNodeAdded(r),k(n,r)}for(;null!==a;){var s=a;a=a.nextSibling,b(s,n)}}function a(e,t,n,r){return!("value"!==e||!r.ignoreActiveValue||t!==document.activeElement)||!1===r.callbacks.beforeAttributeUpdated(e,t,n)}function u(e,t,n,r){if(e[n]!==t[n]){var o=a(n,t,"update",r);o||(t[n]=e[n]),e[n]?o||t.setAttribute(n,e[n]):a(n,t,"remove",r)||t.removeAttribute(n)}}
2function c(e,t,n){var r,o=[],i=[],a=[],u=[],c=n.head.style,s=new Map,l=p(e.children);try{for(l.s();!(r=l.n()).done;){var f=r.value;s.set(f.outerHTML,f)}}catch(e){l.e(e)}finally{l.f()}var h,v=p(t.children);try{for(v.s();!(h=v.n()).done;){var y=h.value,m=s.has(y.outerHTML),b=n.head.shouldReAppend(y),g=n.head.shouldPreserve(y);m||g?b?i.push(y):(s.delete(y.outerHTML),a.push(y)):"append"===c?b&&(i.push(y),u.push(y)):!1!==n.head.shouldRemove(y)&&i.push(y)}}catch(e){v.e(e)}finally{v.f()}u.push.apply(u,d(s.values()));for(var w=[],k=function(){var e=S[O],r=document.createRange().createContextualFragment(e.outerHTML).firstChild;if(!1!==n.callbacks.beforeNodeAdded(r)){if(r.href||r.src){var i=null,a=new Promise((function(e){i=e}));r.addEventListener("load",(function(){i()})),w.push(a)}t.appendChild(r),n.callbacks.afterNodeAdded(r),o.push(r)}},O=0,S=u;O<S.length;O++)k();for(var E=0,P=i;E<P.length;E++){var T=P[E];!1!==n.callbacks.beforeNodeRemoved(T)&&(t.removeChild(T),n.callbacks.afterNodeRemoved(T))}return n.head.afterHeadMorphed(t,{added:o,kept:a,removed:i}),w}function s(){}function l(e,t,n){return null!=e&&null!=t&&(e.nodeType===t.nodeType&&e.tagName===t.tagName&&(""!==e.id&&e.id===t.id||O(n,e,t)>0))}function f(e,t){return null!=e&&null!=t&&(e.nodeType===t.nodeType&&e.tagName===t.tagName)}function h(e,t,n){for(;e!==t;){var r=e;e=e.nextSibling,b(r,n)}return k(n,t),t.nextSibling}function v(e,t,n,r,o){var i=O(o,n,t);if(i>0)for(var a=r,u=0;null!=a;){if(l(n,a,o))return a;if((u+=O(o,a,e))>i)return null;a=a.nextSibling}return null}function y(e,t,n,r,o){for(var i=r,a=n.nextSibling,u=0;null!=i;){if(O(o,i,e)>0)return null;if(f(n,i))return i;if(f(a,i)&&(u++,a=a.nextSibling,u>=2))return null;i=i.nextSibling}return i}function m(e,t,n){return f(e,t)?.5+O(n,e,t):0}function b(e,t){k(t,e),!1!==t.callbacks.beforeNodeRemoved(e)&&(e.remove(),t.callbacks.afterNodeRemoved(e))}function g(e,t){return!e.deadIds.has(t)}function w(t,n,r){return(t.idMap.get(r)||e).has(n)}function k(t,n){var r,o=p(t.idMap.get(n)||e);try{for(o.s();!(r=o.n()).done;){var i=r.value;t.deadIds.add(i)}}catch(e){o.e(e)}finally{o.f()}}function O(t,n,r){var o,i=0,a=p(t.idMap.get(n)||e);try{for(a.s();!(o=a.n()).done;){var u=o.value;g(t,u)&&w(t,u,r)&&++i}}catch(e){a.e(e)}finally{a.f()}return i}function S(e,t){var n,r=e.parentElement,o=p(e.querySelectorAll("[id]"));try{for(o.s();!(n=o.n()).done;)for(var i=n.value,a=i;a!==r&&null!=a;){var u=t.get(a);null==u&&(u=new Set,t.set(a,u)),u.add(i.id),a=a.parentElement}}catch(e){o.e(e)}finally{o.f()}}function E(e,t){var n=new Map;return S(e,n),S(t,n),n}return{morph:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof Document&&(e=e.documentElement),"string"==typeof r&&(r=function(e){var t=new DOMParser,n=e.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(n.match(/<\/html>/)||n.match(/<\/head>/)||n.match(/<\/body>/)){var r=t.parseFromString(e,"text/html");if(n.match(/<\/html>/))return r.generatedByIdiomorph=!0,r;var o=r.firstChild;return o?(o.generatedByIdiomorph=!0,o):null}var i=t.parseFromString("<body><template>"+e+"</template></body>","text/html").body.querySelector("template").content;return i.generatedByIdiomorph=!0,i}(r));var i=function(e){if(null==e)return document.createElement("div");if(e.generatedByIdiomorph)return e;if(e instanceof Node){var t=document.createElement("div");return t.append(e),t}for(var n=document.createElement("div"),r=0,o=d(e);r<o.length;r++){var i=o[r];n.append(i)}return n}(r),a=function(e,n,r){return r=function(e){var n={};return Object.assign(n,t),Object.assign(n,e),n.callbacks={},Object.assign(n.callbacks,t.callbacks),Object.assign(n.callbacks,e.callbacks),n.head={},Object.assign(n.head,t.head),Object.assign(n.head,e.head),n}(r),{target:e,newContent:n,config:r,morphStyle:r.morphStyle,ignoreActive:r.ignoreActive,ignoreActiveValue:r.ignoreActiveValue,idMap:E(e,n),deadIds:new Set,callbacks:r.callbacks,head:r.head}}(e,i,o);return n(e,i,a)},defaults:t}}();function Z(e){e instanceof HTMLInputElement&&"file"===e.type||("value"in e?e.setAttribute("value",e.value):e.hasAttribute("value")&&e.setAttribute("value","")),Array.from(e.children).forEac
2h((function(e){Z(e)}))}var ee=function(){return C((function e(){x(this,e),this.changedItems=new Map,this.removedItems=new Map}),[{key:"setItem",value:function(e,t,n){if(this.removedItems.has(e)){var r=this.removedItems.get(e);if(this.removedItems.delete(e),r.original===t)return}if(this.changedItems.has(e)){var o=this.changedItems.get(e);return o.original===t?void this.changedItems.delete(e):void this.changedItems.set(e,{original:o.original,new:t})}this.changedItems.set(e,{original:n,new:t})}},{key:"removeItem",value:function(e,t){var n=t;this.changedItems.has(e)&&(n=this.changedItems.get(e).original,this.changedItems.delete(e),null===n)||this.removedItems.has(e)||this.removedItems.set(e,{original:n})}},{key:"getChangedItems",value:function(){return Array.from(this.changedItems,(function(e){var t=P(e,2);return{name:t[0],value:t[1].new}}))}},{key:"getRemovedItems",value:function(){return Array.from(this.removedItems.keys())}},{key:"isEmpty",value:function(){return 0===this.changedItems.size&&0===this.removedItems.size}}])}(),te=function(){return C((function e(){x(this,e),this.addedClasses=new Set,this.removedClasses=new Set,this.styleChanges=new ee,this.attributeChanges=new ee}),[{key:"addClass",value:function(e){this.removedClasses.delete(e)||this.addedClasses.add(e)}},{key:"removeClass",value:function(e){this.addedClasses.delete(e)||this.removedClasses.add(e)}},{key:"addStyle",value:function(e,t,n){this.styleChanges.setItem(e,t,n)}},{key:"removeStyle",value:function(e,t){this.styleChanges.removeItem(e,t)}},{key:"addAttribute",value:function(e,t,n){this.attributeChanges.setItem(e,t,n)}},{key:"removeAttribute",value:function(e,t){this.attributeChanges.removeItem(e,t)}},{key:"getAddedClasses",value:function(){return d(this.addedClasses)}},{key:"getRemovedClasses",value:function(){return d(this.removedClasses)}},{key:"getChangedStyles",value:function(){return this.styleChanges.getChangedItems()}},{key:"getRemovedStyles",value:function(){return this.styleChanges.getRemovedItems()}},{key:"getChangedAttributes",value:function(){return this.attributeChanges.getChangedItems()}},{key:"getRemovedAttributes",value:function(){return this.attributeChanges.getRemovedItems()}},{key:"applyToElement",value:function(e){var t,n;(t=e.classList).add.apply(t,d(this.addedClasses)),(n=e.classList).remove.apply(n,d(this.removedClasses)),this.styleChanges.getChangedItems().forEac
2h((function(t){/!\s*important/i.test(t.value)?e.style.setProperty(t.name,t.value.replace(/!\s*important/i,"").trim(),"important"):e.style.setProperty(t.name,t.value)})),this.styleChanges.getRemovedItems().forEach((function(t){e.style.removeProperty(t)})),this.attributeChanges.getChangedItems().forEach((function(t){e.setAttribute(t.name,t.value)})),this.attributeChanges.getRemovedItems().forEach((function(t){e.removeAttribute(t)}))}},{key:"isEmpty",value:function(){return 0===this.addedClasses.size&&0===this.removedClasses.size&&this.styleChanges.isEmpty()&&this.attributeChanges.isEmpty()}}])}(),ne=function(){return C((function e(t,n){x(this,e),this.changedElements=new WeakMap,this.changedElementsCount=0,this.addedElements=[],this.removedElements=[],this.isStarted=!1,this.element=t,this.shouldTrackChangeCallback=n,this.mutationObserver=new MutationObserver(this.onMutations.bind(this))}),[{key:"start",value:function(){this.isStarted||(this.mutationObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0}),this.isStarted=!0)}},{key:"stop",value:function(){this.isStarted&&(this.mutationObserver.disconnect(),this.isStarted=!1)}},{key:"getChangedElement",value:function(e){return this.changedElements.has(e)?this.changedElements.get(e):null}},{key:"getAddedElements",value:function(){return this.addedElements}},{key:"wasElementAdded",value:function(e){return this.addedElements.includes(e)}},{key:"handlePendingChanges",value:function(){this.onMutations(this.mutationObserver.takeRecords())}},{key:"onMutations",value:function(e){var t,n=new WeakMap,r=p(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.target;if(this.shouldTrackChangeCallback(i)&&!this.isElementAddedByTranslation(i)){var a,u=!1,c=p(this.addedElements);try{for(c.s();!(a=c.n()).done;){if(a.value.contains(i)){u=!0;break}}}catch(e){c.e(e)}finally{c.f()}if(!u)switch(o.type){case"childList":this.handleChildListMutation(o);break;case"attributes":n.has(i)||n.set(i,[]),n.get(i).includes(o.attributeName)||(this.handleAttributeMutation(o),n.set(i,[].concat(d(n.get(i)),[o.attributeName])))}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"handleChildListMutation",value:function(e){var t=this;e.addedNodes.forEach((function(e){e instanceof Element&&(t.removedElements.includes(e)?t.removedElements.splice(t.removedElements.indexOf(e),1):t.isElementAddedByTranslation(e)||t.addedElements.push(e))})),e.removedNodes.forEach((function(e){e instanceof Element&&(t.addedElements.includes(e)?t.addedElements.splice(t.addedElements.indexOf(e),1):t.removedElements.push(e))}))}},{key:"handleAttributeMutation",value:function(e){var t=e.target;this.changedElements.has(t)||(this.changedElements.set(t,new te),this.changedElementsCount++);var n=this.changedElements.get(t);switch(e.attributeName){case"class":this.handleClassAttributeMutation(e,n);break;case"style":this.handleStyleAttributeMutation(e,n);break;default:this.handleGenericAttributeMutation(e,n)}n.isEmpty()&&(this.changedElements.delete(t),this.changedElementsCount--)}},{key:"handleClassAttributeMutation",value:function(e,t){var n=e.target,r=(e.oldValue||"").match(/((?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/g)||[],o=[].slice.call(n.classList),i=o.filter((function(e){return!r.includes(e)})),a=r.filter((function(e){return!o.includes(e)}));i.forEach((function(e){t.addClass(e)})),a.forEach((function(e){t.removeClass(e)}))}},{key:"handleStyleAttributeMutation",value:function(e,t){var n=e.target,r=e.oldValue||"",o=this.extractStyles(r),i=n.getAttribute("style")||"",a=this.extractStyles(i),u=Object.keys(a).filter((function(e){return void 0===o[e]||o[e]!==a[e]})),c=Object.keys(o).filter((function(e){return!a[e]}));u.forEach((function(e){t.addStyle(e,a[e],void 0===o[e]?null:o[e])})),c.forEach((function(e){t.removeStyle(e,o[e])}))}},{key:"handleGenericAttributeMutation",value:function(e,t){var n=e.attributeName,r=e.target,o=e.oldValue,i=r.getAttribute(n);if(o===n&&(o=""),i===n&&(i=""),r.hasAttribute(n))i!==o&&t.addAttribute(n,r.getAttribute(n),e.oldValue);else{if(null===o)return;t.removeAttribute(n,e.oldValue)}}},{key:"extractStyles",value:function(e){var t={};return e.split(";").forEach((function(e){var n=e.split(":");if(1!==n.length){var r=n[0].trim();t[r]=n.slice(1).join(":").trim()}})),t}},{key:"isElementAddedByTranslation",value:function(e){return"FONT"===e.tagName&&"vertical-align: inherit;"===e.getAttribute("style")}}])}(),re=function(){return C((function e(t,n){var r=this;x(this,e),this.elementEventListeners=[{event:"input",callback:function(e){return r.handleInputEvent(e)}}],this.component=t,this.modelElementResolver=n,this.unsyncedInputs=new oe}),[{key:"activate",value:function(){var e=this;
2this.elementEventListeners.forEach((function(t){var n=t.event,r=t.callback;e.component.element.addEventListener(n,r)}))}},{key:"deactivate",value:function(){var e=this;this.elementEventListeners.forEach((function(t){var n=t.event,r=t.callback;e.component.element.removeEventListener(n,r)}))}},{key:"markModelAsSynced",value:function(e){this.unsyncedInputs.markModelAsSynced(e)}},{key:"handleInputEvent",value:function(e){var t=e.target;t&&this.updateModelFromElement(t)}},{key:"updateModelFromElement",value:function(e){if(W(e,this.component)){if(!(e instanceof HTMLElement))throw new Error("Could not update model for non HTMLElement");var t=this.modelElementResolver.getModelName(e);this.unsyncedInputs.add(e,t)}}},{key:"getUnsyncedInputs",value:function(){return this.unsyncedInputs.allUnsyncedInputs()}},{key:"getUnsyncedModels",value:function(){return Array.from(this.unsyncedInputs.getUnsyncedModelNames())}},{key:"resetUnsyncedFields",value:function(){this.unsyncedInputs.resetUnsyncedFields()}}])}(),oe=function(){return C((function e(){x(this,e),this.unsyncedNonModelFields=[],this.unsyncedModelNames=[],this.unsyncedModelFields=new Map}),[{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this.unsyncedModelFields.set(t,e),void(this.unsyncedModelNames.includes(t)||this.unsyncedModelNames.push(t));this.unsyncedNonModelFields.push(e)}},{key:"resetUnsyncedFields",value:function(){var e=this;this.unsyncedModelFields.forEach((function(t,n){e.unsyncedModelNames.includes(n)||e.unsyncedModelFields.delete(n)}))}},{key:"allUnsyncedInputs",value:function(){return[].concat(d(this.unsyncedNonModelFields),d(this.unsyncedModelFields.values()))}},{key:"markModelAsSynced",value:function(e){var t=this.unsyncedModelNames.indexOf(e);-1!==t&&this.unsyncedModelNames.splice(t,1)}},{key:"getUnsyncedModelNames",value:function(){return this.unsyncedModelNames}}])}();var ie=function(e,t){for(var n=JSON.parse(JSON.stringify(e)),r=n,o=t.split("."),i=0;i<o.length-1;i++)r=r[o[i]];return{currentLevelData:r,finalData:n,finalKey:o[o.length-1],parts:o}},ae=function(){return C((function e(t){x(this,e),this.props={},this.dirtyProps={},this.pendingProps={},this.updatedPropsFromParent={},this.props=t}),[{key:"get",value:function(e){var t=U(e);return void 0!==this.dirtyProps[t]?this.dirtyProps[t]:void 0!==this.pendingProps[t]?this.pendingProps[t]:void 0!==this.props[t]?this.props[t]:function(e,t){var n=ie(e,t),r=n.currentLevelData,o=n.finalKey;if(void 0!==r)return r[o]}(this.props,t)}},{key:"has",value:function(e){return void 0!==this.get(e)}},{key:"set",value:function(e,t){var n=U(e);return this.get(n)!==t&&(this.dirtyProps[n]=t,!0)}},{key:"getOriginalProps",value:function(){return l({},this.props)}},{key:"getDirtyProps",value:function(){return l({},this.dirtyProps)}},{key:"getUpdatedPropsFromParent",value:function(){return l({},this.updatedPropsFromParent)}},{key:"flushDirtyPropsToPending",value:function(){this.pendingProps=l({},this.dirtyProps),this.dirtyProps={}}},{key:"reinitializeAllProps",value:function(e){this.props=e,this.updatedPropsFromParent={},this.pendingProps={}}},{key:"pushPendingPropsBackToDirty",value:function(){this.dirtyProps=l(l({},this.pendingProps),this.dirtyProps),this.pendingProps={}}},{key:"storeNewPropsFromParent",value:function(e){for(var t=!1,n=0,r=Object.entries(e);n<r.length;n++){var o=P(r[n],2),i=o[0],a=o[1];this.get(i)!==a&&(t=!0)}return t&&(this.updatedPropsFromParent=e),t}}])}(),ue=function(){return C((function e(t,n,r,o,i,a,u){var c=this;x(this,e),this.fingerprint="",this.defaultDebounce=150,this.backendRequest=null,this.pendingActions=[],this.pendingFiles={},this.isRequestPending=!1,this.requestDebounceTimeout=null,this.element=t,this.name=n,this.backend=a,this.elementDriver=u,this.id=i,this.listeners=new Map,o.forEach((function(e){var t;c.listeners.has(e.event)||c.listeners.set(e.event,[]),null===(t=c.listeners.get(e.event))||void 0===t||t.push(e.action)})),this.valueStore=new ae(r),this.unsyncedInputsTracker=new re(this,u),this.hooks=new $,this.resetPromise(),this.externalMutationTracker=new ne(this.element,(function(e){return W(e,c)})),this.externalMutationTracker.start()}),[{key:"addPlugin",value:function(e){e.attachToComponent(this)}},{key:"connect",value:function(){var e;e=this,R.set(e.element,e),D.set(e,e.name),this.hooks.triggerHook("connect",this),this.unsyncedInputsTracker.activate(),this.externalMutationTracker.start()}},{key:"disconnect",value:function(){var e;e=this,R.delete(e.element),D.delete(e),this.hooks.triggerHook("disconnect",this),this.clearRequestDebounceTimeout(),this.unsyncedInputsTracker.deactivate(),this.externalMutationTracker.stop()}},{key:"on",value:function(e,t){this.hooks.register(e,t)}},{key:"off",value:function(e,t){this.hooks.unregister(e,t)}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.nextRequestPromise,i=U(e);if(!this.valueStore.has(i))throw new Error('Invalid model name "'.concat(e,'".'));var a=this.valueStore.set(i,t);return this.hooks.triggerHook("model:set",e,t,this),this.unsyncedInputsTracker.markModelAsSynced(i),n&&a&&this.debouncedStartRequest
2(r),o}},{key:"getData",value:function(e){var t=U(e);if(!this.valueStore.has(t))throw new Error('Invalid model "'.concat(e,'".'));return this.valueStore.get(t)}},{key:"action",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.nextRequestPromise;return this.pendingActions.push({name:e,args:t}),this.debouncedStartRequest(n),r}},{key:"files",value:function(e,t){this.pendingFiles[e]=t}},{key:"render",value:function(){var e=this.nextRequestPromise;return this.tryStartingRequest(),e}},{key:"getUnsyncedModels",value:function(){return this.unsyncedInputsTracker.getUnsyncedModels()}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.performEmit(e,t,!1,n)}},{key:"emitUp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.performEmit(e,t,!0,n)}},{key:"emitSelf",value:function(e,t){this.doEmit(e,t)}},{key:"performEmit",value:function(e,t,n,r){var o,i,a,u;(o=this,i=n,a=r,u=[],D.forEach((function(e,t){(!i||o!==t&&t.element.contains(o.element))&&(a&&e!==a||u.push(t))})),u).forEach((function(n){n.doEmit(e,t)}))}},{key:"doEmit",value:function(e,t){var n=this;this.listeners.has(e)&&(this.listeners.get(e)||[]).forEach((function(e){n.action(e,t,1)}))}},{key:"isTurboEnabled",value:function(){return"undefined"!=typeof Turbo&&!this.element.closest('[data-turbo="false"]')}},{key:"tryStartingRequest",value:function(){this.backendRequest?this.isRequestPending=!0:this.performRequest()}},{key:"performRequest",value:function(){var e=this,t=this.nextRequestPromiseResolve;this.resetPromise(),this.unsyncedInputsTracker.resetUnsyncedFields();for(var n={},r=0,o=Object.entries(this.pendingFiles);r<o.length;r++){var i=P(o[r],2),a=i[0],u=i[1];u.files&&(n[a]=u.files)}var c=this.pendingActions.slice(0,50),s=this.pendingActions.slice(50),l={props:this.valueStore.getOriginalProps(),actions:c,updated:this.valueStore.getDirtyProps(),children:{},updatedPropsFromParent:this.valueStore.getUpdatedPropsFromParent(),files:n};this.hooks.triggerHook("request:started",l),this.backendRequest=this.backend.makeRequest(l.props,l.actions,l.updated,l.children,l.updatedPropsFromParent,l.files),this.hooks.triggerHook("loading.state:started",this.element,this.backendRequest),this.pendingActions=s,this.valueStore.flushDirtyPropsToPending(),this.isRequestPending=s.length>0,this.backendRequest.promise.then(function(){var n=E(h().mark((function n(r){var o,i,a,u,c,s,l,f;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=new L(r),n.next=3,i.getBody();case 3:for(a=n.sent,u=0,c=Object.values(e.pendingFiles);u<c.length;u++)c[u].value="";if(s=i.response.headers,null!==(o=s.get("Content-Type"))&&void 0!==o&&o.includes("application/vnd.live-component+html")||s.get("X-Live-Redirect")){n.next=14;break}return l={displayError:!0},e.valueStore.pushPendingPropsBackToDirty(),e.hooks.triggerHook("response:error",i,l),l.displayError&&e.renderError(a),e.backendRequest=null,t(i),n.abrupt("return",r);case 14:return(f=i.getLiveUrl())&&history.replaceState(history.state,"",new URL(f+window.location.hash,window.location.origin)),e.processRerender(a,i),e.backendRequest=null,t(i),e.isRequestPending&&(e.isRequestPending=!1,e.performRequest()),n.abrupt("return",r);case 21:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}},{key:"processRerender",value:function(e,t){var n=this,r={shouldRender:!0};if(this.hooks.triggerHook("render:started",e,t,r),r.shouldRender)if(t.response.headers.get("Location"))this.isTurboEnabled()?Turbo.visit(t.response.headers.get("Location")):window.location.href=t.response.headers.get("Location")||"";else{this.hooks.triggerHook("loading.state:finished",this.element);var o,i,a,u,c,s,l,f,p,d={};Object.keys(this.valueStore.getDirtyProps()).forEach((function(e){d[e]=n.valueStore.get(e)}));try{if(o=function(e){var t=document.createElement("template");if(e=e.trim(),t.innerHTML=e,t.content.childElementCount>1)throw new Error("Component HTML contains ".concat(t.content.childElementCount," elements, but only 1 root element is allowed."));var n=t.content.firstElementChild;if(!n)throw new Error("Child not found");if(!(n instanceof HTMLElement))throw new Error("Created element is not an HTMLElement: ".concat(e.trim()));return n}(e),!o.matches("[data-controller~=live]"))throw new Error("A live component template must contain a single root controller element.")}catch(e){throw console.error("There was a problem with the '".concat(this.name,"' component HTML returned:"),{id:this.id}),e}this.externalMutationTracker.handlePendingChanges(),this.externalMutationTracker.stop(),i=this.element,a=o,u=this.unsyncedInputsTracker.getUnsyncedInputs(),c=function(e){return V(e,n.valueStore)},s=this.externalMutationTracker,l=[],f=new Map,p=function(e,t){var n=f.get(e);if(!(n instanceof HTMLElement))throw new Error("Original element with id ".concat(e," not found"));if(l.push(e),!t)return null;var r=Y(n);return n.replaceWith(r),r},a.querySelectorAll("[data-live-preserve]").forEach((function(e){var t=e.id;if(!t)throw new Error("The data-live-preserve attribute requires an id attribute to be set on the element");var n=i.querySelector("#".concat(t));if(!(n instanceof HTMLElement))throw new Error('The element with id "'.concat(t,'" was not found in the original HTML'));e.removeAttribute("data-live-preserve"),f.set(t,n),function(e,t){for(var n=0;n<e.attributes.length;n++){var r=e.attributes[n];t.setAttribute(r.name,r.value)}}(e,n)})),Q.morph(i,a,{callbacks:{beforeNodeMorphed:function(e,t){var n;if(!(e instanceof Element&&t instanceof Element))return!0;
2if(e===i)return!0;if(e.id&&f.has(e.id)){if(e.id===t.id)return!1;var r=p(e.id,!0);if(!r)throw new Error("missing clone");return Q.morph(r,t),!1}if(e instanceof HTMLElement&&t instanceof HTMLElement){if(void 0!==e.__x){if(!window.Alpine)throw new Error("Unable to access Alpine.js though the global window.Alpine variable. Please make sure Alpine.js is loaded before Symfony UX LiveComponent.");if("function"!=typeof window.Alpine.morph)throw new Error("Unable to access Alpine.js morph function. Please make sure the Alpine.js Morph plugin is installed and loaded, see https://alpinejs.dev/plugins/morph for more information.");window.Alpine.morph(e.__x,t)}if(s.wasElementAdded(e))return e.insertAdjacentElement("afterend",t),!1;u.includes(e)&&q(t,c(e)),e===document.activeElement&&e!==document.body&&null!==K(e,!1)&&q(t,c(e));var o=s.getChangedElement(e);if(o&&o.applyToElement(t),"OPTION"!==e.nodeName.toUpperCase()&&e.isEqualNode(t)){var a=Y(e);Z(a);var l=Y(t);if(Z(l),a.isEqualNode(l))return!1}}return e.hasAttribute("data-skip-morph")||e.id&&e.id!==t.id?(e.innerHTML=t.innerHTML,!0):!(null!==(n=e.parentElement)&&void 0!==n&&n.hasAttribute("data-skip-morph")||e.hasAttribute("data-live-ignore"))},beforeNodeRemoved:function(e){return!(e instanceof HTMLElement&&(e.id&&f.has(e.id)?(p(e.id,!1),0
2):s.wasElementAdded(e)||e.hasAttribute("data-live-ignore")))}}}),l.forEach((function(e){var t=i.querySelector("#".concat(e)),n=f.get(e);if(!(t instanceof HTMLElement&&n instanceof HTMLElement))throw new Error("Missing elements.");t.replaceWith(n)})),this.externalMutationTracker.start();var h=this.elementDriver.getComponentProps();this.valueStore.reinitializeAllProps(h);var v=this.elementDriver.getEventsToEmit(),y=this.elementDriver.getBrowserEventsToDispatch();Object.keys(d).forEach((function(e){n.valueStore.set(e,d[e])})),v.forEach((function(e){var t=e.event,r=e.data,o=e.target,i=e.componentName;"up"!==o?"self"!==o?n.emit(t,r,i):n.emitSelf(t,r):n.emitUp(t,r,i)})),y.forEach((function(e){var t=e.event,r=e.payload;n.element.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0}))})),this.hooks.triggerHook("render:finished",this)}}},{key:"calculateDebounce",value:function(e){return!0===e?this.defaultDebounce:!1===e?0:e}},{key:"clearRequestDebounceTimeout",value:function(){this.requestDebounceTimeout&&(clearTimeout(this.requestDebounceTimeout),this.requestDebounceTimeout=null)}},{key:"debouncedStartRequest",value:function(e){var t=this;this.clearRequestDebounceTimeout(),this.requestDebounceTimeout=window.setTimeout((function(){t.render()}),this.calculateDebounce(e))}},{key:"renderError",value:function(e){var t=document.getElementById("live-component-error");t?t.innerHTML="":((t=document.createElement("div")).id="live-component-error",t.style.padding="50px",t.style.backgroundColor="rgba(0, 0, 0, .5)",t.style.zIndex="100000",t.style.position="fixed",t.style.top="0px",t.style.bottom="0px",t.style.left="0px",t.style.right="0px",t.style.display="flex",t.style.flexDirection="column");var n=document.createElement("iframe");n.style.borderRadius="5px",n.style.flexGrow="1",t.appendChild(n),document.body.prepend(t),document.body.style.overflow="hidden",n.contentWindow&&(n.contentWindow.document.open(),n.contentWindow.document.write(e),n.contentWindow.document.close());var r=function(e){e&&(e.outerHTML=""),document.body.style.overflow="visible"};t.addEventListener("click",(function(){return r(t)})),t.setAttribute("tabindex","0"),t.addEventListener("keydown",(function(e){"Escape"===e.key&&r(t)})),t.focus()}},{key:"resetPromise",value:function(){var e=this;this.nextRequestPromise=new Promise((function(t){e.nextRequestPromiseResolve=t}))}},{key:"_updateFromParentProps",value:function(e){this.valueStore.storeNewPropsFromParent(e)&&this.render()}}])}();var ce=function(){return C((function e(t){x(this,e),this.controller=t}),[{key:"getModelName",value:function(e){var t=K(e,!1);return t?t.action:null}},{key:"getComponentProps",value:function(){return this.controller.propsValue}},{key:"getEventsToEmit",value:function(){return this.controller.eventsToEmitValue}},{key:"getBrowserEventsToDispatch",value:function(){return this.controller.eventsToDispatchValue}}])}();function se(e){var t=!0,n=null,r=!1,o=null,i=null,a=null,u=null;e.modifiers.forEach((function(c){switch(c.name){case"on":if(!c.value)throw new Error('The "on" modifier in '.concat(e.getString()," requires a value - e.g. on(change)."));if(!["input","change"].includes(c.value))throw new Error('The "on" modifier in '.concat(e.getString(),' only accepts the arguments "input" or "change".'));n=c.value;break;case"norender":t=!1;break;case"debounce":r=!c.value||Number.parseInt(c.value);break;case"min_length":o=c.value?Number.parseInt(c.value):null;break;case"max_length":i=c.value?Number.parseInt(c.value):null;break;case"min_value":a=c.value?Number.parseFloat(c.value):null;break;case"max_value":u=c.value?Number.parseFloat(c.value):null;break;default:throw new Error('Unknown modifier "'.concat(c.name,'" in data-model="').concat(e.getString(),'".'))}}));var c=P(e.action.split(":"),2);return{modelName:c[0],innerModelName:c[1]||null,shouldRender:t,debounce:r,targetEventName:n,minLength:o,maxLength:i,minValue:a,maxValue:u}}var le=function(){return C((function e(t){x(this,e),this.parentModelBindings=[],this.component=t,this.parentModelBindings=z(this.component.element).map(se)}),[{key:"attachToComponent",value:function(e){var t=this;e.on("request:started",(function(e){e.children=t.getChildrenFingerprints()})),e.on("model:set",(function(e,n){t.notifyParentModelChange(e,n)}))}},{key:"getChildrenFingerprints",value:function(){var e={};
2return this.getChildren().forEach((function(t){if(!t.id)throw new Error("missing id");e[t.id]={fingerprint:t.fingerprint,tag:t.element.tagName.toLowerCase()}})),e}},{key:"notifyParentModelChange",value:function(e,t){var n=function(e){for(var t=e.element.parentElement;t;){var n=R.get(t);if(n)return n;t=t.parentElement}return null}(this.component);n&&this.parentModelBindings.forEach((function(r){(r.innerModelName||"value")===e&&n.set(r.modelName,t,r.shouldRender,r.debounce)}))}},{key:"getChildren",value:function(){return e=this.component,t=[],D.forEach((function(n,r){if(e!==r&&e.element.contains(r.element)){var o=!1;D.forEach((function(e,t){o||t!==r&&t.element.contains(r.element)&&(o=!0)})),t.push(r)}})),t;var e,t}}])}(),fe=function(){return C((function e(){x(this,e),this.intersectionObserver=null}),[{key:"attachToComponent",value:function(e){var t,n=this;"lazy"===(null===(t=e.element.attributes.getNamedItem("loading"))||void 0===t?void 0:t.value)&&(e.on("connect",(function(){n.getObserver().observe(e.element)})),e.on("disconnect",(function(){var t;null===(t=n.intersectionObserver)||void 0===t||t.unobserve(e.element)})))}},{key:"getObserver",value:function(){return this.intersectionObserver||(this.intersectionObserver=new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(e.target.dispatchEvent(new CustomEvent("live:appear")),t.unobserve(e.target))}))}))),this.intersectionObserver}}])}(),pe=function(){return C((function e(){x(this,e)}),[{key:"attachToComponent",value:function(e){var t=this;e.on("loading.state:started",(function(n,r){t.startLoading(e,n,r)})),e.on("loading.state:finished",(function(n){t.finishLoading(e,n)})),this.finishLoading(e,e.element)}},{key:"startLoading",value:function(e,t,n){this.handleLoadingToggle(e,!0,t,n)}},{key:"finishLoading",value:function(e,t){this.handleLoadingToggle(e,!1,t,null)}},{key:"handleLoadingToggle",value:function(e,t,n,r){var o=this;t?this.addAttributes(n,["busy"]):this.removeAttributes(n,["busy"]),this.getLoadingDirectives(e,n).forEach((function(e){var n=e.element,i=e.directives;t?o.addAttributes(n,["data-live-is-loading"]):o.removeAttributes(n,["data-live-is-loading"]),i.forEach((function(e){o.handleLoadingDirective(n,t,e,r)}))}))}},{key:"handleLoadingDirective",value:function(e,t,n,r){var o=this,i=de(n.action,t),a=[],u=[],c=0,s=new Map;if(s.set("delay",(function(e){t&&(c=e.value?Number.parseInt(e.value):200)})),s.set("action",(function(e){if(!e.value)throw new Error('The "action" in data-loading must have an action name - e.g. action(foo). It\'s missing for "'.concat(n.getString(),'"'));a.push(e.value)})),s.set("model",(function(e){if(!e.value)throw new Error('The "model" in data-loading must have an action name - e.g. model(foo). It\'s missing for "'.concat(n.getString(),'"'));u.push(e.value)})),n.modifiers.forEach((function(e){if(!s.has(e.name))throw new Error('Unknown modifier "'.concat(e.name,'" used in data-loading="').concat(n.getString(),'". Available modifiers are: ').concat(Array.from(s.keys()).join(", "),"."));var t;(null!==(t=s.get(e.name))&&void 0!==t?t:function(){})(e)})),(!(t&&a.length>0&&r)||r.containsOneOfActions(a))&&(!(t&&u.length>0&&r)||r.areAnyModelsUpdated(u))){var l;switch(i){case"show":l=function(){return o.showElement(e)};break;case"hide":l=function(){return o.hideElement(e)};break;case"addClass":l=function(){return o.addClass(e,n.args)};break;case"removeClass":l=function(){return o.removeClass(e,n.args)};break;case"addAttribute":l=function(){return o.addAttributes(e,n.args)};break;case"removeAttribute":l=function(){return o.removeAttributes(e,n.args)};break;default:throw new Error('Unknown data-loading action "'.concat(i,'"'))}c?window.setTimeout((function(){r&&!r.isResolved&&l()}),c):l()}}},{key:"getLoadingDirectives",value:function(e,t){var n=[],r=Array.from(t.querySelectorAll("[data-loading]"));return r=r.filter((function(t){return W(t,e)})),t.hasAttribute("data-loading")&&(r=[t].concat(d(r))),r.forEach((function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))throw new Error("Invalid Element Type");var t=H(e.dataset.loading||"show");n.push({element:e,directives:t})})),n}},{key:"showElement",value:function(e){e.style.display="revert"}},{key:"hideElement",value:function(e){e.style.display="none"}},{key:"addClass",value:function(e,t){var n;(n=e.classList).add.apply(n,d(G(t)))}},{key:"removeClass",value:function(e,t){var n;(n=e.classList).remove.apply(n,d(G(t))),0===e.classList.length&&e.removeAttribute("class")}},{key:"addAttributes",value:function(e,t){t.forEach((function(t){e.setAttribute(t,"")}))}},{key:"removeAttributes",value:function(e,t){t.forEach((function(t){e.removeAttribute(t)}))}}])}(),de=function(e,t){switch(e){case"show":return t?"show":"hide";case"hide":return t?"hide":"show";case"addClass":return t?"addClass":"removeClass";case"removeClass":return t?"removeClass":"addClass";case"addAttribute":return t?"addAttribute":"removeAttribute";case"removeAttribute":return t?"removeAttribute":"addAttribute"}throw new Error('Unknown data-loading action "'.concat(e,'"'))}
2,he=function(){return C((function e(){x(this,e),this.isConnected=!1}),[{key:"attachToComponent",value:function(e){var t=this;e.on("render:started",(function(e,n,r){t.isConnected||(r.shouldRender=!1)})),e.on("connect",(function(){t.isConnected=!0})),e.on("disconnect",(function(){t.isConnected=!1}))}}])}(),ve=function(){return C((function e(t){x(this,e),this.isPollingActive=!0,this.pollingIntervals=[],this.component=t}),[{key:"addPoll",value:function(e,t){this.polls.push({actionName:e,duration:t}),this.isPollingActive&&this.initiatePoll(e,t)}},{key:"startAllPolling",value:function(){var e=this;this.isPollingActive||(this.isPollingActive=!0,this.polls.forEach((function(t){var n=t.actionName,r=t.duration;e.initiatePoll(n,r)})))}},{key:"stopAllPolling",value:function(){this.isPollingActive=!1,this.pollingIntervals.forEach((function(e){clearInterval(e)}))}},{key:"clearPolling",value:function(){this.stopAllPolling(),this.polls=[],this.startAllPolling()}},{key:"initiatePoll",value:function(e,t){var n,r=this;n="$render"===e?function(){r.component.render()}:function(){r.component.action(e,{},0)};var o=window.setInterval((function(){n()}),t);this.pollingIntervals.push(o)}}])}(),ye=function(){return C((function e(){x(this,e)}),[{key:"attachToComponent",value:function(e){var t=this;this.element=e.element,this.pollingDirector=new ve(e),this.initializePolling(),e.on("connect",(function(){t.pollingDirector.startAllPolling()})),e.on("disconnect",(function(){t.pollingDirector.stopAllPolling()})),e.on("render:finished",(function(){t.initializePolling()}))}},{key:"addPoll",value:function(e,t){this.pollingDirector.addPoll(e,t)}},{key:"clearPolling",value:function(){this.pollingDirector.clearPolling()}},{key:"initializePolling",value:function(){var e=this;if(this.clearPolling(),void 0!==this.element.dataset.poll){var t=this.element.dataset.poll;H(t||"$render").forEach((function(n){var r=2e3;n.modifiers.forEach((function(e){if("delay"===e.name)e.value&&(r=Number.parseInt(e.value));else console.warn('Unknown modifier "'.concat(e.name,'" in data-poll "').concat(t,'".'))})),e.addPoll(n.action,r)}))}}}])}(),me=function(){return C((function e(){x(this,e)}),[{key:"attachToComponent",value:function(e){var t=this;this.synchronizeValueOfModelFields(e),e.on("render:finished",(function(){t.synchronizeValueOfModelFields(e)}))}},{key:"synchronizeValueOfModelFields",value:function(e){e.element.querySelectorAll("[data-model]").forEach((function(t){if(!(t instanceof HTMLElement))throw new Error("Invalid element using data-model.");if(!(t instanceof HTMLFormElement)&&W(t,e)){var n=K(t);if(n){var r=n.action;e.getUnsyncedModels().includes(r)||(e.valueStore.has(r)&&q(t,e.valueStore.get(r)),t instanceof HTMLSelectElement&&!t.multiple&&e.valueStore.set(r,V(t,e.valueStore)))}}}))}}])}(),be=function(){return C((function e(){x(this,e)}),[{key:"attachToComponent",value:function(e){var t=this;e.on("model:set",(function(n){t.handleModelSet(n,e.valueStore)}))}},{key:"handleModelSet",value:function(e,t){if(t.has("validatedFields")){var n=d(t.get("validatedFields"));n.includes(e)||n.push(e),t.set("validatedFields",n)}}}])}(),ge=function(e){function t(){var e;x(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i(this,t,[].concat(r))).pendingActionTriggerModelElement=null,e.elementEventListeners=[{event:"input",callback:function(t){return e.handleInputEvent(t)}},{event:"change",callback:function(t){return e.handleChangeEvent(t)}}],e.pendingFiles={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),C(t,[{key:"initialize",value:function(){this.mutationObserver=new MutationObserver(this.onMutations.bind(this)),this.createComponent()}},{key:"connect",value:function(){this.connectComponent(),this.mutationObserver.observe(this.element,{attributes:!0})}},{key:"disconnect",value:function(){this.disconnectComponent(),this.mutationObserver.disconnect()}},{key:"update",value:function(e){if("input"===e.type||"change"===e.type)throw new Error('Since LiveComponents 2.3, you no longer need data-action="live#update" on form elements. Found on element: '.concat(F(e.currentTarget)));this.updateModelFromElementEvent(e.currentTarget,null)}},{key:"action",value:function(e){var t=this,n=e.params;if(!n.action)throw new Error("No action name provided on element: ".concat(F(e.currentTarget),'. Did you forget to add the "data-live-action-param" attribute?'));var r=n.action,o=l({},n);delete o.action;var i=H(r),a=!1;
2i.forEach((function(n){var i={},u=new Map;u.set("stop",(function(){e.stopPropagation()})),u.set("self",(function(){e.target,e.currentTarget})),u.set("debounce",(function(e){a=!e.value||Number.parseInt(e.value)})),u.set("files",(function(e){e.value?t.pendingFiles[e.value]&&(i[e.value]=t.pendingFiles[e.value]):i=t.pendingFiles})),n.modifiers.forEach((function(e){var t;u.has(e.name)?(null!==(t=u.get(e.name))&&void 0!==t?t:function(){})(e):console.warn("Unknown modifier ".concat(e.name,' in action "').concat(r,'". Available modifiers are: ').concat(Array.from(u.keys()).join(", "),"."))}));for(var c=0,s=Object.entries(i);c<s.length;c++){var l=P(s[c],2),f=l[0],p=l[1];p.files&&t.component.files(f,p),delete t.pendingFiles[f]}t.component.action(n.action,o,a),K(e.currentTarget,!1)&&(t.pendingActionTriggerModelElement=e.currentTarget)}))}},{key:"$render",value:function(){return this.component.render()}},{key:"emit",value:function(e){var t=this;this.getEmitDirectives(e).forEach((function(e){var n=e.name,r=e.data,o=e.nameMatch;t.component.emit(n,r,o)}))}},{key:"emitUp",value:function(e){var t=this;this.getEmitDirectives(e).forEach((function(e){var n=e.name,r=e.data,o=e.nameMatch;t.component.emitUp(n,r,o)}))}},{key:"emitSelf",value:function(e){var t=this;this.getEmitDirectives(e).forEach((function(e){var n=e.name,r=e.data;t.component.emitSelf(n,r)}))}},{key:"$updateModel",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.component.set(e,t,n,r)}},{key:"propsUpdatedFromParentValueChanged",value:function(){this.component._updateFromParentProps(this.propsUpdatedFromParentValue)}},{key:"fingerprintValueChanged",value:function(){this.component.fingerprint=this.fingerprintValue}},{key:"getEmitDirectives",value:function(e){var t=e.params;if(!t.event)throw new Error("No event name provided on element: ".concat(F(e.currentTarget),'. Did you forget to add the "data-live-event-param" attribute?'));var n=t.event,r=l({},t);delete r.event;var o=H(n),i=[];return o.forEach((function(e){var t=null;e.modifiers.forEach((function(e){if("name"!==e.name)throw new Error("Unknown modifier ".concat(e.name,' in event "').concat(n,'".'));t=e.value})),i.push({name:e.action,data:r,nameMatch:t})})),i}},{key:"createComponent",value:function(){var e,n=this,r=this.element.id||null;this.component=new ue(this.element,this.nameValue,this.propsValue,this.listenersValue,r,t.backendFactory(this),new ce(this)),this.proxiedComponent=(e=this.component,new Proxy(e,{get:function(e,t){if(t in e||"string"!=typeof t){if("function"==typeof e[t]){var n=e[t];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.apply(e,r)}}return Reflect.get(e,t)}return e.valueStore.has(t)?e.getData(t):function(n){return e.action.apply(e,[t,n])}},set:function(e,t,n){return t in e?(e[t]=n,!0):(e.set(t,n),!0)}})),Object.defineProperty(this.element,"__component",{value:this.proxiedComponent,writable:!0}),this.hasDebounceValue&&(this.component.defaultDebounce=this.debounceValue),[new pe,new fe,new be,new he,new ye,new me,new le(this.component)].forEach((function(e){n.component.addPlugin(e)}))}},{key:"connectComponent",value:function(){var e=this;this.component.connect(),this.mutationObserver.observe(this.element,{attributes:!0}),this.elementEventListeners.forEach((function(t){var n=t.event,r=t.callback;e.component.element.addEventListener(n,r)})),this.dispatchEvent("connect")}},{key:"disconnectComponent",value:function(){var e=this;this.component.disconnect(),this.elementEventListeners.forEach((function(t){var n=t.event,r=t.callback;e.component.element.removeEventListener(n,r)})),this.dispatchEvent("disconnect")}},{key:"handleInputEvent",value:function(e){var t=e.target;t&&this.updateModelFromElementEvent(t,"input")}},{key:"handleChangeEvent",value:function(e){var t=e.target;t&&this.updateModelFromElementEvent(t,"change")}},{key:"updateModelFromElementEvent",value:function(e,t){if(W(e,this.component)){if(!(e instanceof HTMLElement))throw new Error("Could not update model for non HTMLElement");
2if(e instanceof HTMLInputElement&&"file"===e.type){var n,r=e.name;null!==(n=e.files)&&void 0!==n&&n.length?this.pendingFiles[r]=e:this.pendingFiles[r]&&delete this.pendingFiles[r]}var o=K(e,!1);if(o){var i=se(o);if(i.targetEventName||(i.targetEventName="input"),this.pendingActionTriggerModelElement===e&&(i.shouldRender=!1),"change"===t&&"input"===i.targetEventName&&(i.targetEventName="change"),!t||i.targetEventName===t){!1===i.debounce&&("input"===i.targetEventName?i.debounce=!0:i.debounce=0);var a,u=V(e,this.component.valueStore),c=""===u||null==u;if((a=e)instanceof HTMLInputElement&&["text","email","password","search","tel","url"].includes(a.type)||function(e){return e instanceof HTMLTextAreaElement}(e)){if(!c&&null!==i.minLength&&"string"==typeof u&&u.length<i.minLength)return;if(!c&&null!==i.maxLength&&"string"==typeof u&&u.length>i.maxLength)return}if(function(e){return e instanceof HTMLInputElement&&["number","range"].includes(e.type)}(e)&&!c){var s=Number(u);if(null!==i.minValue&&s<i.minValue)return;if(null!==i.maxValue&&s>i.maxValue)return}this.component.set(i.modelName,u,i.shouldRender,i.debounce)}}}}},{key:"dispatchEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.controller=this,t.component=this.proxiedComponent,this.dispatch(e,{detail:t,prefix:"live",cancelable:r,bubbles:n})}},{key:"onMutations",value:function(e){var t=this;e.forEach((function(e){"attributes"===e.type&&"id"===e.attributeName&&t.element.id!==t.component.id&&(t.disconnectComponent(),t.createComponent(),t.connectComponent())}))}}])}(r.Controller);ge.values={name:String,url:String,props:{type:Object,default:{}},propsUpdatedFromParent:{type:Object,default:{}},listeners:{type:Array,default:[]},eventsToEmit:{type:Array,default:[]},eventsToDispatch:{type:Array,default:[]},debounce:{type:Number,default:150},fingerprint:{type:String,default:""},requestMethod:{type:String,default:"post"},fetchCredentials:{type:String,default:"same-origin"}},ge.backendFactory=function(e){return new I(e.urlValue,e.requestMethodValue,e.fetchCredentialsValue)}}},e=>{e.O(0,[634,374],(()=>{return t=4976,e(e.s=t);var t}));e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.