From 33c8f22a3a6d7eabfaf3180b19c74f5fb2cbb541 Mon Sep 17 00:00:00 2001 From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:25:31 +0200 Subject: [PATCH] DISPLAY-1019: Fixed poster template to account show message when not configured correctly --- CHANGELOG.md | 4 +- build/poster-config-develop.json | 4 +- build/poster-config-main.json | 4 +- build/poster.js | 2 +- src/poster/poster.js | 158 +++++++++++++++++-------------- 5 files changed, 93 insertions(+), 79 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77f9a72b..a5560191 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,10 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- [#144](https://github.com/os2display/display-templates/pull/144) + - Fixed poster template to account show message when not configured correctly. - [#142](https://github.com/os2display/display-templates/pull/142) - Update poster template to display url domain. + - Update poster template to display url domain. ## [1.3.0] - 2023-09-14 diff --git a/build/poster-config-develop.json b/build/poster-config-develop.json index 1e26fe9a..f5e2b444 100644 --- a/build/poster-config-develop.json +++ b/build/poster-config-develop.json @@ -4,8 +4,8 @@ "id": "01FWJZQ25A1868V63CWYYHQFKQ", "description": "Mulighed for at vise plakat indhold.", "resources": { - "component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster.js?ts=1696848106826", - "admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster-admin.json?ts=1696848106826", + "component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster.js?ts=1697045018905", + "admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster-admin.json?ts=1697045018905", "schema": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster-schema.json", "assets": [], "options": {}, diff --git a/build/poster-config-main.json b/build/poster-config-main.json index 8f8da181..bc9d6025 100644 --- a/build/poster-config-main.json +++ b/build/poster-config-main.json @@ -4,8 +4,8 @@ "id": "01FWJZQ25A1868V63CWYYHQFKQ", "description": "Mulighed for at vise plakat indhold.", "resources": { - "component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster.js?ts=1696848106826", - "admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-admin.json?ts=1696848106826", + "component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster.js?ts=1697045018905", + "admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-admin.json?ts=1697045018905", "schema": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-schema.json", "assets": [], "options": {}, diff --git a/build/poster.js b/build/poster.js index 797a936d..a45db237 100644 --- a/build/poster.js +++ b/build/poster.js @@ -1,2 +1,2 @@ /*! For license information please see poster.js.LICENSE.txt */ -(()=>{var e={6215:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.push([e.id,'.slide{--color-white: #fff;--color-grey-100: hsl(0deg 0% 95%);--color-grey-200: hsl(0deg 0% 85%);--color-grey-300: hsl(0deg 0% 80%);--color-grey-400: hsl(0deg 0% 75%);--color-grey-500: hsl(0deg 0% 70%);--color-grey-600: hsl(0deg 0% 40%);--color-grey-700: hsl(0deg 0% 30%);--color-grey-800: hsl(0deg 0% 20%);--color-grey-900: hsl(0deg 0% 10%);--color-black: #000;--color-blue: hsl(219deg 89% 57%);--color-indigo: indigo;--color-purple: purple;--color-pink: pink;--color-red: red;--color-orange: orange;--color-yellow: yellow;--color-green: green;--color-teal: teal;--color-cyan: cyan;--color-gray: var(--color-grey-500);--color-gray-dark: var(--color-grey-900);--color-primary: var(--color-blue);--color-secondary: var(--color-orange);--color-success: var(--color-green);--color-info: var(--color-teal);--color-warning: var(--color-yellow);--color-danger: var(--color-red);--color-light: var(--color-white);--color-dark: var(--color-black);--bg-light: var(--color-light);--bg-dark: var(--color-dark);--bg-primary: var(--color-primary);--bg-secondary: var(--color-secondary);--bg-transparent: transparent;--text-light: var(--color-light);--text-dark: var(--color-dark);--font-family-base: system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-bold: 700;--line-height-base: 1.5;--line-height-sm: 1.25;--line-height-lg: 2;--font-size-base: 1rem;--font-size-multiplier-050: 0.5;--font-size-multiplier-075: 0.75;--font-size-multiplier-090: 0.9;--font-size-multiplier-125: 1.25;--font-size-multiplier-150: 1.5;--font-size-multiplier-175: 1.75;--font-size-multiplier-200: 2;--font-size-multiplier-250: 2.5;--font-size-xs: calc(var(--font-size-base) * var(--font-size-multiplier-050));--font-size-sm: calc(var(--font-size-base) * var(--font-size-multiplier-075));--font-size-m: calc(var(--font-size-base) * 1);--font-size-lg: calc(var(--font-size-base) * var(--font-size-multiplier-125));--font-size-xl: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125));--h6-font-size: calc(var(--font-size-base));--spacer: 12px;--margin-size-base: calc(var(--spacer) * 3);--padding-size-base: calc(var(--spacer) * 3);--box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--border-size: 1px;--border-style: solid;--border-color: var(--color-grey-900);--border: var(--border-size) var(--border-style) var(--border-color);--background-color: var(--bg-light, hsl(0deg, 0%, 100%));--background-color-secondary: var(--color-grey-100, hsl(0deg, 0%, 95%));--text-color: var(--text-dark, hsl(0deg, 0%, 0%))}*,*::before,*::after{box-sizing:border-box}html{font-size:1.125rem;height:100%;background-color:var(--background-color);color:var(--text-color)}body{margin:0;height:100%}@keyframes h1-underline{0%{opacity:0;width:100%}40%{opacity:1;width:100%;margin-top:.938em;height:.375em}70%{opacity:1;width:100%;margin-top:.625em;height:.2em}100%{opacity:1;width:5em;margin-top:.625em}}.color-scheme-dark .slide{--background-color: var(--bg-dark, hsl(0deg, 0%, 10%));--background-color-secondary: var(--bg-dark-secondary, hsl(0deg, 0%, 20%));--text-color: var(--text-light, hsl(0deg, 0%, 100%));--border-color: var(--color-light);--color-grey-100: hsl(0deg 0% 10%);--color-grey-200: hsl(0deg 0% 15%);--color-grey-300: hsl(0deg 0% 20%);--color-grey-400: hsl(0deg 0% 25%);--color-grey-500: hsl(0deg 0% 30%);--color-grey-600: hsl(0deg 0% 45%);--color-grey-700: hsl(0deg 0% 60%);--color-grey-800: hsl(0deg 0% 75%);--color-grey-900: hsl(0deg 0% 90%)}@media screen and (min-width: 1921px)and (orientation: landscape){.slide{--font-size-base: 2rem;--spacer: 24px}}@media screen and (min-width: 1081px)and (orientation: portrait){.slide{--font-size-base: 2rem;--spacer: 24px}}.slide .font-size-xs{--font-size-base: var(--font-size-xs);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-s{--font-size-base: var(--font-size-sm);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-m{--font-size-base: var(--font-size-m);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-lg{--font-size-base: var(--font-size-lg);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-xl{--font-size-base: var(--font-size-xl);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide h1{font-size:var(--h1-font-size)}.slide h2{font-size:var(--h2-font-size)}.slide h3{font-size:var(--h3-font-size)}.slide h4{font-size:var(--h4-font-size)}.slide h5{font-size:var(--h5-font-size)}.slide h6{font-size:var(--h6-font-size)}',""]);const o=i},4481:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.push([e.id,'.template-poster{height:100%;display:grid;grid-template-columns:66.666% 33.334%;grid-template-rows:55% 45%;grid-template-areas:"a b" "a c";grid-gap:0;overflow-wrap:break-word;word-break:break-word;word-wrap:break-word;background-color:var(--bg-dark);font-family:var(--font-family-base);font-size:var(--font-size-base)}.template-poster.with-logo{grid-template-rows:55% 35% 10%;grid-template-areas:"a b" "a c" "a d"}.template-poster .image-area{grid-area:a;background-size:cover;background-position:center center}.template-poster .header-area{grid-area:b;display:grid;padding:5%;background-color:var(--bg-primary);color:var(--text-light)}.template-poster .header-area h1{font-size:var(--h1-font-size)}.template-poster .header-area .center{align-self:center}.template-poster .header-area .lead{font-size:var(--h4-font-size);margin-block-start:0;margin-block-end:0}.template-poster .info-area{grid-area:c;font-size:var(--font-size-lg);padding:5%;background-color:var(--bg-light);color:var(--text-dark)}.template-poster .info-area .ticket,.template-poster .info-area .date,.template-poster .info-area .time,.template-poster .info-area .place{margin-block-start:0;margin-block-end:2/2}.template-poster .info-area .moreinfo{margin-block-start:10}.template-poster .info-area .moreinfo span{font-weight:bold}.template-poster .logo-area{grid-area:d;height:100%;width:100%;background-color:var(--bg-light);display:flex;align-items:center;justify-content:flex-end}.template-poster .logo-area img{margin-right:2%;max-height:90%}@media(orientation: portrait){.template-poster{grid-template-columns:55% 45%;grid-template-rows:65% 35%;grid-template-areas:"a a" "b c" "d d"}}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@keyframes fade-out{0%{opacity:1}100%{opacity:0}}',""]);const o=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!n&&i&&(y=i),i||!n&&y},T=function(e,t){if(E(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new _(r)},A=v;A.l=S,A.i=E,A.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var r=T(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return T(e){"use strict";var n=r(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var i=p(r);i&&i!==d&&e(t,i,n)}var a=u(r);h&&(a=a.concat(h(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case h:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function T(e){return S(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return T(e)||S(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===s||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=S},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},2703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(e,t)=>{"use strict";var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,h=60120,f=60115,p=60116,d=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),h=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===v||e===o||e===u||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case u:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case n:return t}}}},9864:(e,t,r)=>{"use strict";e.exports=r(9921)},6774:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";var n,i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),o=[];function a(e){for(var t=-1,r=0;r{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{default:()=>In});const e=require("react");var t=r.n(e),i=r(5697),o=r.n(i),a=r(7484),s=r.n(a),l=r(7427),c=r.n(l),u=r(6176),h=r.n(u),f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},f(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace($,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(j.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(U.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(U,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=d(d({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=d(d({},t),Y(o)))}else if(G.test(i.stem))t=d(d({},t),Y(i.stem));else{var a=V(i.stem);a&&(t=d(d({},t),a));var s=X(i.stem);s&&(t=d(d({},t),s))}}return t}var K,q={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function J(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(q[r||""]||q[n||""]||q["".concat(n,"-001")]||q["001"])[0]}var Q=new RegExp("^".concat(D.source,"*")),ee=new RegExp("".concat(D.source,"*$"));function te(e,t){return{start:e,end:t}}var re=!!String.prototype.startsWith,ne=!!String.fromCodePoint,ie=!!Object.fromEntries,oe=!!String.prototype.codePointAt,ae=!!String.prototype.trimStart,se=!!String.prototype.trimEnd,le=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ce=!0;try{ce="a"===(null===(K=ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===K?void 0:K[0])}catch(er){ce=!1}var ue,he=re?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},fe=ne?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},pe=ie?Object.fromEntries:function(e){for(var t={},r=0,n=e;r=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},me=ae?function(e){return e.trimStart()}:function(e){return e.replace(Q,"")},ge=se?function(e){return e.trimEnd()}:function(e){return e.replace(ee,"")};function ve(e,t){return new RegExp(e,t)}if(ce){var ye=ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ue=function(e,t){var r;return ye.lastIndex=t,null!==(r=ye.exec(e)[1])&&void 0!==r?r:""}}else ue=function(e,t){for(var r=[];;){var n=de(e,t);if(void 0===n||Se(n)||Te(n))break;r.push(n),t+=n>=65536?2:1}return fe.apply(void 0,r)};var be=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(v.UNMATCHED_CLOSING_TAG,te(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Ee(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:y.pound,location:te(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(n,"/>"),location:te(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:y.tag,value:n,children:o,location:te(r,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,te(a,this.clonePosition())))}return this.error(v.UNCLOSED_TAG,te(r,this.clonePosition()))}return this.error(v.INVALID_TAG,te(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=te(r,this.clonePosition());return{val:{type:y.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ee(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return fe.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),fe(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(v.EMPTY_ARGUMENT,te(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(v.MALFORMED_ARGUMENT,te(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:te(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(v.MALFORMED_ARGUMENT,te(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ue(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:te(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,te(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(p=ge(S.val)).length)return this.error(v.EXPECT_ARGUMENT_STYLE,te(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:te(c,this.clonePosition())}}if((T=this.tryParseArgumentClose(n)).err)return T;var u=te(n,this.clonePosition());if(l&&he(null==l?void 0:l.style,"::",0)){var h=me(l.style.slice(2));if("number"===a)return(S=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?S:{val:{type:y.number,value:r,location:u,style:S.val},err:null};if(0===h.length)return this.error(v.EXPECT_DATE_TIME_SKELETON,u);var f=h;this.locale&&(f=function(e,t){for(var r="",n=0;n>1),l=J(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale));var p={type:b.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?z(f):{}};return{val:{type:"date"===a?y.date:y.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,te(m,d({},m)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),E=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,te(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),g=this.parseIdentifierIfPossible(),E=S.val}var T,A=this.tryParsePluralOrSelectOptions(e,a,t,g);if(A.err)return A;if((T=this.tryParseArgumentClose(n)).err)return T;var _=te(n,this.clonePosition());return"select"===a?{val:{type:y.select,value:r,options:pe(A.val),location:_},err:null}:{val:{type:y.plural,value:r,options:pe(A.val),offset:E,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(v.INVALID_ARGUMENT_TYPE,te(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,te(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(F).filter((function(e){return e.length>0})),r=[],n=0,i=t;n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=te(n,this.clonePosition());return i?le(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=de(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(he(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Se(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Ee(e){return e>=97&&e<=122||e>=65&&e<=90}function Se(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Te(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ae(e){e.forEach((function(e){if(delete e.location,M(e)||k(e))for(var t in e.options)delete e.options[t].location,Ae(e.options[t].value);else P(e)&&L(e.style)||(I(e)||R(e))&&B(e.style)?delete e.style.location:N(e)&&Ae(e.children)}))}function _e(e,t){void 0===t&&(t={}),t=d({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new be(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Ae(r.val),r.val}function we(e,t){var r=t&&t.cache?t.cache:He,n=t&&t.serializer?t.serializer:Re;return(t&&t.strategy?t.strategy:Ie)(e,{cache:r,serializer:n})}function Ce(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function Oe(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function Pe(e,t,r,n,i){return r.bind(t,e,n,i)}function Ie(e,t){return Pe(e,this,1===e.length?Ce:Oe,t.cache.create(),t.serializer)}var Re=function(){return JSON.stringify(arguments)};function Me(){this.cache=Object.create(null)}Me.prototype.get=function(e){return this.cache[e]},Me.prototype.set=function(e,t){this.cache[e]=t};var ke,He={create:function(){return new Me}},Ne={variadic:function(e,t){return Pe(e,this,Oe,t.cache.create(),t.serializer)},monadic:function(e,t){return Pe(e,this,Ce,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ke||(ke={}));var Le,Be=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return p(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),De=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ke.INVALID_VALUE,i)||this}return p(t,e),t}(Be),xe=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ke.INVALID_VALUE,n)||this}return p(t,e),t}(Be),ze=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ke.MISSING_VALUE,r)||this}return p(t,e),t}(Be);function Fe(e){return"function"==typeof e}function Ue(e,t,r,n,i,o,a){if(1===e.length&&C(e[0]))return[{type:Le.literal,value:e[0].value}];for(var s=[],l=0,c=e;l0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=_e,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}($e||($e={}));var Ye=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return p(t,e),t}(Error),Ve=function(e){function t(t,r){return e.call(this,$e.UNSUPPORTED_FORMATTER,t,r)||this}return p(t,e),t}(Ye),Xe=function(e){function t(t,r){return e.call(this,$e.INVALID_CONFIG,t,r)||this}return p(t,e),t}(Ye),Ze=function(e){function t(t,r){return e.call(this,$e.MISSING_DATA,t,r)||this}return p(t,e),t}(Ye),We=function(e){function t(t,r,n){return e.call(this,$e.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),n)||this}return p(t,e),t}(Ye),Ke=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t," \nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description," \n"),r,i)||this;return o.descriptor=n,o}return p(t,e),t}(We),qe=function(e){function t(t,r){var n=e.call(this,$e.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return n.descriptor=t,n}return p(t,e),t}(Ye);function Je(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Qe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function et(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function tt(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Ve("No ".concat(t," format named: ").concat(r)))}function rt(e){w(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var nt=d(d({},Qe),{textComponent:e.Fragment});function it(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;op)&&(z=(G=G.replace(" ",":")).length),0n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102n.charCodeAt(0)&&(n=n.trim()),n=[n],01?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var sr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&ar(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=ur&&(ur=t+1),lr.set(e,t),cr.set(t,e)},dr="style["+rr+'][data-styled-version="5.3.6"]',mr=new RegExp("^"+rr+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),gr=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(rr))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(rr,"active"),n.setAttribute("data-styled-version","5.3.6");var a=yr();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Er=function(){function e(e){var t=this.element=br(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Cr=/(a)(d)/gi,Or=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pr(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Or(t%52)+r;return(Or(t%52)+r).replace(Cr,"$1-$2")}var Ir=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Rr=function(e){return Ir(5381,e)};function Mr(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Ir(this.baseHash,r.hash),u="",h=0;h>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),Nr=/^\s*\/\/.*$/gm,Lr=[":","[",".","#"];function Br(e){var t,r,n,i,o=void 0===e?Jt:e,a=o.options,s=void 0===a?Jt:a,l=o.plugins,c=void 0===l?qt:l,u=new jt(s),h=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,l,c,u,h){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===h?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),p=function(e,n,o){return 0===n&&-1!==Lr.indexOf(o[r.length])||o.match(i)?e:"."+t};function d(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Nr,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),d.hash=c.length?c.reduce((function(e,t){return t.name||ar(15),Ir(e,t.name)}),5381).toString():"",d}var Dr=t().createContext(),xr=(Dr.Consumer,t().createContext()),zr=(xr.Consumer,new wr),Fr=Br();function Ur(){return(0,e.useContext)(Dr)||zr}function Gr(){return(0,e.useContext)(xr)||Fr}function $r(r){var n=(0,e.useState)(r.stylisPlugins),i=n[0],o=n[1],a=Ur(),s=(0,e.useMemo)((function(){var e=a;return r.sheet?e=r.sheet:r.target&&(e=e.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[r.disableCSSOMInjection,r.sheet,r.target]),l=(0,e.useMemo)((function(){return Br({options:{prefix:!r.disableVendorPrefixes},plugins:i})}),[r.disableVendorPrefixes,i]);return(0,e.useEffect)((function(){$t()(i,r.stylisPlugins)||o(r.stylisPlugins)}),[r.stylisPlugins]),t().createElement(Dr.Provider,{value:s},t().createElement(xr.Provider,{value:l},r.children))}var jr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Fr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return ar(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Fr),this.name+e.hash},e}(),Yr=/([A-Z])/,Vr=/([A-Z])/g,Xr=/^ms-/,Zr=function(e){return"-"+e.toLowerCase()};function Wr(e){return Yr.test(e)?e.replace(Vr,Zr).replace(Xr,"-ms-"):e}var Kr=function(e){return null==e||!1===e||""===e};function qr(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,rn=/(^-|-$)/g;function nn(e){return e.replace(tn,"-").replace(rn,"")}var on=function(e){return Pr(Rr(e)>>>0)};function an(e){return"string"==typeof e&&!0}var sn=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ln=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function cn(e,t,r){var n=e[r];sn(t)&&sn(n)?un(n,t):e[r]=t}function un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(i[r]=e[r]);return i}(n,["componentId"]),o=t&&t+"-"+(an(e)?e:nn(er(e)));return pn(e,Zt({},r,{attrs:d,componentId:o}),i)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?un({},r.defaultProps,e):e}}),g.toString=function(){return"."+g.styledComponentId},a&&S()(g,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var dn=function(e){return function e(t,r,n){if(void 0===n&&(n=Jt),!(0,Ut.isValidElementType)(r))return ar(1,String(r));var i=function(){return t(r,n,Qr.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,Zt({},n,{},i))},i.attrs=function(i){return e(t,r,Zt({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(pn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){dn[e]=dn(e)}));var mn,gn,vn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Mr(e),wr.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(qr(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&wr.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function yn(r){var n=r.id,i=r.css,o=void 0===i?null:i;if(!o)return t().createElement(t().Fragment,null);var a,s,l=o.replaceAll("#SLIDE_ID","#".concat(n)),c=function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o"+t+""},this.getStyleTags=function(){return e.sealed?ar(2):e._emitSheetCSS()},this.getStyleElement=function(){var r;if(e.sealed)return ar(2);var n=((r={})[rr]="",r["data-styled-version"]="5.3.6",r.dangerouslySetInnerHTML={__html:e.instance.toString()},r),i=yr();return i&&(n.nonce=i),[t().createElement("style",Zt({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new wr({isServer:!0}),this.sealed=!1}.prototype,mn.collectStyles=function(e){return this.sealed?ar(2):t().createElement($r,{sheet:this.instance},e)},mn.interleaveWithNodeStream=function(e){return ar(3)},yn.defaultProps={css:null},yn.propTypes={id:o().string.isRequired,css:o().string};var bn=r(3379),En=r.n(bn),Sn=r(6215);En()(Sn.Z,{insert:"head",singleton:!1}),Sn.Z.locals;var Tn=r(4481);function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _n(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var r,n=e[t[0]];return null!=n&&null!==(r=n.assets)&&void 0!==r&&r.uri?n.assets.uri:null!=n&&n.url?n.url:null}return null}(o.mediaData,[_]));var O,P=o.feed,I=o.feedData,R=a.entryDuration,M=1e3*(void 0===R?15:R),k=null!=v?v:{},H=k.endDate,N=k.startDate,L=k.name,B=k.image,D=k.excerpt,x=k.ticketPriceRange,z=k.url,F=k.place,U=P.configuration,G=void 0===U?{}:U,$=G.overrideTitle,j=void 0===$?"":$,Y=G.overrideSubTitle,V=void 0===Y?"":Y,X=G.overrideTicketPrice,Z=void 0===X?"":X,W=G.overrideReadMoreUrl,K=void 0===W?"":W,q=G.hideTime,J=void 0!==q&&q,Q=G.readMoreText,ee=void 0===Q?"":Q,te=H&&new Date(H).toDateString()===new Date(N).toDateString(),re=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},ne=function(e){return e?re(s()(e).locale(c()).format("ll")):""},ie=function(e){return e?re(s()(e).locale(c()).format("LT")):""};return(0,e.useEffect)((function(){v&&(T.current=setTimeout((function(){var e=(I.indexOf(v)+1)%I.length;0===e?u(o):(y(I[e]),S(!0))}),M),A.current=setTimeout((function(){S(!1)}),M-500))}),[v]),(0,e.useEffect)((function(){if(l)if(I&&null===v&&(null==I?void 0:I.length)>0){var e=Cn(I,1)[0];y(e)}else setTimeout((function(){return u(o)}),1e3);else y(null)}),[l]),(0,e.useEffect)((function(){return s().extend(h()),m(Ft),function(){null!==(null==T?void 0:T.current)&&clearInterval(T.current),null!==(null==A?void 0:A.current)&&clearInterval(A.current)}}),[]),t().createElement(t().Fragment,null,t().createElement(Bt,{messages:d,locale:"da",defaultLocale:"da"},t().createElement("div",{className:"template-poster ".concat(w&&"with-logo")},t().createElement("div",{className:"image-area",style:_n({backgroundImage:'url("'.concat(B,'")')},E?{animation:"fade-in ".concat(500,"ms")}:{animation:"fade-out ".concat(500,"ms")})}),t().createElement("div",{className:"header-area"},t().createElement("div",{className:"center"},t().createElement("h1",null,!j&&L,j),t().createElement("p",{className:"lead"},!V&&D,V))),t().createElement("div",{className:"info-area"},t().createElement("div",{className:"center"},!J&&N&&t().createElement("span",null,te&&t().createElement("span",null,t().createElement("div",{className:"date"},ne(N)),t().createElement("div",{className:"date"},ie(N)," - ",ie(H))),!te&&t().createElement("span",null,t().createElement("div",{className:"date"},N&&((O=N)?re(s()(O).locale(c()).format("DD MMMM")):"")," -"," ",H&&ne(H)),t().createElement("div",{className:"date"},ie(N)," - ",ie(H)))),F&&t().createElement("p",{className:"place"},F.name),t().createElement("p",{className:"ticket"},!x&&t().createElement(zt,{id:"free",defaultMessage:"free"}),x&&t().createElement(t().Fragment,null,!Z&&x,Z)),t().createElement(t().Fragment,null,ee&&t().createElement("p",{className:"moreinfo"},ee),!K&&z&&t().createElement("span",{className:"look-like-link"},z.replace(/^[^:]*:\/\//,"").replace(/\/.*$/,"")),K&&t().createElement("span",{className:"look-like-link"},K)))),w&&t().createElement("div",{className:"logo-area"},t().createElement("img",{src:C,alt:""})))),t().createElement(yn,{id:f,css:null==o||null===(i=o.themeData)||void 0===i?void 0:i.cssStyles}))}En()(Tn.Z,{insert:"head",singleton:!1}),Tn.Z.locals,Pn.propTypes={run:o().string.isRequired,slideDone:o().func.isRequired,slide:o().shape({mediaData:o().shape({url:o().string,assets:o().shape({uri:o().string})}),themeData:o().shape({cssStyles:o().string,logo:o().arrayOf(o().string)}),feed:o().shape({configuration:o().shape({overrideTitle:o().string,overrideSubTitle:o().string,overrideTicketPrice:o().string,overrideReadMoreUrl:o().string,hideTime:o().bool,readMoreText:o().string})}),feedData:o().arrayOf(o().shape({endDate:o().string,eventStatusText:o().string,excerpt:o().string,image:o().string,name:o().string,place:o().shape({addressLocality:o().string,image:o().string,name:o().string,postalCode:o().string,streetAddress:o().string,telephone:o().string}),startDate:o().string,ticketPriceRange:o().string,ticketPurchaseUrl:o().string,url:o().string}))}).isRequired,content:o().shape({entryDuration:o().number,showLogo:o().bool}).isRequired,executionId:o().string.isRequired};const In=Pn})();var i=exports;for(var o in n)i[o]=n[o];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); \ No newline at end of file +(()=>{var e={6215:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.push([e.id,'.slide{--color-white: #fff;--color-grey-100: hsl(0deg 0% 95%);--color-grey-200: hsl(0deg 0% 85%);--color-grey-300: hsl(0deg 0% 80%);--color-grey-400: hsl(0deg 0% 75%);--color-grey-500: hsl(0deg 0% 70%);--color-grey-600: hsl(0deg 0% 40%);--color-grey-700: hsl(0deg 0% 30%);--color-grey-800: hsl(0deg 0% 20%);--color-grey-900: hsl(0deg 0% 10%);--color-black: #000;--color-blue: hsl(219deg 89% 57%);--color-indigo: indigo;--color-purple: purple;--color-pink: pink;--color-red: red;--color-orange: orange;--color-yellow: yellow;--color-green: green;--color-teal: teal;--color-cyan: cyan;--color-gray: var(--color-grey-500);--color-gray-dark: var(--color-grey-900);--color-primary: var(--color-blue);--color-secondary: var(--color-orange);--color-success: var(--color-green);--color-info: var(--color-teal);--color-warning: var(--color-yellow);--color-danger: var(--color-red);--color-light: var(--color-white);--color-dark: var(--color-black);--bg-light: var(--color-light);--bg-dark: var(--color-dark);--bg-primary: var(--color-primary);--bg-secondary: var(--color-secondary);--bg-transparent: transparent;--text-light: var(--color-light);--text-dark: var(--color-dark);--font-family-base: system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-bold: 700;--line-height-base: 1.5;--line-height-sm: 1.25;--line-height-lg: 2;--font-size-base: 1rem;--font-size-multiplier-050: 0.5;--font-size-multiplier-075: 0.75;--font-size-multiplier-090: 0.9;--font-size-multiplier-125: 1.25;--font-size-multiplier-150: 1.5;--font-size-multiplier-175: 1.75;--font-size-multiplier-200: 2;--font-size-multiplier-250: 2.5;--font-size-xs: calc(var(--font-size-base) * var(--font-size-multiplier-050));--font-size-sm: calc(var(--font-size-base) * var(--font-size-multiplier-075));--font-size-m: calc(var(--font-size-base) * 1);--font-size-lg: calc(var(--font-size-base) * var(--font-size-multiplier-125));--font-size-xl: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125));--h6-font-size: calc(var(--font-size-base));--spacer: 12px;--margin-size-base: calc(var(--spacer) * 3);--padding-size-base: calc(var(--spacer) * 3);--box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--border-size: 1px;--border-style: solid;--border-color: var(--color-grey-900);--border: var(--border-size) var(--border-style) var(--border-color);--background-color: var(--bg-light, hsl(0deg, 0%, 100%));--background-color-secondary: var(--color-grey-100, hsl(0deg, 0%, 95%));--text-color: var(--text-dark, hsl(0deg, 0%, 0%))}*,*::before,*::after{box-sizing:border-box}html{font-size:1.125rem;height:100%;background-color:var(--background-color);color:var(--text-color)}body{margin:0;height:100%}@keyframes h1-underline{0%{opacity:0;width:100%}40%{opacity:1;width:100%;margin-top:.938em;height:.375em}70%{opacity:1;width:100%;margin-top:.625em;height:.2em}100%{opacity:1;width:5em;margin-top:.625em}}.color-scheme-dark .slide{--background-color: var(--bg-dark, hsl(0deg, 0%, 10%));--background-color-secondary: var(--bg-dark-secondary, hsl(0deg, 0%, 20%));--text-color: var(--text-light, hsl(0deg, 0%, 100%));--border-color: var(--color-light);--color-grey-100: hsl(0deg 0% 10%);--color-grey-200: hsl(0deg 0% 15%);--color-grey-300: hsl(0deg 0% 20%);--color-grey-400: hsl(0deg 0% 25%);--color-grey-500: hsl(0deg 0% 30%);--color-grey-600: hsl(0deg 0% 45%);--color-grey-700: hsl(0deg 0% 60%);--color-grey-800: hsl(0deg 0% 75%);--color-grey-900: hsl(0deg 0% 90%)}@media screen and (min-width: 1921px)and (orientation: landscape){.slide{--font-size-base: 2rem;--spacer: 24px}}@media screen and (min-width: 1081px)and (orientation: portrait){.slide{--font-size-base: 2rem;--spacer: 24px}}.slide .font-size-xs{--font-size-base: var(--font-size-xs);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-s{--font-size-base: var(--font-size-sm);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-m{--font-size-base: var(--font-size-m);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-lg{--font-size-base: var(--font-size-lg);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide .font-size-xl{--font-size-base: var(--font-size-xl);--h1-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-250));--h2-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-200));--h3-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-175));--h4-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-150));--h5-font-size: calc(var(--font-size-base) * var(--font-size-multiplier-125))}.slide h1{font-size:var(--h1-font-size)}.slide h2{font-size:var(--h2-font-size)}.slide h3{font-size:var(--h3-font-size)}.slide h4{font-size:var(--h4-font-size)}.slide h5{font-size:var(--h5-font-size)}.slide h6{font-size:var(--h6-font-size)}',""]);const o=i},4481:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.push([e.id,'.template-poster{height:100%;display:grid;grid-template-columns:66.666% 33.334%;grid-template-rows:55% 45%;grid-template-areas:"a b" "a c";grid-gap:0;overflow-wrap:break-word;word-break:break-word;word-wrap:break-word;background-color:var(--bg-dark);font-family:var(--font-family-base);font-size:var(--font-size-base)}.template-poster.with-logo{grid-template-rows:55% 35% 10%;grid-template-areas:"a b" "a c" "a d"}.template-poster .image-area{grid-area:a;background-size:cover;background-position:center center}.template-poster .header-area{grid-area:b;display:grid;padding:5%;background-color:var(--bg-primary);color:var(--text-light)}.template-poster .header-area h1{font-size:var(--h1-font-size)}.template-poster .header-area .center{align-self:center}.template-poster .header-area .lead{font-size:var(--h4-font-size);margin-block-start:0;margin-block-end:0}.template-poster .info-area{grid-area:c;font-size:var(--font-size-lg);padding:5%;background-color:var(--bg-light);color:var(--text-dark)}.template-poster .info-area .ticket,.template-poster .info-area .date,.template-poster .info-area .time,.template-poster .info-area .place{margin-block-start:0;margin-block-end:2/2}.template-poster .info-area .moreinfo{margin-block-start:10}.template-poster .info-area .moreinfo span{font-weight:bold}.template-poster .logo-area{grid-area:d;height:100%;width:100%;background-color:var(--bg-light);display:flex;align-items:center;justify-content:flex-end}.template-poster .logo-area img{margin-right:2%;max-height:90%}@media(orientation: portrait){.template-poster{grid-template-columns:55% 45%;grid-template-rows:65% 35%;grid-template-areas:"a a" "b c" "d d"}}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@keyframes fade-out{0%{opacity:1}100%{opacity:0}}',""]);const o=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!n&&i&&(y=i),i||!n&&y},T=function(e,t){if(E(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},A=v;A.l=S,A.i=E,A.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var r=T(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return T(e){"use strict";var n=r(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var i=p(r);i&&i!==d&&e(t,i,n)}var a=u(r);h&&(a=a.concat(h(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case h:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function T(e){return S(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return T(e)||S(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===s||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=S},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},2703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(e,t)=>{"use strict";var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,h=60120,f=60115,p=60116,d=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),h=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===v||e===o||e===u||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case u:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case n:return t}}}},9864:(e,t,r)=>{"use strict";e.exports=r(9921)},6774:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";var n,i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),o=[];function a(e){for(var t=-1,r=0;r{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{default:()=>In});const e=require("react");var t=r.n(e),i=r(5697),o=r.n(i),a=r(7484),s=r.n(a),l=r(7427),c=r.n(l),u=r(6176),h=r.n(u),f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},f(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace($,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(j.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(U.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(U,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=d(d({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=d(d({},t),Y(o)))}else if(G.test(i.stem))t=d(d({},t),Y(i.stem));else{var a=V(i.stem);a&&(t=d(d({},t),a));var s=X(i.stem);s&&(t=d(d({},t),s))}}return t}var K,q={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function J(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(q[r||""]||q[n||""]||q["".concat(n,"-001")]||q["001"])[0]}var Q=new RegExp("^".concat(D.source,"*")),ee=new RegExp("".concat(D.source,"*$"));function te(e,t){return{start:e,end:t}}var re=!!String.prototype.startsWith,ne=!!String.fromCodePoint,ie=!!Object.fromEntries,oe=!!String.prototype.codePointAt,ae=!!String.prototype.trimStart,se=!!String.prototype.trimEnd,le=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ce=!0;try{ce="a"===(null===(K=ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===K?void 0:K[0])}catch(er){ce=!1}var ue,he=re?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},fe=ne?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},pe=ie?Object.fromEntries:function(e){for(var t={},r=0,n=e;r=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},me=ae?function(e){return e.trimStart()}:function(e){return e.replace(Q,"")},ge=se?function(e){return e.trimEnd()}:function(e){return e.replace(ee,"")};function ve(e,t){return new RegExp(e,t)}if(ce){var ye=ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ue=function(e,t){var r;return ye.lastIndex=t,null!==(r=ye.exec(e)[1])&&void 0!==r?r:""}}else ue=function(e,t){for(var r=[];;){var n=de(e,t);if(void 0===n||Se(n)||Te(n))break;r.push(n),t+=n>=65536?2:1}return fe.apply(void 0,r)};var be=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(v.UNMATCHED_CLOSING_TAG,te(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Ee(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:y.pound,location:te(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(n,"/>"),location:te(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:y.tag,value:n,children:o,location:te(r,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,te(a,this.clonePosition())))}return this.error(v.UNCLOSED_TAG,te(r,this.clonePosition()))}return this.error(v.INVALID_TAG,te(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=te(r,this.clonePosition());return{val:{type:y.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ee(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return fe.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),fe(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(v.EMPTY_ARGUMENT,te(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(v.MALFORMED_ARGUMENT,te(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:te(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(v.MALFORMED_ARGUMENT,te(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ue(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:te(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,te(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(p=ge(S.val)).length)return this.error(v.EXPECT_ARGUMENT_STYLE,te(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:te(c,this.clonePosition())}}if((T=this.tryParseArgumentClose(n)).err)return T;var u=te(n,this.clonePosition());if(l&&he(null==l?void 0:l.style,"::",0)){var h=me(l.style.slice(2));if("number"===a)return(S=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?S:{val:{type:y.number,value:r,location:u,style:S.val},err:null};if(0===h.length)return this.error(v.EXPECT_DATE_TIME_SKELETON,u);var f=h;this.locale&&(f=function(e,t){for(var r="",n=0;n>1),l=J(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale));var p={type:b.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?z(f):{}};return{val:{type:"date"===a?y.date:y.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,te(m,d({},m)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),E=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,te(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),g=this.parseIdentifierIfPossible(),E=S.val}var T,A=this.tryParsePluralOrSelectOptions(e,a,t,g);if(A.err)return A;if((T=this.tryParseArgumentClose(n)).err)return T;var w=te(n,this.clonePosition());return"select"===a?{val:{type:y.select,value:r,options:pe(A.val),location:w},err:null}:{val:{type:y.plural,value:r,options:pe(A.val),offset:E,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(v.INVALID_ARGUMENT_TYPE,te(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,te(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,te(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(F).filter((function(e){return e.length>0})),r=[],n=0,i=t;n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=te(n,this.clonePosition());return i?le(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=de(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(he(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Se(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Ee(e){return e>=97&&e<=122||e>=65&&e<=90}function Se(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Te(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ae(e){e.forEach((function(e){if(delete e.location,M(e)||k(e))for(var t in e.options)delete e.options[t].location,Ae(e.options[t].value);else P(e)&&L(e.style)||(I(e)||R(e))&&B(e.style)?delete e.style.location:N(e)&&Ae(e.children)}))}function we(e,t){void 0===t&&(t={}),t=d({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new be(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Ae(r.val),r.val}function _e(e,t){var r=t&&t.cache?t.cache:He,n=t&&t.serializer?t.serializer:Re;return(t&&t.strategy?t.strategy:Ie)(e,{cache:r,serializer:n})}function Ce(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function Oe(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function Pe(e,t,r,n,i){return r.bind(t,e,n,i)}function Ie(e,t){return Pe(e,this,1===e.length?Ce:Oe,t.cache.create(),t.serializer)}var Re=function(){return JSON.stringify(arguments)};function Me(){this.cache=Object.create(null)}Me.prototype.get=function(e){return this.cache[e]},Me.prototype.set=function(e,t){this.cache[e]=t};var ke,He={create:function(){return new Me}},Ne={variadic:function(e,t){return Pe(e,this,Oe,t.cache.create(),t.serializer)},monadic:function(e,t){return Pe(e,this,Ce,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ke||(ke={}));var Le,Be=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return p(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),De=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ke.INVALID_VALUE,i)||this}return p(t,e),t}(Be),xe=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ke.INVALID_VALUE,n)||this}return p(t,e),t}(Be),ze=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ke.MISSING_VALUE,r)||this}return p(t,e),t}(Be);function Fe(e){return"function"==typeof e}function Ue(e,t,r,n,i,o,a){if(1===e.length&&C(e[0]))return[{type:Le.literal,value:e[0].value}];for(var s=[],l=0,c=e;l0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=we,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}($e||($e={}));var Ye=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return p(t,e),t}(Error),Ve=function(e){function t(t,r){return e.call(this,$e.UNSUPPORTED_FORMATTER,t,r)||this}return p(t,e),t}(Ye),Xe=function(e){function t(t,r){return e.call(this,$e.INVALID_CONFIG,t,r)||this}return p(t,e),t}(Ye),Ze=function(e){function t(t,r){return e.call(this,$e.MISSING_DATA,t,r)||this}return p(t,e),t}(Ye),We=function(e){function t(t,r,n){return e.call(this,$e.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),n)||this}return p(t,e),t}(Ye),Ke=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t," \nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description," \n"),r,i)||this;return o.descriptor=n,o}return p(t,e),t}(We),qe=function(e){function t(t,r){var n=e.call(this,$e.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return n.descriptor=t,n}return p(t,e),t}(Ye);function Je(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Qe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function et(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function tt(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Ve("No ".concat(t," format named: ").concat(r)))}function rt(e){_(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var nt=d(d({},Qe),{textComponent:e.Fragment});function it(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;op)&&(z=(G=G.replace(" ",":")).length),0n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102n.charCodeAt(0)&&(n=n.trim()),n=[n],01?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var sr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&ar(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=ur&&(ur=t+1),lr.set(e,t),cr.set(t,e)},dr="style["+rr+'][data-styled-version="5.3.6"]',mr=new RegExp("^"+rr+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),gr=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(rr))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(rr,"active"),n.setAttribute("data-styled-version","5.3.6");var a=yr();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Er=function(){function e(e){var t=this.element=br(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Cr=/(a)(d)/gi,Or=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pr(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Or(t%52)+r;return(Or(t%52)+r).replace(Cr,"$1-$2")}var Ir=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Rr=function(e){return Ir(5381,e)};function Mr(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Ir(this.baseHash,r.hash),u="",h=0;h>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),Nr=/^\s*\/\/.*$/gm,Lr=[":","[",".","#"];function Br(e){var t,r,n,i,o=void 0===e?Jt:e,a=o.options,s=void 0===a?Jt:a,l=o.plugins,c=void 0===l?qt:l,u=new jt(s),h=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,l,c,u,h){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===h?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),p=function(e,n,o){return 0===n&&-1!==Lr.indexOf(o[r.length])||o.match(i)?e:"."+t};function d(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Nr,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),d.hash=c.length?c.reduce((function(e,t){return t.name||ar(15),Ir(e,t.name)}),5381).toString():"",d}var Dr=t().createContext(),xr=(Dr.Consumer,t().createContext()),zr=(xr.Consumer,new _r),Fr=Br();function Ur(){return(0,e.useContext)(Dr)||zr}function Gr(){return(0,e.useContext)(xr)||Fr}function $r(r){var n=(0,e.useState)(r.stylisPlugins),i=n[0],o=n[1],a=Ur(),s=(0,e.useMemo)((function(){var e=a;return r.sheet?e=r.sheet:r.target&&(e=e.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[r.disableCSSOMInjection,r.sheet,r.target]),l=(0,e.useMemo)((function(){return Br({options:{prefix:!r.disableVendorPrefixes},plugins:i})}),[r.disableVendorPrefixes,i]);return(0,e.useEffect)((function(){$t()(i,r.stylisPlugins)||o(r.stylisPlugins)}),[r.stylisPlugins]),t().createElement(Dr.Provider,{value:s},t().createElement(xr.Provider,{value:l},r.children))}var jr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Fr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return ar(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Fr),this.name+e.hash},e}(),Yr=/([A-Z])/,Vr=/([A-Z])/g,Xr=/^ms-/,Zr=function(e){return"-"+e.toLowerCase()};function Wr(e){return Yr.test(e)?e.replace(Vr,Zr).replace(Xr,"-ms-"):e}var Kr=function(e){return null==e||!1===e||""===e};function qr(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,rn=/(^-|-$)/g;function nn(e){return e.replace(tn,"-").replace(rn,"")}var on=function(e){return Pr(Rr(e)>>>0)};function an(e){return"string"==typeof e&&!0}var sn=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ln=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function cn(e,t,r){var n=e[r];sn(t)&&sn(n)?un(n,t):e[r]=t}function un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(i[r]=e[r]);return i}(n,["componentId"]),o=t&&t+"-"+(an(e)?e:nn(er(e)));return pn(e,Zt({},r,{attrs:d,componentId:o}),i)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?un({},r.defaultProps,e):e}}),g.toString=function(){return"."+g.styledComponentId},a&&S()(g,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var dn=function(e){return function e(t,r,n){if(void 0===n&&(n=Jt),!(0,Ut.isValidElementType)(r))return ar(1,String(r));var i=function(){return t(r,n,Qr.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,Zt({},n,{},i))},i.attrs=function(i){return e(t,r,Zt({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(pn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){dn[e]=dn(e)}));var mn,gn,vn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Mr(e),_r.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(qr(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&_r.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function yn(r){var n=r.id,i=r.css,o=void 0===i?null:i;if(!o)return t().createElement(t().Fragment,null);var a,s,l=o.replaceAll("#SLIDE_ID","#".concat(n)),c=function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o"+t+""},this.getStyleTags=function(){return e.sealed?ar(2):e._emitSheetCSS()},this.getStyleElement=function(){var r;if(e.sealed)return ar(2);var n=((r={})[rr]="",r["data-styled-version"]="5.3.6",r.dangerouslySetInnerHTML={__html:e.instance.toString()},r),i=yr();return i&&(n.nonce=i),[t().createElement("style",Zt({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new _r({isServer:!0}),this.sealed=!1}.prototype,mn.collectStyles=function(e){return this.sealed?ar(2):t().createElement($r,{sheet:this.instance},e)},mn.interleaveWithNodeStream=function(e){return ar(3)},yn.defaultProps={css:null},yn.propTypes={id:o().string.isRequired,css:o().string};var bn=r(3379),En=r.n(bn),Sn=r(6215);En()(Sn.Z,{insert:"head",singleton:!1}),Sn.Z.locals;var Tn=r(4481);function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var r,n=e[t[0]];return null!=n&&null!==(r=n.assets)&&void 0!==r&&r.uri?n.assets.uri:null!=n&&n.url?n.url:null}return null}(l.mediaData,[C]));var I,R=l.feed,M=l.feedData,k=u.entryDuration,H=1e3*(void 0===k?15:k),N=null!=b?b:{},L=N.endDate,B=N.startDate,D=N.name,x=N.image,z=N.excerpt,F=N.ticketPriceRange,U=N.url,G=N.place,$=R.configuration,j=void 0===$?{}:$,Y=j.overrideTitle,V=void 0===Y?"":Y,X=j.overrideSubTitle,Z=void 0===X?"":X,W=j.overrideTicketPrice,K=void 0===W?"":W,q=j.overrideReadMoreUrl,J=void 0===q?"":q,Q=j.hideTime,ee=void 0!==Q&&Q,te=j.readMoreText,re=void 0===te?"":te,ne=L&&new Date(L).toDateString()===new Date(B).toDateString(),ie=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},oe=function(e){return e?ie(s()(e).locale(c()).format("ll")):""},ae=function(e){return e?ie(s()(e).locale(c()).format("LT")):""};return(0,e.useEffect)((function(){b&&(w.current=setTimeout((function(){var e=(M.indexOf(b)+1)%M.length;0===e?p(l):(E(M[e]),A(!0))}),H),_.current=setTimeout((function(){A(!1)}),H-500))}),[b]),(0,e.useEffect)((function(){if(f)if(M&&null===b&&(null==M?void 0:M.length)>0){var e=Cn(M,1)[0];E(e)}else setTimeout((function(){return p(l)}),1e3);else E(null)}),[f]),(0,e.useEffect)((function(){return s().extend(h()),v(Ft),function(){null!==(null==w?void 0:w.current)&&clearInterval(w.current),null!==(null==_?void 0:_.current)&&clearInterval(_.current)}}),[]),t().createElement(t().Fragment,null,"single"===(null==R||null===(i=R.configuration)||void 0===i?void 0:i.posterType)&&!(null!=R&&null!==(o=R.configuration)&&void 0!==o&&o.singleSelectedOccurrence)&&t().createElement("div",{style:{color:"white",margin:"1em"}},"Der er ikke valgt en event eller forekomst."),null!==b&&t().createElement(Bt,{messages:g,locale:"da",defaultLocale:"da"},t().createElement("div",{className:"template-poster ".concat(O&&"with-logo")},t().createElement("div",{className:"image-area",style:wn({backgroundImage:'url("'.concat(x,'")')},T?{animation:"fade-in ".concat(500,"ms")}:{animation:"fade-out ".concat(500,"ms")})}),t().createElement("div",{className:"header-area"},t().createElement("div",{className:"center"},t().createElement("h1",null,!V&&D,V),t().createElement("p",{className:"lead"},!Z&&z,Z))),t().createElement("div",{className:"info-area"},t().createElement("div",{className:"center"},!ee&&B&&t().createElement("span",null,ne&&t().createElement("span",null,t().createElement("div",{className:"date"},oe(B)),t().createElement("div",{className:"date"},ae(B)," - ",ae(L))),!ne&&t().createElement("span",null,t().createElement("div",{className:"date"},B&&((I=B)?ie(s()(I).locale(c()).format("DD MMMM")):"")," -"," ",L&&oe(L)),t().createElement("div",{className:"date"},ae(B)," - ",ae(L)))),G&&t().createElement("p",{className:"place"},G.name),t().createElement("p",{className:"ticket"},!F&&t().createElement(zt,{id:"free",defaultMessage:"free"}),F&&t().createElement(t().Fragment,null,!K&&F,K)),t().createElement(t().Fragment,null,re&&t().createElement("p",{className:"moreinfo"},re),!J&&U&&t().createElement("span",{className:"look-like-link"},U.replace(/^[^:]*:\/\//,"").replace(/\/.*$/,"")),J&&t().createElement("span",{className:"look-like-link"},J)))),O&&t().createElement("div",{className:"logo-area"},t().createElement("img",{src:P,alt:""})))),t().createElement(yn,{id:d,css:null==l||null===(a=l.themeData)||void 0===a?void 0:a.cssStyles}))}En()(Tn.Z,{insert:"head",singleton:!1}),Tn.Z.locals,Pn.propTypes={run:o().string.isRequired,slideDone:o().func.isRequired,slide:o().shape({mediaData:o().shape({url:o().string,assets:o().shape({uri:o().string})}),themeData:o().shape({cssStyles:o().string,logo:o().arrayOf(o().string)}),feed:o().shape({configuration:o().shape({overrideTitle:o().string,overrideSubTitle:o().string,overrideTicketPrice:o().string,overrideReadMoreUrl:o().string,hideTime:o().bool,readMoreText:o().string,posterType:o().string,singleSelectedOccurrence:o().string})}),feedData:o().arrayOf(o().shape({endDate:o().string,eventStatusText:o().string,excerpt:o().string,image:o().string,name:o().string,place:o().shape({addressLocality:o().string,image:o().string,name:o().string,postalCode:o().string,streetAddress:o().string,telephone:o().string}),startDate:o().string,ticketPriceRange:o().string,ticketPurchaseUrl:o().string,url:o().string}))}).isRequired,content:o().shape({entryDuration:o().number,showLogo:o().bool}).isRequired,executionId:o().string.isRequired};const In=Pn})();var i=exports;for(var o in n)i[o]=n[o];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); \ No newline at end of file diff --git a/src/poster/poster.js b/src/poster/poster.js index 26785158..cdc130b1 100644 --- a/src/poster/poster.js +++ b/src/poster/poster.js @@ -157,86 +157,96 @@ function Poster({ slide, content, run, slideDone, executionId }) { return ( <> + {feed?.configuration?.posterType === "single" && + !feed?.configuration?.singleSelectedOccurrence && ( +
+ Der er ikke valgt en event eller forekomst. +
+ )} {/* TODO: Adjust styling to variables from Theme */} - -
-
-
-
-

