diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d13de3e..6bda63ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## Unreleased +- [#189](https://github.com/os2display/display-templates/pull/189) + - Set margin-bottom of p element of rich text in image-text. - [#188](https://github.com/os2display/display-templates/pull/188) - Fixed issues with calendar single booking layout. - Added extra description for resourceAvailableText and hasDateAndTime fields. diff --git a/build/image-text-config-develop.json b/build/image-text-config-develop.json index 894d7223..2fc43516 100644 --- a/build/image-text-config-develop.json +++ b/build/image-text-config-develop.json @@ -4,9 +4,9 @@ "id": "01FP2SNGFN0BZQH03KCBXHKYHG", "description": "Mulighed for at sætte billede og tekst, med forskellige visninger.", "resources": { - "component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text.js?ts=1744372285281", - "admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-admin.json?ts=1744372285281", - "schema": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-schema.json?ts=1744372285281", + "component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text.js?ts=1756916686916", + "admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-admin.json?ts=1756916686916", + "schema": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-schema.json?ts=1756916686916", "assets": [], "options": {}, "content": {} diff --git a/build/image-text-config-main.json b/build/image-text-config-main.json index 40c753a5..b84fc4e4 100644 --- a/build/image-text-config-main.json +++ b/build/image-text-config-main.json @@ -4,9 +4,9 @@ "id": "01FP2SNGFN0BZQH03KCBXHKYHG", "description": "Mulighed for at sætte billede og tekst, med forskellige visninger.", "resources": { - "component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text.js?ts=1744372285281", - "admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-admin.json?ts=1744372285281", - "schema": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-schema.json?ts=1744372285281", + "component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text.js?ts=1756916686916", + "admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-admin.json?ts=1756916686916", + "schema": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-schema.json?ts=1756916686916", "assets": [], "options": {}, "content": {} diff --git a/build/image-text.js b/build/image-text.js index 201c94a2..13fdfff2 100644 --- a/build/image-text.js +++ b/build/image-text.js @@ -1,2 +1,2 @@ /*! For license information please see image-text.js.LICENSE.txt */ -(()=>{var e={8070:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6314),a=n.n(r)()((function(e){return e[1]}));a.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);--color-red-oklch-ch: 0.25 29;--color-red-oklch-l: 50%;--color-red-oklch-c: 0.25;--color-red-oklch-h: 29;--color-red-50: oklch(95% calc(var(--color-red-oklch-c) - 0.20) var(--color-red-oklch-h));--color-red-100: oklch(90% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-200: oklch(85% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-300: oklch(80% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-400: oklch(70% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-500: oklch(60% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-600: oklch(var(--color-red-oklch-l) var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-700: oklch(40% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-800: oklch(30% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-900: oklch(20% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-red-950: oklch(15% var(--color-red-oklch-c) var(--color-red-oklch-h));--color-green-oklch-l: 50%;--color-green-oklch-c: 0.17;--color-green-oklch-h: 142;--color-green-50: oklch(95% calc(var(--color-green-oklch-c) - 0.15) var(--color-green-oklch-h));--color-green-100: oklch(90% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-200: oklch(85% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-300: oklch(80% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-400: oklch(70% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-500: oklch(60% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-600: oklch(var(--color-green-oklch-l) var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-700: oklch(40% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-800: oklch(30% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-900: oklch(20% var(--color-green-oklch-c) var(--color-green-oklch-h));--color-green-950: oklch(15% var(--color-green-oklch-c) var(--color-green-oklch-h));--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);--border-radius-sm: 3px;--border-radius-md: 5px;--border-radius-lg: 7px;--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=a},602:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6314),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".template-image-text{height:100%;width:100%;overflow:hidden;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-content:stretch;align-items:flex-start;font-size:var(--font-size-base)}.template-image-text .box{padding:2%;order:0;flex:1 0 auto;align-self:auto;background-color:var(--background-color);color:var(--text-color);width:40%}.template-image-text .box .text{margin-top:var(--spacer)}.template-image-text .box.full-screen{width:100%;height:100%}.template-image-text .box h1{margin-top:0}.template-image-text.box-margin .box{margin:5%}.template-image-text.flex-end .box{align-self:flex-end}.template-image-text.column{flex-direction:column}.template-image-text.half-size .box{flex:none}.template-image-text.shadow .box{box-shadow:var(--box-shadow-lg)}.template-image-text .separator{background-color:var(--color-primary)}.template-image-text.animated-header .box{box-shadow:var(--box-shadow-lg);display:flex;flex-direction:column}.template-image-text.animated-header h1{position:relative;display:inline-block;padding-bottom:2%}.template-image-text.animated-header h1 .separator{opacity:0;margin-top:5px !important;position:absolute;height:.2em;width:100%;transition:width .3s ease-out;animation:.7s normal .5s forwards 1 h1-underline ease-out}.template-image-text.reversed{display:flex}.template-image-text.reversed .text{order:1}.template-image-text.reversed .box{flex-direction:column;padding:0;height:90%;justify-content:space-between;background-color:rgba(0,0,0,0);font-size:var(--font-size-h2);display:flex}.template-image-text.reversed h1{order:2;font-size:var(--font-size-h1)}.template-image-text .background-image{z-index:-1;position:absolute;background-size:cover;background-position:center;top:0;left:0;right:0;bottom:0}.template-image-text .background-image.media-contain{background-size:contain;background-repeat:no-repeat}.template-image-text .background-image-exit{opacity:1}.template-image-text .background-image-exit-active{opacity:0;transition:opacity 1000ms linear}.template-image-text .logo{position:absolute;width:10%}.template-image-text .logo-size-s{width:5%}.template-image-text .logo-size-m{width:10%}.template-image-text .logo-size-l{width:15%}.template-image-text .logo-position-top-left{top:0;left:0}.template-image-text .logo-position-top-right{top:0;right:0}.template-image-text .logo-position-bottom-left{bottom:0;left:0}.template-image-text .logo-position-bottom-right{bottom:0;right:0}.template-image-text .logo-margin{margin:1%}@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}}",""]);const o=a},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var o=0;o{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(5413),i=n(6957);a(n(6957),t);var l=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(l," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(l," "));var r=new i.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},6957:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var h=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return a(t,e),t}(p);t.Document=h;var m=function(e){function t(t,n,r,a){void 0===r&&(r=[]),void 0===a&&(a="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var o=e.call(this,a,r)||this;return o.name=t,o.attribs=n,o}return a(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,i.isTag)(e)}function v(e){return e.type===i.ElementType.CDATA}function y(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new f(e.data);else if(g(e)){var r=t?S(e.children):[],a=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=a})),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=a}else if(v(e)){r=t?S(e.children):[];var l=new p(i.ElementType.CDATA,r);r.forEach((function(e){return e.parent=l})),n=l}else if(w(e)){r=t?S(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new d(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),a=1;a/gm),W=f(/\${[\w\W]*}/gm),q=f(/^data-[\-\w.\u00B7-\uFFFF]/),G=f(/^aria-[\-\w]+$/),Q=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=f(/^(?:\w+script|data):/i),X=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=f(/^html$/i),Z=f(/^[a-z][.\w]*(-[.\w]+)+$/i),J=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),a=function(e){return t(e)};if(a.version="2.5.6",a.removed=[],!n||!n.document||9!==n.document.nodeType)return a.isSupported=!1,a;var o=n.document,i=n.document,l=n.DocumentFragment,s=n.HTMLTemplateElement,u=n.Node,f=n.Element,d=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,z=n.trustedTypes,ee=f.prototype,te=O(ee,"cloneNode"),ne=O(ee,"nextSibling"),re=O(ee,"childNodes"),ae=O(ee,"parentNode");if("function"==typeof s){var oe=i.createElement("template");oe.content&&oe.content.ownerDocument&&(i=oe.content.ownerDocument)}var ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,a="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(a)&&(r=n.currentScript.getAttribute(a));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(z,o),le=ie?ie.createHTML(""):"",se=i,ue=se.implementation,ce=se.createNodeIterator,fe=se.createDocumentFragment,de=se.getElementsByTagName,pe=o.importNode,he={};try{he=A(i).documentMode?i.documentMode:{}}catch(e){}var me={};a.isSupported="function"==typeof ae&&ue&&void 0!==ue.createHTMLDocument&&9!==he;var ge,ve,ye=$,be=V,ke=W,we=q,xe=G,Se=Y,Ee=X,Ce=Z,Te=Q,Ne=null,ze=_({},[].concat(r(P),r(R),r(L),r(I),r(F))),_e=null,Ae=_({},[].concat(r(j),r(U),r(H),r(B))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Pe=null,Re=null,Le=!0,Me=!0,Ie=!1,De=!0,Fe=!1,je=!0,Ue=!1,He=!1,Be=!1,$e=!1,Ve=!1,We=!1,qe=!0,Ge=!1,Qe=!0,Ye=!1,Xe={},Ke=null,Ze=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,et=_({},["audio","video","img","source","image","track"]),tt=null,nt=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,lt=!1,st=null,ut=_({},[rt,at,ot],w),ct=["application/xhtml+xml","text/html"],ft=null,dt=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){ft&&ft===t||(t&&"object"===e(t)||(t={}),t=A(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?w:k,Ne="ALLOWED_TAGS"in t?_({},t.ALLOWED_TAGS,ve):ze,_e="ALLOWED_ATTR"in t?_({},t.ALLOWED_ATTR,ve):Ae,st="ALLOWED_NAMESPACES"in t?_({},t.ALLOWED_NAMESPACES,w):ut,tt="ADD_URI_SAFE_ATTR"in t?_(A(nt),t.ADD_URI_SAFE_ATTR,ve):nt,Je="ADD_DATA_URI_TAGS"in t?_(A(et),t.ADD_DATA_URI_TAGS,ve):et,Ke="FORBID_CONTENTS"in t?_({},t.FORBID_CONTENTS,ve):Ze,Pe="FORBID_TAGS"in t?_({},t.FORBID_TAGS,ve):{},Re="FORBID_ATTR"in t?_({},t.FORBID_ATTR,ve):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,je=!1!==t.SAFE_FOR_XML,Ue=t.WHOLE_DOCUMENT||!1,$e=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,We=t.RETURN_TRUSTED_TYPE||!1,Be=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,Qe=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,it=t.NAMESPACE||ot,Oe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Me=!1),Ve&&($e=!0),Xe&&(Ne=_({},r(F)),_e=[],!0===Xe.html&&(_(Ne,P),_(_e,j)),!0===Xe.svg&&(_(Ne,R),_(_e,U),_(_e,B)),!0===Xe.svgFilters&&(_(Ne,L),_(_e,U),_(_e,B)),!0===Xe.mathMl&&(_(Ne,I),_(_e,H),_(_e,B))),t.ADD_TAGS&&(Ne===ze&&(Ne=A(Ne)),_(Ne,t.ADD_TAGS,ve)),t.ADD_ATTR&&(_e===Ae&&(_e=A(_e)),_(_e,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&_(tt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ke===Ze&&(Ke=A(Ke)),_(Ke,t.FORBID_CONTENTS,ve)),Qe&&(Ne["#text"]=!0),Ue&&_(Ne,["html","head","body"]),Ne.table&&(_(Ne,["tbody"]),delete Pe.tbody),c&&c(t),ft=t)},mt=_({},["mi","mo","mn","ms","mtext"]),gt=_({},["foreignobject","annotation-xml"]),vt=_({},["title","style","font","a","script"]),yt=_({},R);_(yt,L),_(yt,M);var bt=_({},I);_(bt,D);var kt=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=le}catch(t){e.remove()}}},wt=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!_e[e])if($e||Ve)try{kt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,n;if(Be)e=""+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&it===ot&&(e=''+e+"");var a=ie?ie.createHTML(e):e;if(it===ot)try{t=(new g).parseFromString(a,ge)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=lt?le:a}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),it===ot?de.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:o},St=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null,!1)},Et=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Tt=function(e,t,n){me[e]&&v(me[e],(function(e){e.call(a,t,n,ft)}))},Nt=function(e){var t;if(Tt("beforeSanitizeElements",e,null),Et(e))return kt(e),!0;if(T(/[\u0080-\uFFFF]/,e.nodeName))return kt(e),!0;var n=ve(e.nodeName);if(Tt("uponSanitizeElement",e,{tagName:n,allowedTags:Ne}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return kt(e),!0;if("select"===n&&T(/