/*! project: dhl-digital-experience-platform v2024.4.0 | compilation hash: 41b16699519ed2cacbbe | timestamp: Wed Apr 24 2024 15:29:18 GMT+0200 (Central European Summer Time) */(()=>{var e={4548:(e,t,n)=>{!function(){"use strict";let t=20;const r=function(e){if(!(this instanceof r))throw new Error('Timer Consttuctor must be called using "new"');if(parseInt(e)!==e||e<1)throw new Error("Timer() expects a positive integer (>1)");const n={"-1":"destroyed",0:"stopped",1:"running",2:"paused",3:"completed"};let o,i,a,s,l,c,u,d,m,h,p,f,g,y;const v=function(){return h=new Date-p,p=new Date,d+=h,g++,f?(clearTimeout(i),clearInterval(i),i=setInterval(v,a),f=!1,s=!0):s=!(h>a+t),c&&!c(w)||l(w),g>=y&&b(),!0},b=function(){clearTimeout(i),clearInterval(i),o=r.Status.COMPLETED,u&&u(w)};s=!0,a=e,g=0,y=1/0,o=r.Status.STOPPED,h=0,d=0;const w={get statusCode(){return o},get status(){return n[o]},get inSync(){return s},get timerDelay(){return a},get timestamp(){let e;return o===r.Status.DESTROYED||o===r.Status.STOPPED?e=0:o===r.Status.RUNNING?e=d+(new Date-p):o===r.Status.PAUSED?e=d+(m-p):o===r.Status.COMPLETED&&(e=d),e||0},get currentCycle(){return g},get cycleLimit(){return y},get cycleTimestamp(){return d||0},get cycleDeltatime(){return h||0},get syncThreshold(){return t},action:function(e){if("function"!=typeof e)throw new Error("Timer.action() expects a function");return l=e.bind(w),this},start:function(e=!0){if(!l)throw new Error("Timer.start() Action must be set");if(!a)throw new Error("Timer.start() Delay must be set");return o===r.Status.RUNNING?this:o===r.Status.PAUSED?this.resume():(o!==r.Status.STOPPED||(e&&this.reset(),p=new Date,o=r.Status.RUNNING,i=setInterval(v,a)),this)},pause:function(){return o===r.Status.PAUSED||o===r.Status.STOPPED||1!==o||(clearTimeout(i),clearInterval(i),o=r.Status.PAUSED,m=new Date),this},stop:function(){return o===r.Status.RUNNING&&this.pause(),this.reset(),this},resume:function(){if(o!==r.Status.PAUSED)return this;o=r.Status.RUNNING,f=!0;const e=m-p;return p=new Date(new Date-(m-p)),i=setTimeout(v,a-e-2),this},repeat:function(e=!0){if((parseInt(e)!==e||e<1)&&!0!==e&&!1!==e)throw new Error("Timer.repeat() expects an integer (>=1) or a boolean");return y=!0===e?1/0:!1===e?1:e,o!==r.Status.RUNNING&&o!==r.Status.PAUSED||g>=y&&b(),this},if:function(e){if(e){if("function"!=typeof e)throw new Error("Timer.if() expects a function or false");c=e.bind(w)}else c=void 0;return this},done:function(e){if(e){if("function"!=typeof e)throw new Error("Timer.done() expects a function or false");u=e.bind(w)}else u=void 0;return this},delay:function(e){if(parseInt(e)!==e||e<1)throw new Error("Timer.delay() expects an integer (>1)");if(a=e,o===r.Status.RUNNING){clearTimeout(i),clearInterval(i),f=!0;let e=new Date-p;i=edelete w[e])),w.statusCode=r.Status.DESTROYED,w.status=n[r.Status.DESTROYED],this},reset:function(){if(o===r.Status.DESTROYED)throw new Error("Destroyed Timers cannot be reset");clearTimeout(i),clearInterval(i);let e=o;return o=r.Status.STOPPED,h=0,g=0,d=0,p=void 0,m=void 0,f=!1,s=!0,e===r.Status.RUNNING?this.start(!1):this},setSyncThreshold:function(e){if(parseInt(e)!==e||e<0)throw new Error("Timer.setSyncThreshold() expects a positive integer");return t=e,!0}};return w};if(r.Status={DESTROYED:-1,STOPPED:0,RUNNING:1,PAUSED:2,COMPLETED:3},e.exports)e.exports=r;else{("object"==typeof window&&window.self===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g).Timer=r}}()},8516:(e,t,n)=>{"use strict";n.d(t,{t8:()=>u,Fs:()=>d,lW:()=>m});n(560);var r=n(3295),o=n(8721);let i;const a=function(){let e;return e=(0,o.Z)(),window.dataLayer||(window.dataLayer={UUID:e}),window.dataLayer.UUID||(window.dataLayer.UUID=e),window.dataLayer},s=function(){return a(),i=(0,r.k)(window.dataLayer),i},l=function(e,t){let n,r;return e&&"string"==typeof e&&e.indexOf(".")?(r=e.split("."),n=r.shift()):n=e,t[n]||0===r.length||(t[n]={}),t[n]||0!==r.length||(t[n]=void 0),!t[n]||t[n].constructor!==Object||0===r.length||l(r.join("."),t[n])},c=function(e,t,n){const r=t.split("."),o=r.shift();return 0!==r.length?c(e[o],r.join("."),n):0===r.length&&(e[o]=n,e[o])};a();const u=function(e,t,n){return e&&t&&function(e,t){l(e,i),c(i,e,t)}(e,t),n?Promise.resolve(n):Promise.resolve(i)},d=s,m=function(){return new Promise((()=>(window.dataLayer=(0,r.k)(i),s(),!0)))}},5893:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=333},5845:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p,k:()=>u});var r=n(9555);let o=!1,i=!1,a=!1,s=0,l=0;const c=function(e){const t=window.scrollY||document.documentElement._scrollTop||window.pageYOffset;return e.getBoundingClientRect().top+t},u=e=>{const t=window.scrollY||document.documentElement._scrollTop||window.pageYOffset,n=e.hasAttribute("href")&&e.getAttribute("href").includes("#")?document.getElementById(e.getAttribute("href").slice(e.getAttribute("href").indexOf("#")+1,e.getAttribute("href").length)):e;s=c(n),window.scrollTo({left:0,top:i?t+l:s,behavior:(0,r.TZ)()?"auto":"smooth"})},d=function(){const e=window.scrollY||document.documentElement._scrollTop||window.pageYOffset;l=Math.round(e-s),a&&window.requestAnimationFrame(d)},m=function(){i=!0,a=!0,h(),window.requestAnimationFrame(d),setTimeout((()=>{a=!1}),2e4)},h=function(){window.removeEventListener("DOMMouseScroll",m,!1),window.removeEventListener("mousewheel",m,!1),window.removeEventListener("touchmove",m,!1)},p=function(){if(!0!==o&&window.location.hash){const e=window.location.hash,t=window.location.hash.substring(1),n=document.getElementById(t);n&&(window.location.hash="",setTimeout((()=>{s=c(n),window.addEventListener("DOMMouseScroll",m,!1),window.addEventListener("mousewheel",m,!1),window.addEventListener("touchmove",m,!1),window.location.hash=e}),1e3))}o=!0}},2723:(e,t,n)=>{"use strict";n.d(t,{j:()=>u,G:()=>c});var r={};n.r(r),n.d(r,{easeInOutSin:()=>a,easeInSin:()=>o,easeOutSin:()=>i,linear:()=>s});const o=e=>1+Math.sin(Math.PI/2*e-Math.PI/2),i=e=>Math.sin(Math.PI/2*e),a=e=>(1+Math.sin(Math.PI*e-Math.PI/2))/2,s=e=>e,l=function(e){return new Promise(((t,n)=>{const o=e.duration,i=e.easing,a=Date.now()+Number(o);let s,l;const c=function(){const u=Date.now(),d=a-u;if(!r[i])return n(e);if(d<16){try{e.progress=1,e.step(e)}catch(e){return n(e)}return m=s,window.cancelAnimationFrame(m),t(e)}var m;return l=1-d/o,e.progress=r[i](l),e.step(e),s=window.requestAnimationFrame(c),s};c()}))},c=function(e){return!!e.node},u=function(e){return function(e){return new Promise(((t,n)=>{const r=function(e){return!!e&&!!e.node&&!!e.values&&!!e.values&&!!e.step&&!!e.after&&!!e._options&&{step:e.step||(()=>{}),after:e.after||(()=>{}),duration:e.duration||500,easing:e.easing||"linear",DOM:{node:e.node,values:e.values},_options:e._options}}(e);r||n(r),t(r)})).then((e=>("function"==typeof e.before&&e.before(e),e))).then((e=>l(e))).then((e=>("function"==typeof e.after&&e.after.length>0&&e.after(e),e)))}(e)}},2473:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(2723);const o=function(){return!0},i=function(){return!0},a=function(e){return e.DOM.node.style.opacity=function(e){return e.DOM.values.start-(e.DOM.values.start-e.DOM.values.end)*e.progress}(e),!0},s=function(e){return function(e){return!!(0,r.G)(e)&&(0,r.j)({node:e.node,values:(t=e.node,n=e.mode,{end:"fadein"===n?1:0,start:parseInt(t.style.opacity,10)}),before:i,step:a,after:o,duration:e.duration||300,easing:e.easing||"linear",_options:e});var t,n}(e||{})}},6640:(e,t,n)=>{"use strict";n.d(t,{j:()=>l});var r=n(2723);const o=function(e,t){const n=t||[],r=n[0]||0,o=` display: ${window.getComputedStyle(e).display}; `,i=e.style.cssText;e.style.cssText="display: block";const a=n[1]||e.offsetHeight;return e.style.cssText=i,{end:a,start:r,cssSnippet:o+i}},i=function(e){return e.DOM.node.style.overflowY="auto",!0},a=function(e){return e.DOM.node.setAttribute("style",`${e.DOM.values.cssSnippet} height: ${e.DOM.values.start}px; overflow: hidden; `),!0},s=function(e){return e.DOM.node.setAttribute("style",`${e.DOM.values.cssSnippet} height: ${function(e){const t=e.DOM.values.end*e.progress;return t<=e.DOM.values.end?t:e.DOM.values.end}(e)}px; overflow: hidden; `),!0},l=function(e){return function(e){return!!(0,r.G)(e)&&(0,r.j)({node:e.node,values:o(e.node,e.values),before:a,step:s,after:i,duration:e.duration||500,easing:e.easing||"easeInSin",_options:e})}(e||{})}},2574:(e,t,n)=>{"use strict";n.d(t,{j:()=>l});var r=n(2723);const o=function(e,t){const n=t||[],r=n[1]||0,o=` display: ${window.getComputedStyle(e).display}; `,i=e.style.cssText;e.style.cssText="display: block";const a=n[0]||e.offsetHeight;return e.style.cssText=i,{end:r,start:a,cssSnippet:o+i}},i=function(){return!0},a=function(e){return e.DOM.node.setAttribute("style",`${e.DOM.values.cssSnippet} height: ${e.DOM.values.start}px; overflow: hidden; `),!0},s=function(e){return e.DOM.node.setAttribute("style",`${e.DOM.values.cssSnippet} block; height: ${function(e){const t=(e.DOM.values.start-e.DOM.values.end)*(1-e.progress);return t>=e.DOM.values.end?t:e.DOM.values.end}(e)}px; overflow: hidden; `),!0},l=function(e){return function(e){return!!(0,r.G)(e)&&(0,r.j)({node:e.node,values:o(e.node,e.values),before:a,step:s,after:i,duration:e.duration||500,easing:e.easing||"easeInSin",_options:e})}(e||{})}},5256:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});let r=!1;!function(){if("complete"===document.readyState)r=!0;else{const e=function(){r=!0,window.removeEventListener("load",e)};window.addEventListener("load",e)}}();const o=function(){return r}},9257:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(1051);const o="flipped";let i,a;const s=(e,t={})=>{i=t,a=e,e.addEventListener("click",l)},l=e=>{const t=(0,r.o)(e.target,i.SELECTOR_CARD);e.target===a&&e.preventDefault(),(0,r.o)(e.target,i.SELECTOR_TO_BACK)&&t?(e.preventDefault(),t.classList.add(o)):(0,r.o)(e.target,i.SELECTOR_TO_FRONT)&&t&&t.classList.remove(o)}},308:(e,t,n)=>{"use strict";n.d(t,{pY:()=>a,j:()=>d});n(691),n(7602),n(5),n(560),n(928),n(1792),n(3476),n(1107);const r={response:{Search:{instanceId:"",Query:"",Querystring:"",Results:{Start:"",Total:"517",IsExact:"",Result:[{Index:"1",URL:"https://www.logistics.dhl/us-en/home/about-us/partnerships.html",Title:"Partnerships | DHL | United States of America",DocumentDate:{NAME:"date",VALUE:"2017-11-22"},Snippet:"... Find out more about Fashion; Find out more about DHL Exported. DHL is the
specialist for delivering global events around the world. ... DHL InMotion. ... ",Language:"en",MetaTags:{description:"As Official Logistics Partner, we are dedicated to offering innovative solutions for complex logistics tasks in sport, arts and culture arenas.",language:"en-US",section:"dhl:section/core"}}]},Facets:{}},smartGridResponse:{Search:{instanceId:"search_58bc1258-374b-4e84-91a2-16b960f60edd",Querystring:"",Query:"",Results:{Start:"",End:"",Total:"",Result:[{Index:"1",TitleUrl:"",Title:"",TitleUrlTitle:"",PageOwner:"",RedirectPage:!0,Badge:"",BadgeUrl:"",BadgeLinkTitle:"",Date:"",Body:"",Images:{},ImagesAlt:""}]}}}}},o=["320px","480px","666px","768px","1024px","default"],i=(e,t)=>{const n=t.geti18nMappingValue(`dhl-month-${e.toLowerCase()}`);return""!==n?n:e},a=(e,t)=>{const n=JSON.parse(JSON.stringify(r.response.smartGridResponse)),o=e.fromServer.resultCountExact||e.fromServer.resultCountEstimate;return n.Search.Query=e.fromRequest.Query,n.Search.Querystring=e.fromRequest.Querystring,n.Search.instanceId=e.fromRequest.instanceId,o>0?(n.Search.Results.Start=Number(e.fromRequest.Start)+1,n.Search.Results.Total=o,n.Search.Results.Result=l(e.fromServer.results,"smart-grid",t),n.Search.Results.TranslatedMonthNamesMapping=(e=>({1:i("January",e),2:i("February",e),3:i("March",e),4:i("April",e),5:i("May",e),6:i("June",e),7:i("July",e),8:i("August",e),9:i("September",e),10:i("October",e),11:i("November",e),12:i("December",e)}))(t),e.fromServer.facetResults&&e.fromServer.facetResults.length>0&&(n.Search.Facets=s(e.fromServer.facetResults[0]))):(delete n.Search.Results,delete n.Search.Facets),JSON.stringify(n)},s=e=>{const t={},n=/^(dhl|deutschepostdhl|dcihub):/iu;return e.buckets.forEach((e=>{null!==e.value.stringValue.match(n)&&(t[e.value.stringValue]=e.count||"")})),t},l=(e,t,n)=>{const r=[],o=["eventstartyear","eventtype","sgeventindustrysectorns","sgeventtopicsns"];if(e.length>0)if("smart-grid"===t)e.forEach(((e,t)=>{const i={};o.forEach(((t,n)=>{i[t]=u(e.metadata.fields,t,n)})),r.push({Index:(t+1).toString(),TitleUrl:u(e.metadata.fields,"displayurl",t),Title:u(e.metadata.fields,"tileheader",t),TitleUrlTitle:u(e.metadata.fields,"externallinktitle"),PageOwner:u(e.metadata.fields,"pageownerns",t),RedirectPage:u(e.metadata.fields,"redirectpage"),TileUrl:u(e.metadata.fields,"tileurl"),Badge:u(e.metadata.fields,"tilebadge",t),videoVal:u(e.metadata.fields,"sgtypesns",t),isFlippable:""!==u(e.metadata.fields,"flippablecontent",t),FlippableCopy:u(e.metadata.fields,"flippablecontent",t),FlippableCTA:u(e.metadata.fields,"flippablecta",t)?JSON.parse(u(e.metadata.fields,"flippablecta",t)):u(e.metadata.fields,"flippablecta",t),isVideo:"dhl:smart-grid/types/video"===u(e.metadata.fields,"sgtypesns",t),EventType:n?.geti18nMappingValue(u(e.metadata.fields,"eventtype",t),["inperson"]),isOnlineEvent:""!==u(e.metadata.fields,"eventtype",t)&&u(e.metadata.fields,"eventtype",t).indexOf("online")>=0,isInPersonEvent:""!==u(e.metadata.fields,"eventtype",t)&&u(e.metadata.fields,"eventtype",t).indexOf("inperson")>=0,EventStatusDisplay:n?.geti18nMappingValue(u(e.metadata.fields,"eventstatus",t)),EventStatus:u(e.metadata.fields,"eventstatus",t),EventStartDate:u(e.metadata.fields,"eventstartdatelocalized",t),EventEndDate:u(e.metadata.fields,"eventenddatelocalized",t),EventStartDateNotLocalized:u(e.metadata.fields,"eventstartdate",t),EventEndDateNotLocalized:u(e.metadata.fields,"eventenddate",t),EventTag:n?.geti18nMappingValue(u(e.metadata.fields,"sgeventindustrysectorns",t)),EventLocation:n?.geti18nMappingValue(u(e.metadata.fields,"sglocationns",t)),EventYear:u(e.metadata.fields,"eventstartyear",t),BadgeUrl:u(e.metadata.fields,"tilebadgeurl",t)||u(e.metadata.fields,"tileurl",t),BadgeLinkTitle:u(e.metadata.fields,"tilebadgelinktitle",t),Date:u(e.metadata.fields,"tiledate",t),Sort:u(e.metadata.fields,"sortdate",t),SortDateNotLocalized:u(e.metadata.fields,"datesort",t),Language:u(e.metadata.fields,"lang",t),DateTimeZone:u(e.metadata.fields,"tiledatetimezone"),Body:u(e.metadata.fields,"tilecopy",t),Filters:i,Images:u(e.metadata.fields,"tileimage",t),ImagesAlt:u(e.metadata.fields,"tileimagealtattribute",t),ImagesSquare:u(e.metadata.fields,"tilesquareimage",t),ImagesSquareAlt:u(e.metadata.fields,"tilesquareimagealtattribute",t),MIMEType:e.metadata.mimeType,MI24VideoDownloadUrl:u(e.metadata.fields,"mivideodownloadurl")||null,MI24VideoId:u(e.metadata.fields,"mivideoid"),Size:u(e.metadata.fields,"filesize"),PreviewImage:u(e.metadata.fields,"previewimage")})}));else e.forEach(((e,t)=>{r.push({Index:(t+1).toString(),URL:u(e.metadata.fields,"displayurl",t),Title:e.title||"",DocumentDate:{NAME:"date",VALUE:e.metadata.updateTime},Snippet:e.snippet.snippet||"",MatchRanges:e.snippet.matchRanges||[],Language:u(e.metadata.fields,"lang",t)||["en"],MetaTags:c(e.metadata.fields),DataAnalytics:u(e.metadata.fields,"analyticsdata",t).replace(/\\/gu,"")})}));return r},c=e=>{const t={};return e.forEach((e=>{e.textValues&&e.textValues.values&&(t[e.name]=e.textValues.values)})),t},u=(e,t,n)=>{let r="";return Array.isArray(e)&&e.forEach((e=>{if(e&&e.name&&e.name===t)if(e.textValues)r=e.textValues&&e.textValues.values?e.textValues.values[0]:"";else if(e.booleanValue)r=e.booleanValue;else if(e.dateValues){const t=e.dateValues.values[0].day,n=e.dateValues.values[0].month,o=e.dateValues.values[0].year;r=`${t}/${n}/${o}`}})),r},d=e=>{const t=t=>e.fields.find((e=>e.name===t))?.textValues?.values[0]||"",n=t("tileimagealtattribute"),r=JSON.parse(t("tileimage").trim().replace(/\\/gu,"")),i=Object.entries(r).filter((e=>-1!==o.indexOf(e[0])&&-1===e[1].indexOf("null"))).map((e=>({minWidth:e[0],srcSet:e[1]})));return i.length>0?{alt:n,align:r.align,variations:i.reduce(((e,t)=>({...e,[t.minWidth]:t.srcSet})),{})}:null}},2819:(e,t,n)=>{"use strict";n.d(t,{f:()=>s,j:()=>l});let r=window._satellite,o=0;const i=function(...e){const t=[].slice.call(e[1]),n=e[0];if(!r)return!1;try{r[n].apply(null,t)}catch(e){}return!0},a=function(){return r=window._satellite,!(o>=40)&&(r||(o++,setTimeout(a,250)),!0)};a();const s=function(...e){i("setVar",e)},l=function(...e){i("track",e)}},9454:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});n(7602),n(8244),n(5),n(691),n(1979);const r=function(e,t,n,r){return function(e,t,n,r){return new Promise(((o,i)=>{const a=new XMLHttpRequest;let s=e+(t?`?${t}`:"");s=s.replace(/&q=(.*?)&/u,((...e)=>`&q=${function(e,t){let n=e;return(void 0||[{regex:/&/gu,value:"%26"},{regex:/#/gu,value:"%23"}]).forEach((e=>{n=n.replace(e.regex,e.value)})),n}(e[1])}&`)),a.open("GET",s),n&&Array.isArray(n.headers)&&n.headers.forEach((e=>{a.setRequestHeader(e.key,e.value)})),a.onload=function(){const e=this.response;let t;return this.status>=200&&this.status<400?o(e):(t=r?Error(this.status):400===this.status&&-1!==e.indexOf("code")||404===this.status&&-1!==e.indexOf("status")?JSON.parse(e):428===this.status?{status:`${this.status}`}:Error("400"),i(t))},a.onerror=function(e){return i(Error("500"))},a.send()}))}(e,t,n,r)}},1979:(e,t,n)=>{"use strict";n.d(t,{Qc:()=>s,LZ:()=>l});n(7602),n(5),n(560);let r={};const o=function(e){let t=e;try{t=decodeURIComponent(e)}catch(e){}return t},i=function(e,t){let n;const r={};return n=e,n&&"-1"!==n.indexOf("=")?(0===n.indexOf("?")&&(n=n.substr(1)),n.split("&").forEach((e=>{const n=e.split("=");n[1]&&(r[n[0]]?("string"==typeof r[n[0]]&&(r[n[0]]=[r[n[0]]]),r[n[0]].push(t&&-1===n[1].indexOf("%")?o(n[1]):n[1])):r[n[0]]=t&&-1===n[1].indexOf("%")?o(n[1]):n[1])})),r):r},a=function(){return r=i(window.location.search&&0===window.location.search.indexOf("?")?window.location.search.substr(1):window.location.search),r};a();const s=function(e){return i(e,!0)},l=function(e){return r[e]}},9102:(e,t,n)=>{"use strict";n.d(t,{uz:()=>o,v_:()=>i});n(691),n(7602),n(5);const r=function(e,t,n,r=null){return new Promise(((o,i)=>{const a=new XMLHttpRequest,s=e;a.open("POST",s),((e,t)=>{t&&e.setRequestHeader("Content-type",t)})(a,r),((e,t)=>{if(t)for(const n of t)e.setRequestHeader(n.name,n.value)})(a,n),a.onload=function(){const e=this.response;return this.status>=200&&this.status<400?(this.response,o(e)):i(Error("400"))},a.onerror=function(e){return i(Error("500"))},a.send(t)}))},o=function(e,t,n){return r(e,t,n,"application/json")},i=function(e,t,n){return r(e,t,n,null)}},5270:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(7602),n(5),n(691),n(3476),n(560),n(1792);var r=n(3295),o=n(1426);class i{constructor(e){this.store={};const t=e.getAttribute("id"),n=e.querySelector("form");this.store[t]={},this.store[t].form=n,this.store[t].uri=n.getAttribute("action"),n.querySelectorAll("input").forEach((e=>{this.store[t][e.getAttribute("data-id")]=e}))}handler(e,t,n,i){switch(!t||this.store[t],e){case"save":return this.store[t][n]=(0,r.k)(i),i;case"load":return(0,r.k)(this.store[t][n]);case"set":document.getElementById(t).querySelector(`[data-id=${n}]`).value=i;break;case"getAllSelects":return this.store[t].form.querySelectorAll("select");case"getForm":return this.store[t].form;case"setValue":this.store[t][n]=i;break;case"getValue":return this.store[t][n];case"get":return document.getElementById(t).querySelector(`[data-id=${n}]`)?.value;case"attr":return this.store[t].form.getAttribute(n)||null;case"state":return(0,o.q)(document.getElementById(t).querySelector("form"));case"state-initial":return this.store[t].form.getAttribute("data-initial-state");case"state-reset":return this.store[t].form.getAttribute("data-reset-state");case"form-action":return this.store[t].uri}return!0}saveJSON(e,t){return this.handler("save",e,"json",t)}loadJSON(e){return new Promise(((t,n)=>{const r=this.handler("load",e,"json");r?t(r):n({})}))}set(e,t,n){return this.handler("set",e,t,n)}addNum(e,t,n){return this.handler("add",e,t,n)}get(e,t){return this.handler("get",e,t)}getValue(e,t){return this.handler("getValue",e,t)}setValue(e,t,n){return this.handler("setValue",e,t,n)}getAllSelects(e){return this.handler("getAllSelects",e)}getForm(e){return this.handler("getForm",e)}attr(e,t){return this.handler("attr",e,t)}stateInitial(e){return this.handler("state-initial",e)}stateReset(e){return this.handler("state-reset",e)}state(e){return this.handler("state",e)}remote(e){return this.handler("form-action",e)}}var a=n(9205),s=n(7856),l=n(2473);class c{constructor(){this.savedDOM={}}static clearFilters(e){if(e.dom.filters?.selector){const t=document.querySelector(e.dom.filters.selector);t&&(t.innerHTML="")}return e}static clearPagination(e){if(e.dom.pagination?.selector){const t=document.querySelector(e.dom.pagination.selector);t&&t.parentNode.removeChild(t)}return e}static clearResults(e){if(e.dom.results?.selector){const t=document.querySelector(e.dom.results.selector);t&&(t.innerHTML="")}return e}static appendResults(e){const t=s.sanitize(e.dom.results?.html,{ADD_TAGS:["picture"],ADD_ATTR:["srcset","target"]}),n=Array.from((new DOMParser).parseFromString(t,"text/html").body.childNodes);return n.forEach((e=>{e.style.opacity=0})),n.forEach((t=>{document.querySelector(e.dom.results?.selector)?.appendChild(t),(0,l.j)({node:t,mode:"fadein"})})),e}static appendPagination(e){if(e.dom.pagination?.html){const t=(new DOMParser).parseFromString(s.sanitize(e.dom.pagination.html),"text/html").body.firstChild;document.querySelector(e.dom.results?.selector)?.appendChild(t)}return e}static appendFilters(e){if(e.dom.filters?.selector){const t=document.querySelector(e.dom.filters.selector);t&&(t.outerHTML=s.sanitize(e.dom.filters.html))}return e}static appendTotal(e){if(e.json.Results&&e.json.Results.Total&&0!==e.json.Results.Total?document.querySelector(e.smartgrid?.selector)?.classList.remove("no-results"):document.querySelector(e.smartgrid?.selector)?.classList.add("no-results"),e.dom.total?.selector){const t=document.querySelector(e.dom.total.selector);t&&(t.innerHTML=s.sanitize(e.dom.total.html))}return e}static appendSelectedFilters(e){const t=document.querySelector(e.smartgrid?.selector),n=t?.querySelector(".js--smartgrid-filter")?.getAttribute("data-smartgrid-remove-filter-key"),r=[];if(t&&null!==t.querySelector(".js--smartgrid-filter---list-item:checked")&&t.querySelectorAll(".js--smartgrid-filter---list-item:checked").forEach((e=>{const t=e.closest("li");t.querySelector("label").setAttribute("aria-selected","true");const n=t.cloneNode(!0);n.removeChild(n.querySelector("input")),n.querySelector("label").classList.add("is-active"),n.querySelector("label").classList.add("has-icon"),n.querySelector("label").setAttribute("tabindex","0"),n.querySelector("label").removeAttribute("aria-selected"),n.querySelector("label").removeAttribute("role"),r.push(n.querySelector("label"))})),t){const e=t.querySelector(".js-smartgrid-filter-selected");t.querySelectorAll(".js-smartgrid-filter-selected >:not(.js--smartgrid-filter--keep)").forEach((e=>{e.parentNode.removeChild(e)})),r.forEach((t=>{e&&(n&&t.setAttribute("aria-label",`${n}${t.innerText}`),e.appendChild(t))})),e&&(r.length>0?e.classList.remove("hidden"):e.classList.add("hidden"))}return e}static isFine(e){return Boolean(e.querySelectorAll("form.js--smartgrid-filter").length)}saveState(e){return this.savedDOM[e]={selector:document.getElementById(e),dom:document.getElementById(e).cloneNode(!0)},e}restoreState(e){return this.savedDOM[e].selector.outerHTML=this.savedDOM[e].dom.outerHTML,e}}var u=n(2048),d=n(1051),m=n(1879);const h=(e,{smartContainerID:t,render:n})=>{const r=e.target,o=r.parentNode;r.classList.contains("js-smartgrid-filter--dropdown")&&e.preventDefault(),null!==o.firstElementChild.getAttribute("disabled")||r.classList.contains("js--smartgrid-filter--list-item")||r.classList.contains("js--smartgrid-filter---list-item")||"LI"===r.tagName&&o.classList.contains("l-grid")||r.classList.contains("l-grid")&&o.classList.contains("js--smartgrid-filter--category")||n.setFilterStatus?.(o,t)};var p=n(308),f=n(1979),g=n(9102);const y=[];class v{constructor(e){this.config=e,this.smartContainerElement=this.config.smartContainerElement,this.smartContainerID=this.config.smartContainerID,this.world=new c,this.waiting=new u.Z,this.firstState="",this.facetResults=[],this.addEvents(),this.transformator=new a.Z(this.smartContainerElement),setTimeout((()=>{var e,t;if(e=this.smartContainerID,t=this.config.render,(0,m.on)("click",`#${e}`,{smartContainerID:e,render:t},h),this.model=new i(this.smartContainerElement),window.isAuthor)return!1;const n=this.smartContainerElement.querySelectorAll("form.js--smartgrid-filter");for(let e=0;e{const t=e.split("=");n[t[0]]?n[t[0]]=`${n[t[0]]},${decodeURIComponent(t[1]||"")}`:n[t[0]]=decodeURIComponent(t[1]||"")})),JSON.parse(JSON.stringify(n))}changeFilterStateForQuery(e,t){const n=e?e.target:null;if(null===n)return;const r=(0,d.o)(n,"form").getAttribute("data-initial-state"),o=`&${n.getAttribute("name")}=${n.value}`;n.classList.contains("js--smartgrid--select")?this.changeSelectFilterStateForQuery(r,t):n.checked?(0,d.o)(n,"form").setAttribute("data-initial-state",r+o):(0,d.o)(n,"form").setAttribute("data-initial-state",r.replace(o,""))}changeSelectFilterStateForQuery(e,t){let n=e,r=e.slice(0).split("&");this.model.getAllSelects(t).forEach((e=>{const t=e.selectedOptions[0];if(t){const n=t.getAttribute("name");r=r.filter((e=>-1===e.indexOf(n))),r.push(`${n}=${e.value}`)}})),n=r.join("&"),this.model.getForm(t).setAttribute("data-initial-state",n)}getQuery(e){const t=this.model.get(e,"timeframe"),n=(new Date).toISOString().split("T")[0];switch(t){case"upcoming":return`eventstartdateafter:${n}`;case"past":return`eventstartdatebefore:${n}`;case"ongoing":return`eventstartdateafter:${n} OR eventenddateafter:${n}`;case"past-smart-content":return`datesortbefore:${n}`;default:return this.model.get(e,"q")||"*"}}hideSmartEventList(e){const t=`#${this.model.get(e,"instanceId")}`,n=(0,d.o)(document.querySelector(t),".c-smartevent-background-wrapper");n&&(n.style.display="none")}mockContract(e,t){let n,r=this.model.get(t,"sortOrder");const o=this.model.get(t,"timeframe"),i=["ASCENDING","DESCENDING"];r&&i.includes(r.toUpperCase())||(r=!o||"upcoming"!==o&&"ongoing"!==o?i[1]:i[0]);const a=this.config.sortDate||this.model.get(t,"sortDate")||"datesort";if("request"===e)n={requestOptions:{searchApplicationId:""},sortOptions:{operatorName:a,sortOrder:r},facetOptions:[],dataSourceRestrictions:[{source:{name:""},filterOptions:[]}],query:"",pageSize:9};else n=void 0;return n}addEvents(){(0,m.on)("click",`#${this.smartContainerID} .js--smartgrid-filter-close`,{},(e=>{e.preventDefault()})),(0,m.on)("change",`#${this.smartContainerID} [type=checkbox].js--smartgrid--new-query`,{action:"new-query"},((e,t)=>{this.preventCheckboxSelection(e),this.onEvent(e,t)})),(0,m.on)("change",`#${this.smartContainerID} select.js--smartgrid--new-query`,{action:"new-query"},((e,t)=>{this.preventCheckboxSelection(e),this.onEvent(e,t)})),(0,m.on)("click",`#${this.smartContainerID} .js--smartgrid-search-item`,{action:"new-query"},this.onEvent.bind(this)),(0,m.on)("click",`#${this.smartContainerID} .js--smartgrid-type-list`,{action:"type-list"},this.onEvent.bind(this)),(0,m.on)("click",`#${this.smartContainerID} .js--smartgrid-type-grid`,{action:"type-grid"},this.onEvent.bind(this)),(0,m.on)("click",`#${this.smartContainerID} .js--smartgrid-type-reset`,{action:"initial-query"},this.onEvent.bind(this)),(0,m.on)("click",`#${this.smartContainerID} .js--smartgrid--loadmore--item`,{action:"load-more"},this.onEvent.bind(this)),(0,m.on)("submit",`#${this.smartContainerID} form.js--smartgrid-filter`,{action:"new-query"},((e,t)=>{this.smartContainerElement.querySelector("button[type=submit]")?.setAttribute("disabled","disabled"),e.preventDefault(),this.onEvent(e,t)}))}preventCheckboxSelection(e,t){this.config.render.greyOutCheckboxes(e,t,this.smartContainerID)}setErrorMessage(){setTimeout((()=>{const e=this.smartContainerElement.querySelector(".js--smartgrid-filter"),t=this.smartContainerElement.querySelector(".js--smartgrid--results"),n=this.smartContainerElement.matches(".c-smartgrid--square-images")?this.smartContainerElement:null;if(n){const r=n.querySelector(".c-smartgrid--square-images--error");if(r){const t=r.querySelector(".c-smartgrid--square-images--error-headline"),n=r.querySelector(".c-smartgrid--square-images--error-message"),o=r.querySelector(".c-smartgrid--square-images--error-image");t&&(t.innerHTML=e.dataset.smartgridNoresultsHeadline||""),n&&(n.innerHTML=e.dataset.smartgridErrorSearchUnavailable||""),o&&(o.src=e.dataset.smartgridErrorImage||""),r.style.display="block"}else{const n=document.createElement("article"),r=e.dataset.smartgridErrorImage||null;n.classList.add("c-smartgrid--square-images--error");const o=e.dataset.smartgridNoresultsHeadline||"",i=e.dataset.smartgridErrorSearchUnavailable||"";n.innerHTML=`\n\t\t\t\t\t\t${o?`

${o}

`:""}\n\t\t\t\t\t\t${i?`

${i}

`:""}\n\t\t\t\t\t\t${r?``:""}\n\t\t\t\t\t`,t&&(t.innerHTML="",t.append(n),n.style.display="block")}}else{const n=document.createElement("article"),r=document.createElement("p"),o=document.createTextNode(e.getAttribute("data-smartgrid-error-search-unavailable"));r.appendChild(o),r.classList.add("c-smartgrid-result--message"),n.classList.add("l-grid--w-100pc-s","l-grid--center-s","c-smartgrid--position-1"),n.appendChild(r);const i=this.smartContainerElement.querySelector(".js--smartgrid--total");i&&(i.innerHTML=""),t&&(t.innerHTML="",t.appendChild(n))}}),100)}removeAllFilters(e){const t=(0,d.o)(e,".js-smartgrid-filter-selected"),n=(0,d.o)(e,".js--smartgrid-filter").querySelector(".js--smartgrid-filter--list");(0,d.o)(e,"form").setAttribute("data-initial-state",this.firstState),t.querySelectorAll("label").forEach((e=>{const r=n.querySelector(`#${e.getAttribute("for")}`);r&&(r.checked=!1,t.removeChild(e))}))}createPostFiltersForGCS(e,t){const n=v.queryStringToJSON(e),r={facetOptions:[],filterOptions:{}},o={filter:{compositeFilter:{logicOperator:"AND",subFilters:[]}}};let i;for(let e=0,a=0,s=Object.keys(n);e0&&i.forEach((e=>{o.filter.compositeFilter.subFilters[a]&&o.filter.compositeFilter.subFilters[a].compositeFilter.subFilters.push({valueFilter:{operatorName:l,value:{stringValue:e}}})})),a++)}return r.filterOptions=o,r}getPostData(e,t,n){const r=this.mockContract("request",e),o=this.createPostFiltersForGCS(t,e);r.start=this.model.get(e,"start"),this.config.loadDataForFilter&&"load-more"!==n?r.pageSize=this.model.get(e,"max-data-load"):r.pageSize=a.Z.getResultSpread(this.model.get(e,"num"),this.config.reducedResultsFactor),r.requestOptions.searchApplicationId=this.model.get(e,"applicationId"),r.query=this.getQuery(e),r.dataSourceRestrictions[0].source.name=this.model.get(e,"datasourceName"),r.facetOptions=o.facetOptions,r.dataSourceRestrictions[0].filterOptions.push(o.filterOptions),""!==this.model.get(e,"collectionName")&&(r.dataSourceRestrictions[0].filterOptions[0].filter.compositeFilter.subFilters.push({valueFilter:{operatorName:"collection",value:{stringValue:this.model.get(e,"collectionName")}}}),r.facetOptions.push({operatorName:"collection"}));const i=this.model.get(e,"smartcontenttype");if(void 0!==i&&i.trim().length){const e=i.split(",");Array.isArray(e)&&e.length?r.dataSourceRestrictions[0].filterOptions[0].filter.compositeFilter.subFilters.push({compositeFilter:{logicOperator:"OR",subFilters:e.map((e=>({valueFilter:{operatorName:"smartcontenttype",value:{stringValue:e.trim()}}})))}}):r.dataSourceRestrictions[0].filterOptions[0].filter.compositeFilter.subFilters.push({valueFilter:{operatorName:"smartcontenttype",value:{stringValue:i}}}),r.facetOptions.push({operatorName:"smartcontenttype"},{operatorName:"sgeventtopicsns"},{operatorName:"sgeventindustrysectorns"},{operatorName:"eventstartyear"},{operatorName:"eventtype"})}return""!==this.model.get(e,"lang")&&(r.dataSourceRestrictions[0].filterOptions[0].filter.compositeFilter.subFilters.push({valueFilter:{operatorName:"lang",value:{stringValue:this.model.get(e,"lang")}}}),r.facetOptions.push({operatorName:"lang"})),r}gcsHandler(e,t,n){const r=[],o={fromServer:JSON.parse(e),fromRequest:{instanceId:this.model.get(t,"instanceId"),Querystring:(e=>{const t=e.dataSourceRestrictions[0].filterOptions;let n="";return t.length>0&&t[0].filter.compositeFilter.subFilters.forEach((e=>{e.compositeFilter?.subFilters.forEach((e=>{n+=`inmeta:${e.valueFilter.operatorName}=${e.valueFilter.value.stringValue} `}))})),n})(JSON.parse(n)),Start:this.model.get(t,"start"),Query:this.model.get(t,"q")||"*"}};return this.facetResults=o.fromServer.facetResults,r.push((0,p.pY)(o,this.transformator)),r}handler(e,t){const n=t?t.target:null;let r,o,s,l,u,m,h,p,y,b,w="";switch(n&&null!==(0,d.o)(n,".js--c-smartgrid")&&(r=(0,d.o)(n,".js--c-smartgrid").getAttribute("id")),(n.classList.contains("js--smartgrid-filter---list-item")||n.classList.contains("js--smartgrid-filter--list-item"))&&this.changeFilterStateForQuery(t,r),e){case"type-list":t.preventDefault(),n.classList.contains("has-icon")?(n.parentNode.parentNode.querySelector(".js--smartgrid-type-grid").classList.remove("is-active"),n.parentNode.classList.add("is-active")):(n.parentNode.querySelector(".js--smartgrid-type-grid").classList.remove("is-active"),n.classList.add("is-active")),o=(0,d.o)(n,".js--c-smartgrid").querySelector(".js--smartgrid--results"),o.classList.add("c-smartgrid--list-view"),o.classList.remove("c-smartgrid--grid-view");break;case"type-grid":t.preventDefault(),n.classList.contains("has-icon")?(n.parentNode.parentNode.querySelector(".js--smartgrid-type-list").classList.remove("is-active"),n.parentNode.classList.add("is-active")):(n.parentNode.querySelector(".js--smartgrid-type-list").classList.remove("is-active"),n.classList.add("is-active")),o=(0,d.o)(n,".js--c-smartgrid").querySelector(".js--smartgrid--results"),o.classList.add("c-smartgrid--grid-view"),o.classList.remove("c-smartgrid--list-view");break;case"remove-tag":s=document.getElementById((0,d.o)(n,"label").getAttribute("for")),s.checked=!1,this.handler("new-query",t),l=(0,d.o)(n,"label"),l.parentNode.querySelectorAll("label").length<=1&&l.parentNode.classList.add("hidden"),l.parentNode.removeChild(l),t.preventDefault();break;case"initial-query":n.classList.contains("js--smartgrid-type-reset")&&this.removeAllFilters(n),(0,f.LZ)("type")&&"smart"===(0,f.LZ)("type")&&(0,f.LZ)("instanceId")&&c.isFine(this.smartContainerElement)&&(r=(0,f.LZ)("instanceId"),document.getElementById(r).querySelector("form").setAttribute("data-initial-state",window.location.search.slice(1))),this.model.set(r,"start","0"),void 0===this.model.get(r,"num")&&this.model.addNum(r,"num","0"),w=n.classList.contains("js--smartgrid-type-reset")?this.model.stateReset(r):this.model.stateInitial(r),""===this.firstState&&(this.firstState=w),this.model.setValue(r,"firstCallHappened",!1);case"new-query":if(b=t.target.parentElement?.querySelector(".js--smartgrid-filter--list-item"),b?.setAttribute("aria-selected",`${t.target.checked}`),u=document.getElementById(r).querySelector("input[name=q]"),u&&u.blur(),m=(0,d.o)(n,"form").getAttribute("data-initial-state"),u&&this.model.get(r,"q").length&&!v.valdiateQuery(this.model.get(r,"q")))return u.value="",void u.focus();this.waiting.set(r),this.world.saveState(r),this.model.set(r,"start","0"),"initial-query"!==e?w=this.model.state(r):m=w,h=JSON.stringify(this.getPostData(r,m,e)),(0,g.uz)(this.model.remote(r),h).then((e=>this.gcsHandler(e,r,h))).then(a.Z.toJSON).then((e=>this.model.saveJSON(r,e))).then((e=>this.transformator.enhanceData(e,this.config.taggroups,this.model))).then(a.Z.createObject).then((e=>"function"==typeof this.config.render.disableFiltersForCurrentData&&"function"==typeof this.config.render.createFilterFromFacets?(!this.model.getValue(r,"firstCallHappened")&&this.facetResults&&this.config.render.createFilterFromFacets(e,this.facetResults,this.model,this.transformator),this.config.render.disableFiltersForCurrentData(e,this.model)):e)).then((e=>this.model.getValue(r,"firstCallHappened")?e:a.Z.createFilterObject(e,this.config.taggroups,this.model))).then((e=>this.model.getValue(r,"firstCallHappened")?e:a.Z.addFilters(e,this.config.render))).then((e=>this.model.getValue(r,"firstCallHappened")?e:c.clearFilters(e))).then((e=>this.model.getValue(r,"firstCallHappened")?e:c.appendFilters(e))).then((e=>a.Z.createPaginationObject(e,this.model))).then(a.Z.sliceResults).then(c.appendSelectedFilters).then((e=>a.Z.addResults(e,this.config.render))).then((e=>a.Z.addPagination(e,this.config.render))).then(c.clearResults).then(c.appendResults).then((e=>a.Z.addTotal(e,this.config.render))).then(c.appendTotal).then(c.appendSelectedFilters).then(c.clearPagination).then(c.appendPagination).then((e=>(this.smartContainerElement.querySelector("button[type=submit]")?.removeAttribute("disabled"),e))).then((e=>(0===e.json.Results.Total&&this.hideSmartEventList(r),e))).then((e=>this.waiting.unset(e))).catch((()=>{this.hideSmartEventList(r),this.setErrorMessage(),this.world.restoreState(r),this.smartContainerElement=document.getElementById(this.smartContainerID),this.model=new i(this.smartContainerElement),this.waiting.unset(r),this.smartContainerElement.querySelector("button[type=submit]")?.removeAttribute("disabled");const e=this.smartContainerElement?.querySelector(".c-smartgrid-filter--selected-wrapper");e&&e.classList.add("hidden")})).finally((()=>{let e=!1,n=!1;const o=this.smartContainerElement.querySelector(".js--smartgrid-type-reset");if(Boolean(this.config.initialCallBeforePrefilter)&&!this.model.getValue(r,"firstCallHappened")){const e=v.queryStringToJSON(m);for(let t=0,o=Object.keys(e);t{const t=this.model.getForm(r).querySelector(`option[name="${i}"]`);t&&(t.parentElement.value=e,n=!0)}))}this.model.setValue(r,"firstCallHappened",!0),n&&this.handler("new-query",t)}if(o){for(let t=0;t<(0,d.o)(o,"ul").childNodes.length&&(e=(0,d.o)(o,"ul").childNodes[t].classList?(0,d.o)(o,"ul").childNodes[t].classList.contains("js--smartgrid-filter--list-item"):"",!0!==e);t++);e||""!==this.smartContainerElement.querySelector("input[type=search]")?.value?o.classList.remove("display-none"):o.classList.add("display-none")}this.preventCheckboxSelection(t,!0),this.model.setValue(r,"firstCallHappened",!0)}));break;case"load-more":if(t.preventDefault(),t.stopImmediatePropagation(),y=(0,d.o)(n,".js--c-smartgrid").querySelector(".js--smartgrid-filter"),this.config.hasNoFilterResetButton)m=y.getAttribute("data-initial-state");else{const e=this.smartContainerElement.querySelector(".js--smartgrid-type-reset");e&&(p=!e.classList.contains("display-none")),y&&(m=p?y.getAttribute("data-initial-state"):y.getAttribute("data-reset-state"))}"initial-query"!==e?w=this.model.state(r):m=w,this.waiting.set(r),this.world.saveState(r),h=JSON.stringify(this.getPostData(r,m,e)),(0,g.uz)(this.model.remote(r),h).then((e=>this.gcsHandler(e,r,h))).then(a.Z.toJSON).then((e=>this.model.saveJSON(r,e))).then((e=>this.transformator.enhanceData(e,this.config.taggroups,this.model))).then(a.Z.createObject).then((e=>a.Z.createPaginationObject(e,this.model))).then((e=>a.Z.addTotal(e,this.config.render))).then(c.appendTotal).then((e=>a.Z.addResults(e,this.config.render))).then((e=>a.Z.addPagination(e,this.config.render))).then(c.appendResults).then(c.clearPagination).then(c.appendPagination).then((e=>this.waiting.unset(e))).catch((e=>{this.setErrorMessage(),this.world.restoreState(r),this.smartContainerElement=document.getElementById(this.smartContainerID),this.model=new i(this.smartContainerElement),this.waiting.unset(r)}))}}onEvent(e,t){this.handler(t.action,e)}}const b=e=>{c.isFine(e.smartContainerElement)&&y.push(new v(e))}},7626:(e,t,n)=>{"use strict";n.d(t,{bl:()=>r,bi:()=>o,kB:()=>i});n(7602),n(5);const r=(e,t,n={})=>"function"==typeof e.render?e.render(t,n):!e.render&&e(t,n),o=(e,t)=>t.json.Results.Settings.NewPageGeneralContent?t.json.Results.Settings.NewPageGeneralContent:!0===e.RedirectPage?t.json.Results.Settings.NewPageRedirectContent:e.PageOwner===t.json.Results.Settings.SmartgridOwner?t.json.Results.Settings.NewPageOwnerContent:e.PageOwner!==t.json.Results.Settings.SmartgridOwner&&t.json.Results.Settings.NewPageOtherContent,i=e=>{const t=(new DOMParser).parseFromString(e,"text/html").body.childNodes;let n,r,o=[],i=1,a="";for(o=Array.prototype.filter.call(t,(e=>{if(e.tagName&&"article"===e.tagName.toLowerCase())return e})),n=0;n{e.classList.add("l-grid--row-reverse")})),a+=r.outerHTML;return a}},9205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(691),n(1792),n(7602),n(3476),n(5),n(560);var r=n(9555),o=n(1979),i=n(7856),a=n(8721);class s{constructor(e){this.smartContainerElement=e;const t=this.smartContainerElement.querySelector("form")?.getAttribute("data-smartgrid-i18n-mapping");this.i18nModel=t?JSON.parse(t):{}}static toJSON(e){let t;try{t=JSON.parse(e)}catch(e){throw new Error(e)}return t}static createObject(e){return{json:e.Search,dom:{},smartgrid:{id:e.Search.InstanceId,selector:`#${e.Search.InstanceId}`}}}static parseGSAQuery(e){return e.split(" ").filter((e=>0===e.indexOf("inmeta:"))).map((e=>e.split("inmeta:")[1])).join("&")}static getResultSpread(e,t){return t&&!window.matchMedia(r.w5.DESKTOP).matches?parseInt(e*t,10):Number(e)}static enhanceDataWithFilters(e,t){return e.Search.Filters={L10N:{},available:[],Filter:{}},Object.keys(t).forEach((n=>{e.Search.Filters.available.push(n),e.Search.Filters.L10N[n]={title:t[n].title}})),e}static setValueOnQuerystring(e,t){const n=[];return e.split("&").forEach((e=>{n.push(0===e.indexOf("start=")?`start=${t}`:e)})),n.join("&")}static purge(e){const t={};return e.filter((e=>!t[e.value]&&(t[e.value]=!0,!0)))}static addFilterGroup(e,t,n){return t.json.Filters.Filter[e]||(t.json.Filters.Filter[e]={Items:[],L10N:{title:t.json.Filters.L10N[e].title,closeFilterCTA:n.attr(t.json.InstanceId,"data-smartgrid-filter-close-btn-title")}},t.json.Filters.L10N[e]=null,delete t.json.Filters.L10N[e]),t}static createFilterItem(e,t,n,r){let o=0;const i={};if(r&&"object"==typeof r&&r.length>0)for(;o{r.json.Filters.Filter[e].Items.push(s.createFilterItem(n,t[o],e,r.json.Queryparam[e])),r.json.Filters.Filter[e].Items=s.purge(r.json.Filters.Filter[e].Items)})),r}static createPaginationObject(e,t){let n=Number(e.json.Results.Total);isNaN(n)&&(n=0);let r=Number(t.get(e.smartgrid.id,"start"));isNaN(r)&&(r=0);let o=Number(e.json.Results.Pagination.Spread);return isNaN(o)&&(o=n),e.json.Results.Pagination.Available=!1!==e.json.Results.Pagination.Available&&r+o{for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o=l[r],i=o.items.split(","),a=o.itemsNs.split(","),o.taggroups===c&&Object.prototype.hasOwnProperty.call(t,o.taggroups)&&s.addFilterItems(c,i,a,s.addFilterGroup(c,e,n)))})),Object.keys(e.json.Filters.Filter).forEach((t=>{e.json.Filters.Filter[t].Items&&0===e.json.Filters.Filter[t].Items.length&&delete e.json.Filters.Filter[t]}))),e}enhanceDataWithDOMQueryies(e,t){const n=document.querySelector(`#${e.Search.InstanceId} input[name="q"]`),r=n?(0,i.sanitize)(n.value):"";let o=t.attr(e.Search.InstanceId,"data-smartgrid-noresults")||"";o=o.replace(/\{\{\{query\}\}\}/giu,r);const a=t.attr(e.Search.InstanceId,"data-smartgrid-noresults-headline")||"",l=t.attr(e.Search.InstanceId,"data-smartgrid-error-image")||"",c=t.attr(e.Search.InstanceId,"data-smartgrid-filter-noresults")||"",u=t.attr(e.Search.InstanceId,"data-smartgrid-filter-noresults-headline")||"",d=t.attr(e.Search.InstanceId,"data-smartgrid-filter-noresults-image")||"";return e.Search.Results.L10N={Message:0===e.Search.Results.Result.length?o:null,Headline:0===e.Search.Results.Result.length?a:null,Image:0===e.Search.Results.Result.length?l:null,MessageFilter:0===e.Search.Results.Result.length?c:null,HeadlineFilter:0===e.Search.Results.Result.length?u:null,ImageFilter:0===e.Search.Results.Result.length?d:null,Label:this.smartContainerElement.dataset.resultsLabel??"Results"},e.Search.Results.Settings={SmartgridOwner:t.attr(e.Search.InstanceId,"data-smartgrid-owner"),NewPageGeneralContent:JSON.parse(t.attr(e.Search.InstanceId,"data-smartgrid-open-content-new-page")),NewPageOwnerContent:JSON.parse(t.attr(e.Search.InstanceId,"data-smartgrid-owner-content-new-page")),NewPageOtherContent:JSON.parse(t.attr(e.Search.InstanceId,"data-smartgrid-other-content-new-page")),NewPageRedirectContent:JSON.parse(t.attr(e.Search.InstanceId,"data-smartgrid-redirect-content-new-page"))},e.Search.Results.Pagination={Spread:s.getResultSpread(t.attr(e.Search.InstanceId,"data-smartgrid-pagination-spread")),L10N:{Text:t.attr(e.Search.InstanceId,"data-smartgrid-pagination-text"),Tracking:t.attr(e.Search.InstanceId,"data-smartgrid-pagination-tracking-id"),Title:t.attr(e.Search.InstanceId,"data-smartgrid-pagination-title"),SpanTagText:t.attr(e.Search.InstanceId,"data-smartgrid-pagination-spantagtext"),SpanTagLocationIsBefore:t.attr(e.Search.InstanceId,"data-smartgrid-pagination-spantagisbefore"),SpanTagLocationIsAfter:t.attr(e.Search.InstanceId,"data-smartgrid-pagination-spantagisafter")}},e.Search.Results.newTab=t.attr(e.Search.InstanceId,"data-search-new-tab"),e.Search.Results.newTab=null===e.Search.Results.newTab||"true"===e.Search.Results.newTab,e.Search.Results.closeFlipTitle=t.attr(e.Search.InstanceId,"data-smartgrid-filter-close-btn-title"),e.Search.Results.stripPipe="true"===t.attr(e.Search.InstanceId,"data-search-strip-pipe"),t.attr(e.Search.InstanceId,"data-smartgrid-has-pagination")&&(e.Search.Results.Pagination.Available="yes"===t.attr(e.Search.InstanceId,"data-smartgrid-has-pagination")),e}enhanceData(e,t,n){e.Search.InstanceId=e.Search.instanceId,e.Search.Queryparam=(0,o.Qc)(s.parseGSAQuery(e.Search.Querystring)),e.Search.Results&&0!==Number(e.Search.Results.Total)&&0!==Number(e.Search.Results.Result.length)||(e.Search.Results={Start:0,End:0,Total:0,Result:[]}),e.Search.Results.Start=Number(e.Search.Results.Start),e.Search.Results.End=Number(e.Search.Results.End),e.Search.Results.Total=Number(e.Search.Results.Total);let r=e;return r=s.enhanceDataWithFilters(r,t),r=this.enhanceDataWithDOMQueryies(r,n),r}geti18nMappingValue(e,t=[]){const n=[];let r="",o=[];if(e){o=e.split(",");for(let e=0;e{"use strict";n.d(t,{t8:()=>r,U2:()=>o});n(7602),n(3476);const r=(e,t,n,r)=>{const o=r||{};let i,a;if(!e)return document.cookies;const s=o.path?`; path=${o.path}`:"",l=o.domain?`; domain=${o.domain}`:"",c=o.secure?"; secure":"";return i=n||o.expires||"session","session"!==i?(a=new Date,a.setTime(a.getTime()+24*Number(n)*60*60*1e3),a=a.toUTCString(),i=`; expires=${a}`):i="",document.cookie=`${encodeURI(e)}=${encodeURI(t)}${i}${l}${s}${c} ;`,document.cookie},o=e=>{const t=encodeURI(e);let n,r=[];return navigator.cookieEnabled&&document.cookie&&document.cookie.length?(r=document.cookie.split(";"),r.filter((e=>{const r=e.split("=");return!(!r[0]||r[0].trim()!==t)&&(n=decodeURI(r[1]),n)})),n):n}},1051:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r=function(e,t){if(e)return e.parentNode&&e.matches?e&&e.matches(t)?e:r(e.parentNode,t):null};Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){return(this.document||this.ownerDocument).querySelectorAll(e).length>-1})},1879:(e,t,n)=>{"use strict";n.r(t),n.d(t,{off:()=>d,on:()=>u});n(7602),n(5);const r={},o=function(){const e=["matches","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];for(let t=0;t-1&&Object.keys(r[e.type]).forEach((t=>{const n=r[e.type][t];i(e.target,n.selector,e,n)}))},s=function(e,t){return Boolean(e[o](t))},l=function(e,t,n,o){return r[e]||(r[e]={}),r[e][t]={selector:t,data:n,handler:o},r[e][t]},c=function(e,t,n,o){return r[e]?(l(e,t,n,o),!0):(r[e]={},l(e,t,n,o),document.body.addEventListener(e,a),!0)},u=function(e,t,n,r){3!==arguments.length||"function"!=typeof n||r?c(e,t,n,r):c(e,t,{},n)},d=function(e,t){!function(e,t){Object.keys(r[e]).forEach((n=>{r[e][n].selector===t&&delete r[e][n]})),-1===Object.keys(r).indexOf(e)&&document.body.removeEventListener(e,a)}(e,t)}},3295:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r=function(e){let t;if(null==e||"object"!=typeof e)return e;if(e instanceof Array){t=[];for(let n=0;n{"use strict";n.d(t,{ff:()=>o,AV:()=>a,w5:()=>s,Y:()=>c,TZ:()=>l,t2:()=>u,vd:()=>d});n(7602),n(5),n(560),n(3476),n(928);var r=n(7856);const o={TAB:"Tab",ESC:"Escape",ENTER:"Enter",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",BACKSPACE:"Backspace",SPACE:" "},i=e=>{const t=e.match(/^(?\d+)px$/u);return t?parseInt(t.groups.number,10)-.02+"px":e},a={MOBILE_MEDIUM_START:"480px",MOBILE_LARGE_START:"666px",TABLET_START:"768px",DESKTOP_START:"1024px",DESKTOP_LARGE_START:"1365px",DESKTOP_EXTRA_LARGE_START:"1920px"},s={MOBILE:`(max-width: ${i(a.TABLET_START)})`,MOBILE_SMALL:`(max-width: ${i(a.MOBILE_MEDIUM_START)})`,MOBILE_MEDIUM:`(min-width: ${a.MOBILE_MEDIUM_START}) and (max-width: ${i(a.MOBILE_LARGE_START)})`,MOBILE_LARGE:`(min-width: ${a.MOBILE_LARGE_START}) and (max-width: ${i(a.TABLET_START)})`,TABLET_DESKTOP:`(min-width: ${a.TABLET_START})`,TABLET:`(min-width: ${a.TABLET_START}) and (max-width: ${i(a.DESKTOP_START)})`,DESKTOP:`(min-width: ${a.DESKTOP_START})`,DESKTOP_SMALL:`(min-width: ${a.DESKTOP_START}) and (max-width: ${i(a.DESKTOP_LARGE_START)})`,DESKTOP_LARGE:`(min-width: ${a.DESKTOP_LARGE_START})`,DESKTOP_EXTRA_LARGE:`(min-width: ${a.DESKTOP_EXTRA_LARGE_START})`},l=(/(android|iemobile|ip(hone|od|ad))/iu.test(navigator.userAgent),()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches),c=(function(){const e=document.querySelector("html"),t=Object.prototype.hasOwnProperty.call(window,"ontouchstart");t?(e.classList.add("is-touch"),e.classList.remove("is-desktop")):(e.classList.remove("is-touch"),e.classList.add("is-desktop"))}(),e=>{e.preventDefault();const t="A"===e.target.nodeName?e.target:e.target.parentElement;if(document.location.search){const e=[],n=t.href.includes("?"),r=document.location.search.slice(document.location.search.indexOf("?")+1,document.location.search.length).split("&");t.hasAttribute("data-ignored-url-params")&&t.getAttribute("data-ignored-url-params").split(",").forEach((t=>e.push(t.trim()))),n&&t.href.slice(t.href.indexOf("?")+1,t.href.indexOf("#")>0?t.href.indexOf("#"):t.href.length).split("&").forEach((t=>e.push(t.trim().slice(0,t.indexOf("=")))));const o=e?.length?r.filter((t=>!e.includes(t.slice(0,t.indexOf("="))))):r;if(o?.length)if(n){const e=t.href.slice(0,t.href.indexOf("?")),n=t.href.slice(t.href.indexOf("?")+1,t.href.length);t.href=`${e}?${o.join("&")}&${n}`}else t.href+=`?${o.join("&")}`}window.location=(0,r.sanitize)(t.href)}),u=(e=document)=>[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))),d=(e,t)=>{const n=e.indexOf(t);if(n>-1){e.find(((e,t)=>t>n&&e.offsetHeight>0)).focus()}}},1426:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=function(e){let t;const n=[];if("object"==typeof e&&"FORM"===e.nodeName)for(let r=0,o=e.elements.length;r=0;o--)t.options[o].selected&&(n[n.length]=`${t.name}=${t.options[o].value}`);else if("checkbox"!==t.type&&"radio"!==t.type||t.checked){let e=t.value;"q"===t.name&&(e=e.replace(/&/gu," "),e=e.replace(/%/gu," ")),n[n.length]=`${t.name}=${e}`}return n.join("&").replace(/%20/gu,"+")}},7709:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});const r=function(){const e=window.parent||window;return e.performance&&"function"==typeof e.performance.now?e.performance.now():(new Date).getTime()},o=function(e,t){const n=t||16;let o=r(),i=!0;return function(...t){const a=this,s=t;!function(){const t=r();(t-o>=n||!0===i)&&(o=t,i=!1,e.apply(a,s))}()}}},2048:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(){this.cache={},this.timeoutID=null}static timeoutDelay=500;getElement(e){const t=e;if(!e)return!1;if(this.cache[t]&&this.cache[t].element)return this.cache[t].element;if(this.cache[t]={},this.cache[t].element=document.querySelector(`${e} .js--waiting`),this.cache[t].element)return this.cache[t].element;const n=document.createElement("div");return n.classList.add("js--waiting"),n.classList.add("c-waiting"),n.setAttribute("id",e),document.querySelector(e).appendChild(n),this.cache[t].element=document.querySelector(`${e} .js--waiting`),this.cache[t].element}handler(e,t,n){const o=this.getElement(n);if(!o)return t;switch(e){case"set":return new Promise((e=>{this.timeoutID=window.clearTimeout(this.timeoutID),this.timeoutID=null,this.timeoutID=window.setTimeout((()=>{o.style.opacity="1",o.style.display="block"}),r.timeoutDelay),e(t)}));case"unset":return new Promise((e=>{this.timeoutID&&(this.timeoutID=window.clearTimeout(this.timeoutID),this.timeoutID=null),o.style.opacity="0",o.style.display="none",e()}))}return new Promise((e=>{e()}))}set(e){let t;return"string"==typeof e?t=`#${e}`:e?.search?t=`#${e.search.id}`:e?.smartgrid&&(t=`#${e.smartgrid.id}`),this.handler("set",e,t)}unset(e){let t;return"string"==typeof e?t=`#${e}`:e?.search?t=`#${e.search.id}`:e?.smartgrid&&(t=`#${e.smartgrid.id}`),this.handler("unset",e,t)}}},4562:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>L});n(7602),n(5),n(3476);var r=n(9555),o=n(2819),i=n(1051),a=n(1879),s=n(5256),l=n(5845),c=n(6640),u=n(2574);const d="click",m=function(){return window.matchMedia(r.w5.TABLET_DESKTOP).matches?"tabletOrDesktop":"mobile"};let h=m();const p=function(e){let t;return e&&0!==e.length?(e[0]&&(t=e[0]),e&&(t=e,(0,l.k)(t)),!0):null},f=function(e,t,n,r){const i=void 0!==r?`${n.textContent.trim().toLowerCase()} - ${r.textContent.trim().toLowerCase()}`:n.textContent.trim().toLowerCase();(0,o.f)(e,i),(0,o.j)(t)},g=function(e,t=!0){let n,o,i,a;if(e){a=e.querySelector(".js--accordion--content"),n=document.querySelector(".js--accordion--item.is-latest"),i=e.querySelector(".js--accordion--header button")||e.querySelector("button.js--accordion--header"),o=300,E(),n&&n.classList.remove("is-latest"),e.classList.add("is-open"),e.classList.add("is-latest"),i&&i.setAttribute("aria-expanded",!0),a&&(a.style.display="block");const s=()=>{a&&(a.style.height="auto"),t&&p(e),a?.classList.contains("c-tracking-result--moredetails-dropdown-menu")&&(a.style.overflow="visible")};return(0,r.TZ)()?(s(),!0):(0,c.j)({node:a,duration:300,easing:"linear"}).then((()=>s()))}return!0},y=function(e,t,n){const o=e.querySelector(".js--accordion--header button")||e.querySelector("button.js--accordion--header");if(e.classList.contains("js-accordion--item--locked"))return!0;if(E(),o&&o.setAttribute("aria-expanded",!1),t)return e.classList.remove("is-open"),e.style.height="",(0,l.k)(o),!0;if(null===e.getAttribute("data-product")||"tabletOrDesktop"!==h){const t=e.querySelector(".js--accordion--content"),o=()=>{t&&(t.style.display="none"),e.classList.remove("is-open"),n&&p(e)};return t?.classList.contains("c-tracking-result--moredetails-dropdown-menu")&&(t.style.overflow="hidden"),(0,r.TZ)()?(o(),!0):(0,u.j)({node:t,duration:300,easing:"linear"}).then((()=>o()))}return e.classList.remove("is-open"),e.style.height="",!0},v=function(e,t){return!!e&&(Array.from(e).forEach((e=>{!1===e.classList.contains("is-editmode")&&y(e,t,!1)})),!0)},b=function(e,t){return!!t&&(e.getAttribute("data-product")?e.getAttribute("data-product")===t.split("#")[1]:Boolean(e.querySelectorAll(t).length))},w=function(){v(document.querySelectorAll(".js--accordion--item.is-open"),!0);const e=(t=document.querySelectorAll(".js--accordion--item"),n=window.location.hash,r=b,Array.from(t).filter((e=>r(e,n||""))))[0];var t,n,r;g(e)},S=function(){let e;const t=m();"mobile"===h&&"tabletOrDesktop"===t&&(v(document.querySelectorAll(".js--accordion--item.is-open:not(.is-latest)"),!0),p(document.querySelectorAll(".js--accordion--item.is-open.is-latest")),Array.from(document.querySelectorAll(".js--accordion--type-link-list .js--accordion--item")).forEach((t=>{t.classList.remove("is-open"),e=t.querySelector(".js--accordion--content"),e&&e.removeAttribute("style")}))),h!==t&&(h=t)},E=function(){let e,t=[];try{t=document.querySelectorAll(".js-accordion--item--contains-video.is-open .c-video--player"),Array.from(t).forEach((t=>{e=VideoPlayer.Collection.getPlayerById(t.getAttribute("id")),e&&e.stop()}))}catch(e){}},A=function(e,t){const n=(0,i.o)(e.target,".js--accordion--item");let r;if((!t.noprevent||e.target.classList.contains("js--details-close"))&&!n.classList.contains("prevent")){if(n.querySelector("a")&&n.querySelector("a").dataset.preventOn&&n.querySelector("a").dataset.preventOn!==h)return!0;(o=e).preventDefault(),o.stopImmediatePropagation()}var o;switch(t.type){case"link-list":"mobile"===h&&(n.classList.contains("is-open")?y(n,!1,!1):(g(n),(0,i.o)(n,".c-homepage-container")&&f("Accordion Name","HP Container Accordion Open",n.querySelector(".js--accordion--header"))));break;case"product-table":r=(0,i.o)(e.target,".base-button"),n.classList.contains("is-open")?(e.target.classList.contains("js--details-close")||e.target.classList.contains("js--accordion--hitbox--noprevent")||e.target.classList.contains("js--accordion--hitbox")&&"mobile"===m())&&(y(n,!1,!1),n.querySelector(".js--flyout-keyboardtrap")?.classList.remove("is-open"),r&&(r.getAttribute("data-title-show")?r.title=r.getAttribute("data-title-show"):r.title="")):(g(n),f("Product Table CTA Name","Product Table CTA",(0,i.o)(e.target,".c-product").querySelector(".c-producttablerow-headline"),e.target),n.querySelector(".js--details-close")?.focus(),n.querySelector(".js--flyout-keyboardtrap")?.classList.add("is-open"),r&&r.getAttribute("data-title-hide")?r.title=r.getAttribute("data-title-hide"):r.title="");break;case"product-cards":r=(0,i.o)(e.target,".js--accordion--header"),n.classList.contains("is-open")?y(n,!1,!0):(g(n),f("Product Card Product Name","Product Card Show Details",(0,i.o)(e.target,".c-productcard").querySelector(".c-productcard-headline"),(0,i.o)(e.target,".c-productcard").querySelector(".c-productcards-button--inactive")),"tabletOrDesktop"===h&&v(n.parentNode.querySelectorAll(".js--accordion--item.is-open:not(.is-latest)")));break;default:n.classList.contains("is-open")?y(n,!1,!1):(g(n,t.scrollTo),f("Link Name","Component Accordion Open",n.querySelector(".js--accordion--header a")||n.querySelector(".js--accordion--header h4")||n.querySelector(".js--accordion--header button")),"tabletOrDesktop"===h&&v(n.parentNode.querySelectorAll(".js--accordion--item.is-open:not(.is-latest)")))}return!1},T=function(){Object.prototype.hasOwnProperty.call(window,"ontouchend")&&((0,a.on)("touchend",".js--accordion--type-producttable .js--accordion--hitbox",{type:"product-table"},A),(0,a.on)("touchend",".js--accordion--type-producttable .js--accordion--hitbox--noprevent",{type:"product-table",noprevent:!0},A)),(0,a.on)(d,".js--accordion--type-productcards .js--accordion--hitbox",{type:"product-cards"},A),(0,a.on)(d,".js--accordion--type-producttable .js--accordion--hitbox",{type:"product-table"},A),(0,a.on)(d,".js--accordion--type-producttable .js--accordion--hitbox--noprevent",{type:"product-table",noprevent:!0},A),(0,a.on)(d,".js--accordion--type-link-list .js--accordion--hitbox",{type:"link-list"},A),(0,a.on)(d,".js--accordion--type-default .js--accordion--hitbox",{type:"default",scrollTo:!0},A),(0,a.on)(d,".js--accordion--type-default .js--dropdown-moredetails-open",{type:"default",scrollTo:!1},A),window.addEventListener("resize",(()=>setTimeout(S,50))),window.addEventListener("hashchange",w),w()},L=function(){(0,s.c)()?T():window.addEventListener("load",T)}},7456:function(e){e.exports=(e,t,n)=>e===t?n.fn(this):n.inverse(this)},886:function(e){e.exports=(...e)=>{const t=e.length-1,n=e[t];let r=0;for(;r0||!Array.isArray(t)&&t)return n.fn(this)}return n.inverse(this)}},1048:function(e){e.exports=(e,t)=>{let n="";for(let r=0;re!==t?n.fn(this):n.inverse(this)},7856:function(e){e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o/gm),$=s(/^data-[\-\w.\u00B7-\uFFFF]/),H=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=s(/^(?:\w+script|data):/i),z=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:G(),t=function(e){return Y(e)};if(t.version="2.3.4",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,d=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,E=e.HTMLFormElement,A=e.DOMParser,Z=e.trustedTypes,J=l.prototype,X=O(J,"cloneNode"),Q=O(J,"nextSibling"),ee=O(J,"childNodes"),te=O(J,"parentNode");if("function"==typeof i){var ne=r.createElement("template");ne.content&&ne.content.ownerDocument&&(r=ne.content.ownerDocument)}var re=K(Z,n),oe=re&&Re?re.createHTML(""):"",ie=r,ae=ie.implementation,se=ie.createNodeIterator,le=ie.createDocumentFragment,ce=ie.getElementsByTagName,ue=n.importNode,de={};try{de=L(r).documentMode?r.documentMode:{}}catch(e){}var me={};t.isSupported="function"==typeof te&&ae&&void 0!==ae.createHTMLDocument&&9!==de;var he=M,pe=F,fe=$,ge=H,ye=U,ve=z,be=B,we=null,Se=T({},[].concat(V(x),V(j),V(k),V(N),V(C))),Ee=null,Ae=T({},[].concat(V(D),V(_),V(R),V(P))),Te=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}})),Le=null,Oe=null,xe=!0,je=!0,ke=!1,Ie=!1,Ne=!1,qe=!1,Ce=!1,De=!1,_e=!1,Re=!1,Pe=!0,Me=!0,Fe=!1,$e={},He=null,Be=T({},["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"]),Ue=null,ze=T({},["audio","video","img","source","image","track"]),We=null,Ve=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ze=Ye,Je=!1,Xe=void 0,Qe=["application/xhtml+xml","text/html"],et="text/html",tt=void 0,nt=null,rt=r.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},it=function(e){nt&&nt===e||(e&&"object"===(void 0===e?"undefined":W(e))||(e={}),e=L(e),we="ALLOWED_TAGS"in e?T({},e.ALLOWED_TAGS):Se,Ee="ALLOWED_ATTR"in e?T({},e.ALLOWED_ATTR):Ae,We="ADD_URI_SAFE_ATTR"in e?T(L(Ve),e.ADD_URI_SAFE_ATTR):Ve,Ue="ADD_DATA_URI_TAGS"in e?T(L(ze),e.ADD_DATA_URI_TAGS):ze,He="FORBID_CONTENTS"in e?T({},e.FORBID_CONTENTS):Be,Le="FORBID_TAGS"in e?T({},e.FORBID_TAGS):{},Oe="FORBID_ATTR"in e?T({},e.FORBID_ATTR):{},$e="USE_PROFILES"in e&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,je=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.SAFE_FOR_TEMPLATES||!1,Ne=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,_e=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,Pe=!1!==e.SANITIZE_DOM,Me=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,Ze=e.NAMESPACE||Ye,e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xe=Xe=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Xe?function(e){return e}:f,Ie&&(je=!1),_e&&(De=!0),$e&&(we=T({},[].concat(V(C))),Ee=[],!0===$e.html&&(T(we,x),T(Ee,D)),!0===$e.svg&&(T(we,j),T(Ee,_),T(Ee,P)),!0===$e.svgFilters&&(T(we,k),T(Ee,_),T(Ee,P)),!0===$e.mathMl&&(T(we,N),T(Ee,R),T(Ee,P))),e.ADD_TAGS&&(we===Se&&(we=L(we)),T(we,e.ADD_TAGS)),e.ADD_ATTR&&(Ee===Ae&&(Ee=L(Ee)),T(Ee,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&T(We,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(He===Be&&(He=L(He)),T(He,e.FORBID_CONTENTS)),Me&&(we["#text"]=!0),Ne&&T(we,["html","head","body"]),we.table&&(T(we,["tbody"]),delete Le.tbody),a&&a(e),nt=e)},at=T({},["mi","mo","mn","ms","mtext"]),st=T({},["foreignobject","desc","title","annotation-xml"]),lt=T({},j);T(lt,k),T(lt,I);var ct=T({},N);T(ct,q);var ut=function(e){var t=te(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=f(e.tagName),r=f(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(lt[n]);if(e.namespaceURI===Ge)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===Ke?"math"===n&&st[r]:Boolean(ct[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===Ke&&!st[r])return!1;if(t.namespaceURI===Ge&&!at[r])return!1;var o=T({},["title","style","font","a","script"]);return!ct[n]&&(o[n]||!lt[n])}return!1},dt=function(e){p(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},mt=function(e,n){try{p(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){p(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Ee[e])if(De||_e)try{dt(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,n=void 0;if(Ce)e=""+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Xe&&(e=''+e+"");var i=re?re.createHTML(e):e;if(Ze===Ye)try{t=(new A).parseFromString(i,Xe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Ze===Ye?ce.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},pt=function(e){return se.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ft=function(e){return e instanceof E&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},gt=function(e){return"object"===(void 0===s?"undefined":W(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":W(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,n,r){me[e]&&m(me[e],(function(e){e.call(t,n,r,nt)}))},vt=function(e){var n=void 0;if(yt("beforeSanitizeElements",e,null),ft(e))return dt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return dt(e),!0;var r=tt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return dt(e),!0;if("select"===r&&w(/