- {!overrideTitle && name} - {overrideTitle} -

-

- {!overrideSubTitle && excerpt} - {overrideSubTitle} -

+ {currentEvent !== null && ( + +
+
+
+
+

+ {!overrideTitle && name} + {overrideTitle} +

+

+ {!overrideSubTitle && excerpt} + {overrideSubTitle} +

+
-
-
-
- {!hideTime && startDate && ( - - {singleDayEvent && ( - -
{formatDate(startDate)}
-
- {formatTime(startDate)} - {formatTime(endDate)} -
-
+
+
+ {!hideTime && startDate && ( + + {singleDayEvent && ( + +
{formatDate(startDate)}
+
+ {formatTime(startDate)} - {formatTime(endDate)} +
+
+ )} + {/* todo if startdate is not equal to enddate */} + {!singleDayEvent && ( + +
+ {startDate && formatDateNoYear(startDate)} -{" "} + {endDate && formatDate(endDate)} +
+
+ {formatTime(startDate)} - {formatTime(endDate)} +
+
+ )} +
+ )} + {place &&

{place.name}

} +

+ {!ticketPriceRange && ( + + )} + {ticketPriceRange && ( + <> + {!overrideTicketPrice && ticketPriceRange} + {overrideTicketPrice} + + )} +

+ <> + {readMoreText &&

{readMoreText}

} + {!overrideReadMoreUrl && url && ( + {getUrlDomain(url)} )} - {/* todo if startdate is not equal to enddate */} - {!singleDayEvent && ( - -
- {startDate && formatDateNoYear(startDate)} -{" "} - {endDate && formatDate(endDate)} -
-
- {formatTime(startDate)} - {formatTime(endDate)} -
+ {overrideReadMoreUrl && ( + + {overrideReadMoreUrl} )} -
- )} - {place &&

{place.name}

} -

- {!ticketPriceRange && ( - - )} - {ticketPriceRange && ( - <> - {!overrideTicketPrice && ticketPriceRange} - {overrideTicketPrice} - - )} -

- <> - {readMoreText &&

{readMoreText}

} - {!overrideReadMoreUrl && url && ( - {getUrlDomain(url)} - )} - {overrideReadMoreUrl && ( - {overrideReadMoreUrl} - )} - + +
+ {showLogo && ( +
+ +
+ )}
- {showLogo && ( -
- -
- )} -
- + + )} @@ -263,6 +273,8 @@ Poster.propTypes = { overrideReadMoreUrl: PropTypes.string, hideTime: PropTypes.bool, readMoreText: PropTypes.string, + posterType: PropTypes.string, + singleSelectedOccurrence: PropTypes.string }), }), feedData: PropTypes.arrayOf(