"Verbinden van generaties, netwerk van ouderen versterken en studenten leerzame woonomgeving bieden"​

Waarin onderscheiden wij ons als Connect Generations?

Door de student gedurende het hele verblijf te begeleiden.

Een uitgebreide screening naar studenten met het hart op de goede plaats.

Winst voor alle partijen door duidelijke afspraken die voor alle partijen goed zijn.

"}var d,i=a(7),h=a(124),g=a(42),j=a(39),k=a(69),l=a(35),e=a(38)("IE_PROTO"),b=function(){var a,c,e;try{d=document.domain&&new ActiveXObject("htmlfile")}catch(a){}b=d?function(a){a.write(f("")),a.close();var b=a.parentWindow.Object;return a=null,b}(d):((c=l("iframe")).style.display="none",k.appendChild(c),c.src=String("javascript:"),(a=c.contentWindow.document).open(),a.write(f("document.F=Object")),a.close(),a.F);for(e=g.length;e--;)delete b.prototype[g[e]];return b()};j[e]=!0,m.exports=Object.create||function(d,f){var a;return null!==d?(c.prototype=i(d),a=new c,c.prototype=null,a[e]=d):a=b(),void 0===f?a:h(a,f)}},function(a,d,b){var c=b(16);a.exports=c("document","documentElement")},function(c,g,b){var d=b(45),a=b(13),e=b(2)("toStringTag"),f="Arguments"==a(function(){return arguments}());c.exports=d?a:function(c){var b,d,g;return void 0===c?"Undefined":null===c?"Null":"string"==typeof(d=function(a,b){try{return a[b]}catch(a){}}(b=Object(c),e))?d:f?a(b):"Object"==(g=a(b))&&"function"==typeof b.callee?"Arguments":g}},function(q,r,a){"use strict";function j(){return this}var p=a(11),o=a(133),g=a(73),h=a(135),n=a(46),k=a(12),m=a(15),l=a(2),d=a(17),i=a(19),f=a(72),e=f.IteratorPrototype,c=f.BUGGY_SAFARI_ITERATORS,b=l("iterator");q.exports=function(y,r,x,D,q,C,A){o(x,r,D);function u(b){if(b===q&&l)return l;if(!c&&b in a)return a[b];switch(b){case"keys":case"values":case"entries":return function(){return new x(this,b)}}return function(){return new x(this)}}var f,t,v,z=r+" Iterator",w=!1,a=y.prototype,s=a[b]||a["@@iterator"]||q&&a[q],l=!c&&s||u(q),B="Array"==r&&a.entries||s;if(B&&(f=g(B.call(new y)),e!==Object.prototype&&f.next&&(d||g(f)===e||(h?h(f,e):"function"!=typeof f[b]&&k(f,b,j)),n(f,z,!0,!0),d&&(i[z]=j))),"values"==q&&s&&"values"!==s.name&&(w=!0,l=function(){return s.call(this)}),d&&!A||a[b]===l||k(a,b,l),i[r]=l,q)if(t={values:u("values"),keys:C?l:u("keys"),entries:u("entries")},A)for(v in t)!c&&!w&&v in a||m(a,v,t[v]);else p({target:r,proto:!0,forced:c||w},t);return t}},function(l,m,b){"use strict";var a,e,f,c=b(73),h=b(12),i=b(5),j=b(2),k=b(17),d=j("iterator"),g=!1;[].keys&&("next"in(f=[].keys())?(e=c(c(f)))!==Object.prototype&&(a=e):g=!0),null==a&&(a={}),k||i(a,d)||h(a,d,function(){return this}),l.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:g}},function(c,i,a){var d=a(5),e=a(43),f=a(38),g=a(134),b=f("IE_PROTO"),h=Object.prototype;c.exports=g?Object.getPrototypeOf:function(a){return a=e(a),d(a,b)?a[b]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?h:null}},function(a,d,b){var c=b(1);a.exports=c.Promise},function(c,j,a){function b(a,b){this.stopped=a,this.result=b}var e=a(7),f=a(144),g=a(40),d=a(44),h=a(145),i=a(146);(c.exports=function(c,t,s,m,r){var k,n,j,p,a,q,l,o=d(t,s,m?2:1);if(r)k=c;else{if("function"!=typeof(n=h(c)))throw TypeError("Target is not iterable");if(f(n)){for(j=0,p=g(c.length);j',b)}return d.defaults={},n(d.prototype,{spin:function(h){this.stop();var k,i,n,j,g,l,m,d=this,b=d.opts,f=d.el=c(null,{className:b.className});return a(f,{position:b.position,width:0,zIndex:b.zIndex,left:b.left,top:b.top}),h&&h.insertBefore(f,h.firstChild||null),f.setAttribute("role","progressbar"),d.lines(f,d.opts),e||(i=0,n=(b.lines-1)*(1-b.direction)/2,j=b.fps,g=j/b.speed,l=(1-b.opacity)/(g*b.trail/100),m=g/b.lines,function c(){i++;for(var a=0;a>1)+"px"})}for(;h>1,filter:g}),h("fill",{color:k(c.color,d),opacity:c.opacity}),h("stroke",{opacity:0}))))}if(c.shadow)for(d=1;d<=c.lines;d++)l(d,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(d=1;d<=c.lines;d++)l(d);return b(m,j)},d.prototype.opacity=function(d,c,e,b){var a=d.firstChild;b=b.shadow&&b.lines||0,a&&c+b=c.length?{value:void 0,done:!0}:(a=e(c,f),b.index+=a.length,{value:a,done:!1})})},function(c,f,a){function b(a){return function(j,i){var f,g,c=String(e(j)),b=d(i),h=c.length;return b<0||h<=b?a?"":void 0:(f=c.charCodeAt(b))<55296||56319=c.length?{value:b.target=void 0,done:!0}:"keys"==d?{value:a,done:!1}:"values"==d?{value:c[a],done:!1}:{value:[a,c[a]],done:!1}},"values"),d.Arguments=d.Array,b("keys"),b("values"),b("entries")},function(ad,ae,a){"use strict";function w(a){var b;return!(!K(a)||"function"!=typeof(b=a.then))&&b}function t(c,a,d){var b;a.notified||(a.notified=!0,b=a.reactions,E(function(){for(var j=a.value,m=1==a.state,k=0,f,o,l,e,i,n,h,g;b.length>k;){e=b[k++],i=m?e.ok:e.fail,n=e.resolve,h=e.reject,g=e.domain;try{i?(m||(2===a.rejection&&$(c,a),a.rejection=1),!0===i?f=j:(g&&g.enter(),f=i(j),g&&(g.exit(),l=!0)),f===e.promise?h(x("Promise-chain cycle")):(o=w(f))?o.call(f,n,h):n(f)):h(j)}catch(a){g&&!l&&g.exit(),h(a)}}a.reactions=[],a.notified=!1,d&&!a.rejection&&ab(c,a)}))}function I(b,e,c){var a,f;U?((a=r.createEvent("Event")).promise=e,a.reason=c,a.initEvent(b,!1,!0),d.dispatchEvent(a)):a={promise:e,reason:c},(f=d["on"+b])?f(a):"unhandledrejection"===b&&ac("Unhandled promise rejection",c)}function e(a,b,c,d){return function(e){a(b,c,e,d)}}function g(c,a,d,b){a.done||(a.done=!0,b&&(a=b),a.value=d,a.state=2,t(c,a,!0))}var o,D,u,G,h=a(11),l=a(17),d=a(1),y=a(16),m=a(74),_=a(15),Z=a(141),X=a(46),W=a(142),K=a(6),s=a(18),T=a(143),S=a(13),P=a(37),A=a(75),M=a(147),O=a(76),J=a(77).set,E=a(148),F=a(80),ac=a(149),H=a(47),p=a(81),n=a(24),V=a(64),L=a(2),B=a(150),N=L("species"),c="Promise",z=n.get,Q=n.set,R=n.getterFor(c),b=m,x=d.TypeError,r=d.document,k=d.process,v=y("fetch"),f=H.f,Y=f,j="process"==S(k),U=!!(r&&r.createEvent&&d.dispatchEvent),i=V(c,function(){if(P(b)===String(b)){if(66===B)return!0;if(!j&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!b.prototype.finally)return!0;if(51<=B&&/native code/.test(b))return!1;function a(a){a(function(){},function(){})}var c=b.resolve(1);return(c.constructor={})[N]=a,!(c.then(function(){})instanceof a)}),aa=i||!M(function(a){b.all(a).catch(function(){})}),ab=function(b,a){J.call(d,function(){var c,d=a.value;if(C(a)&&(c=p(function(){j?k.emit("unhandledRejection",d,b):I("unhandledrejection",b,d)}),a.rejection=j||C(a)?2:1,c.error))throw c.value})},C=function(a){return 1!==a.rejection&&!a.parent},$=function(a,b){J.call(d,function(){j?k.emit("rejectionHandled",a):I("rejectionhandled",a,b.value)})},q=function(b,a,c,d){if(!a.done){a.done=!0,d&&(a=d);try{if(b===c)throw x("Promise can't be resolved itself");var f=w(c);f?E(function(){var d={done:!1};try{f.call(c,e(q,b,d,a),e(g,b,d,a))}catch(c){g(b,d,c,a)}}):(a.value=c,a.state=1,t(b,a,!1))}catch(c){g(b,{done:!1},c,a)}}};i&&(b=function(d){T(this,b,c),s(d),o.call(this);var a=z(this);try{d(e(q,this,a),e(g,this,a))}catch(b){g(this,a,b)}},(o=function(a){Q(this,{type:c,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Z(b.prototype,{then:function(d,e){var c=R(this),a=f(O(this,b));return a.ok="function"!=typeof d||d,a.fail="function"==typeof e&&e,a.domain=j?k.domain:void 0,c.parent=!0,c.reactions.push(a),0!=c.state&&t(this,c,!1),a.promise},catch:function(a){return this.then(void 0,a)}}),D=function(){var a=new o,b=z(a);this.promise=a,this.resolve=e(q,a,b),this.reject=e(g,a,b)},H.f=f=function(a){return a===b||a===u?new D:Y(a)},l||"function"!=typeof m||(G=m.prototype.then,_(m.prototype,"then",function(a,c){var d=this;return new b(function(a,b){G.call(d,a,b)}).then(a,c)},{unsafe:!0}),"function"==typeof v&&h({global:!0,enumerable:!0,forced:!0},{fetch:function(a){return F(b,v.apply(d,arguments))}}))),h({global:!0,wrap:!0,forced:i},{Promise:b}),X(b,c,!1,!0),W(c),u=y(c),h({target:c,stat:!0,forced:i},{reject:function(b){var a=f(this);return a.reject.call(void 0,b),a.promise}}),h({target:c,stat:!0,forced:l||i},{resolve:function(a){return F(l&&this===u?b:this,a)}}),h({target:c,stat:!0,forced:aa},{all:function(g){var a=this,b=f(a),c=b.resolve,d=b.reject,e=p(function(){var f=s(a.resolve),b=[],h=0,e=1;A(g,function(i){var j=h++,g=!1;b.push(void 0),e++,f.call(a,i).then(function(a){g||(g=!0,b[j]=a,--e||c(b))},d)}),--e||c(b)});return e.error&&d(e.value),b.promise},race:function(e){var a=this,b=f(a),c=b.reject,d=p(function(){var d=s(a.resolve);A(e,function(e){d.call(a,e).then(b.resolve,c)})});return d.error&&c(d.value),b.promise}})},function(a,d,b){var c=b(15);a.exports=function(a,b,e){for(var d in b)c(a,d,b[d],e);return a}},function(c,h,a){"use strict";var d=a(16),e=a(14),f=a(2),g=a(8),b=f("species");c.exports=function(c){var a=d(c),f=e.f;g&&a&&!a[b]&&f(a,b,{configurable:!0,get:function(){return this}})}},function(a,b){a.exports=function(a,c,b){if(!(a instanceof c))throw TypeError("Incorrect "+(b?b+" ":"")+"invocation");return a}},function(b,g,a){var c=a(2),d=a(19),e=c("iterator"),f=Array.prototype;b.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},function(b,f,a){var c=a(70),d=a(19),e=a(2)("iterator");b.exports=function(a){if(null!=a)return a[e]||a["@@iterator"]||d[c(a)]}},function(b,d,c){var a=c(7);b.exports=function(c,d,b,f){try{return f?d(a(b)[0],b[1]):d(b)}catch(b){var e=c.return;throw void 0!==e&&a(e.call(c)),b}}},function(f,g,d){var b=d(2)("iterator"),c=!1,e,a;try{e=0,a={next:function(){return{done:!!e++}},return:function(){c=!0}},a[b]=function(){return this},Array.from(a,function(){throw 2})}catch(a){}f.exports=function(e,f){var a,d;if(!f&&!c)return!1;a=!1;try{d={},d[b]=function(){return{next:function(){return{done:a=!0}}}},e(d)}catch(a){}return a}},function(u,v,d){var e,a,c,g,h,i,j,l,b=d(1),t=d(31).f,s=d(13),r=d(77).set,q=d(78),o=b.MutationObserver||b.WebKitMutationObserver,f=b.process,k=b.Promise,m="process"==s(f),n=t(b,"queueMicrotask"),p=n&&n.value;p||(e=function(){var b,d;for(m&&(b=f.domain)&&b.exit();a;){d=a.fn,a=a.next;try{d()}catch(b){throw a?g():c=void 0,b}}c=void 0,b&&b.enter()},g=m?function(){f.nextTick(e)}:o&&!q?(h=!0,i=document.createTextNode(""),new o(e).observe(i,{characterData:!0}),function(){i.data=h=!h}):k&&k.resolve?(j=k.resolve(void 0),l=j.then,function(){l.call(j,e)}):function(){r.call(b,e)}),u.exports=p||function(d){var b={fn:d,next:void 0};c&&(c.next=b),a||(a=b,g()),c=b}},function(a,d,b){var c=b(1);a.exports=function(b,d){var a=c.console;a&&a.error&&(1===arguments.length?a.error(b):a.error(b,d))}},function(i,j,e){var a,b,h=e(1),c=e(79),d=h.process,f=d&&d.versions,g=f&&f.v8;g?b=(a=g.split("."))[0]+a[1]:c&&(!(a=c.match(/Edge\/(\d+)/))||74<=a[1])&&(a=c.match(/Chrome\/(\d+)/))&&(b=a[1]),i.exports=b&&+b},function(g,h,a){"use strict";var d=a(11),e=a(18),f=a(47),b=a(81),c=a(75);d({target:"Promise",stat:!0},{allSettled:function(i){var a=this,d=f.f(a),g=d.resolve,j=d.reject,h=b(function(){var f=e(a.resolve),b=[],h=0,d=1;c(i,function(i){var e=h++,c=!1;b.push(void 0),d++,f.call(a,i).then(function(a){c||(c=!0,b[e]={status:"fulfilled",value:a},--d||g(b))},function(a){c||(c=!0,b[e]={status:"rejected",reason:a},--d||g(b))})}),--d||g(b)});return h.error&&j(h.value),d.promise}})},function(j,k,a){"use strict";var h=a(11),f=a(17),b=a(74),e=a(4),c=a(16),g=a(76),d=a(80),i=a(15);h({target:"Promise",proto:!0,real:!0,forced:!!b&&e(function(){b.prototype.finally.call({then:function(){}},function(){})})},{finally:function(a){var b=g(this,c("Promise")),e="function"==typeof a;return this.then(e?function(c){return d(b,a()).then(function(){return c})}:a,e?function(c){return d(b,a()).then(function(){throw c})}:a)}}),f||"function"!=typeof b||b.prototype.finally||i(b.prototype,"finally",c("Promise").prototype.finally)},function(b,a,c){"use strict",Object.defineProperty(a,"__esModule",{value:!0}),a.getDataset=function(b){var a={};return[].forEach.call(b.attributes,function(b){var c;/^data-/.test(b.name)&&(c=b.name.substr(5).replace(/-(.)/g,function(b,a){return a.toUpperCase()}),a[c]=b.value)}),a},a.sanitizePopupAttributes=function(a){var c,d,b={},e;return a.mode&&(b.mode=(c=a.mode,(d=[{id:"1",mode:"popup"},{id:"2",mode:"drawer_left"},{id:"3",mode:"drawer_right"}].find(function(a){return a.id===c}))?d.mode:c)),e=parseInt(a.submitCloseDelay,10),a.submitCloseDelay&&0<=e&&(b.autoClose=e),""!==a.autoOpen&&"true"!==a.autoOpen||(b.autoOpen=!0),""!==a.hideHeaders&&"true"!==a.hideHeaders||(b.hideHeaders=!0),""!==a.hideFooter&&"true"!==a.hideFooter||(b.hideFooter=!0),""!==a.hideScrollbars&&"true"!==a.hideScrollbars||(b.hideScrollbars=!0),b},a.sanitizeWidgetAttributes=function(a){var b={},c;return""!==a.hideHeaders&&"true"!==a.hideHeaders||(b.hideHeaders=!0),""!==a.hideFooter&&"true"!==a.hideFooter||(b.hideFooter=!0),""!==a.hideScrollbars&&"true"!==a.hideScrollbars||(b.hideScrollbars=!0),c=parseInt(a.transparency,10),a.transparency&&0<=c&&c<=100&&(b.opacity=100-c),a.buttonText&&(b.buttonText=a.buttonText),b}},function(s,q,c){"use strict";var o,n,j,h,i,e,k,l,m,d,b,a,p;c.r(q);function r(v){function t(c,b,h){var f=b.trim().split(D),g=(b=f).length,e=c.length,a,i,d;switch(e){case 0:case 1:a=0;for(c=0===e?"":c[0]+" ";a css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"),k.call(this,void 0===this?b():b(this.mergedProps,this.context),g);if(c=b.toString(),"NO_COMPONENT_SELECTOR"===c)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return c;case"object":return function(b){if(l.has(b))return l.get(b);var c="";return Array.isArray(b)?b.forEach(function(a){c+=k.call(this,a,!1)},this):Object.keys(b).forEach(function(f){if("object"!=typeof b[f])void 0!==a.registered[b[f]]?c+=f+"{"+a.registered[b[f]]+"}":c+=e(f)+":"+d(f,b[f])+";";else{if("NO_COMPONENT_SELECTOR"===f)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");Array.isArray(b[f])&&"string"==typeof b[f][0]&&void 0===a.registered[b[f][0]]?b[f].forEach(function(a){c+=e(f)+":"+d(f,a)+";"}):c+=f+"{"+k.call(this,b[f],!1)+"}"}},this),l.set(b,c),c}.call(this,b);default:return f=a.registered[b],!1===g&&void 0!==f?f:b}}function q(b){var e=!0,a="",f="",d,g,c;null==b||void 0===b.raw?(e=!1,a+=k.call(this,b,!1)):a+=b[0];for(d=arguments.length,g=new Array(1>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(d=1540483477*(65535&(d^=d>>>24))+((1540483477*(d>>>16)&65535)<<16)),e-=4,++c;switch(e){case 3:a^=(255&b.charCodeAt(c+2))<<16;case 2:a^=(255&b.charCodeAt(c+1))<<8;case 1:a=1540483477*(65535&(a^=255&b.charCodeAt(c)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(b+a)+a},x=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g,o=function(a,b){return y(a.replace(x,function(a){return n=a,""}),b)},z=j;function v(b,c){void 0===a.inserted[i]&&(m="",j(b,c),a.inserted[i]=m)}j=function(a,b){z(a,b),n=""};function B(){var c=q.apply(this,arguments),b=g+"-"+i;return void 0===a.registered[b]&&(a.registered[b]=t),v("."+b,c),b}function D(c,d){var b="";return d.split(" ").forEach(function(d){void 0!==a.registered[d]?c.push(d):b+=d+" "}),b}function E(b,c){var a=[],d=D(a,b);return a.length<2?b:d+B(a,c)}function F(b){a.inserted[b]=!0}return b&&(s=document.querySelectorAll("[data-emotion-"+g+"]"),Array.prototype.forEach.call(s,function(a){f.tags[0].parentNode.insertBefore(a,f.tags[0]),a.getAttribute("data-emotion-"+g).split(" ").forEach(F)})),G={flush:function(){b&&(f.flush(),f.inject()),a.inserted={},a.registered={}},hydrate:function(a){a.forEach(F)},cx:function(){for(var b=arguments.length,c=new Array(b),a=0;a=0||(d[a]=c[a]);return d}(b,f),Object.getOwnPropertySymbols){e=Object.getOwnPropertySymbols(b);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(b,a)&&(d[a]=b[a])}return d}function s(a,b){return function(a){if(Array.isArray(a))return a}(a)||function(g,h){var b,c,e,f,d,a;if("undefined"==typeof Symbol||!(Symbol.iterator in Object(g)))return;b=[],c=!0,e=!1,f=void 0;try{for(d,a=g[Symbol.iterator]();!(c=(d=a.next()).done)&&(b.push(d.value),!h||b.length!==h);c=!0);}catch(a){e=!0,f=a}finally{try{c||null==a.return||a.return()}finally{if(e)throw f}}return b}(a,b)||ba(a,b)||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 aN(a){return function(a){if(Array.isArray(a))return aK(a)}(a)||function(a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)}(a)||ba(a)||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 ba(a,c){if(a){if("string"==typeof a)return aK(a,c);var b=Object.prototype.toString.call(a).slice(8,-1);return"Object"===b&&a.constructor&&(b=a.constructor.name),"Map"===b||"Set"===b?Array.from(b):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?aK(a,c):void 0}}function aK(c,a){(null==a||a>c.length)&&(a=c.length);for(var b=0,d=new Array(a);ba){var c=function(b){var a="".concat(b).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0}(a);return parseFloat(b.toFixed(c))}return Math.round(b/a)*a}bn=function(){function a(b,c){(function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")})(this,a),P(b)?this.element=b:V(b)&&(this.element=document.querySelector(b)),P(this.element)&&_(this.element.rangeTouch)&&(this.config=bx({},aG,{},c),this.init())}return function(a,b,c){b&&aW(a.prototype,b),c&&aW(a,c)}(a,[{key:"init",value:function(){a.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){a.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(b){var a=this,c=b?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(b){a.element[c](b,function(b){return a.set(b)},!1)})}},{key:"get",value:function(d){if(!a.enabled||!ax(d))return null;var b,c=d.target,h=d.changedTouches[0],f=parseFloat(c.getAttribute("min"))||0,i=parseFloat(c.getAttribute("max"))||100,j=parseFloat(c.getAttribute("step"))||1,e=c.getBoundingClientRect(),g=100/e.width*(this.config.thumbWidth/2)/100;return 0>(b=100/e.width*(h.clientX-e.left))?b=0:100b?b-=(100-2*b)*g:500&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,c=new Array(e>1?e-1:0),d=1,b;d0?b.cloneNode(!0):b,d=a.parentNode,e=a.nextSibling;c.appendChild(a),e?d.insertBefore(c,e):d.appendChild(c)})}function al(a,d){b(a)&&!c(d)&&Object.entries(d).filter(function(a){var b=s(a,2)[1];return!F(b)}).forEach(function(c){var b=s(c,2),d=b[0],e=b[1];return a.setAttribute(d,e)})}function e(d,b,c){var a=document.createElement(d);return u(b)&&al(a,b),n(c)&&(a.innerText=c),a}function be(c,a,d,f){b(a)&&a.appendChild(e(c,d,f))}function x(a){J(a)||o(a)?Array.from(a).forEach(x):b(a)&&b(a.parentNode)&&a.parentNode.removeChild(a)}function ah(a){if(b(a))for(var c=a.childNodes.length;c>0;)a.removeChild(a.lastChild),c-=1}function ak(c,a){return b(a)&&b(a.parentNode)&&b(c)?(a.parentNode.replaceChild(c,a),c):null}function v(b,e){if(!n(b)||c(b))return{};var a={},d=m({},e);return b.split(",").forEach(function(f){var b=f.trim(),e=b.replace(".",""),c=b.replace(/[[\]]/g,"").split("="),g=s(c,1)[0],h=c.length>1?c[1].replace(/["']/g,""):"";switch(b.charAt(0)){case".":n(d.class)?a.class="".concat(d.class," ").concat(e):a.class=e;break;case"#":a.id=b.replace("#","");break;case"[":a[g]=h}}),m(d,a)}function G(a,d){if(b(a)){var c=d;t(c)||(c=!a.hidden),a.hidden=c}}function f(a,c,d){if(J(a))return Array.from(a).map(function(a){return f(a,c,d)});if(b(a)){var e="toggle";return void 0!==d&&(e=d?"add":"remove"),a.classList[e](c),a.classList.contains(c)}return!1}function X(a,c){return b(a)&&a.classList.contains(c)}function H(c,b){var a=Element.prototype;return(a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||function(){return Array.from(document.querySelectorAll(b)).includes(this)}).call(c,b)}function K(a){return this.elements.container.querySelectorAll(a)}function p(a){return this.elements.container.querySelector(a)}function az(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(a)&&(a.focus({preventScroll:!0}),c&&f(a,this.config.classNames.tabFocus))}aB={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},l={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(a,c,d){var e=r.isIPhone&&d&&l.playsinline,b=l[a]||"html5"!==c;return{api:b,ui:b&&l.rangeInput&&("video"!==a||!r.isIPhone||e)}},pip:!(r.isIPhone||!j(e("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||e("video").disablePictureInPicture)),airplay:j(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(a){if(c(a))return!1;var d=s(a.split("/"),1)[0],b=a;if(!this.isHTML5||d!==this.type)return!1;Object.keys(aB).includes(b)&&(b+='; codecs="'.concat(aB[a],'"'));try{return Boolean(b&&this.media.canPlayType(b).replace(/no/,""))}catch(a){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(aj=document.createElement("input"),aj.type="range","range"===aj.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==af,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},bd=function(){var a=!1,b;try{b=Object.defineProperty({},"passive",{get:function(){return a=!0,null}}),window.addEventListener("test",null,b),window.removeEventListener("test",null,b)}catch(a){}return a}();function L(a,f,b){var d=this,g=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],h=arguments.length>5&&void 0!==arguments[5]&&arguments[5],k,e;a&&"addEventListener"in a&&!c(f)&&j(b)&&(k=f.split(" "),e=h,bd&&(e={passive:i,capture:h}),k.forEach(function(c){d&&d.eventListeners&&g&&d.eventListeners.push({element:a,type:c,callback:b,options:e}),a[g?"addEventListener":"removeEventListener"](c,b,e)}))}function g(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,d=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=arguments.length>4&&void 0!==arguments[4]&&arguments[4];L.call(this,a,b,c,!0,d,e)}function ag(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,d=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=arguments.length>4&&void 0!==arguments[4]&&arguments[4];L.call(this,a,b,c,!1,d,e)}function aH(a){var e=this,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",f=arguments.length>2?arguments[2]:void 0,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],g=function j(){ag(a,b,j,c,d);for(var h=arguments.length,i=new Array(h),g=0;g1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g;b(a)&&!c(d)&&(g=new CustomEvent(d,{bubbles:e,detail:W({},f,{plyr:this})}),a.dispatchEvent(g))}function bD(){this&&this.eventListeners&&(this.eventListeners.forEach(function(a){var b=a.element,c=a.type,d=a.callback,e=a.options;b.removeEventListener(c,d,e)}),this.eventListeners=[])}function bF(){var a=this;return new Promise(function(b){return a.ready?setTimeout(b,0):g.call(a,a.elements.container,"ready",b)}).then(function(){})}function w(a){bl(a)&&a.then(null,function(){})}function aZ(a){return!!(o(a)||n(a)&&a.includes(":"))&&(o(a)?a:a.split(":")).map(Number).every(k)}function aY(a){if(!o(a)||!a.every(k))return null;var b=s(a,2),c=b[0],d=b[1],e=function c(b,a){return 0===a?b:c(a,b%a)}(c,d);return[c/e,d/e]}function aO(e){var b=function(a){return aZ(a)?a.split(":").map(Number):null},a=b(e),d;return null===a&&(a=b(this.config.ratio)),null===a&&!c(this.embed)&&o(this.embed.ratio)&&(a=this.embed.ratio),null===a&&this.isHTML5&&(d=this.media,a=aY([d.videoWidth,d.videoHeight])),a}function C(g){var c,a,d,b,e,f;return this.isVideo?(c=this.elements.wrapper,a=aO.call(this,g),d=s(o(a)?a:[0,0],2),b=100/d[0]*d[1],(c.style.paddingBottom="".concat(b,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui)?(e=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),f=(e-b)/(e/50),this.media.style.transform="translateY(-".concat(f,"%)")):this.isHTML5&&c.classList.toggle(this.config.classNames.videoFixedRatio,null!==a),{padding:b,ratio:a}):{}}z={getSources:function(){var a=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(d){var b=d.getAttribute("type");return!!c(b)||l.mime.call(a,b)}):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:z.getSources.call(this).map(function(a){return Number(a.getAttribute("size"))}).filter(Boolean)},setup:function(){if(this.isHTML5){var a=this;a.options.speed=a.config.speed.options,c(this.config.ratio)||C.call(a),Object.defineProperty(a.media,"quality",{get:function(){var b=z.getSources.call(a).find(function(b){return b.getAttribute("src")===a.source});return b&&Number(b.getAttribute("size"))},set:function(c){var e,b,f,g,h,i,k;if(a.quality!==c){if(a.config.quality.forced&&j(a.config.quality.onChange))a.config.quality.onChange(c);else{if(e=z.getSources.call(a).find(function(a){return Number(a.getAttribute("size"))===c}),!e)return;b=a.media,f=b.currentTime,g=b.paused,h=b.preload,i=b.readyState,k=b.playbackRate,a.media.src=e.getAttribute("src"),("none"!==h||i)&&(a.once("loadedmetadata",function(){a.speed=k,a.currentTime=f,g||w(a.play())}),a.media.load())}d.call(a,a.media,"qualitychange",!1,{quality:c})}}})}},cancelRequests:function(){this.isHTML5&&(x(z.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function aR(a){return o(a)?a.filter(function(b,c){return a.indexOf(b)===c}):a}function aS(b){for(var d=arguments.length,e=new Array(d>1?d-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a.replace(new RegExp(b.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),c.toString())},aw=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a.toString().replace(/\w\S*/g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()})};function bG(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=b.toString();return a=N(a,"-"," "),a=N(a,"_"," "),a=aw(a),N(a," ","")}function bH(b){var a=document.createElement("div");return a.appendChild(b),a.innerHTML}aA={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},q=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d,e;return c(a)||c(b)?"":(d=bi(b.i18n,a),c(d))?Object.keys(aA).includes(a)?aA[a]:"":(e={"{seektime}":b.seekTime,"{title}":b.title},Object.entries(e).forEach(function(b){var a=s(b,2),c=a[0],e=a[1];d=N(d,c,e)}),d)},aM=function(){function a(b){D(this,a),this.enabled=b.config.storage.enabled,this.key=b.config.storage.key}return I(a,[{key:"get",value:function(b){var d,e;return!a.supported||!this.enabled?null:(d=window.localStorage.getItem(this.key),c(d))?null:(e=JSON.parse(d),n(b)&&b.length?e[b]:e)}},{key:"set",value:function(d){if(a.supported&&this.enabled&&u(d)){var b=this.get();c(b)&&(b={}),m(b,d),window.localStorage.setItem(this.key,JSON.stringify(b))}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(a){return!1}}}]),a}();function S(b){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(d,e){try{var c=new XMLHttpRequest;if(!("withCredentials"in c))return;c.addEventListener("load",function(){if("text"===a)try{d(JSON.parse(c.responseText))}catch(a){d(c.responseText)}else d(c.response)}),c.addEventListener("error",function(){throw new Error(c.status)}),c.open("GET",b,!0),c.responseType=a,c.send()}catch(a){e(a)}})}function a$(i,b){var d,e,f,g,a,h,j;n(i)&&(d=n(b),e=function(){return null!==document.getElementById(b)},f=function(a,b){a.innerHTML=b,d&&e()||document.body.insertAdjacentElement("afterbegin",a)},(!d||!e())&&(g=aM.supported,a=document.createElement("div"),(a.setAttribute("hidden",""),d&&a.setAttribute("id",b),g)&&(h=window.localStorage.getItem("".concat("cache","-").concat(b)),null!==h&&(j=JSON.parse(h),f(a,j.content))),S(i).then(function(d){c(d)||(g&&window.localStorage.setItem("".concat("cache","-").concat(b),JSON.stringify({content:d})),f(a,d))}).catch(function(){})))}aJ=function(a){return Math.trunc(a/60/60%60,10)},bb=function(a){return Math.trunc(a/60%60,10)},bc=function(a){return Math.trunc(a%60,10)};function aa(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e,b,f,g;return k(a)?(e=function(a){return"0".concat(a).slice(-2)},b=aJ(a),f=bb(a),g=bc(a),b=c||b>0?"".concat(b,":"):"","".concat(d&&a>0?"-":"").concat(b).concat(e(f),":").concat(e(g))):aa(void 0,c,d)}a={getIconUrl:function(){var a=new URL(this.config.iconUrl,window.location).host!==window.location.host||r.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:a}},findElements:function(){try{return this.elements.controls=p.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:K.call(this,this.config.selectors.buttons.play),pause:p.call(this,this.config.selectors.buttons.pause),restart:p.call(this,this.config.selectors.buttons.restart),rewind:p.call(this,this.config.selectors.buttons.rewind),fastForward:p.call(this,this.config.selectors.buttons.fastForward),mute:p.call(this,this.config.selectors.buttons.mute),pip:p.call(this,this.config.selectors.buttons.pip),airplay:p.call(this,this.config.selectors.buttons.airplay),settings:p.call(this,this.config.selectors.buttons.settings),captions:p.call(this,this.config.selectors.buttons.captions),fullscreen:p.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=p.call(this,this.config.selectors.progress),this.elements.inputs={seek:p.call(this,this.config.selectors.inputs.seek),volume:p.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:p.call(this,this.config.selectors.display.buffer),currentTime:p.call(this,this.config.selectors.display.currentTime),duration:p.call(this,this.config.selectors.display.duration)},b(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(a){return this.debug.warn("It looks like there is a problem with your custom controls HTML",a),this.toggleNativeControls(!0),!1}},createIcon:function(h,f){var e=a.getIconUrl.call(this),g="".concat(e.cors?"":e.url,"#").concat(this.config.iconPrefix),c=document.createElementNS("http://www.w3.org/2000/svg","svg"),b,d;return al(c,m(f,{"aria-hidden":"true",focusable:"false"})),b=document.createElementNS("http://www.w3.org/2000/svg","use"),d="".concat(g,"-").concat(h),"href"in b&&b.setAttributeNS("http://www.w3.org/1999/xlink","href",d),b.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d),c.appendChild(b),c},createLabel:function(b){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=q(b,this.config),d=W({},a,{class:[a.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return e("span",d,c)},createBadge:function(a){if(c(a))return null;var b=e("span",{class:this.config.classNames.menu.value});return b.appendChild(e("span",{class:this.config.classNames.menu.badge},a)),b},createButton:function(h,i){var j=this,d=m({},i),g=function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=b.toString();return(a=bG(a)).charAt(0).toLowerCase()+a.slice(1)}(h),b={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null},f;switch(["element","icon","label"].forEach(function(a){Object.keys(d).includes(a)&&(b[a]=d[a],delete d[a])}),"button"!==b.element||Object.keys(d).includes("type")||(d.type="button"),Object.keys(d).includes("class")?d.class.split(" ").some(function(a){return a===j.config.classNames.control})||m(d,{class:"".concat(d.class," ").concat(this.config.classNames.control)}):d.class=this.config.classNames.control,h){case"play":b.toggle=!0,b.label="play",b.labelPressed="pause",b.icon="play",b.iconPressed="pause";break;case"mute":b.toggle=!0,b.label="mute",b.labelPressed="unmute",b.icon="volume",b.iconPressed="muted";break;case"captions":b.toggle=!0,b.label="enableCaptions",b.labelPressed="disableCaptions",b.icon="captions-off",b.iconPressed="captions-on";break;case"fullscreen":b.toggle=!0,b.label="enterFullscreen",b.labelPressed="exitFullscreen",b.icon="enter-fullscreen",b.iconPressed="exit-fullscreen";break;case"play-large":d.class+=" ".concat(this.config.classNames.control,"--overlaid"),g="play",b.label="play",b.icon="play";break;default:c(b.label)&&(b.label=g),c(b.icon)&&(b.icon=h)}return f=e(b.element),b.toggle?(f.appendChild(a.createIcon.call(this,b.iconPressed,{class:"icon--pressed"})),f.appendChild(a.createIcon.call(this,b.icon,{class:"icon--not-pressed"})),f.appendChild(a.createLabel.call(this,b.labelPressed,{class:"label--pressed"})),f.appendChild(a.createLabel.call(this,b.label,{class:"label--not-pressed"}))):(f.appendChild(a.createIcon.call(this,b.icon)),f.appendChild(a.createLabel.call(this,b.label))),m(d,v(this.config.selectors.buttons[g],d)),al(f,d),"play"===g?(o(this.elements.buttons[g])||(this.elements.buttons[g]=[]),this.elements.buttons[g].push(f)):this.elements.buttons[g]=f,f},createRange:function(c,d){var b=e("input",m(v(this.config.selectors.inputs[c]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":q(c,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},d));return this.elements.inputs[c]=b,a.updateRangeFill.call(this,b),bn.setup(b),b},createProgress:function(a,d){var b=e("progress",m(v(this.config.selectors.display[a]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},d)),c,f;return"volume"!==a&&(b.appendChild(e("span",null,"0")),c={played:"played",buffer:"buffered"}[a],f=c?q(c,this.config):"",b.innerText="% ".concat(f.toLowerCase())),this.elements.display[a]=b,b},createTime:function(a,d){var b=v(this.config.selectors.display[a],d),c=e("div",m(b,{class:"".concat(b.class?b.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":q(a,this.config)}),"00:00");return this.elements.display[a]=c,c},bindMenuItemShortcuts:function(c,e){var d=this;g.call(this,c,"keydown keyup",function(f){if([32,38,39,40].includes(f.which)&&(f.preventDefault(),f.stopPropagation(),"keydown"!==f.type)){var g,h=H(c,'[role="menuitemradio"]');!h&&[32,39].includes(f.which)?a.showMenuPanel.call(d,e,!0):32!==f.which&&(40===f.which||h&&39===f.which?(g=c.nextElementSibling,b(g)||(g=c.parentNode.firstElementChild)):(g=c.previousElementSibling,b(g)||(g=c.parentNode.lastElementChild)),az.call(d,g,!0))}},!1),g.call(this,c,"keyup",function(b){13===b.which&&a.focusFirstMenuItem.call(d,null,!0)})},createMenuItem:function(d){var f=this,g=d.value,q=d.list,h=d.type,p=d.title,n=d.badge,k=void 0===n?null:n,l=d.checked,o=void 0!==l&&l,i=v(this.config.selectors.inputs[h]),c=e("button",m(i,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(i.class?i.class:"").trim(),"aria-checked":o,value:g})),j=e("span");j.innerHTML=p,b(k)&&j.appendChild(k),c.appendChild(j),Object.defineProperty(c,"checked",{enumerable:!0,get:function(){return"true"===c.getAttribute("aria-checked")},set:function(a){a&&Array.from(c.parentNode.children).filter(function(a){return H(a,'[role="menuitemradio"]')}).forEach(function(a){return a.setAttribute("aria-checked","false")}),c.setAttribute("aria-checked",a?"true":"false")}}),this.listeners.bind(c,"click keyup",function(b){if(!E(b)||32===b.which){switch(b.preventDefault(),b.stopPropagation(),c.checked=!0,h){case"language":f.currentTrack=Number(g);break;case"quality":f.quality=g;break;case"speed":f.speed=parseFloat(g)}a.showMenuPanel.call(f,"home",E(b))}},h,!1),a.bindMenuItemShortcuts.call(this,c,h),q.appendChild(c)},formatTime:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,b=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c;return k(a)?(c=aJ(this.duration)>0,aa(a,c,b)):a},updateTimeDisplay:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];b(c)&&k(d)&&(c.innerText=a.formatTime(d,e))},updateVolume:function(){this.supported.ui&&(b(this.elements.inputs.volume)&&a.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),b(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;b(c)&&(c.value=d,a.updateRangeFill.call(this,c))},updateProgress:function(c){var g=this,d,e,f;if(this.supported.ui&&A(c)){if(f=0,c)switch(c.type){case"timeupdate":case"seeking":case"seeked":d=this.currentTime,e=this.duration,f=0===d||0===e||Number.isNaN(d)||Number.isNaN(e)?0:(d/e*100).toFixed(2),"timeupdate"===c.type&&a.setRange.call(this,this.elements.inputs.seek,f);break;case"playing":case"progress":!function(c,d){var e=k(d)?d:0,a=b(c)?c:g.elements.display.buffer,f;b(a)&&(a.value=e,f=a.getElementsByTagName("span")[0],b(f)&&(f.childNodes[0].nodeValue=e))}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(d){var c=A(d)?d.target:d,f,g,h,e;b(c)&&"range"===c.getAttribute("type")&&(H(c,this.config.selectors.inputs.seek)?(c.setAttribute("aria-valuenow",this.currentTime),f=a.formatTime(this.currentTime),g=a.formatTime(this.duration),h=q("seekLabel",this.config),c.setAttribute("aria-valuetext",h.replace("{currentTime}",f).replace("{duration}",g))):H(c,this.config.selectors.inputs.volume)?(e=100*c.value,c.setAttribute("aria-valuenow",e),c.setAttribute("aria-valuetext","".concat(e.toFixed(1),"%"))):c.setAttribute("aria-valuenow",c.value),r.isWebkit&&c.style.setProperty("--value","".concat(c.value/c.max*100,"%")))},updateSeekTooltip:function(d){var i=this,e,g,c,h;if(this.config.tooltips.seek&&b(this.elements.inputs.seek)&&b(this.elements.display.seekTooltip)&&0!==this.duration)if(e="".concat(this.config.classNames.tooltip,"--visible"),g=function(a){return f(i.elements.display.seekTooltip,e,a)},this.touch)g(!1);else{if(c=0,h=this.elements.progress.getBoundingClientRect(),A(d))c=100/h.width*(d.pageX-h.left);else{if(!X(this.elements.display.seekTooltip,e))return;c=parseFloat(this.elements.display.seekTooltip.style.left,10)}c<0?c=0:c>100&&(c=100),a.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*c),this.elements.display.seekTooltip.style.left="".concat(c,"%"),A(d)&&["mouseenter","mouseleave"].includes(d.type)&&g("mouseenter"===d.type)}},timeUpdate:function(c){var d=!b(this.elements.display.duration)&&this.config.invertTime;a.updateTimeDisplay.call(this,this.elements.display.currentTime,d?this.duration-this.currentTime:this.currentTime,d),c&&"timeupdate"===c.type&&this.media.seeking||a.updateProgress.call(this,c)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return G(this.elements.display.currentTime,!0),void G(this.elements.progress,!0);b(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var c=b(this.elements.display.duration);!c&&this.config.displayDuration&&this.paused&&a.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),c&&a.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),a.updateSeekTooltip.call(this)}},toggleMenuButton:function(a,b){G(this.elements.settings.buttons[a],!b)},updateSetting:function(d,j,g){var h=this.elements.settings.panels[d],e=null,f=j,i;if("captions"===d)e=this.currentTrack;else{if(e=c(g)?this[d]:g,c(e)&&(e=this.config[d].default),!c(this.options[d])&&!this.options[d].includes(e))return void this.debug.warn("Unsupported value of '".concat(e,"' for ").concat(d));if(!this.config[d].options.includes(e))return void this.debug.warn("Disabled value of '".concat(e,"' for ").concat(d))}b(f)||(f=h&&h.querySelector('[role="menu"]')),b(f)&&(this.elements.settings.buttons[d].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=a.getLabel.call(this,d,e),i=f&&f.querySelector('[value="'.concat(e,'"]')),b(i)&&(i.checked=!0))},getLabel:function(c,a){switch(c){case"speed":return 1===a?q("normal",this.config):"".concat(a,"×");case"quality":if(k(a)){var b=q("qualityLabel.".concat(a),this.config);return b.length?b:"".concat(a,"p")}return aw(a);case"captions":return h.getLabel.call(this);default:return null}},setQualityMenu:function(f){var d=this,e,g,h;b(this.elements.settings.panels.quality)&&(e=this.elements.settings.panels.quality.querySelector('[role="menu"]'),o(f)&&(this.options.quality=aR(f).filter(function(a){return d.config.quality.options.includes(a)})),g=!c(this.options.quality)&&this.options.quality.length>1,(a.toggleMenuButton.call(this,"quality",g),ah(e),a.checkMenu.call(this),g)&&(h=function(c){var b=q("qualityBadge.".concat(c),d.config);return b.length?a.createBadge.call(d,b):null},this.options.quality.sort(function(b,c){var a=d.config.quality.options;return a.indexOf(b)>a.indexOf(c)?1:-1}).forEach(function(b){a.createMenuItem.call(d,{value:b,list:e,type:"quality",title:a.getLabel.call(d,"quality",b),badge:h(b)})}),a.updateSetting.call(this,"quality",e)))},setCaptionsMenu:function(){var c=this,d,e,f,g;b(this.elements.settings.panels.captions)&&(d=this.elements.settings.panels.captions.querySelector('[role="menu"]'),e=h.getTracks.call(this),f=Boolean(e.length),(a.toggleMenuButton.call(this,"captions",f),ah(d),a.checkMenu.call(this),f)&&(g=e.map(function(b,e){return{value:e,checked:c.captions.toggled&&c.currentTrack===e,title:h.getLabel.call(c,b),badge:b.language&&a.createBadge.call(c,b.language.toUpperCase()),list:d,type:"language"}}),g.unshift({value:-1,checked:!this.captions.toggled,title:q("disabled",this.config),list:d,type:"language"}),g.forEach(a.createMenuItem.bind(this)),a.updateSetting.call(this,"captions",d)))},setSpeedMenu:function(){var d=this,e,f;b(this.elements.settings.panels.speed)&&(e=this.elements.settings.panels.speed.querySelector('[role="menu"]'),this.options.speed=this.options.speed.filter(function(a){return a>=d.minimumSpeed&&a<=d.maximumSpeed}),f=!c(this.options.speed)&&this.options.speed.length>1,a.toggleMenuButton.call(this,"speed",f),ah(e),a.checkMenu.call(this),f&&(this.options.speed.forEach(function(b){a.createMenuItem.call(d,{value:b,list:e,type:"speed",title:a.getLabel.call(d,"speed",b)})}),a.updateSetting.call(this,"speed",e)))},checkMenu:function(){var a=this.elements.settings.buttons,b=!c(a)&&Object.values(a).some(function(a){return!a.hidden});G(this.elements.settings.menu,!b)},focusFirstMenuItem:function(c){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a,e;this.elements.settings.popup.hidden||(a=c,b(a)||(a=Object.values(this.elements.settings.panels).find(function(a){return!a.hidden})),e=a.querySelector('[role^="menuitem"]'),az.call(this,e,d))},toggleMenu:function(c){var e=this.elements.settings.popup,g=this.elements.buttons.settings,h,d,k,i;if(b(e)&&b(g)){if(h=e.hidden,d=h,t(c))d=c;else if(E(c)&&27===c.which)d=!1;else if(A(c)){if(k=j(c.composedPath)?c.composedPath()[0]:c.target,i=e.contains(k),i||!i&&c.target!==g&&d)return}g.setAttribute("aria-expanded",d),G(e,!d),f(this.elements.container,this.config.classNames.menu.open,d),d&&E(c)?a.focusFirstMenuItem.call(this,null,!0):d||h||az.call(this,g,E(c))}},getMenuSize:function(b){var a=b.cloneNode(!0),c,d;return a.style.position="absolute",a.style.opacity=0,a.removeAttribute("hidden"),b.parentNode.appendChild(a),c=a.scrollWidth,d=a.scrollHeight,x(a),{width:c,height:d}},showMenuPanel:function(){var j=this,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(h)),c,e,f,k;b(d)&&(c=d.parentNode,e=Array.from(c.children).find(function(a){return!a.hidden}),l.transitions&&!l.reducedMotion&&(c.style.width="".concat(e.scrollWidth,"px"),c.style.height="".concat(e.scrollHeight,"px"),f=a.getMenuSize.call(this,d),k=function b(a){a.target===c&&["width","height"].includes(a.propertyName)&&(c.style.width="",c.style.height="",ag.call(j,c,af,b))},g.call(this,c,af,k),c.style.width="".concat(f.width,"px"),c.style.height="".concat(f.height,"px")),G(e,!0),G(d,!1),a.focusFirstMenuItem.call(this,d,i))},setDownloadUrl:function(){var a=this.elements.buttons.download;b(a)&&a.setAttribute("href",this.download)},create:function(j){var d=this,p=a.bindMenuItemShortcuts,i=a.createButton,u=a.createProgress,o=a.createRange,n=a.createTime,s=a.setQualityMenu,t=a.setSpeedMenu,k=a.showMenuPanel,f,h;return this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large")),f=e("div",v(this.config.selectors.controls.wrapper)),this.elements.controls=f,h={class:"plyr__controls__item"},aR(this.config.controls).forEach(function(a){var C,t,B,s,E,w,y,z,A,D,x,F;"restart"===a&&f.appendChild(i.call(d,"restart",h)),"rewind"===a&&f.appendChild(i.call(d,"rewind",h)),"play"===a&&f.appendChild(i.call(d,"play",h)),"fast-forward"===a&&f.appendChild(i.call(d,"fast-forward",h)),"progress"===a&&(C=e("div",{class:"".concat(h.class," plyr__progress__container")}),t=e("div",v(d.config.selectors.progress)),(t.appendChild(o.call(d,"seek",{id:"plyr-seek-".concat(j.id)})),t.appendChild(u.call(d,"buffer")),d.config.tooltips.seek)&&(B=e("span",{class:d.config.classNames.tooltip},"00:00"),t.appendChild(B),d.elements.display.seekTooltip=B),d.elements.progress=t,C.appendChild(d.elements.progress),f.appendChild(C)),("current-time"===a&&f.appendChild(n.call(d,"currentTime",h)),"duration"===a&&f.appendChild(n.call(d,"duration",h)),"mute"===a||"volume"===a)&&(s=d.elements.volume,(b(s)&&f.contains(s)||(s=e("div",m({},h,{class:"".concat(h.class," plyr__volume").trim()})),d.elements.volume=s,f.appendChild(s)),"mute"===a&&s.appendChild(i.call(d,"mute")),"volume"===a&&!r.isIos)&&(E={max:1,step:.05,value:d.config.volume},s.appendChild(o.call(d,"volume",m(E,{id:"plyr-volume-".concat(j.id)}))))),("captions"===a&&f.appendChild(i.call(d,"captions",h)),"settings"===a&&!c(d.config.settings))&&(w=e("div",m({},h,{class:"".concat(h.class," plyr__menu").trim(),hidden:""})),w.appendChild(i.call(d,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(j.id),"aria-expanded":!1})),y=e("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(j.id),hidden:""}),z=e("div"),A=e("div",{id:"plyr-settings-".concat(j.id,"-home")}),D=e("div",{role:"menu"}),A.appendChild(D),z.appendChild(A),d.elements.settings.panels.home=A,d.config.settings.forEach(function(a){var b=e("button",m(v(d.config.selectors.buttons.settings),{type:"button",class:"".concat(d.config.classNames.control," ").concat(d.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""})),h,i,c,f;p.call(d,b,a),g.call(d,b,"click",function(){k.call(d,a,!1)}),h=e("span",null,q(a,d.config)),i=e("span",{class:d.config.classNames.menu.value}),i.innerHTML=j[a],h.appendChild(i),b.appendChild(h),D.appendChild(b),c=e("div",{id:"plyr-settings-".concat(j.id,"-").concat(a),hidden:""}),f=e("button",{type:"button",class:"".concat(d.config.classNames.control," ").concat(d.config.classNames.control,"--back")}),f.appendChild(e("span",{"aria-hidden":!0},q(a,d.config))),f.appendChild(e("span",{class:d.config.classNames.hidden},q("menuBack",d.config))),g.call(d,c,"keydown",function(a){37===a.which&&(a.preventDefault(),a.stopPropagation(),k.call(d,"home",!0))},!1),g.call(d,f,"click",function(){k.call(d,"home",!1)}),c.appendChild(f),c.appendChild(e("div",{role:"menu"})),z.appendChild(c),d.elements.settings.buttons[a]=b,d.elements.settings.panels[a]=c}),y.appendChild(z),w.appendChild(y),f.appendChild(w),d.elements.settings.popup=y,d.elements.settings.menu=w),("pip"===a&&l.pip&&f.appendChild(i.call(d,"pip",h)),"airplay"===a&&l.airplay&&f.appendChild(i.call(d,"airplay",h)),"download"===a)&&(x=m({},h,{element:"a",href:d.download,target:"_blank"}),d.isHTML5&&(x.download=""),F=d.config.urls.download,!M(F)&&d.isEmbed&&m(x,{icon:"logo-".concat(d.provider),label:d.provider}),f.appendChild(i.call(d,"download",x))),"fullscreen"===a&&f.appendChild(i.call(d,"fullscreen",h))}),this.isHTML5&&s.call(this,z.getQualityOptions.call(this)),t.call(this),f},inject:function(){var g=this,m,d,l,k,e,i,p,q,u,t,v,w;this.config.loadSprite&&(m=a.getIconUrl.call(this),m.cors&&a$(m.url,"sprite-plyr")),this.id=Math.floor(1e4*Math.random()),d=null,this.elements.controls=null,l={id:this.id,seektime:this.config.seekTime,title:this.config.title},k=!0,j(this.config.controls)&&(this.config.controls=this.config.controls.call(this,l)),this.config.controls||(this.config.controls=[]),b(this.config.controls)||n(this.config.controls)?d=this.config.controls:(d=a.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:h.getLabel.call(this)}),k=!1),i=function(b){var a=b;return Object.entries(l).forEach(function(c){var b=s(c,2),d=b[0],e=b[1];a=N(a,"{".concat(d,"}"),e)}),a},(k&&(n(this.config.controls)?d=i(d):b(d)&&(d.innerHTML=i(d.innerHTML))),n(this.config.selectors.controls.container)&&(e=document.querySelector(this.config.selectors.controls.container)),b(e)||(e=this.elements.container),e[b(d)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",d),b(this.elements.controls)||a.findElements.call(this),!c(this.elements.buttons))&&(p=function(a){var b=g.config.classNames.controlPressed;Object.defineProperty(a,"pressed",{enumerable:!0,get:function(){return X(a,b)},set:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f(a,b,c)}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(a){o(a)||J(a)?Array.from(a).filter(Boolean).forEach(p):p(a)})),(r.isEdge&&bj(e),this.config.tooltips.controls)&&(q=this.config,u=q.classNames,t=q.selectors,v="".concat(t.controls.wrapper," ").concat(t.labels," .").concat(u.hidden),w=K.call(this,v),Array.from(w).forEach(function(a){f(a,g.config.classNames.hidden,!1),f(a,g.config.classNames.tooltip,!0)}))}};function bf(c){var d=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=c,b;d&&(b=document.createElement("a"),b.href=a,a=b.href);try{return new URL(a)}catch(a){return null}}function bg(a){var b=new URLSearchParams;return u(a)&&Object.entries(a).forEach(function(c){var a=s(c,2),d=a[0],e=a[1];b.set(d,e)}),b}h={setup:function(){var i,f,c,d,j;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!l.textTracks?o(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&a.setCaptionsMenu.call(this):(b(this.elements.captions)||(this.elements.captions=e("div",v(this.config.selectors.captions)),function(c,a){b(c)&&b(a)&&a.parentNode.insertBefore(c,a.nextSibling)}(this.elements.captions,this.elements.wrapper)),r.isIE&&window.URL&&(i=this.media.querySelectorAll("track"),Array.from(i).forEach(function(a){var c=a.getAttribute("src"),b=bf(c);null!==b&&b.hostname!==window.location.href.hostname&&["http:","https:"].includes(b.protocol)&&S(c,"blob").then(function(b){a.setAttribute("src",window.URL.createObjectURL(b))}).catch(function(){x(a)})})),f=aR((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(a){return a.split("-")[0]})),c=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase(),"auto"===c&&(c=s(f,1)[0]),d=this.storage.get("captions"),(t(d)||(d=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:d,language:c,languages:f}),this.isHTML5)&&(j=this.config.captions.update?"addtrack removetrack":"removetrack",g.call(this,this.media.textTracks,j,h.update.bind(this))),setTimeout(h.update.bind(this),0)))},update:function(){var e=this,b=h.getTracks.call(this,!0),d=this.captions,l=d.active,i=d.language,j=d.meta,m=d.currentTrackNode,k=Boolean(b.find(function(a){return a.language===i}));this.isHTML5&&this.isVideo&&b.filter(function(a){return!j.get(a)}).forEach(function(a){e.debug.log("Track added",a),j.set(a,{default:"showing"===a.mode}),"showing"===a.mode&&(a.mode="hidden"),g.call(e,a,"cuechange",function(){return h.updateCues.call(e)})}),(k&&this.language!==i||!b.includes(m))&&(h.setLanguage.call(this,i),h.toggle.call(this,l&&k)),f(this.elements.container,this.config.classNames.captions.enabled,!c(b)),o(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&a.setCaptionsMenu.call(this)},toggle:function(c){var e=this,g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i,k,b,l,j;if(this.supported.ui){if(i=this.captions.toggled,k=this.config.classNames.captions.active,b=F(c)?!i:c,b!==i){if(g||(this.captions.active=b,this.storage.set({captions:b})),!this.language&&b&&!g)return l=h.getTracks.call(this),j=h.findTrack.call(this,[this.captions.language].concat(aN(this.captions.languages)),!0),this.captions.language=j.language,void h.set.call(this,l.indexOf(j));this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=b),f(this.elements.container,k,b),this.captions.toggled=b,a.updateSetting.call(this,"captions"),d.call(this,this.media,b?"captionsenabled":"captionsdisabled")}setTimeout(function(){b&&e.captions.toggled&&(e.captions.currentTrackNode.mode="hidden")})}},set:function(b){var c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=h.getTracks.call(this),g,i,e;-1!==b?k(b)?b in f?(this.captions.currentTrack!==b&&(this.captions.currentTrack=b,g=f[b],i=g||{},e=i.language,this.captions.currentTrackNode=g,a.updateSetting.call(this,"captions"),c||(this.captions.language=e,this.storage.set({language:e})),this.isVimeo&&this.embed.enableTextTrack(e),d.call(this,this.media,"languagechange")),h.toggle.call(this,!0,c),this.isHTML5&&this.isVideo&&h.updateCues.call(this)):this.debug.warn("Track not found",b):this.debug.warn("Invalid caption argument",b):h.toggle.call(this,!1,c)},setLanguage:function(a){var c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b,d,e;n(a)?(b=a.toLowerCase(),this.captions.language=b,d=h.getTracks.call(this),e=h.findTrack.call(this,[b]),h.set.call(this,d.indexOf(e),c)):this.debug.warn("Invalid language argument",a)},getTracks:function(){var a=this,b=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c=Array.from((this.media||{}).textTracks||[]);return c.filter(function(c){return!a.isHTML5||b||a.captions.meta.has(c)}).filter(function(a){return["captions","subtitles"].includes(a.kind)})},findTrack:function(g){var b,d=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],f=h.getTracks.call(this),c=function(a){return Number((d.captions.meta.get(a)||{}).default)},a=Array.from(f).sort(function(a,b){return c(b)-c(a)});return g.every(function(c){return!(b=a.find(function(a){return a.language===c}))}),b||(e?a[0]:void 0)},getCurrentTrack:function(){return h.getTracks.call(this)[this.currentTrack]},getLabel:function(b){var a=b;return!ao(a)&&l.textTracks&&this.captions.toggled&&(a=h.getCurrentTrack.call(this)),ao(a)?c(a.label)?c(a.language)?q("enabled",this.config):b.language.toUpperCase():a.label:q("disabled",this.config)},updateCues:function(a){var c,i,f,g;this.supported.ui&&(b(this.elements.captions)?F(a)||Array.isArray(a)?(c=a,c||(i=h.getCurrentTrack.call(this),c=Array.from((i||{}).activeCues||[]).map(function(a){return a.getCueAsHTML()}).map(bH)),f=c.map(function(a){return a.trim()}).join("\n"),f!==this.elements.captions.innerHTML&&(ah(this.elements.captions),g=e("span",v(this.config.selectors.caption)),g.innerHTML=f,this.elements.captions.appendChild(g),d.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",a):this.debug.warn("No captions element to render to"))}},am={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.1/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,premium:!1,referrerPolicy:null},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},an="picture-in-picture",bk="inline",y={html5:"html5",youtube:"youtube",vimeo:"vimeo"},bm="audio",au="video",Z=function(){},bp=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];D(this,a),this.enabled=window.console&&b,this.enabled&&this.log("Debugging enabled")}return I(a,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Z}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Z}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Z}}]),a}(),bo=function(){function a(d){var c=this;D(this,a),this.player=d,this.prefix=a.prefix,this.property=a.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===d.config.fullscreen.fallback,this.player.elements.fullscreen=d.config.fullscreen.container&&function(b,a){return(Element.prototype.closest||function(){var b=this;do{if(H.matches(b,a))return b;b=b.parentElement||b.parentNode}while(null!==b&&1===b.nodeType)return null}).call(b,a)}(this.player.elements.container,d.config.fullscreen.container),g.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){c.onChange()}),g.call(this.player,this.player.elements.container,"dblclick",function(a){b(c.player.elements.controls)&&c.player.elements.controls.contains(a.target)||c.toggle()}),g.call(this,this.player.elements.container,"keydown",function(a){return c.trapFocus(a)}),this.update()}return I(a,[{key:"onChange",value:function(){if(this.enabled){var a=this.player.elements.buttons.fullscreen;b(a)&&(a.pressed=this.active),d.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var b=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a,c,d;b?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=b?"hidden":"",f(this.target,this.player.config.classNames.fullscreen.fallback,b),r.isIos&&(a=document.head.querySelector('meta[name="viewport"]'),c="viewport-fit=cover",a||(a=document.createElement("meta")).setAttribute("name","viewport"),d=n(a.content)&&a.content.includes(c),b?(this.cleanupViewport=!d,d||(a.content+=",".concat(c))):this.cleanupViewport&&(a.content=a.content.split(",").filter(function(a){return a.trim()!==c}).join(","))),this.onChange()}},{key:"trapFocus",value:function(a){if(!r.isIos&&this.active&&"Tab"===a.key&&9===a.keyCode){var c=document.activeElement,b=K.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),d=s(b,1)[0],e=b[b.length-1];c!==e||a.shiftKey?c===d&&a.shiftKey&&(e.focus(),a.preventDefault()):(d.focus(),a.preventDefault())}}},{key:"update",value:function(){var b;this.enabled?(b=this.forceFallback?"Fallback (forced)":a.native?"Native":"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled"),f(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(r.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!a.native||this.forceFallback?this.toggleFallback(!0):this.prefix?c(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(r.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),w(this.player.play());else if(!a.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!c(this.prefix)){var b="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(b).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return a.native&&!this.forceFallback}},{key:"enabled",get:function(){return(a.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!a.native||this.forceFallback)return X(this.target,this.player.config.classNames.fullscreen.fallback);var b=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return b&&b.shadowRoot?b===this.target.getRootNode().host:b===this.target}},{key:"target",get:function(){return r.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(j(document.exitFullscreen))return"";var a="";return["webkit","moz","ms"].some(function(b){return!(!j(document["".concat(b,"ExitFullscreen")])&&!j(document["".concat(b,"CancelFullScreen")]))&&(a=b,!0)}),a}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),a}();function ad(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(e,f){var c=new Image,d=function(){delete c.onload,delete c.onerror,(c.naturalWidth>=b?e:f)(c)};Object.assign(c,{onload:d,onerror:d,src:a})})}i={addStyleHook:function(){f(this.elements.container,this.config.selectors.container.replace(".",""),!0),f(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var c=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void i.toggleNativeControls.call(this,!0);b(this.elements.controls)||(a.inject.call(this),this.listeners.controls()),i.toggleNativeControls.call(this),this.isHTML5&&h.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,a.updateVolume.call(this),a.timeUpdate.call(this),i.checkPlaying.call(this),f(this.elements.container,this.config.classNames.pip.supported,l.pip&&this.isHTML5&&this.isVideo),f(this.elements.container,this.config.classNames.airplay.supported,l.airplay&&this.isHTML5),f(this.elements.container,this.config.classNames.isIos,r.isIos),f(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){d.call(c,c.media,"ready")},0),i.setTitle.call(this),this.poster&&i.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&a.durationUpdate.call(this)},setTitle:function(){var a=q("play",this.config),d,e,f;if(n(this.config.title)&&!c(this.config.title)&&(a+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(b){b.setAttribute("aria-label",a)}),this.isEmbed){if(d=p.call(this,"iframe"),!b(d))return;e=c(this.config.title)?"video":this.config.title,f=q("frameTitle",this.config),d.setAttribute("title",f.replace("{title}",e))}},togglePoster:function(a){f(this.elements.container,this.config.classNames.posterEnabled,a)},setPoster:function(a){var b=this,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return c&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",a),bF.call(this).then(function(){return ad(a)}).catch(function(c){throw a===b.poster&&i.togglePoster.call(b,!1),c}).then(function(){if(a!==b.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(b.elements.poster.style,{backgroundImage:"url('".concat(a,"')"),backgroundSize:""}),i.togglePoster.call(b,!0),a}))},checkPlaying:function(b){var a=this;f(this.elements.container,this.config.classNames.playing,this.playing),f(this.elements.container,this.config.classNames.paused,this.paused),f(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(b){Object.assign(b,{pressed:a.playing}),b.setAttribute("aria-label",q(a.playing?"pause":"play",a.config))}),A(b)&&"timeupdate"===b.type||i.toggleControls.call(this)},checkLoading:function(b){var a=this;this.loading=["stalled","waiting"].includes(b.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){f(a.elements.container,a.config.classNames.loading,a.loading),i.toggleControls.call(a)},this.loading?250:0)},toggleControls:function(b){var a=this.elements.controls,c;a&&this.config.hideControls&&(c=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(b||this.loading||this.paused||a.pressed||a.hover||c)))},migrateStyles:function(){var a=this;Object.values(W({},this.media.style)).filter(function(a){return!c(a)&&a.startsWith("--plyr")}).forEach(function(b){a.elements.container.style.setProperty(b,a.media.style.getPropertyValue(b)),a.media.style.removeProperty(b)}),c(this.media.style)&&this.media.removeAttribute("style")}},bt=function(){function e(a){D(this,e),this.player=a,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return I(e,[{key:"handleKey",value:function(c){var a=this.player,h=a.elements,d=c.keyCode?c.keyCode:c.which,g="keydown"===c.type,e=g&&d===this.lastKey,f,i;if(!(c.altKey||c.ctrlKey||c.metaKey||c.shiftKey)&&k(d))if(g){if(f=document.activeElement,b(f)){if(i=a.config.selectors.editable,f!==h.inputs.seek&&H(f,i))return;if(32===c.which&&H(f,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(d)&&(c.preventDefault(),c.stopPropagation()),d){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:e||(a.currentTime=a.duration/10*(d-48));break;case 32:case 75:e||w(a.togglePlay());break;case 38:a.increaseVolume(.1);break;case 40:a.decreaseVolume(.1);break;case 77:e||(a.muted=!a.muted);break;case 39:a.forward();break;case 37:a.rewind();break;case 70:a.fullscreen.toggle();break;case 67:e||a.toggleCaptions();break;case 76:a.loop=!a.loop}27===d&&!a.fullscreen.usingNative&&a.fullscreen.active&&a.fullscreen.toggle(),this.lastKey=d}else this.lastKey=null}},{key:"toggleMenu",value:function(b){a.toggleMenu.call(this.player,b)}},{key:"firstTouch",value:function(){var a=this.player,b=a.elements;a.touch=!0,f(b.container,a.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(a){var b=this.player,d=b.elements,c,e;(clearTimeout(this.focusTimer),"keydown"!==a.type||9===a.which)&&("keydown"===a.type&&(this.lastKeyDown=a.timeStamp),e=a.timeStamp-this.lastKeyDown<=20,("focus"!==a.type||e)&&(c=b.config.classNames.tabFocus,f(K.call(b,".".concat(c)),c,!1),"focusout"!==a.type&&(this.focusTimer=setTimeout(function(){var a=document.activeElement;d.container.contains(a)&&f(document.activeElement,b.config.classNames.tabFocus,!0)},10))))}},{key:"global",value:function(){var b=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=this.player;a.config.keyboard.global&&L.call(a,window,"keydown keyup",this.handleKey,b,!1),L.call(a,document.body,"click",this.toggleMenu,b),aH.call(a,document.body,"touchstart",this.firstTouch),L.call(a,document.body,"keydown focus blur focusout",this.setTabFocus,b,!1,!0)}},{key:"container",value:function(){var a=this.player,e=a.config,b=a.elements,d=a.timers,f,h;!e.keyboard.global&&e.keyboard.focused&&g.call(a,b.container,"keydown keyup",this.handleKey,!1),g.call(a,b.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var c=b.controls,f;c&&"enterfullscreen"===e.type&&(c.pressed=!1,c.hover=!1),f=0,["touchstart","touchmove","mousemove"].includes(e.type)&&(i.toggleControls.call(a,!0),f=a.touch?3e3:2e3),clearTimeout(d.controls),d.controls=setTimeout(function(){return i.toggleControls.call(a,!1)},f)}),f=function(d){if(!d)return C.call(a);var c=b.container.getBoundingClientRect(),e=c.width,f=c.height;return C.call(a,"".concat(e,":").concat(f))},h=function(){clearTimeout(d.resized),d.resized=setTimeout(f,50)},g.call(a,b.container,"enterfullscreen exitfullscreen",function(j){var e=a.fullscreen,k=e.target,l=e.usingNative,d,i;k===b.container&&(a.isEmbed||!c(a.config.ratio))&&(d="enterfullscreen"===j.type,i=f(d),i.padding,!function(e,i,b){if(a.isVimeo&&!a.config.vimeo.premium){var c=a.elements.wrapper.firstChild,g=s(e,2)[1],d=s(aO.call(a),2),h=d[0],f=d[1];c.style.maxWidth=b?"".concat(g/f*h,"px"):null,c.style.margin=b?"0 auto":null}}(i.ratio,0,d),l||(d?g.call(a,window,"resize",h):ag.call(a,window,"resize",h)))})}},{key:"media",value:function(){var f=this,c=this.player,e=c.elements,h,j;if(g.call(c,c.media,"timeupdate seeking seeked",function(b){return a.timeUpdate.call(c,b)}),g.call(c,c.media,"durationchange loadeddata loadedmetadata",function(b){return a.durationUpdate.call(c,b)}),g.call(c,c.media,"ended",function(){c.isHTML5&&c.isVideo&&c.config.resetOnEnd&&(c.restart(),c.pause())}),g.call(c,c.media,"progress playing seeking seeked",function(b){return a.updateProgress.call(c,b)}),g.call(c,c.media,"volumechange",function(b){return a.updateVolume.call(c,b)}),g.call(c,c.media,"playing play pause ended emptied timeupdate",function(a){return i.checkPlaying.call(c,a)}),g.call(c,c.media,"waiting canplay seeked playing",function(a){return i.checkLoading.call(c,a)}),c.supported.ui&&c.config.clickToPlay&&!c.isAudio){if(h=p.call(c,".".concat(c.config.classNames.video)),!b(h))return;g.call(c,e.container,"click",function(a){([e.container,h].includes(a.target)||h.contains(a.target))&&(c.touch&&c.config.hideControls||(c.ended?(f.proxy(a,c.restart,"restart"),f.proxy(a,function(){w(c.play())},"play")):f.proxy(a,function(){w(c.togglePlay())},"play")))})}c.supported.ui&&c.config.disableContextMenu&&g.call(c,e.wrapper,"contextmenu",function(a){a.preventDefault()},!1),g.call(c,c.media,"volumechange",function(){c.storage.set({volume:c.volume,muted:c.muted})}),g.call(c,c.media,"ratechange",function(){a.updateSetting.call(c,"speed"),c.storage.set({speed:c.speed})}),g.call(c,c.media,"qualitychange",function(b){a.updateSetting.call(c,"quality",null,b.detail.quality)}),g.call(c,c.media,"ready qualitychange",function(){a.setDownloadUrl.call(c)}),j=c.config.events.concat(["keyup","keydown"]).join(" "),g.call(c,c.media,j,function(a){var b=a.detail,f=void 0===b?{}:b;"error"===a.type&&(f=c.media.error),d.call(c,e.container,a.type,!0,f)})}},{key:"proxy",value:function(b,c,f){var a=this.player,d=a.config.listeners[f],e=!0;j(d)&&(e=d.call(a,b)),!1!==e&&j(c)&&c.call(a,b)}},{key:"bind",value:function(h,c,d,b){var e=this,f=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.player,i=a.config.listeners[b],k=j(i);g.call(a,h,c,function(a){return e.proxy(a,d,b)},f&&!k)}},{key:"controls",value:function(){var h=this,e=this.player,g=e.elements,j=r.isIE?"change":"input",k;g.buttons.play&&Array.from(g.buttons.play).forEach(function(a){h.bind(a,"click",function(){w(e.togglePlay())},"play")}),this.bind(g.buttons.restart,"click",e.restart,"restart"),this.bind(g.buttons.rewind,"click",e.rewind,"rewind"),this.bind(g.buttons.fastForward,"click",e.forward,"fastForward"),this.bind(g.buttons.mute,"click",function(){e.muted=!e.muted},"mute"),this.bind(g.buttons.captions,"click",function(){return e.toggleCaptions()}),this.bind(g.buttons.download,"click",function(){d.call(e,e.media,"download")},"download"),this.bind(g.buttons.fullscreen,"click",function(){e.fullscreen.toggle()},"fullscreen"),this.bind(g.buttons.pip,"click",function(){e.pip="toggle"},"pip"),this.bind(g.buttons.airplay,"click",e.airplay,"airplay"),this.bind(g.buttons.settings,"click",function(b){b.stopPropagation(),b.preventDefault(),a.toggleMenu.call(e,b)},null,!1),this.bind(g.buttons.settings,"keyup",function(b){var c=b.which;[13,32].includes(c)&&(13!==c?(b.preventDefault(),b.stopPropagation(),a.toggleMenu.call(e,b)):a.focusFirstMenuItem.call(e,null,!0))},null,!1),this.bind(g.settings.menu,"keydown",function(b){27===b.which&&a.toggleMenu.call(e,b)}),this.bind(g.inputs.seek,"mousedown mousemove",function(a){var b=g.progress.getBoundingClientRect(),c=100/b.width*(a.pageX-b.left);a.currentTarget.setAttribute("seek-value",c)}),this.bind(g.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(a){var b=a.currentTarget,c=a.keyCode?a.keyCode:a.which,f,d;(!E(a)||39===c||37===c)&&(e.lastSeekTime=Date.now(),f=b.hasAttribute("play-on-seeked"),d=["mouseup","touchend","keyup"].includes(a.type),f&&d?(b.removeAttribute("play-on-seeked"),w(e.play())):!d&&e.playing&&(b.setAttribute("play-on-seeked",""),e.pause()))}),r.isIos&&(k=K.call(e,'input[type="range"]'),Array.from(k).forEach(function(a){return h.bind(a,j,function(a){return bj(a.target)})})),this.bind(g.inputs.seek,j,function(d){var a=d.currentTarget,b=a.getAttribute("seek-value");c(b)&&(b=a.value),a.removeAttribute("seek-value"),e.currentTime=b/a.max*e.duration},"seek"),this.bind(g.progress,"mouseenter mouseleave mousemove",function(b){return a.updateSeekTooltip.call(e,b)}),this.bind(g.progress,"mousemove touchmove",function(b){var a=e.previewThumbnails;a&&a.loaded&&a.startMove(b)}),this.bind(g.progress,"mouseleave touchend click",function(){var a=e.previewThumbnails;a&&a.loaded&&a.endMove(!1,!0)}),this.bind(g.progress,"mousedown touchstart",function(b){var a=e.previewThumbnails;a&&a.loaded&&a.startScrubbing(b)}),this.bind(g.progress,"mouseup touchend",function(b){var a=e.previewThumbnails;a&&a.loaded&&a.endScrubbing(b)}),r.isWebkit&&Array.from(K.call(e,'input[type="range"]')).forEach(function(b){h.bind(b,"input",function(b){return a.updateRangeFill.call(e,b.target)})}),e.config.toggleInvert&&!b(g.display.duration)&&this.bind(g.display.currentTime,"click",function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,a.timeUpdate.call(e))}),this.bind(g.inputs.volume,j,function(a){e.volume=a.target.value},"volume"),this.bind(g.controls,"mouseenter mouseleave",function(a){g.controls.hover=!e.touch&&"mouseenter"===a.type}),g.fullscreen&&Array.from(g.fullscreen.children).filter(function(a){return!a.contains(g.container)}).forEach(function(a){h.bind(a,"mouseenter mouseleave",function(a){g.controls.hover=!e.touch&&"mouseenter"===a.type})}),this.bind(g.controls,"mousedown mouseup touchstart touchend touchcancel",function(a){g.controls.pressed=["mousedown","touchstart"].includes(a.type)}),this.bind(g.controls,"focusin",function(){var a=e.config,b=e.timers,c;f(g.controls,a.classNames.noTransition,!0),i.toggleControls.call(e,!0),setTimeout(function(){f(g.controls,a.classNames.noTransition,!1)},0),c=h.touch?3e3:4e3,clearTimeout(b.controls),b.controls=setTimeout(function(){return i.toggleControls.call(e,!1)},c)}),this.bind(g.inputs.volume,"wheel",function(a){var h=a.webkitDirectionInvertedFromDevice,c=s([a.deltaX,-a.deltaY].map(function(a){return h?-a:a}),2),d=c[0],f=c[1],b=Math.sign(Math.abs(d)>Math.abs(f)?d:f),g;e.increaseVolume(b/50),g=e.media.volume,(1===b&&g<1||-1===b&&g>0)&&a.preventDefault()},"volume",!1)}}]),e}(),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,bu=function(b,a){return b(a={exports:{}},a.exports),a.exports}(function(a,b){a.exports=function(){var d=function(){},c={},e={},b={};function g(a,d){if(a){var c=b[a];if(e[a]=d,c)for(;c.length;)c[0](a,d),c.splice(0,1)}}function f(a,b){a.call&&(a={success:a}),b.length?(a.error||d)(b):(a.success||d)(a)}function h(b,i,c,e){var g,a,f=document,j=c.async,m=(c.numRetries||0)+1,n=c.before||d,k=b.replace(/[\?|#].*$/,""),l=b.replace(/^(css|img)!/,"");e=e||0,/(^css!|\.css$)/.test(k)?((a=f.createElement("link")).rel="stylesheet",a.href=l,(g="hideFocus"in a)&&a.relList&&(g=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(k)?(a=f.createElement("img")).src=l:((a=f.createElement("script")).src=b,a.async=void 0===j||j),a.onload=a.onerror=a.onbeforeload=function(f){var d=f.type[0];if(g)try{a.sheet.cssText.length||(d="e")}catch(a){18!=a.code&&(d="e")}if("e"==d){if((e+=1)0&&void 0!==arguments[0]&&arguments[0],c;if(!b)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");c=function(){var b=aa(Math.max(a.manager.getRemainingTime(),0)),c="".concat(q("advertisement",a.player.config)," - ").concat(b);a.elements.container.setAttribute("data-badge-text",c)},this.countdownTimer=setInterval(c,100)}},{key:"onAdsManagerLoaded",value:function(c){var a=this,b;this.enabled&&(b=new google.ima.AdsRenderingSettings,b.restoreCustomPlaybackStateOnAdBreakComplete=!0,b.enablePreloading=!0,this.manager=c.getAdsManager(this.player,b),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(b){return a.onAdError(b)}),Object.keys(google.ima.AdEvent.Type).forEach(function(b){a.manager.addEventListener(google.ima.AdEvent.Type[b],function(b){return a.onAdEvent(b)})}),this.trigger("loaded"))}},{key:"addCuePoints",value:function(){var a=this;c(this.cuePoints)||this.cuePoints.forEach(function(c){var d,g,f;0!==c&&-1!==c&&c1?b-1:0),a=1,d;aa.width/a.height?(b.width=a.width,b.height=1/c*a.width):(b.height=a.height,b.width=c*a.height),b},aP=function(){function a(b){D(this,a),this.player=b,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return I(a,[{key:"load",value:function(){var a=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(function(){a.enabled&&(a.render(),a.determineContainerAutoSizing(),a.loaded=!0)})}},{key:"getThumbnails",value:function(){var a=this;return new Promise(function(e){var b=a.player.config.previewThumbnails.src,d,f;if(c(b))throw new Error("Missing previewThumbnails.src config attribute");d=function(){a.thumbnails.sort(function(a,b){return a.height-b.height}),a.player.debug.log("Preview thumbnails",a.thumbnails),e()},j(b)?b(function(b){a.thumbnails=b,d()}):(f=(n(b)?[b]:b).map(function(b){return a.getThumbnail(b)}),Promise.all(f).then(d))})}},{key:"getThumbnail",value:function(a){var b=this;return new Promise(function(d){S(a).then(function(i){var h,g,e={frames:(h=i,g=[],h.split(/\r\n\r\n|\n\n|\r\r/).forEach(function(b){var a={};b.split(/\r\n|\n|\r/).forEach(function(f){var e,g,d,b;k(a.startTime)?!c(f.trim())&&c(a.text)&&(e=f.trim().split("#xywh="),g=s(e,1),(a.text=g[0],e[1])&&(d=s(e[1].split(","),4),a.x=d[0],a.y=d[1],a.w=d[2],a.h=d[3])):(b=f.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/),b&&(a.startTime=60*Number(b[1]||0)*60+60*Number(b[2])+Number(b[3])+Number("0.".concat(b[4])),a.endTime=60*Number(b[6]||0)*60+60*Number(b[7])+Number(b[8])+Number("0.".concat(b[9]))))}),a.text&&g.push(a)}),g),height:null,urlPrefix:""},f;e.frames[0].text.startsWith("/")||e.frames[0].text.startsWith("http://")||e.frames[0].text.startsWith("https://")||(e.urlPrefix=a.substring(0,a.lastIndexOf("/")+1)),f=new Image,f.onload=function(){e.height=f.naturalHeight,e.width=f.naturalWidth,b.thumbnails.push(e),d()},f.src=e.urlPrefix+e.frames[0].text})})}},{key:"startMove",value:function(a){if(this.loaded&&A(a)&&["touchmove","mousemove"].includes(a.type)&&this.player.media.duration){if("touchmove"===a.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var b=this.player.elements.progress.getBoundingClientRect(),c=100/b.width*(a.pageX-b.left);this.seekTime=this.player.media.duration*(c/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=a.pageX,this.elements.thumb.time.innerText=aa(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(a){(F(a.button)||!1===a.button||0===a.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var a=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):aH.call(this.player,this.player.media,"timeupdate",function(){a.mouseDown||a.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var a=this;this.player.on("play",function(){a.toggleThumbContainer(!1,!0)}),this.player.on("seeked",function(){a.toggleThumbContainer(!1)}),this.player.on("timeupdate",function(){a.lastTime=a.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=e("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=e("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var a=e("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=e("span",{},"00:00"),a.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(a),b(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=e("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var b=this,a,c,d;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos(),a=this.thumbnails[0].frames.findIndex(function(a){return b.seekTime>=a.startTime&&b.seekTime<=a.endTime}),c=a>=0,d=0,this.mouseDown||this.toggleThumbContainer(c),c&&(this.thumbnails.forEach(function(c,e){b.loadedImages.includes(c.frames[a].text)&&(d=e)}),a!==this.showingThumb&&(this.showingThumb=a,this.loadImage(d)))}},{key:"loadImage",value:function(){var i=this,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=this.showingThumb,e=this.thumbnails[d],h=e.urlPrefix,f=e.frames[c],b=e.frames[c].text,g=h+b,a;this.currentImageElement&&this.currentImageElement.dataset.filename===b?(this.showImage(this.currentImageElement,f,d,c,b,!1),this.currentImageElement.dataset.index=c,this.removeOldImages(this.currentImageElement)):(this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null),a=new Image,a.src=g,a.dataset.index=c,a.dataset.filename=b,this.showingThumbFilename=b,this.player.debug.log("Loading image: ".concat(g)),a.onload=function(){return i.showImage(a,f,d,c,b,!0)},this.loadingImage=a,this.removeOldImages(a))}},{key:"showImage",value:function(a,d,e,c,b){var f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(b,". num: ").concat(c,". qual: ").concat(e,". newimg: ").concat(f)),this.setImageSizeAndOffset(a,d),f&&(this.currentImageContainer.appendChild(a),this.currentImageElement=a,this.loadedImages.includes(b)||this.loadedImages.push(b)),this.preloadNearby(c,!0).then(this.preloadNearby(c,!1)).then(this.getHigherQuality(e,a,d,b))}},{key:"removeOldImages",value:function(b){var a=this;Array.from(this.currentImageContainer.children).forEach(function(c){var d,e;"img"===c.tagName.toLowerCase()&&(d=a.usingSprites?500:1e3,c.dataset.index!==b.dataset.index&&!c.dataset.deleting&&(c.dataset.deleting=!0,e=a.currentImageContainer,setTimeout(function(){e.removeChild(c),a.player.debug.log("Removing thumb: ".concat(c.dataset.filename))},d)))})}},{key:"preloadNearby",value:function(b){var a=this,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(d){setTimeout(function(){var e=a.thumbnails[0].frames[b].text,f,g;a.showingThumbFilename===e&&(f=c?a.thumbnails[0].frames.slice(b):a.thumbnails[0].frames.slice(0,b).reverse(),g=!1,f.forEach(function(f){var b=f.text,h,c;b!==e&&!a.loadedImages.includes(b)&&(g=!0,a.player.debug.log("Preloading thumb filename: ".concat(b)),h=a.thumbnails[0].urlPrefix+b,c=new Image,c.src=h,c.onload=function(){a.player.debug.log("Preloaded thumb filename: ".concat(b)),a.loadedImages.includes(b)||a.loadedImages.push(b),d()})}),g||d())},300)})}},{key:"getHigherQuality",value:function(b,e,f,c){var a=this,d;b0&&void 0!==arguments[0]&&arguments[0],b=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(c,a),!a&&b&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],b=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(b,a),a||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){var a,b,c;this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20?(a=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio),this.elements.thumb.imageContainer.style.width="".concat(a,"px")):this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20&&(b=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio),this.elements.thumb.imageContainer.style.height="".concat(b,"px")):(c=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio),this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(c,"px")),this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var b=this.player.elements.progress.getBoundingClientRect(),d=this.player.elements.container.getBoundingClientRect(),c=this.elements.thumb.container,e=d.left-b.left+10,f=d.right-b.left-c.clientWidth-10,a=this.mousePosX-b.left-c.clientWidth/2;af&&(a=f),c.style.left="".concat(a,"px")}},{key:"setScrubbingContainerSize",value:function(){var a=aL(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),b=a.width,c=a.height;this.elements.scrubbing.container.style.width="".concat(b,"px"),this.elements.scrubbing.container.style.height="".concat(c,"px")}},{key:"setImageSizeAndOffset",value:function(a,c){if(this.usingSprites){var b=this.thumbContainerHeight/c.h;a.style.height="".concat(a.naturalHeight*b,"px"),a.style.width="".concat(a.naturalWidth*b,"px"),a.style.left="-".concat(c.x*b,"px"),a.style.top="-".concat(c.y*b,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?aL(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(a){this.mouseDown?this.currentScrubbingImageElement=a:this.currentThumbnailImageElement=a}}]),a}(),ab={insertElements:function(b,a){var c=this;n(a)?be(b,this.media,{src:a}):o(a)&&a.forEach(function(a){be(b,c.media,a)})},change:function(d){var a=this;bi(d,"sources.length")?(z.cancelRequests.call(this),this.destroy.call(this,function(){a.options.quality=[],x(a.media),a.media=null,b(a.elements.container)&&a.elements.container.removeAttribute("class");var h=d.sources,g=d.type,j=s(h,1)[0],k=j.provider,f=void 0===k?y.html5:k,m=j.src,n="html5"===f?g:"div",o="html5"===f?{}:{src:m};Object.assign(a,{provider:f,type:g,supported:l.check(g,f,a.config.playsinline),media:e(n,o)}),a.elements.container.appendChild(a.media),t(d.autoplay)&&(a.config.autoplay=d.autoplay),a.isHTML5&&(a.config.crossorigin&&a.media.setAttribute("crossorigin",""),a.config.autoplay&&a.media.setAttribute("autoplay",""),c(d.poster)||(a.poster=d.poster),a.config.loop.active&&a.media.setAttribute("loop",""),a.config.muted&&a.media.setAttribute("muted",""),a.config.playsinline&&a.media.setAttribute("playsinline","")),i.addStyleHook.call(a),a.isHTML5&&ab.insertElements.call(a,"source",h),a.config.title=d.title,aI.setup.call(a),a.isHTML5&&Object.keys(d).includes("tracks")&&ab.insertElements.call(a,"track",d.tracks),(a.isHTML5||a.isEmbed&&!a.supported.ui)&&i.build.call(a),a.isHTML5&&a.media.load(),c(d.previewThumbnails)||(Object.assign(a.config.previewThumbnails,d.previewThumbnails),a.previewThumbnails&&a.previewThumbnails.loaded&&(a.previewThumbnails.destroy(),a.previewThumbnails=null),a.config.previewThumbnails.enabled&&(a.previewThumbnails=new aP(a))),a.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},ay=function(){function p(q,r){var h=this,j,k,d,a,f;if(D(this,p),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=l.touch,this.media=q,n(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||J(this.media)||o(this.media))&&(this.media=this.media[0]),this.config=m({},am,p.defaults,r||{},function(){try{return JSON.parse(h.media.getAttribute("data-plyr-config"))}catch(a){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new bp(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",l),!F(this.media)&&b(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(l.check().api){switch(j=this.media.cloneNode(!0),j.autoplay=!1,this.elements.original=j,k=this.media.tagName.toLowerCase(),d=null,a=null,k){case"div":if((d=this.media.querySelector("iframe"),b(d))?(a=bf(d.getAttribute("src")),this.provider=function(a){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(a)?y.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(a)?y.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=d,this.elements.container.className="",a.search.length)&&(f=["1","true"],f.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),f.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=f.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.searchParams.get("hl")):this.config.playsinline=!0):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),c(this.provider)||!Object.keys(y).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=au;break;case"video":case"audio":this.type=k,this.provider=y.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=l.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new bt(this),this.storage=new aM(this),this.media.plyr=this,b(this.elements.container)||(this.elements.container=e("div",{tabindex:0}),bh(this.media,this.elements.container)),i.migrateStyles.call(this),i.addStyleHook.call(this),aI.setup.call(this),this.config.debug&&g.call(this,this.elements.container,this.config.events.join(" "),function(a){h.debug.log("event: ".concat(a.type))}),this.fullscreen=new bo(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&i.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new bw(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return w(h.play())},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new aP(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return I(p,[{key:"play",value:function(){var a=this;return j(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return a.ads.play()}).catch(function(){return w(a.media.play())}),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&j(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(a){return(t(a)?a:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):j(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(a){this.currentTime-=k(a)?a:this.config.seekTime}},{key:"forward",value:function(a){this.currentTime+=k(a)?a:this.config.seekTime}},{key:"increaseVolume",value:function(a){var b=this.media.muted?0:this.volume;this.volume=b+(k(a)?a:0)}},{key:"decreaseVolume",value:function(a){this.increaseVolume(-a)}},{key:"toggleCaptions",value:function(a){h.toggle.call(this,a,!1)}},{key:"airplay",value:function(){l.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){var g,h,b,i;return!!(this.supported.ui&&!this.isAudio)&&(g=X(this.elements.container,this.config.classNames.hideControls),h=void 0===e?void 0:!e,b=f(this.elements.container,this.config.classNames.hideControls,h),(b&&this.config.controls.includes("settings")&&!c(this.config.settings)&&a.toggleMenu.call(this,!1),b!==g)&&(i=b?"controlshidden":"controlsshown",d.call(this,this.media,i)),!b)}},{key:"on",value:function(a,b){g.call(this,this.elements.container,a,b)}},{key:"once",value:function(a,b){aH.call(this,this.elements.container,a,b)}},{key:"off",value:function(a,b){ag(this.elements.container,a,b)}},{key:"destroy",value:function(b){var a=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c;this.ready&&(c=function(){document.body.style.overflow="",a.embed=null,e?(Object.keys(a.elements).length&&(x(a.elements.buttons.play),x(a.elements.captions),x(a.elements.controls),x(a.elements.wrapper),a.elements.buttons.play=null,a.elements.captions=null,a.elements.controls=null,a.elements.wrapper=null),j(b)&&b()):(bD.call(a),ak(a.elements.original,a.elements.container),d.call(a,a.elements.original,"destroyed",!0),j(b)&&b.call(a.elements.original),a.ready=!1,setTimeout(function(){a.elements=null,a.media=null},200))},this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(i.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&j(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(c),setTimeout(c,200)))}},{key:"supports",value:function(a){return l.mime.call(this,a)}},{key:"isHTML5",get:function(){return this.provider===y.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===y.youtube}},{key:"isVimeo",get:function(){return this.provider===y.vimeo}},{key:"isVideo",get:function(){return this.type===au}},{key:"isAudio",get:function(){return this.type===bm}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(a){if(this.duration){var b=k(a)&&a>0;this.media.currentTime=b?Math.min(a,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var a=this.media.buffered;return k(a)?a:a&&a.length&&this.duration>0?a.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var b=parseFloat(this.config.duration),a=(this.media||{}).duration,c=k(a)&&a!==1/0?a:0;return b||c}},{key:"volume",set:function(b){var a=b;n(a)&&(a=Number(a)),k(a)||(a=this.storage.get("volume")),k(a)||(a=this.config.volume),a>1&&(a=1),a<0&&(a=0),this.config.volume=a,this.media.volume=a,!c(b)&&this.muted&&a>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(b){var a=b;t(a)||(a=this.storage.get("muted")),t(a)||(a=this.config.muted),this.config.muted=a,this.media.muted=a},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",set:function(b){var c=this,a=null,d,e;k(b)&&(a=b),k(a)||(a=this.storage.get("speed")),k(a)||(a=this.config.speed.selected),d=this.minimumSpeed,e=this.maximumSpeed,a=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(a,b),c)}(a,d,e),this.config.speed.selected=a,setTimeout(function(){c.media.playbackRate=a},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,aN(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,aN(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var b=this.config.quality,d=this.options.quality,a,f,g;d.length&&(a=[!c(e)&&Number(e),this.storage.get("quality"),b.selected,b.default].find(k),f=!0,d.includes(a)||(g=function(a,b){return o(a)&&a.length?a.reduce(function(a,c){return Math.abs(c-b)1&&void 0!==arguments[1]?arguments[1]:{},d=null;return n(a)?d=Array.from(document.querySelectorAll(a)):J(a)?d=Array.from(a):o(a)&&(d=a.filter(b)),c(d)?null:d.map(function(a){return new p(a,e)})}}]),p}(),ay.defaults=(aT=am,JSON.parse(JSON.stringify(aT))),ay}),!function(b,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):(b=b||self).FullCalendarLocalesAll=a()}(this,function(){return"use strict",[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayHtml:"Heeldag",eventLimitText:"Addisionele",noEventsMessage:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekLabel:"Həftə",allDayText:"Bütün Gün",eventLimitText:function(a){return"+ daha çox "+a},noEventsMessage:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",eventLimitText:function(a){return"+още "+a},noEventsMessage:"Няма събития за показване"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekLabel:"Sed",allDayText:"Cijeli dan",eventLimitText:function(a){return"+ još "+a},noEventsMessage:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekLabel:"Set",allDayText:"Tot el dia",eventLimitText:"més",noEventsMessage:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekLabel:"Týd",allDayText:"Celý den",eventLimitText:function(a){return"+další: "+a},noEventsMessage:"Žádné akce k zobrazení"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekLabel:"Uge",allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"},{code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekLabel:"KW",allDayText:"Ganztägig",eventLimitText:function(a){return"+ weitere "+a},noEventsMessage:"Keine Ereignisse anzuzeigen"},{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekLabel:"Εβδ",allDayText:"Ολοήμερο",eventLimitText:"περισσότερα",noEventsMessage:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4}},{code:"en-gb",week:{dow:1,doy:4}},{code:"en-nz",week:{dow:1,doy:4}},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Todo
el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Todo
el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekLabel:"näd",allDayText:"Kogu päev",eventLimitText:function(a){return"+ veel "+a},noEventsMessage:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekLabel:"As",allDayHtml:"Egun
osoa",eventLimitText:"gehiago",noEventsMessage:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekLabel:"هف",allDayText:"تمام روز",eventLimitText:function(a){return"بیش از "+a},noEventsMessage:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekLabel:"Vk",allDayText:"Koko päivä",eventLimitText:"lisää",noEventsMessage:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekLabel:"Sem.",allDayHtml:"Toute la
journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekLabel:"Sm",allDayHtml:"Toute la
journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekLabel:"Sem.",allDayHtml:"Toute la
journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},weekLabel:"Sm",allDayHtml:"Todo
o día",eventLimitText:"máis",noEventsMessage:"Non hai eventos para amosar"},{code:"he",dir:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",eventLimitText:"אחר",noEventsMessage:"אין אירועים להצגה",weekLabel:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekLabel:"हफ्ता",allDayText:"सभी दिन",eventLimitText:function(a){return"+अधिक "+a},noEventsMessage:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekLabel:"Tje",allDayText:"Cijeli dan",eventLimitText:function(a){return"+ još "+a},noEventsMessage:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},weekLabel:"Hét",allDayText:"Egész nap",eventLimitText:"további",noEventsMessage:"Nincs megjeleníthető esemény"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekLabel:"Mg",allDayHtml:"Sehari
penuh",eventLimitText:"lebih",noEventsMessage:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekLabel:"Vika",allDayHtml:"Allan
daginn",eventLimitText:"meira",noEventsMessage:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Tutto il
giorno",eventLimitText:function(a){return"+altri "+a},noEventsMessage:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",month:"月",week:"週",day:"日",list:"予定リスト"},weekLabel:"週",allDayText:"終日",eventLimitText:function(a){return"他 "+a+" 件"},noEventsMessage:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekLabel:"კვ",allDayText:"მთელი დღე",eventLimitText:function(a){return"+ კიდევ "+a},noEventsMessage:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekLabel:"Не",allDayText:"Күні бойы",eventLimitText:function(a){return"+ тағы "+a},noEventsMessage:"Көрсету үшін оқиғалар жоқ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",month:"월",week:"주",day:"일",list:"일정목록"},weekLabel:"주",allDayText:"종일",eventLimitText:"개",noEventsMessage:"일정이 없습니다"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekLabel:"W",allDayText:"Ganzen Dag",eventLimitText:"méi",noEventsMessage:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekLabel:"SAV",allDayText:"Visą dieną",eventLimitText:"daugiau",noEventsMessage:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekLabel:"Ned.",allDayText:"Visu dienu",eventLimitText:function(a){return"+vēl "+a},noEventsMessage:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekLabel:"Сед",allDayText:"Цел ден",eventLimitText:function(a){return"+повеќе "+a},noEventsMessage:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekLabel:"Mg",allDayText:"Sepanjang hari",eventLimitText:function(a){return"masih ada "+a+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekLabel:"Uke",allDayText:"Hele dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Voorgaand",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekLabel:"Veke",allDayText:"Heile dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekLabel:"Tydz",allDayText:"Cały dzień",eventLimitText:"więcej",noEventsMessage:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},weekLabel:"Sm",allDayText:"dia inteiro",eventLimitText:function(a){return"mais +"+a},noEventsMessage:"Não há eventos para mostrar"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekLabel:"Sem",allDayText:"Todo o dia",eventLimitText:"mais",noEventsMessage:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekLabel:"Săpt",allDayText:"Toată ziua",eventLimitText:function(a){return"+alte "+a},noEventsMessage:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekLabel:"Нед",allDayText:"Весь день",eventLimitText:function(a){return"+ ещё "+a},noEventsMessage:"Нет событий для отображения"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekLabel:"Ty",allDayText:"Celý deň",eventLimitText:function(a){return"+ďalšie: "+a},noEventsMessage:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekLabel:"Teden",allDayText:"Ves dan",eventLimitText:"več",noEventsMessage:"Ni dogodkov za prikaz"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"sot",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekLabel:"Ja",allDayHtml:"Gjithë
ditën",eventLimitText:function(a){return"+më tepër "+a},noEventsMessage:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekLabel:"Сед",allDayText:"Цео дан",eventLimitText:function(a){return"+ још "+a},noEventsMessage:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekLabel:"Sed",allDayText:"Cеo dan",eventLimitText:function(a){return"+ još "+a},noEventsMessage:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},weekLabel:"v.",allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga händelser att visa"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekLabel:"สัปดาห์",allDayText:"ตลอดวัน",eventLimitText:"เพิ่มเติม",noEventsMessage:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekLabel:"Hf",allDayText:"Tüm gün",eventLimitText:"daha fazla",noEventsMessage:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekLabel:"Тиж",allDayText:"Увесь день",eventLimitText:function(a){return"+ще "+a+"..."},noEventsMessage:"Немає подій для відображення"},{code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",eventLimitText:function(a){return"+ yana "+a},noEventsMessage:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekLabel:"Tu",allDayText:"Cả ngày",eventLimitText:function(a){return"+ thêm "+a},noEventsMessage:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekLabel:"周",allDayText:"全天",eventLimitText:function(a){return"另外 "+a+" 个"},noEventsMessage:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"週",day:"天",list:"活動列表"},weekLabel:"周",allDayText:"整天",eventLimitText:"顯示更多",noEventsMessage:"没有任何活動"}]}),!function(b,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):b.moment=a()}(this,function(){"use strict";var bd,b_,aW,aS,bP,bO,ae,bJ,bI,aA,aG,X,bE,s,bD,aH,av,k,bA,bw,ar,aX,ao,cV,an,cU,am,ag,ba,aY,x,G,E,o,y,H,S,cS,cR,m,bu,bs,cJ,bq,cz,cy,cx,bk,cw,cv,cu,ct,ai,cs,be,n,af,cr,cq,cp,ay,aE,co,ck,ch,cg,cf,$,ce,cd,cc,cb,cW,bZ,bS,bx,cj,M,cl,cn,a,h,J,cA,cB,cC,cD,cE,cF,cG,cH,cI,cK,cL,cM,cN,cO,cP,cQ,K,A,aJ,g;function b(){return bd.apply(null,arguments)}function z(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function ab(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function r(a){return void 0===a}function Q(a){return"number"==typeof a||"[object Number]"===Object.prototype.toString.call(a)}function al(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function bU(b,d){var a,c=[];for(a=0;a>>0,a=0;aac(a)?(c=a+1,b-ac(a)):(c=a,b),{year:c,dayOfYear:e}}function ah(a,c,d){var e,f,g=at(a.year(),c,d),b=Math.floor((a.dayOfYear()-g-1)/7)+1;return b<1?e=b+R(f=a.year()-1,c,d):b>R(a.year(),c,d)?(e=b-R(a.year(),c,d),f=a.year()+1):(f=a.year(),e=b),{week:e,year:f}}function R(a,b,c){var d=at(a,b,c),e=at(a+1,b,c);return(ac(a)-d+e)/7}d("w",["ww",2],"wo","week"),d("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),p("week",5),p("isoWeek",5),c("w",k),c("ww",k,s),c("W",k),c("WW",k,s),ad(["w","ww","W","WW"],function(a,b,d,c){b[c.substr(0,1)]=f(a)});function aT(a,b){return a.slice(b,7).concat(a.slice(0,b))}d("d",0,"do","day"),d("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),d("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),d("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),d("e",0,0,"weekday"),d("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),p("day",11),p("weekday",11),p("isoWeekday",11),c("d",k),c("e",k),c("E",k),c("dd",function(a,b){return b.weekdaysMinRegex(a)}),c("ddd",function(a,b){return b.weekdaysShortRegex(a)}),c("dddd",function(a,b){return b.weekdaysRegex(a)}),ad(["dd","ddd","dddd"],function(b,d,a,f){var c=a._locale.weekdaysParse(b,f,a._strict);null!=c?d.d=c:e(a).invalidWeekday=b}),ad(["d","e","E"],function(a,b,d,c){b[c]=f(a)}),cx="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bk="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cv=ag,cu=ag,ct=ag;function a_(){function e(a,b){return b.length-a.length}var a,f,j,g,h,i=[],d=[],c=[],b=[];for(a=0;a<7;a++)f=B([2e3,1]).day(a),j=this.weekdaysMin(f,""),g=this.weekdaysShort(f,""),h=this.weekdays(f,""),i.push(j),d.push(g),c.push(h),b.push(j),b.push(g),b.push(h);for(i.sort(e),d.sort(e),c.sort(e),b.sort(e),a=0;a<7;a++)d[a]=P(d[a]),c[a]=P(c[a]),b[a]=P(b[a]);this._weekdaysRegex=new RegExp("^("+b.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function a$(){return this.hours()%12||12}function bi(a,b){d(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function bg(b,a){return a._meridiemParse}d("H",["HH",2],0,"hour"),d("h",["hh",2],0,a$),d("k",["kk",2],0,function(){return this.hours()||24}),d("hmm",0,0,function(){return""+a$.apply(this)+F(this.minutes(),2)}),d("hmmss",0,0,function(){return""+a$.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),d("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),d("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),bi("a",!0),bi("A",!1),q("hour","h"),p("hour",13),c("a",bg),c("A",bg),c("H",k),c("h",k),c("k",k),c("HH",k,s),c("hh",k,s),c("kk",k,s),c("hmm",bA),c("hmmss",bw),c("Hmm",bA),c("Hmmss",bw),j(["H","HH"],o),j(["k","kk"],function(b,c,d){var a=f(b);c[o]=24===a?0:a}),j(["a","A"],function(b,c,a){a._isPm=a._locale.isPM(b),a._meridiem=b}),j(["h","hh"],function(a,b,c){b[o]=f(a),e(c).bigHour=!0}),j("hmm",function(a,b,d){var c=a.length-2;b[o]=f(a.substr(0,c)),b[y]=f(a.substr(c)),e(d).bigHour=!0}),j("hmmss",function(a,b,d){var c=a.length-4,g=a.length-2;b[o]=f(a.substr(0,c)),b[y]=f(a.substr(c,2)),b[H]=f(a.substr(g)),e(d).bigHour=!0}),j("Hmm",function(a,b,d){var c=a.length-2;b[o]=f(a.substr(0,c)),b[y]=f(a.substr(c))}),j("Hmmss",function(a,b,e){var c=a.length-4,d=a.length-2;b[o]=f(a.substr(0,c)),b[y]=f(a.substr(c,2)),b[H]=f(a.substr(d))}),cs=Y("Hours",!0),be={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:cJ,monthsShort:bq,week:{dow:0,doy:6},weekdays:cx,weekdaysMin:cw,weekdaysShort:bk,meridiemParse:/[ap]\.?m?\.?/i},n={},af={};function bh(a){return a&&a.toLowerCase().replace("_","-")}function ak(a){var b=null;if(!n[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=ai._abbr,require("./locale/"+a),Z(b)}catch(a){}return n[a]}function Z(a,b){var c;return a&&((c=r(b)?L(a):aV(a,b))?ai=c:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+a+" not found. Did you forget to load it?")),ai._abbr}function aV(b,a){if(null===a)return delete n[b],null;var d,c=be;if(a.abbr=b,null!=n[b])bN("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=n[b]._config;else if(null!=a.parentLocale)if(null!=n[a.parentLocale])c=n[a.parentLocale]._config;else{if(null==(d=ak(a.parentLocale)))return af[a.parentLocale]||(af[a.parentLocale]=[]),af[a.parentLocale].push({name:b,config:a}),null;c=d._config}return n[b]=new aI(bK(c,a)),af[b]&&af[b].forEach(function(a){aV(a.name,a.config)}),Z(b),n[b]}function L(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return ai;if(!z(a)){if(b=ak(a))return b;a=[a]}return function(d){for(var a,b,f,e,c=0;c=a&&bT(e,b,!0)>=a-1)break;a--}c++}return ai}(a)}function aQ(c){var b,a=c._a;return a&&-2===e(c).overflow&&(b=a[G]<0||11aC(a[x],a[G])?E:a[o]<0||24R(h,d,g)?e(b)._overflowWeeks=!0:null!=j?e(b)._overflowWeekday=!0:(k=bm(h,f,c,d,g),b._a[x]=k.year,b._dayOfYear=k.dayOfYear)}(a),null!=a._dayOfYear&&(g=W(a._a[x],f[x]),(a._dayOfYear>ac(g)||0===a._dayOfYear)&&(e(a)._overflowDayOfYear=!0),j=_(g,0,a._dayOfYear),a._a[G]=j.getUTCMonth(),a._a[E]=j.getUTCDate()),c=0;c<3&&null==a._a[c];++c)a._a[c]=h[c]=f[c];for(;c<7;c++)a._a[c]=h[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[o]&&0===a._a[y]&&0===a._a[H]&&0===a._a[S]&&(a._nextDay=!0,a._a[o]=0),a._d=(a._useUTC?_:function(a,h,c,d,e,f,g){var b;return a<100&&0<=a?(b=new Date(a+400,h,c,d,e,f,g),isFinite(b.getFullYear())&&b.setFullYear(a)):b=new Date(a,h,c,d,e,f,g),b}).apply(null,h),k=a._useUTC?a._d.getUTCDay():a._d.getDay(),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[o]=24),a._w&&void 0!==a._w.d&&a._w.d!==k&&(e(a).weekdayMismatch=!0)}}cr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cq=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cp=/Z|[+-]\d\d(?::?\d\d)?/,ay=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],aE=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],co=/^\/?Date\((\-?\d+)/i;function bv(b){var a,f,h,g,d,i,j=b._i,c=cr.exec(j)||cq.exec(j);if(c){for(e(b).iso=!0,a=0,f=ay.length;ac.valueOf():c.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},a.isLocal=function(){return!!this.isValid()&&!this._isUTC},a.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},a.isUtc=bQ,a.isUTC=bQ,a.zoneAbbr=function(){return this._isUTC?"UTC":""},a.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},a.dates=v("dates accessor is deprecated. Use date instead.",bx),a.months=v("months accessor is deprecated. Use month instead",bo),a.years=v("years accessor is deprecated. Use year instead",bu),a.zone=v("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}),a.isDSTShifted=v("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var a,b;return r(this._isDSTShifted)?(a={},(aU(a,this),(a=bB(a))._a)?(b=a._isUTC?B(a._a):i(a._a),this._isDSTShifted=this.isValid()&&0"),b;return document.body.appendChild(a),b=a.firstChild.getBoundingClientRect().left>a.getBoundingClientRect().left,o(a),b}()),aI}function bW(a){return a=Math.max(0,a),a=Math.round(a)}function aF(c,d){void 0===d&&(d=!1);var a=window.getComputedStyle(c),e=parseInt(a.borderLeftWidth,10)||0,f=parseInt(a.borderRightWidth,10)||0,g=parseInt(a.borderTopWidth,10)||0,h=parseInt(a.borderBottomWidth,10)||0,i=bW(c.offsetWidth-c.clientWidth-e-f),b={borderLeft:e,borderRight:f,borderTop:g,borderBottom:h,scrollbarBottom:bW(c.offsetHeight-c.clientHeight-g-h),scrollbarLeft:0,scrollbarRight:0};return cI()&&"rtl"===a.direction?b.scrollbarLeft=i:b.scrollbarRight=i,d&&(b.paddingLeft=parseInt(a.paddingLeft,10)||0,b.paddingRight=parseInt(a.paddingRight,10)||0,b.paddingTop=parseInt(a.paddingTop,10)||0,b.paddingBottom=parseInt(a.paddingBottom,10)||0),b}function bY(e,c){void 0===c&&(c=!1);var d=b_(e),a=aF(e,c),b={left:d.left+a.borderLeft+a.scrollbarLeft,right:d.right-a.borderRight-a.scrollbarRight,top:d.top+a.borderTop,bottom:d.bottom-a.borderBottom-a.scrollbarBottom};return c&&(b.left+=a.paddingLeft,b.right-=a.paddingRight,b.top+=a.paddingTop,b.bottom-=a.paddingBottom),b}function b_(b){var a=b.getBoundingClientRect();return{left:a.left+window.pageXOffset,top:a.top+window.pageYOffset,right:a.right+window.pageXOffset,bottom:a.bottom+window.pageYOffset}}function aC(a){return a.getBoundingClientRect().height+cn(a)}function cn(b){var a=window.getComputedStyle(b);return parseInt(a.marginTop,10)+parseInt(a.marginBottom,10)}function aT(a){for(var c=[],b;a instanceof HTMLElement;){if(b=window.getComputedStyle(a),"fixed"===b.position)break;/(auto|scroll)/.test(b.overflow+b.overflowY+b.overflowX)&&c.push(a),a=a.parentNode}return c}function P(a){a.preventDefault()}function ak(a,b,d,e){function c(b){var a=v(b.target,d);a&&e.call(a,b,a)}return a.addEventListener(b,c),function(){a.removeEventListener(b,c)}}cp=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],cm=["sun","mon","tue","wed","thu","fri","sat"];function k(b,c){var a=u(b);return a[2]+=c,h(a)}function I(b,c){var a=u(b);return a[6]+=c,h(a)}function w(a,b){return(b.valueOf()-a.valueOf())/864e5}function ci(a,b){var c=e(a),d=e(b);return{years:0,months:0,days:Math.round(w(c,d)),milliseconds:b.valueOf()-d.valueOf()-(a.valueOf()-c.valueOf())}}function bZ(b,c){var a=M(b,c);return null!==a&&a%7==0?a/7:null}function M(a,b){return q(a)===q(b)?Math.round(w(a,b)):null}function e(a){return h([a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()])}function aA(b,a,c,d){var f=h([a,0,1+cG(a,c,d)]),g=e(b),i=Math.round(w(f,g));return Math.floor(i/7)+1}function cG(c,a,d){var b=7+a-d;return-((7+h([c,0,b]).getUTCDay()-a)%7)+b-1}function bV(a){return[a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()]}function bU(a){return new Date(a[0],a[1]||0,null==a[2]?1:a[2],a[3]||0,a[4]||0,a[5]||0)}function u(a){return[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()]}function h(a){return 1===a.length&&(a=a.concat([0])),new Date(Date.UTC.apply(Date,a))}function az(a){return!isNaN(a.valueOf())}function q(a){return 1e3*a.getUTCHours()*60*60+1e3*a.getUTCMinutes()*60+1e3*a.getUTCSeconds()+a.getUTCMilliseconds()}bQ=["years","months","days","milliseconds"],cL=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function c(a,c){var b;return"string"==typeof a?function(c){var a=cL.exec(c),b;return a?(b=a[1]?-1:1,{years:0,months:0,days:b*(a[2]?parseInt(a[2],10):0),milliseconds:b*(60*(a[3]?parseInt(a[3],10):0)*60*1e3+60*(a[4]?parseInt(a[4],10):0)*1e3+1e3*(a[5]?parseInt(a[5],10):0)+(a[6]?parseInt(a[6],10):0))}):null}(a):"object"==typeof a&&a?bM(a):"number"==typeof a?bM(((b={})[c||"milliseconds"]=a,b)):null}function bM(a){return{years:a.years||a.year||0,months:a.months||a.month||0,days:(a.days||a.day||0)+7*av(a),milliseconds:60*(a.hours||a.hour||0)*60*1e3+60*(a.minutes||a.minute||0)*1e3+1e3*(a.seconds||a.second||0)+(a.milliseconds||a.millisecond||a.ms||0)}}function av(a){return a.weeks||a.week||0}function au(a,b){return a.years===b.years&&a.months===b.months&&a.days===b.days&&a.milliseconds===b.milliseconds}function E(a){return p(a)/864e5}function p(a){return 31536e6*a.years+2592e6*a.months+864e5*a.days+a.milliseconds}function ac(a,c){var b=a.milliseconds;if(b){if(b%1e3!=0)return{unit:"millisecond",value:b};if(b%6e4!=0)return{unit:"second",value:b/1e3};if(b%36e5!=0)return{unit:"minute",value:b/6e4};if(b)return{unit:"hour",value:b/36e5}}return a.days?c||a.days%7!=0?{unit:"day",value:a.days}:{unit:"week",value:a.days/7}:a.months?{unit:"month",value:a.months}:a.years?{unit:"year",value:a.years}:{unit:"millisecond",value:0}}function bL(a){a.forEach(function(a){a.style.height=""})}function bK(a){var d,b,e=[],c=[];for("string"==typeof a?c=a.split(/\s*,\s*/):"function"==typeof a?c=[a]:Array.isArray(a)&&(c=a),d=0;d=p(f)&&(a=k(a,1))),b.start&&(d=e(b.start),a&&a<=d&&(a=k(d,1))),{start:d,end:a}}function K(a,b,d,e){return"year"===e?c(d.diffWholeYears(a,b),"year"):"month"===e?c(d.diffWholeMonths(a,b),"month"):ci(a,b)}bp=function(a,b){return(bp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])})(a,b)};function j(b,a){function c(){this.constructor=b}bp(b,a),b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}b=function(){return(b=Object.assign||function(d){for(var a,b=1,e=arguments.length,c;b=0;f--)if("object"==typeof(c=g[f][b])&&c)e.unshift(c);else if(void 0!==c){d[b]=c;break}e.length&&(d[b]=ay(e))}for(a=g.length-1;a>=0;a--)for(b in i=g[a])b in d||(d[b]=i[b]);return d}function s(b,d){var c={},a;for(a in b)d(b[a],a)&&(c[a]=b[a]);return c}function l(b,d){var c={},a;for(a in b)c[a]=d(b[a],a);return c}function bk(d){for(var b={},a=0,c=d;aa&&f.push({start:a,end:c.start}),c.end>a&&(a=c.end);return ab.start)&&(null===a.start||null===b.end||a.start=a.start)&&(null===a.end||null!==b.end&&b.end<=a.end)}function B(a,b){return(null===a.start||b>=a.start)&&(null===a.end||b1)||"numeric"!==a.year&&"2-digit"!==a.year||"numeric"!==a.month&&"2-digit"!==a.month||"numeric"!==a.day&&"2-digit"!==a.day||(e=1),c=this.format(d,b),g=this.format(f,b),c===g)?c:(k=bd(function(b,d){var c={},a;for(a in b)a in T&&!(T[a]<=d)||(c[a]=b[a]);return c}(a,e),i,b),l=k(d),m=k(f),h=function(a,g,b,j){for(var c=0,f,h,i,d,e,k,l;c/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function bI(b){var c=[],d,a;for(d in b)a=b[d],null!=a&&""!==a&&c.push(d+":"+a);return c.join(";")}function bJ(a){return Array.isArray(a)?a:"string"==typeof a?a.split(/\s+/):[]}R={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:bJ,classNames:bJ,color:String,backgroundColor:String,borderColor:String,textColor:String};function at(c,d,e){var a=m(c,R,{},e),b=function(a,b){return Array.isArray(a)?ae(a,"",b,!0):"object"==typeof a&&a?ae([a],"",b,!0):null!=a?String(a):null}(a.constraint,d);return{startEditable:null!=a.startEditable?a.startEditable:a.editable,durationEditable:null!=a.durationEditable?a.durationEditable:a.editable,constraints:null!=b?[b]:[],overlap:a.overlap,allows:null!=a.allow?[a.allow]:[],backgroundColor:a.backgroundColor||a.color,borderColor:a.borderColor||a.color,textColor:a.textColor,classNames:a.classNames.concat(a.className)}}function aw(f,b,h,d){var c={},e={},a,g;for(a in R)g=f+ai(a),c[a]=b[g],e[g]=!0;if("event"===f&&(c.editable=b.editable),d)for(a in b)e[a]||(d[a]=b[a]);return at(c,h)}cM={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ax(a){return a.reduce(cJ,cM)}function cJ(b,a){return{startEditable:null!=a.startEditable?a.startEditable:b.startEditable,durationEditable:null!=a.durationEditable?a.durationEditable:b.durationEditable,constraints:b.constraints.concat(a.constraints),overlap:"boolean"==typeof a.overlap?a.overlap:b.overlap,allows:b.allows.concat(a.allows),backgroundColor:a.backgroundColor||b.backgroundColor,borderColor:a.borderColor||b.borderColor,textColor:a.textColor||b.textColor,classNames:b.classNames.concat(a.classNames)}}af={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},bR={start:null,date:null,end:null,allDay:null},bS=0;function bT(j,g,c,l){var h=function(b,c){var a=null,d;return b&&(d=c.state.eventSources[b],a=d.allDayDefault),null==a&&(a=c.opt("allDayDefault")),a}(g,c),i={},a=function(h,i,j,f,g){for(var e=0,c,d,a;e'+c+"":""+c+""}function cb(b,d,c,m){var h,g,i=c.calendar,j=c.options,l=c.theme,f=c.dateEnv,a=[];return B(d.activeRange,b)?(a.push("fc-"+cm[b.getUTCDay()]),j.monthMode&&f.getMonth(b)!==f.getMonth(d.currentRange.start)&&a.push("fc-other-month"),g=k(h=e(i.getNow()),1),b=g?a.push("fc-future"):(a.push("fc-today"),!0!==m&&a.push(l.getClass("today")))):a.push("fc-disabled-day"),a}function cc(g,f,c){var a=!1,d=function(){a||(a=!0,f.apply(this,arguments))},e=function(){a||(a=!0,c&&c.apply(this,arguments))},b=g(d,e);b&&"function"==typeof b.then&&b.then(d,e)}cd=function(){function a(){}return a.mixInto=function(a){this.mixIntoObj(a.prototype)},a.mixIntoObj=function(a){var b=this;Object.getOwnPropertyNames(this.prototype).forEach(function(c){a[c]||(a[c]=b.prototype[c])})},a.mixOver=function(a){var b=this;Object.getOwnPropertyNames(this.prototype).forEach(function(c){a.prototype[c]=b.prototype[c]})},a}(),ab=function(b){function a(){return null!==b&&b.apply(this,arguments)||this}return j(a,b),a.prototype.on=function(a,b){return cf(this._handlers||(this._handlers={}),a,b),this},a.prototype.one=function(a,b){return cf(this._oneHandlers||(this._oneHandlers={}),a,b),this},a.prototype.off=function(a,b){return this._handlers&&cg(this._handlers,a,b),this._oneHandlers&&cg(this._oneHandlers,a,b),this},a.prototype.trigger=function(c){for(var b=[],a=1;a=c[a]&&b=c[a]&&b0},a.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},a.prototype.canScrollUp=function(){return this.getScrollTop()>0},a.prototype.canScrollDown=function(){return this.getScrollTop()0},a.prototype.canScrollRight=function(){return this.getScrollLeft()=200&&a.status<400)try{var b=JSON.parse(a.responseText);g(b,a)}catch(b){d("Failure parsing JSON",a)}else d("Request failed",a)},a.onerror=function(){d("Request failed",a)},a.send(f)}function ch(a){var b=[],c;for(c in a)b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")}cy=H({eventSourceDefs:[{parseMeta:function(a){if("string"==typeof a)a={url:a};else if(!a||"object"!=typeof a||!a.url)return null;return{url:a.url,method:(a.method||"GET").toUpperCase(),extraParams:a.extraParams,startParam:a.startParam,endParam:a.endParam,timeZoneParam:a.timeZoneParam}},fetch:function(a,d,e){var c=a.eventSource.meta,f=function(a,j,e){var f,g,h,i,d=e.dateEnv,c={};return null==(f=a.startParam)&&(f=e.opt("startParam")),null==(g=a.endParam)&&(g=e.opt("endParam")),null==(h=a.timeZoneParam)&&(h=e.opt("timeZoneParam")),i="function"==typeof a.extraParams?a.extraParams():a.extraParams||{},b(c,i),c[f]=d.formatIso(j.start),c[g]=d.formatIso(j.end),"local"!==d.timeZone&&(c[h]=d.timeZone),c}(c,a.range,a.calendar);ck(c.method,c.url,f,function(a,b){d({rawEvents:a,xhr:b})},function(a,b){e({message:a,xhr:b})})}}]}),cz=H({recurringTypes:[{parse:function(j,e,g){var b,d,h=g.createMarker.bind(g),a=m(j,{daysOfWeek:null,startTime:c,endTime:c,startRecur:h,endRecur:h},{},e),i=!1,k,f;for(k in a)if(null!=a[k]){i=!0;break}return i?(f=null,"duration"in e&&(f=c(e.duration),delete e.duration),!f&&a.startTime&&a.endTime&&(b=a.endTime,d=a.startTime,f={years:b.years-d.years,months:b.months-d.months,days:b.days-d.days,milliseconds:b.milliseconds-d.milliseconds}),{allDayGuess:Boolean(!a.startTime&&!a.endTime),duration:f,typeData:a}):null},expand:function(a,c,d){var b=N(c,{start:a.startRecur,end:a.endRecur});return b?function(b,c,d,i){for(var f=b?bk(b):null,a=e(d.start),j=d.end,g=[],h;a0?a[0].code:"en",i=window.FullCalendarLocalesAll||[],f=window.FullCalendarLocales||{},g=i.concat(bi(f),a),e={en:aE},b=0,c=g,d;b0;b--)if(f=e.slice(0,b).join("-"),d[f])return d[f];return null}(b,c)||aE;return bP(a,b,d)}(a,b):bP(a.code,[a.code],a)}function bP(b,c,d){var a=ay([aE,d],["buttonText"]),e;return delete a.code,e=a.week,delete a.week,{codeArg:b,codes:c,week:e,simpleNumberFormat:new Intl.NumberFormat(b),options:a}}cK=function(){function a(a){this.overrides=b({},a),this.dynamicOverrides={},this.compute()}return a.prototype.mutate=function(e,f,g){var c,a,d;if(Object.keys(e).length||f.length){c=g?this.dynamicOverrides:this.overrides,b(c,e);for(a=0,d=f;a=1?Math.min(e,f):e)}(a,this.weekDow,this.weekDoy)},a.prototype.format=function(b,c,a){return void 0===a&&(a={}),c.format({marker:b,timeZoneOffset:null!=a.forcedTzo?a.forcedTzo:this.offsetForMarker(b)},this)},a.prototype.formatRange=function(c,b,d,a){return void 0===a&&(a={}),a.isEndExclusive&&(b=I(b,-1)),d.formatRange({marker:c,timeZoneOffset:null!=a.forcedStartTzo?a.forcedStartTzo:this.offsetForMarker(c)},{marker:b,timeZoneOffset:null!=a.forcedEndTzo?a.forcedEndTzo:this.offsetForMarker(b)},this)},a.prototype.formatIso=function(b,a){void 0===a&&(a={});var c=null;return a.omitTimeZoneOffset||(c=null!=a.forcedTzo?a.forcedTzo:this.offsetForMarker(b)),function(d,b,c){void 0===c&&(c=!1);var a=d.toISOString();return a=a.replace(".000",""),c&&(a=a.replace("T00:00:00Z","")),a.length>10&&(null==b?a=a.replace("Z",""):0!==b&&(a=a.replace("Z",aD(b,!0)))),a}(b,c,a.omitTime)},a.prototype.timestampToMarker=function(a){return"local"===this.timeZone?h(bV(new Date(a))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?h(this.namedTimeZoneImpl.timestampToArray(a)):new Date(a)},a.prototype.offsetForMarker=function(a){return"local"===this.timeZone?-bU(u(a)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(u(a)):null},a.prototype.toDate=function(a,b){return"local"===this.timeZone?bU(u(a)):"UTC"===this.timeZone?new Date(a.valueOf()):this.namedTimeZoneImpl?new Date(a.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(u(a))*60):new Date(a.valueOf()-(b||0))},a}(),cR={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},cS=0;function bE(a,b){return!b.pluginSystem.hooks.eventSourceDefs[a.sourceDefId].ignoreRange}function bx(a,c){for(var d=c.pluginSystem.hooks.eventSourceDefs,b=d.length-1,e,f;b>=0;b--)if(e=d[b].parseMeta(a),e)return f=cV("object"==typeof a?a:{},e,b,c),f._raw=a,f;return null}function cV(b,e,f,g){var c={},a=m(b,cR,{},c),d={},h=at(c,g,d);return a.isFetching=!1,a.latestFetchId="",a.fetchRange=null,a.publicId=String(b.id||""),a.sourceId=String(cS++),a.sourceDefId=f,a.meta=e,a.ui=h,a.extendedProps=d,a}function cW(a,c,d,e){switch(c.type){case"ADD_EVENT_SOURCES":return function(h,i,f,g){for(var a={},c=0,d=i,e;ca.fetchRange.end:!a.latestFetchId}(a,b,c)}),b,c)}function bv(c,e,f,g){var b={},a,d;for(a in c)d=c[a],e[a]?b[a]=c_(d,f,g):b[a]=d;return b}function c_(a,d,c){var f=c.pluginSystem.hooks.eventSourceDefs[a.sourceDefId],e=String(cX++);return f.fetch({eventSource:a,calendar:c,range:d},function(f){var g,h,b=f.rawEvents,i=c.opt("eventSourceSuccess");a.success&&(h=a.success(b,f.xhr)),i&&(g=i(b,f.xhr)),b=h||g||b,c.dispatch({type:"RECEIVE_EVENTS",sourceId:a.sourceId,fetchId:e,fetchRange:d,rawEvents:b})},function(b){var f=c.opt("eventSourceFailure");console.warn(b.message,b),a.failure&&a.failure(b),f&&f(b),c.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:a.sourceId,fetchId:e,fetchRange:d,error:b})}),b({},a,{isFetching:!0,latestFetchId:e})}bo=function(){function a(a,b){this.viewSpec=a,this.options=a.options,this.dateEnv=b.dateEnv,this.calendar=b,this.initHiddenDays()}return a.prototype.buildPrev=function(a,c){var b=this.dateEnv,d=b.subtract(b.startOf(c,a.currentRangeUnit),a.dateIncrement);return this.build(d,-1)},a.prototype.buildNext=function(a,c){var b=this.dateEnv,d=b.add(b.startOf(c,a.currentRangeUnit),a.dateIncrement);return this.build(d,1)},a.prototype.build=function(l,n,i){var b,h,k,a,j,g,d,m,f,e;return void 0===i&&(i=!1),b=this.buildValidRange(),b=this.trimHiddenDays(b),i&&(f=l,l=null!=(e=b).start&&f=e.end?new Date(e.end.valueOf()-1):f),a=this.buildCurrentRangeInfo(l,n),j=/^(year|month|week|day)$/.test(a.unit),g=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,j),d=g=this.trimHiddenDays(g),this.options.showNonCurrentDates||(d=N(d,a.range)),h=c(this.options.minTime),k=c(this.options.maxTime),d=N(d=this.adjustActiveRange(d,h,k),b),m=W(a.range,b),{validRange:b,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:j,activeRange:d,renderRange:g,minTime:h,maxTime:k,isValid:m,dateIncrement:this.buildDateIncrement(a.duration)}},a.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},a.prototype.buildCurrentRangeInfo=function(d,f){var g,e=this.viewSpec,h=this.dateEnv,c=null,a=null,b=null;return e.duration?(c=e.duration,a=e.durationUnit,b=this.buildRangeFromDuration(d,f,c,a)):(g=this.options.dayCount)?(a="day",b=this.buildRangeFromDayCount(d,f,g)):(b=this.buildCustomVisibleRange(d))?a=h.greatestWholeUnit(b.start,b.end).unit:(a=ac(c=this.getFallbackDuration()).unit,b=this.buildRangeFromDuration(d,f,c,a)),{duration:c,unit:a,range:b}},a.prototype.getFallbackDuration=function(){return c({day:1})},a.prototype.adjustActiveRange=function(c,d,f){var g=this.dateEnv,b=c.start,a=c.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(E(d)<0&&(b=e(b),b=g.add(b,d)),E(f)>1&&(a=k(a=e(a),-1),a=g.add(a,f))),{start:b,end:a}},a.prototype.buildRangeFromDuration=function(g,j,d,k){var i,f,a,l,h,m=this.dateEnv,b=this.options.dateAlignment;function n(){a=m.startOf(g,b),l=m.add(a,d),h={start:a,end:l}}return b||((i=this.options.dateIncrement)?(f=c(i),b=p(f) ")),f=!1):((m=j[d])?(n=function(a){m.click&&m.click.call(q,a)},(g=a.getCustomButtonIconClass(m))||(g=a.getIconClass(d))||(e=m.text)):(p=h[d])?(i.viewsWithButtons.push(d),n=function(){b.changeView(d)},(e=p.buttonTextOverride)||(g=a.getIconClass(d))||(e=p.buttonTextDefault)):b[d]&&(n=function(){b[d]()},(e=k[d])||(g=a.getIconClass(d))||(e=l[d])),n&&(s=["fc-"+d+"-button",a.getClass("button")],e?(o=A(e),r=""):g&&(o="",r=' aria-label="'+d+'"'),(q=ah('")).addEventListener("click",n),c.push(q)))}),c.length>1)?(e=document.createElement("div"),g=a.getClass("buttonGroup"),f&&g&&e.classList.add(g),r(e,c),d.appendChild(e)):r(d,c)}),d},a.prototype.updateToday=function(a){this.toggleButtonEnabled("today",a)},a.prototype.updatePrev=function(a){this.toggleButtonEnabled("prev",a)},a.prototype.updateNext=function(a){this.toggleButtonEnabled("next",a)},a.prototype.updateTitle=function(a){X(this.el,"h2").forEach(function(b){b.innerText=a})},a.prototype.updateActiveButton=function(a){var b=this.context.theme.getClass("buttonActive");X(this.el,"button").forEach(function(c){a&&c.classList.contains("fc-"+a+"-button")?c.classList.add(b):c.classList.remove(b)})},a.prototype.toggleButtonEnabled=function(a,b){X(this.el,".fc-"+a+"-button").forEach(function(a){a.disabled=!b})},a}(F),ds=function(c){function a(b){var a=c.call(this)||this;return a.elClassNames=[],a.renderSkeleton=f(a._renderSkeleton,a._unrenderSkeleton),a.renderToolbars=f(a._renderToolbars,a._unrenderToolbars,[a.renderSkeleton]),a.buildComponentContext=d(du),a.buildViewPropTransformers=d(dv),a.el=b,a.computeTitle=d(dt),a.parseBusinessHours=d(function(b){return bX(b,a.context.calendar)}),a}return j(a,c),a.prototype.render=function(a,c){this.freezeHeight();var b=this.computeTitle(a.dateProfile,a.viewSpec.options);this.renderSkeleton(c),this.renderToolbars(a.viewSpec,a.dateProfile,a.currentDate,b),this.renderView(a,b),this.updateSize(),this.thawHeight()},a.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),c.prototype.destroy.call(this)},a.prototype._renderSkeleton=function(b){this.updateElClassNames(b),aO(this.el,this.contentEl=x("div",{className:"fc-view-container"}));for(var c=b.calendar,a=0,d=c.pluginSystem.hooks.viewContainerModifiers;a1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"})}(a),c.titleRangeSeparator),{isEndExclusive:a.isRangeAllDay})}function du(a,b,c){return a.extend(b.options,c)}function dv(a){return a.map(function(a){return new a})}aM=function(){function a(a){this.component=a.component}return a.prototype.destroy=function(){},a}(),aP={},dy=function(a){function b(d){var b=a.call(this,d)||this,c;return b.handleSegClick=function(a,e){var c=b.component,f=c.context,j=f.calendar,k=f.view,d=ad(e),h,i;d&&c.isValidSegDownEl(a.target)&&(h=v(a.target,".fc-has-url"),i=h?h.querySelector("a[href]").href:"",j.publiclyTrigger("eventClick",[{el:e,event:new g(c.context.calendar,d.eventRange.def,d.eventRange.instance),jsEvent:a,view:k}]),i&&!a.defaultPrevented&&(window.location.href=i))},c=d.component,b.destroy=ak(c.el,"click",c.fgSegSelector+","+c.bgSegSelector,b.handleSegClick),b}return j(b,a),b}(aM),dz=function(b){function a(i){var a=b.call(this,i)||this,e,f,g,h,d,c;return a.handleEventElRemove=function(b){b===a.currentSegEl&&a.handleSegLeave(null,a.currentSegEl)},a.handleSegEnter=function(c,b){ad(b)&&(b.classList.add("fc-allow-mouse-resize"),a.currentSegEl=b,a.triggerEvent("eventMouseEnter",c,b))},a.handleSegLeave=function(c,b){a.currentSegEl&&(b.classList.remove("fc-allow-mouse-resize"),a.currentSegEl=null,a.triggerEvent("eventMouseLeave",c,b))},c=i.component,a.removeHoverListeners=(e=c.el,f=c.fgSegSelector+","+c.bgSegSelector,g=a.handleSegEnter,h=a.handleSegLeave,ak(e,"mouseover",f,function(c,a){if(a!==d){d=a,g(c,a);var b=function(c){d=null,h(c,a),a.removeEventListener("mouseleave",b)};a.addEventListener("mouseleave",b)}})),c.context.calendar.on("eventElRemove",a.handleEventElRemove),a}return j(a,b),a.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},a.prototype.triggerEvent=function(h,a,b){var c=this.component,d=c.context,e=d.calendar,i=d.view,f=ad(b);a&&!c.isValidSegDownEl(a.target)||e.publiclyTrigger(h,[{el:b,event:new g(e,f.eventRange.def,f.eventRange.instance),jsEvent:a,view:i}])},a}(aM),y=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return j(b,a),b}(G),y.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},y.prototype.baseIconClass="fc-icon",y.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},y.prototype.iconOverrideOption="buttonIcons",y.prototype.iconOverrideCustomButtonOption="icon",y.prototype.iconOverridePrefix="fc-icon-",ba=function(){function a(a,b){var c=this;this.buildComponentContext=d(dC),this.parseRawLocales=d(aG),this.buildLocale=d(aH),this.buildDateEnv=d(dD),this.buildTheme=d(dE),this.buildEventUiSingleBase=d(this._buildEventUiSingleBase),this.buildSelectionConfig=d(this._buildSelectionConfig),this.buildEventUiBySource=aW(dG,bh),this.buildEventUiBases=d(dH),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=d(dF),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=a,this.optionsManager=new cK(b||{}),this.pluginSystem=new ct,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(a){return new a(c)})}return a.prototype.addPluginInputs=function(c){for(var d=function(f){for(var b=[],c=0,d=f,a,e;c"},a.prototype.detachSegs=function(a,c){var b=this.containerElsByType[a];b&&(b.forEach(o),delete this.containerElsByType[a])},a.prototype.computeSizes=function(b){for(var a in this.segsByType)(b||this.dirtySizeFlags[a])&&this.computeSegSizes(this.segsByType[a])},a.prototype.assignSizes=function(b){for(var a in this.segsByType)(b||this.dirtySizeFlags[a])&&this.assignSegSizes(this.segsByType[a]);this.dirtySizeFlags={}},a.prototype.computeSegSizes=function(a){},a.prototype.assignSegSizes=function(a){},a}(),dM=function(a){this.timeZoneName=a},dN=function(){function a(a){this.emitter=new ab}return a.prototype.destroy=function(){},a.prototype.setMirrorIsVisible=function(a){},a.prototype.setMirrorNeedsRevert=function(a){},a.prototype.setAutoScrollEnabled=function(a){},a}();function a_(a){var c=aH(a.locale||"en",aG([]).map);return a=b({timeZone:t.timeZone,calendarSystem:"gregory"},a,{locale:c}),new aJ(a)}dP={startTime:c,duration:c,create:Boolean,sourceId:String},dQ={create:!0};function aY(b,a){return!b||a>10?{weekday:"short"}:a>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function aV(a,h,g,n,m,d,i,j){var f,c=d.dateEnv,l=d.theme,b=d.options,k=B(h.activeRange,a),e=["fc-day-header",l.getClass("widgetHeader")];return f="function"==typeof b.columnHeaderHtml?b.columnHeaderHtml(c.toDate(a)):"function"==typeof b.columnHeaderText?A(b.columnHeaderText(c.toDate(a))):A(c.format(a,m)),g?e=e.concat(cb(a,h,d,!0)):e.push("fc-"+cm[a.getUTCDay()]),'1?' colspan="'+i+'"':"")+(j?" "+j:"")+">"+(k?ca(b,c,{date:a,forceOff:!g||1===n},f):f)+""}dT=function(b){function a(c){var a=b.call(this)||this;return a.renderSkeleton=f(a._renderSkeleton,a._unrenderSkeleton),a.parentEl=c,a}return j(a,b),a.prototype.render=function(a,b){var d=a.dates,f=a.datesRepDistinctDays,c=[],h,e,g,i;this.renderSkeleton(b),a.renderIntroHtml&&c.push(a.renderIntroHtml());for(h=n(b.options.columnHeaderFormat||aY(f,d.length)),e=0,g=d;e"+c.join("")+""},a.prototype.destroy=function(){b.prototype.destroy.call(this),this.renderSkeleton.unrender()},a.prototype._renderSkeleton=function(c){var a=c.theme,b=this.parentEl;b.innerHTML="",b.appendChild(this.el=ah('
')),this.thead=this.el.querySelector("thead")},a.prototype._unrenderSkeleton=function(){o(this.el)},a}(F),dU=function(){function a(e,f){for(var a=e.start,g=e.end,c=[],d=[],b=-1;a=a.length?a[a.length-1]+1:a[b]},a}(),dV=function(){function a(d,f){var a,e,c,b=d.dates;if(f){for(e=b[0].getUTCDay(),a=1;a1},a.isPropsEqual=bh,a.isPropsValid=bC,a.isSingleDay=function(a){return 0===a.years&&0===a.months&&1===a.days&&0===a.milliseconds},a.isValidDate=az,a.listenBySelector=ak,a.mapHash=l,a.matchCellWidths=function(b){var a=0;return b.forEach(function(d){var b=d.firstChild,c;b instanceof HTMLElement&&(c=b.getBoundingClientRect().width,c>a&&(a=c))}),a++,b.forEach(function(b){b.style.width=a+"px"}),a},a.memoize=d,a.memoizeOutput=aW,a.memoizeRendering=f,a.mergeEventStores=Q,a.multiplyDuration=function(a,b){return{years:a.years*b,months:a.months*b,days:a.days*b,milliseconds:a.milliseconds*b}},a.padStart=z,a.parseBusinessHours=bX,a.parseDragMeta=function(c){var a={},b=m(c,dP,dQ,a);return b.leftoverProps=a,b},a.parseEventDef=U,a.parseFieldSpecs=bK,a.parseMarker=bG,a.pointInsideRect=function(a,b){return a.left>=b.left&&a.left=b.top&&a.top'+a.htmlEscape(i)+""),f=''+(a.htmlEscape(b.title||"")||" ")+"",'
'+("rtl"===d.options.dir?f+" "+h:h+" "+f)+"
"+(k?'
':"")+(l?'
':"")+"
"},c.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},c.prototype.computeDisplayEventEnd=function(){return!1},c}(a.FgEventRenderer),i=function(d){function c(b){var a=d.call(this)||this;return a.dayGrid=b,a}return b(c,d),c.prototype.attachSegs=function(a,b){var c=this.rowStructs=this.renderSegRows(a);this.dayGrid.rowEls.forEach(function(a,b){a.querySelector(".fc-content-skeleton > table").appendChild(c[b].tbodyEl)}),b||this.dayGrid.removeSegPopover()},c.prototype.detachSegs=function(){for(var b,c=this.rowStructs||[];b=c.pop();)a.removeElement(b.tbodyEl);this.rowStructs=null},c.prototype.renderSegRows=function(d){var b,a,c=[];for(b=this.groupSegRows(d),a=0;a=b.firstCol)return!0;return!1}function w(a,b){return a.leftCol-b.leftCol}v=function(c){function d(){return null!==c&&c.apply(this,arguments)||this}return b(d,c),d.prototype.attachSegs=function(c,d){var b=d.sourceSeg,e=this.rowStructs=this.renderSegRows(c);this.dayGrid.rowEls.forEach(function(c,g){var d,h,f=a.htmlToElement('
');b&&b.row===g?d=b.el:(d=c.querySelector(".fc-content-skeleton tbody"))||(d=c.querySelector(".fc-content-skeleton table")),h=d.getBoundingClientRect().top-c.getBoundingClientRect().top,f.style.top=h+"px",f.querySelector("table").appendChild(e[g].tbodyEl),c.appendChild(f)})},d}(i),t=function(d){function c(b){var a=d.call(this)||this;return a.fillSegTag="td",a.dayGrid=b,a}return b(c,d),c.prototype.renderSegs=function(b,c,a){"bgEvent"===b&&(a=a.filter(function(a){return a.eventRange.def.allDay})),d.prototype.renderSegs.call(this,b,c,a)},c.prototype.attachSegs=function(f,d){var a,b,c,e=[];for(a=0;a
')).getElementsByTagName("tr")[0],f>0&&a.appendToElement(c,new Array(f+1).join('')),b.el.colSpan=g-f,c.appendChild(b.el),g')),h=i.renderProps.renderIntroHtml(),h&&(e?a.appendToElement(c,h):a.prependToElement(c,h)),l},c}(a.FillRenderer),o=function(d){function c(f){var c=d.call(this,f)||this,b=c.eventRenderer=new p(c),e=c.renderFrame=a.memoizeRendering(c._renderFrame);return c.renderFgEvents=a.memoizeRendering(b.renderSegs.bind(b),b.unrender.bind(b),[e]),c.renderEventSelection=a.memoizeRendering(b.selectByInstanceId.bind(b),b.unselectByInstanceId.bind(b),[c.renderFgEvents]),c.renderEventDrag=a.memoizeRendering(b.hideByHash.bind(b),b.showByHash.bind(b),[e]),c.renderEventResize=a.memoizeRendering(b.hideByHash.bind(b),b.showByHash.bind(b),[e]),c}return b(c,d),c.prototype.firstContext=function(a){a.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},c.prototype.render=function(a,b){this.renderFrame(a.date),this.renderFgEvents(b,a.fgSegs),this.renderEventSelection(a.eventSelection),this.renderEventDrag(a.eventDragInstances),this.renderEventResize(a.eventResizeInstances)},c.prototype.destroy=function(){d.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},c.prototype._renderFrame=function(d){var b=this.context,c=b.theme,e=b.dateEnv,f=b.options,g=e.format(d,a.createFormatter(f.dayPopoverFormat));this.el.innerHTML='
'+a.htmlEscape(g)+'
',this.segContainerEl=this.el.querySelector(".fc-event-container")},c.prototype.queryHit=function(e,f,b,c){var d=this.props.date;if(e'),"rtl"===this.context.options.dir&&b.reverse(),""+b.join("")+""},a}();function q(b,d,c,e){var g=c.dateEnv,h=c.theme,i=a.rangeContainsMarker(d.activeRange,b),f=a.getDayClasses(b,d,c);return f.unshift("fc-day",h.getClass("widgetContent")),'"}r=a.createFormatter({day:"numeric"}),s=a.createFormatter({week:"numeric"}),m=function(e){function c(g,h){var b=e.call(this,g)||this,d,c,f;return b.bottomCoordPadding=0,b.isCellSizesDirty=!1,b.renderProps=h,d=b.eventRenderer=new i(b),c=b.fillRenderer=new t(b),b.mirrorRenderer=new v(b),f=b.renderCells=a.memoizeRendering(b._renderCells,b._unrenderCells),b.renderBusinessHours=a.memoizeRendering(c.renderSegs.bind(c,"businessHours"),c.unrender.bind(c,"businessHours"),[f]),b.renderDateSelection=a.memoizeRendering(c.renderSegs.bind(c,"highlight"),c.unrender.bind(c,"highlight"),[f]),b.renderBgEvents=a.memoizeRendering(c.renderSegs.bind(c,"bgEvent"),c.unrender.bind(c,"bgEvent"),[f]),b.renderFgEvents=a.memoizeRendering(d.renderSegs.bind(d),d.unrender.bind(d),[f]),b.renderEventSelection=a.memoizeRendering(d.selectByInstanceId.bind(d),d.unselectByInstanceId.bind(d),[b.renderFgEvents]),b.renderEventDrag=a.memoizeRendering(b._renderEventDrag,b._unrenderEventDrag,[f]),b.renderEventResize=a.memoizeRendering(b._renderEventResize,b._unrenderEventResize,[f]),b}return b(c,e),c.prototype.render=function(a,b){var c=a.cells;this.rowCnt=c.length,this.colCnt=c[0].length,this.renderCells(c,a.isRigid),this.renderBusinessHours(b,a.businessHourSegs),this.renderDateSelection(b,a.dateSelectionSegs),this.renderBgEvents(b,a.bgEventSegs),this.renderFgEvents(b,a.fgEventSegs),this.renderEventSelection(a.eventSelection),this.renderEventDrag(a.eventDrag),this.renderEventResize(a.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},c.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderCells.unrender()},c.prototype.getCellRange=function(c,d){var b=this.props.cells[c][d].date;return{start:b,end:a.addDays(b,1)}},c.prototype.updateSegPopoverTile=function(b,c){var a=this.props;this.segPopoverTile.receiveProps({date:b||this.segPopoverTile.props.date,fgSegs:c||this.segPopoverTile.props.fgSegs,eventSelection:a.eventSelection,eventDragInstances:a.eventDrag?a.eventDrag.affectedInstances:null,eventResizeInstances:a.eventResize?a.eventResize.affectedInstances:null},this.context)},c.prototype._renderCells=function(h,i){var b,c,d=this.context,m=d.calendar,j=d.view,k=d.isRtl,l=d.dateEnv,f=this.rowCnt,g=this.colCnt,e="";for(b=0;b
'+e.renderHtml({cells:this.props.cells[a],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'
'+(this.getIsNumbersVisible()?""+this.renderNumberTrHtml(a)+"":"")+"
"},c.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},c.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},c.prototype.renderNumberTrHtml=function(a){var b=this.context.isRtl,c=this.renderProps.renderNumberIntroHtml(a,this);return""+(b?"":c)+this.renderNumberCellsHtml(a)+(b?c:"")+""},c.prototype.renderNumberCellsHtml=function(d){var a,c,b=[];for(a=0;a",this.renderProps.cellWeekNumbersVisible&&b.getUTCDay()===f&&(d+=a.buildGotoAnchorHtml(h,c,{date:b,type:"week"},{class:"fc-week-number"},c.format(b,s))),j&&(d+=a.buildGotoAnchorHtml(h,c,b,{class:"fc-day-number"},c.format(b,r))),d+=""):""},c.prototype.updateSize=function(a){var e=this.context.calendar,b=this.fillRenderer,c=this.eventRenderer,d=this.mirrorRenderer;(a||this.isCellSizesDirty||e.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),b.computeSizes(a),c.computeSizes(a),d.computeSizes(a),b.assignSizes(a),c.assignSizes(a),d.assignSizes(a)},c.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},c.prototype.buildColPositions=function(){this.colPositions.build()},c.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},c.prototype.positionToHit=function(e,f){var c=this.colPositions,d=this.rowPositions,a=c.leftToIndex(e),b=d.topToIndex(f);if(null!=b&&null!=a)return{row:b,col:a,dateSpan:{range:this.getCellRange(b,a),allDay:!0},dayEl:this.getCellEl(b,a),relativeRect:{left:c.lefts[a],right:c.rights[a],top:d.tops[b],bottom:d.bottoms[b]}}},c.prototype.getCellEl=function(a,b){return this.cellEls[a*this.colCnt+b]},c.prototype._renderEventDrag=function(a){a&&(this.eventRenderer.hideByHash(a.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,a.segs))},c.prototype._unrenderEventDrag=function(a){a&&(this.eventRenderer.showByHash(a.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},c.prototype._renderEventResize=function(a){a&&(this.eventRenderer.hideByHash(a.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,a.segs),this.mirrorRenderer.renderSegs(this.context,a.segs,{isResizing:!0,sourceSeg:a.sourceSeg}))},c.prototype._unrenderEventResize=function(a){a&&(this.eventRenderer.showByHash(a.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,a.segs,{isResizing:!0,sourceSeg:a.sourceSeg}))},c.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},c.prototype.limitRows=function(b){var a,c,d=this.eventRenderer.rowStructs||[];for(a=0;af)return b;return!1},c.prototype.limitRow=function(j,b){var t,o,q,m,g,d,r,l,e,z,p,i,n,h,k,v=this,x=this.colCnt,w=this.context.isRtl,f=this.eventRenderer.rowStructs[j],u=[],c=0,y=function(f){for(;c"+a.htmlEscape(e.weekLabel)+"":""},b.renderDayGridNumberIntroHtml=function(g,c){var d=b.context,h=d.options,e=d.dateEnv,f=c.props.cells[g][0].date;return b.colWeekNumbersVisible?'"+a.buildGotoAnchorHtml(h,e,{date:f,type:"week",forceOff:1===c.colCnt},e.format(f,u))+"":""},b.renderDayGridBgIntroHtml=function(){var a=b.context.theme;return b.colWeekNumbersVisible?'":""},b.renderDayGridIntroHtml=function(){return b.colWeekNumbersVisible?'":""},b}return b(c,d),c.prototype._processOptions=function(a){a.weekNumbers?a.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},c.prototype.render=function(b,a){d.prototype.render.call(this,b,a),this.processOptions(a.options),this.renderSkeleton(a)},c.prototype.destroy=function(){d.prototype.destroy.call(this),this.renderSkeleton.unrender()},c.prototype._renderSkeleton=function(d){var b,c;this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new a.ScrollComponent("hidden","auto"),b=this.scroller.el,this.el.querySelector(".fc-body > tr > td").appendChild(b),b.classList.add("fc-day-grid-container"),c=a.createElement("div",{className:"fc-day-grid"}),b.appendChild(c),this.dayGrid=new m(c,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},c.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},c.prototype.renderSkeletonHtml=function(){var b=this.context,a=b.theme,c=b.options;return''+(c.columnHeader?'':"")+'
 
'},c.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},c.prototype.hasRigidRows=function(){var a=this.context.options.eventLimit;return a&&"number"!=typeof a},c.prototype.updateSize=function(a,b,c){d.prototype.updateSize.call(this,a,b,c),this.dayGrid.updateSize(a)},c.prototype.updateBaseSize=function(i,h,g){var b,e,f=this.dayGrid,c=this.context.options.eventLimit,d=this.header?this.header.el:null;f.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=a.matchCellWidths(a.findElements(this.el,".fc-week-number"))),this.scroller.clear(),d&&a.uncompensateScroll(d),f.removeSegPopover(),c&&"number"==typeof c&&f.limitRows(c),b=this.computeScrollerHeight(h),this.setGridHeight(b,g),c&&"number"!=typeof c&&f.limitRows(c),g||(this.scroller.setHeight(b),((e=this.scroller.getScrollbarWidths()).left||e.right)&&(d&&a.compensateScroll(d,e),b=this.computeScrollerHeight(h),this.scroller.setHeight(b)),this.scroller.lockOverflow(e))):g||(b=this.computeScrollerHeight(h),this.scroller.setHeight(b))},c.prototype.computeScrollerHeight=function(b){return b-a.subtractInnerElHeight(this.el,this.scroller.el)},c.prototype.setGridHeight=function(b,c){this.context.options.monthMode?(c&&(b*=this.dayGrid.rowCnt/6),a.distributeHeight(this.dayGrid.rowEls,b,!c)):c?a.undistributeHeight(this.dayGrid.rowEls):a.distributeHeight(this.dayGrid.rowEls,b,!0)},c.prototype.computeDateScroll=function(a){return{top:0}},c.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},c.prototype.applyDateScroll=function(a){void 0!==a.top&&this.scroller.setScrollTop(a.top)},c}(a.View),e.prototype.dateProfileGeneratorClass=z,k=function(c){function a(b){var a=c.call(this,b.el)||this;return a.slicer=new j,a.dayGrid=b,a}return b(a,c),a.prototype.firstContext=function(a){a.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},a.prototype.destroy=function(){c.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},a.prototype.render=function(a,b){var c=this.dayGrid,e=a.dateProfile,f=a.dayTable;c.receiveProps(d({},this.slicer.sliceProps(a,e,a.nextDayThreshold,b.calendar,c,f),{dateProfile:e,cells:f.cells,isRigid:a.isRigid}),b)},a.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},a.prototype.queryHit=function(b,c){var a=this.dayGrid.positionToHit(b,c);if(a)return{component:this.dayGrid,dateSpan:a.dateSpan,dayEl:a.dayEl,rect:{left:a.relativeRect.left,right:a.relativeRect.right,top:a.relativeRect.top,bottom:a.relativeRect.bottom},layer:0}},a}(a.DateComponent),j=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}return b(c,a),c.prototype.sliceRange=function(a,b){return b.sliceRange(a)},c}(a.Slicer),g=function(c){function d(){var b=null!==c&&c.apply(this,arguments)||this;return b.buildDayTable=a.memoize(h),b}return b(d,c),d.prototype.render=function(a,b){c.prototype.render.call(this,a,b);var d=this.props.dateProfile,e=this.dayTable=this.buildDayTable(d,a.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:d,dates:e.headerDates,datesRepDistinctDays:1===e.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},b),this.simpleDayGrid.receiveProps({dateProfile:d,dayTable:e,businessHours:a.businessHours,dateSelection:a.dateSelection,eventStore:a.eventStore,eventUiBases:a.eventUiBases,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},b)},d.prototype._renderSkeleton=function(b){c.prototype._renderSkeleton.call(this,b),b.options.columnHeader&&(this.header=new a.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new k(this.dayGrid)},d.prototype._unrenderSkeleton=function(){c.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},d}(e);function h(b,c){var d=new a.DaySeries(b.renderRange,c);return new a.DayTable(d,/year|month|week/.test(b.currentRangeUnit))}A=a.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:g,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),c.AbstractDayGridView=e,c.DayBgRow=n,c.DayGrid=m,c.DayGridSlicer=j,c.DayGridView=g,c.SimpleDayGrid=k,c.buildBasicDayTable=h,c.default=A,Object.defineProperty(c,"__esModule",{value:!0})}),!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("../daygrid/node_modules/@fullcalendar/core"),require("@fullcalendar/daygrid")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core","@fullcalendar/daygrid"],b):b((a=a||self).FullCalendarTimeGrid={},a.FullCalendar,a.FullCalendarDayGrid)}(this,function(c,a,f){"use strict";var l=function(a,b){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])})(a,b)},d,i,u,q,m,n,t,s,e,r,o,k,w;function b(b,a){function c(){this.constructor=b}l(b,a),b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}d=function(){return(d=Object.assign||function(d){for(var a,b=1,e=arguments.length,c;b
'+(f?'
'+a.htmlEscape(f)+"
":"")+(c.title?'
'+a.htmlEscape(c.title)+"
":"")+"
"+(l?'
':"")+""},c.prototype.computeSegHorizontals=function(d){var c,b,a;if(function(b){var a,e,c,f,d;for(a=0;a0&&b.el.classList.add("fc-time-grid-event-inset"),b.eventRange.def.title&&b.bottom-b.top<30&&b.el.classList.add("fc-short")},c.prototype.generateSegCss=function(a){var e,f,g=this.context.options.slotEventOverlap,c=a.backwardCoord,d=a.forwardCoord,b=this.timeGrid.generateSegVerticalCss(a),h=this.context.isRtl;return g&&(d=Math.min(1,c+2*(d-c))),h?(e=1-d,f=c):(e=c,f=1-d),b.zIndex=a.level+1,b.left=100*e+"%",b.right=100*f+"%",g&&a.forwardPressure&&(b[h?"marginLeft":"marginRight"]=20),b},c}(a.FgEventRenderer);function h(b){var a,d,e=b.forwardSegs,c=0;if(void 0===b.forwardPressure){for(a=0;ad.top&&c.top=0;b--)if(c=a.createDuration(m[b]),null!==(e=a.wholeDivideDurations(c,d))&&e>1)return c;return d},c.prototype.render=function(a,b){this.processOptions(b.options);var c=a.cells;this.colCnt=c.length,this.renderSkeleton(b.theme),this.renderSlats(a.dateProfile),this.renderColumns(a.cells,a.dateProfile),this.renderBusinessHours(b,a.businessHourSegs),this.renderDateSelection(a.dateSelectionSegs),this.renderFgEvents(b,a.fgEventSegs),this.renderBgEvents(b,a.bgEventSegs),this.renderEventSelection(a.eventSelection),this.renderEventDrag(a.eventDrag),this.renderEventResize(a.eventResize)},c.prototype.destroy=function(){d.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender(),this.renderSkeleton.unrender()},c.prototype.updateSize=function(a){var b=this.fillRenderer,c=this.eventRenderer,d=this.mirrorRenderer;(a||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(a||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),b.computeSizes(a),c.computeSizes(a),d.computeSizes(a),b.assignSizes(a),c.assignSizes(a),d.assignSizes(a)},c.prototype._renderSkeleton=function(b){var a=this.el;a.innerHTML='
',this.rootBgContainerEl=a.querySelector(".fc-bg"),this.slatContainerEl=a.querySelector(".fc-slats"),this.bottomRuleEl=a.querySelector(".fc-divider")},c.prototype._renderSlats=function(b){var c=this.context.theme;this.slatContainerEl.innerHTML=''+this.renderSlatRowHtml(b)+"
",this.slatEls=a.findElements(this.slatContainerEl,"tr"),this.slatPositions=new a.PositionCache(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},c.prototype.renderSlatRowHtml=function(c){for(var d,e,f,h=this.context,l=h.dateEnv,i=h.theme,j=h.isRtl,k="",m=a.startOfDay(c.renderRange.start),b=c.minTime,g=a.createDuration(0);a.asRoughMs(b)'+(e?""+a.htmlEscape(l.format(d,this.labelFormat))+"":"")+"",k+='"+(j?"":f)+''+(j?f:"")+"",b=a.addDurations(b,this.slotDuration),g=a.addDurations(g,this.slotDuration);return k},c.prototype._renderColumns=function(d,e){var b=this.context,l=b.calendar,g=b.view,h=b.isRtl,i=b.theme,j=b.dateEnv,k=new f.DayBgRow(this.context),c;this.rootBgContainerEl.innerHTML=''+k.renderHtml({cells:d,dateProfile:e,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"
",this.colEls=a.findElements(this.el,".fc-day, .fc-disabled-day");for(c=0;c
');d&&c.reverse(),b=this.contentSkeletonEl=a.htmlToElement('
'+c.join("")+"
"),this.colContainerEls=a.findElements(b,".fc-content-col"),this.mirrorContainerEls=a.findElements(b,".fc-mirror-container"),this.fgContainerEls=a.findElements(b,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=a.findElements(b,".fc-bgevent-container"),this.highlightContainerEls=a.findElements(b,".fc-highlight-container"),this.businessContainerEls=a.findElements(b,".fc-business-container"),d&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(b)},c.prototype.unrenderContentSkeleton=function(){a.removeElement(this.contentSkeletonEl)},c.prototype.groupSegsByCol=function(b){var a,c=[];for(a=0;a0&&(c=a.createElement("div",{className:"fc-now-indicator fc-now-indicator-arrow"}),c.style.top=f+"px",this.contentSkeletonEl.appendChild(c),d.push(c)),this.nowIndicatorEls=d}},c.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(a.removeElement),this.nowIndicatorEls=null)},c.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height},c.prototype.computeDateTop=function(c,b){return b||(b=a.startOfDay(c)),this.computeTimeTop(a.createDuration(c.valueOf()-b.valueOf()))},c.prototype.computeTimeTop=function(f){var c,d,e=this.slatEls.length,g=this.props.dateProfile,b=(f.milliseconds-a.asRoughMs(g.minTime))/a.asRoughMs(this.slotDuration);return b=Math.max(0,b),b=Math.min(e,b),c=Math.floor(b),d=b-(c=Math.min(c,e-1)),this.slatPositions.tops[c]+this.slatPositions.getHeight(c)*d},c.prototype.computeSegVerticals=function(d){var b,a,c,e=this.context.options.timeGridEventMinHeight;for(b=0;b"+a.buildGotoAnchorHtml(h,g,{date:c.start,type:"week",forceOff:i>1},a.htmlEscape(e))+""):'"},b.renderTimeGridBgIntroHtml=function(){return'"},b.renderTimeGridIntroHtml=function(){return'"},b.renderDayGridBgIntroHtml=function(){var c=b.context,d=c.theme,e=c.options;return'"+a.getAllDayHtml(e)+""},b.renderDayGridIntroHtml=function(){return'"},b}return b(c,d),c.prototype.render=function(b,a){d.prototype.render.call(this,b,a),this.renderSkeleton(a)},c.prototype.destroy=function(){d.prototype.destroy.call(this),this.renderSkeleton.unrender()},c.prototype._renderSkeleton=function(e){var b,c,d;this.el.classList.add("fc-timeGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new a.ScrollComponent("hidden","auto"),b=this.scroller.el,this.el.querySelector(".fc-body > tr > td").appendChild(b),b.classList.add("fc-time-grid-container"),c=a.createElement("div",{className:"fc-time-grid"}),(b.appendChild(c),this.timeGrid=new n(c,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),e.options.allDaySlot)&&(this.dayGrid=new f.DayGrid(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1}),d=this.el.querySelector(".fc-divider"),this.dayGrid.bottomCoordPadding=d.getBoundingClientRect().height)},c.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},c.prototype.renderSkeletonHtml=function(){var b=this.context,a=b.theme,c=b.options;return''+(c.columnHeader?'':"")+'
 
'+(c.allDaySlot?'

':"")+"
"},c.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},c.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},c.prototype.updateSize=function(a,b,c){d.prototype.updateSize.call(this,a,b,c),this.timeGrid.updateSize(a),this.dayGrid&&this.dayGrid.updateSize(a)},c.prototype.updateBaseSize=function(i,e,f){var c,b,d,h=this,g;(this.axisWidth=a.matchCellWidths(a.findElements(this.el,".fc-axis")),this.timeGrid.colEls)?(g=a.findElements(this.el,".fc-row").filter(function(a){return!h.scroller.el.contains(a)}),this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),g.forEach(a.uncompensateScroll),this.dayGrid&&(this.dayGrid.removeSegPopover(),(c=this.context.options.eventLimit)&&"number"!=typeof c&&(c=5),c&&this.dayGrid.limitRows(c)),f||(b=this.computeScrollerHeight(e),this.scroller.setHeight(b),((d=this.scroller.getScrollbarWidths()).left||d.right)&&(g.forEach(function(b){a.compensateScroll(b,d)}),b=this.computeScrollerHeight(e),this.scroller.setHeight(b)),this.scroller.lockOverflow(d),this.timeGrid.getTotalSlatHeight()'+(this.displayEventTime?''+(g||"")+"":"")+'"+a.htmlEscape(e.title||"")+""},b.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},b}(a.FgEventRenderer),c=function(c){function b(e,h){var b=c.call(this,e,h)||this,d;return b.computeDateVars=a.memoize(g),b.eventStoreToSegs=a.memoize(b._eventStoreToSegs),b.renderSkeleton=a.memoizeRendering(b._renderSkeleton,b._unrenderSkeleton),d=b.eventRenderer=new f(b),b.renderContent=a.memoizeRendering(d.renderSegs.bind(d),d.unrender.bind(d),[b.renderSkeleton]),b}return e(b,c),b.prototype.firstContext=function(a){a.calendar.registerInteractiveComponent(this,{el:this.el})},b.prototype.render=function(a,b){c.prototype.render.call(this,a,b);var d=this.computeDateVars(a.dateProfile),e=d.dayDates,f=d.dayRanges;this.dayDates=e,this.renderSkeleton(b),this.renderContent(b,this.eventStoreToSegs(a.eventStore,a.eventUiBases,f))},b.prototype.destroy=function(){c.prototype.destroy.call(this),this.renderSkeleton.unrender(),this.renderContent.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},b.prototype._renderSkeleton=function(e){var f=e.theme,b,c,d;this.el.classList.add("fc-list-view");for(b=0,c=(f.getClass("listView")||"").split(" ");b